commit:     a1ac6d6690aa7485e91724567f98ea5172a28985
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 10 19:01:49 2018 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Tue Apr 10 19:01:49 2018 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=a1ac6d66

kde-misc/kdeconnect: Add mousepad use flag

Upstream commit bda995b8320ffbbe7cf37b474ebcc4c98fec71f9

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 kde-misc/kdeconnect/kdeconnect-9999.ebuild | 11 +++++++----
 kde-misc/kdeconnect/metadata.xml           |  1 +
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/kde-misc/kdeconnect/kdeconnect-9999.ebuild 
b/kde-misc/kdeconnect/kdeconnect-9999.ebuild
index fb8b9ec947..95eb1a8d1a 100644
--- a/kde-misc/kdeconnect/kdeconnect-9999.ebuild
+++ b/kde-misc/kdeconnect/kdeconnect-9999.ebuild
@@ -17,7 +17,7 @@ fi
 DESCRIPTION="Adds communication between KDE Plasma and your smartphone"
 HOMEPAGE="https://www.kde.org/ https://community.kde.org/KDEConnect";
 LICENSE="GPL-2+"
-IUSE="app sms wayland"
+IUSE="app mousepad sms wayland"
 
 DEPEND="
        $(add_frameworks_dep kcmutils)
@@ -38,10 +38,12 @@ DEPEND="
        $(add_qt_dep qtwidgets)
        $(add_qt_dep qtx11extras)
        >=app-crypt/qca-2.1.0:2[qt5(+),ssl]
-       x11-libs/libfakekey
-       x11-libs/libX11
-       x11-libs/libXtst
        app? ( $(add_frameworks_dep kdeclarative) )
+       mousepad? (
+               x11-libs/libfakekey
+               x11-libs/libX11
+               x11-libs/libXtst
+       )
        sms? ( $(add_frameworks_dep kpeople) )
        wayland? ( $(add_frameworks_dep kwayland) )
 "
@@ -67,6 +69,7 @@ src_prepare() {
 src_configure() {
        local mycmakeargs=(
                -DEXPERIMENTALAPP_ENABLED=$(usex app)
+               $(cmake-utils_use_find_package mousepad LibFakeKey)
                -DSMSAPP_ENABLED=$(usex sms)
                $(cmake-utils_use_find_package wayland KF5Wayland)
        )

diff --git a/kde-misc/kdeconnect/metadata.xml b/kde-misc/kdeconnect/metadata.xml
index 320dfa6599..ccae5861e2 100644
--- a/kde-misc/kdeconnect/metadata.xml
+++ b/kde-misc/kdeconnect/metadata.xml
@@ -7,6 +7,7 @@
        </maintainer>
        <use>
                <flag name="app">Enable experimental kcapp frontend</flag>
+               <flag name="mousepad">Enable remote mousepad plugin using 
<pkg>x11-libs/libfakekey</pkg></flag>
                <flag name="sms">Enable SMS support using 
<pkg>kde-frameworks/kpeople</pkg></flag>
                <flag name="wayland">Enable kwin_wayland support for mousepad 
plugin using <pkg>kde-frameworks/kwayland</pkg></flag>
        </use>

Reply via email to