commit:     2e7baea700bac009a9cc0887c0fd596473517604
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 10 18:38:33 2018 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Tue Apr 10 18:41:14 2018 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=2e7baea7

kde-misc/kdeconnect: Fix build w/o wayland/handbook

Reported-by: email200202 <AT> yahoo.com
Thanks-to: Andreas Sturmlechner <asturm <AT> gentoo.org>
Bug: https://bugs.gentoo.org/652888
Package-Manager: Portage-2.3.28, Repoman-2.3.9

 kde-misc/kdeconnect/files/kdeconnect-1.3.1-no-wayland.patch | 11 +++++++++++
 kde-misc/kdeconnect/kdeconnect-9999.ebuild                  |  8 +++++---
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/kde-misc/kdeconnect/files/kdeconnect-1.3.1-no-wayland.patch 
b/kde-misc/kdeconnect/files/kdeconnect-1.3.1-no-wayland.patch
new file mode 100644
index 0000000000..7b34659502
--- /dev/null
+++ b/kde-misc/kdeconnect/files/kdeconnect-1.3.1-no-wayland.patch
@@ -0,0 +1,11 @@
+diff --git a/plugins/mousepad/CMakeLists.txt b/plugins/mousepad/CMakeLists.txt
+index 7f14139e..a1daaa16 100644
+--- a/plugins/mousepad/CMakeLists.txt
++++ b/plugins/mousepad/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ if(UNIX)
+-    find_package(KF5 ${KF5_MIN_VERSION} QUIET COMPONENTS Wayland)
++    find_package(KF5Wayland ${KF5_MIN_VERSION} QUIET)
+ 
+     find_package(LibFakeKey QUIET)
+     set_package_properties(LibFakeKey PROPERTIES DESCRIPTION "fake key events"

diff --git a/kde-misc/kdeconnect/kdeconnect-9999.ebuild 
b/kde-misc/kdeconnect/kdeconnect-9999.ebuild
index bfb57f864e..fb8b9ec947 100644
--- a/kde-misc/kdeconnect/kdeconnect-9999.ebuild
+++ b/kde-misc/kdeconnect/kdeconnect-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-KDE_HANDBOOK="optional"
+KDE_HANDBOOK="forceoptional"
 KDE_TEST="true"
 KMNAME="${PN}-kde"
 KDE_SELINUX_MODULE="${PN}"
@@ -54,12 +54,14 @@ RDEPEND="${DEPEND}
 
 RESTRICT+=" test"
 
+PATCHES=( "${FILESDIR}/${PN}-1.3.1-no-wayland.patch" )
+
 src_prepare() {
+       kde5_src_prepare
+
        sed \
                -e 's#${LIBEXEC_INSTALL_DIR}#@KDE_INSTALL_FULL_LIBEXECDIR@#' \
                -i daemon/kdeconnectd.desktop.cmake || die
-
-       kde5_src_prepare
 }
 
 src_configure() {

Reply via email to