commit:     a327e44a1a13290b26234ac21ecad9590aa05631
Author:     Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp 
<DOT> ua>
AuthorDate: Mon Dec 25 11:43:46 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Dec 25 13:53:02 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a327e44a

x11-misc/libinput-gestures: Drop USE=gtk,kde

1. Dropped x11-libs/gtk+:3 and kde-plasma/kde-cli-tools:5 from RDEPEND.
2. Fixed REQUIRED_USE position in ebuild.

Closes: https://github.com/gentoo/gentoo/pull/6065
Package-Manager: Portage-2.3.13, Repoman-2.3.3

 x11-misc/libinput-gestures/libinput-gestures-9999.ebuild | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild 
b/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild
index fcb47f02598..f2516c9159b 100644
--- a/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild
+++ b/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild
@@ -15,19 +15,23 @@ SRC_URI=""
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS=""
-IUSE="gtk kde"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RDEPEND="${PYTHON_DEPS}
        >=dev-libs/libinput-1.8.0
        x11-misc/xdotool
        x11-misc/wmctrl"
 DEPEND=">=dev-libs/libinput-1.8.0
-       dev-util/desktop-file-utils
-       gtk? ( x11-libs/gtk+:3 )
-       kde? ( kde-plasma/kde-cli-tools:5 )"
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+       dev-util/desktop-file-utils"
 
 pkg_postinst() {
        elog "You must be in the input group to read the touchpad device."
+
+       if ! has_version x11-libs/gtk+:3 ; then
+               elog "${PN}-setup script supports Gnome 3 via x11-libs/gtk+:3."
+       fi
+       if ! has_version kde-plasma/kde-cli-tools:5 ; then
+               elog "${PN}-setup script supports Plasma 5 via 
kde-plasma/kde-cli-tools:5."
+       fi
 }

Reply via email to