From d736c151e7c781f089a4770bb81e9aef44ff713a Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 21 Mar 2014 13:42:14 +0100 Subject: [PATCH] libsystemd-qt: Add latest git version of systemd bindings --- .../libsystemd-qt/files/fix-pkgconfig.patch | 18 ++++++++++++++++++ recipes-qt/libsystemd-qt/libsystemd-qt_git.bb | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 recipes-qt/libsystemd-qt/files/fix-pkgconfig.patch create mode 100644 recipes-qt/libsystemd-qt/libsystemd-qt_git.bb diff --git a/recipes-qt/libsystemd-qt/files/fix-pkgconfig.patch b/recipes-qt/libsystemd-qt/files/fix-pkgconfig.patch new file mode 100644 index 0000000000..f20de0ea2e --- /dev/null +++ b/recipes-qt/libsystemd-qt/files/fix-pkgconfig.patch @@ -0,0 +1,18 @@ +diff --git a/QtSystemd.pc.cmake b/QtSystemd.pc.cmake +index 6b6c0e5..c3bdd42 100644 +--- a/QtSystemd.pc.cmake ++++ b/QtSystemd.pc.cmake +@@ -1,6 +1,6 @@ + prefix=@CMAKE_INSTALL_PREFIX@ + exec_prefix=${prefix} +-libdir=@CMAKE_INSTALL_PREFIX@/lib@LIB_SUFFIX@ ++libdir=${prefix}/lib@LIB_SUFFIX@ + includedir=${prefix}/include/QtSystemd + + Name: QtSystemd +@@ -9,4 +9,4 @@ Version: @VERSION@ + + Requires: systemd + Cflags: -I${includedir} @CMAKE_INCLUDE_PATH@ +-Libs: -L${libdir} -lQtSystemd @CMAKE_LIBRARY_PATH@ ++Libs: -L${libdir} -lQtSystemd diff --git a/recipes-qt/libsystemd-qt/libsystemd-qt_git.bb b/recipes-qt/libsystemd-qt/libsystemd-qt_git.bb new file mode 100644 index 0000000000..0a6aeb0ea0 --- /dev/null +++ b/recipes-qt/libsystemd-qt/libsystemd-qt_git.bb @@ -0,0 +1,19 @@ +DESCRIPTION = "Qt Wrapper for systemd" +HOMEPAGE = "https://github.com/ilpianista/libsystemd-qt" + +LICENSE = "LGPLv3+" +LIC_FILES_CHKSUM = "file://COPYING;md5=e6a600fd5e1d9cbde2d983680233ad02" + +inherit cmake_qt5 + +DEPENDS = "systemd" +RDEPENDS_${PN} = "dbus" + +PV = "208+git${SRCPV}" + +SRC_URI = "git://github.com/ilpianista/libsystemd-qt;branch=master \ + file://fix-pkgconfig.patch" +S= "${WORKDIR}/git" +SRCREV = "398056b33314fc583dd8d8422e5c2f8b797fdb3b" + +FILES_${PN}-dev += "${libdir}/cmake/* ${libdir}/qt5/mkspecs/features/*"