kde-plasma/kmenuedit: backport patch from upstream solving build failure with USE...
authorMichael Palimaka <kensington@gentoo.org>
Fri, 1 Apr 2016 16:08:23 +0000 (03:08 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Fri, 1 Apr 2016 16:08:45 +0000 (03:08 +1100)
Gentoo-bug: 578620

Package-Manager: portage-2.2.28

kde-plasma/kmenuedit/files/kmenuedit-5.5.5-hotkeys.patch [new file with mode: 0644]
kde-plasma/kmenuedit/kmenuedit-5.5.5.ebuild
kde-plasma/kmenuedit/kmenuedit-5.6.1.ebuild

diff --git a/kde-plasma/kmenuedit/files/kmenuedit-5.5.5-hotkeys.patch b/kde-plasma/kmenuedit/files/kmenuedit-5.5.5-hotkeys.patch
new file mode 100644 (file)
index 0000000..18e9f76
--- /dev/null
@@ -0,0 +1,44 @@
+From fe425d0fbfe32101a5bb232a65a19785e2ef687f Mon Sep 17 00:00:00 2001
+From: Michael Palimaka <kensington@gentoo.org>
+Date: Fri, 1 Apr 2016 05:17:40 +1100
+Subject: [PATCH] Fix build when KHotKeysDBusInterface is disabled/missing.
+
+Summary:
+By testing the variable itself (rather than its contents) we avoid a failure
+when KHotKeysDBusInterface is disabled or missing as KHotKeysDBusInterface_FOUND
+will not be defined.
+
+Reviewers: #plasma, graesslin
+
+Reviewed By: #plasma, graesslin
+
+Differential Revision: https://phabricator.kde.org/D1278
+---
+ CMakeLists.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c615d9f..a2e43ae 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -43,7 +43,7 @@ set(kmenueditcommon_STAT_SRCS preferencesdlg.cpp klinespellchecking.cpp basictab
+ ########### next target ###############
+ qt5_add_dbus_adaptor( kmenueditcommon_STAT_SRCS org.kde.kmenuedit.xml kmenuedit.h KMenuEdit)
+ 
+-if(NOT WIN32 AND ${KHotKeysDBusInterface_FOUND})
++if(NOT WIN32 AND KHotKeysDBusInterface_FOUND)
+ qt5_add_dbus_interface(
+     kmenueditcommon_STAT_SRCS
+     ${KHOTKEYS_DBUS_INTERFACE}
+@@ -82,7 +82,7 @@ install(TARGETS kmenuedit ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
+ install( PROGRAMS org.kde.kmenuedit.desktop  DESTINATION  ${KDE_INSTALL_APPDIR} )
+ install( FILES kmenueditui.rc  DESTINATION  ${KDE_INSTALL_KXMLGUI5DIR}/kmenuedit )
+ 
+-if(NOT WIN32 AND ${KHotKeysDBusInterface_FOUND})
++if(NOT WIN32 AND KHotKeysDBusInterface_FOUND)
+ add_dependencies(kdeinit_kmenuedit kded_khotkeys)
+ endif()
+ 
+-- 
+2.7.3
+
index 1f17739f36062e863826f85414a11678ab558ddb..cdea1034fed12af3bfea268e408ec35b9bd38b54 100644 (file)
@@ -36,6 +36,8 @@ RDEPEND="${DEPEND}
        !kde-base/kmenuedit:4
 "
 
+PATCHES=( "${FILESDIR}/${PN}-5.5.5-hotkeys.patch" )
+
 src_configure() {
        local mycmakeargs=(
                $(cmake-utils_use_find_package hotkeys KHotKeysDBusInterface)
index 1f17739f36062e863826f85414a11678ab558ddb..cdea1034fed12af3bfea268e408ec35b9bd38b54 100644 (file)
@@ -36,6 +36,8 @@ RDEPEND="${DEPEND}
        !kde-base/kmenuedit:4
 "
 
+PATCHES=( "${FILESDIR}/${PN}-5.5.5-hotkeys.patch" )
+
 src_configure() {
        local mycmakeargs=(
                $(cmake-utils_use_find_package hotkeys KHotKeysDBusInterface)