x11-misc/libinput-gestures: version bump to 2.40
authorVladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua>
Sun, 2 Dec 2018 09:11:19 +0000 (11:11 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 4 Dec 2018 22:36:25 +0000 (23:36 +0100)
Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Closes: https://github.com/gentoo/gentoo/pull/10537
Signed-off-by: Michał Górny <mgorny@gentoo.org>
x11-misc/libinput-gestures/Manifest
x11-misc/libinput-gestures/libinput-gestures-2.40.ebuild [new file with mode: 0644]

index 8235daf24caeda1215b55ff95a50f413bff282d0..448322d6a554c6c87871c380ce008135707cb76a 100644 (file)
@@ -1 +1,2 @@
 DIST libinput-gestures-2.39.tar.gz 18028 BLAKE2B f7d24a1ca8a6ba7064359d3f1c4e1cc72419205d94c9da7efc85b1fa0561f8353a50e126b6ec15cd79f6ef6c82b5d1ed94d44f0af6fcfc21eb2644695dd66337 SHA512 5aa54c9da01de76e279924bc2840b704f163512e06734fee1fa37e6905c33fa2aa734f4bfef6e8bc75a654f0345dfd8928be298d880229cc47be791a65ba1927
+DIST libinput-gestures-2.40.tar.gz 18082 BLAKE2B ef01449a6fa381361876909487460f2a11e86887b1a3885b1459c218206e80d76ccf53dbebe39d39c360bee5da7a32028673d2165c244df584ae6e8078957d33 SHA512 70c22f7225f4a1f7e0a4d0a83f84370f2649ef01d9a72756b2d4bb4be92ac2265c9aff9302642609065da0e1769b719f616e2d8ee843aca01ce66f1891732890
diff --git a/x11-misc/libinput-gestures/libinput-gestures-2.40.ebuild b/x11-misc/libinput-gestures/libinput-gestures-2.40.ebuild
new file mode 100644 (file)
index 0000000..ebd4d9f
--- /dev/null
@@ -0,0 +1,56 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4..7} )
+
+inherit gnome2-utils python-single-r1
+
+DESCRIPTION="Actions gestures on your touchpad using libinput"
+HOMEPAGE="https://github.com/bulletmark/libinput-gestures"
+if [[ ${PV} == *9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/bulletmark/${PN}.git"
+else
+       SRC_URI="https://github.com/bulletmark/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+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"
+
+src_prepare() {
+       default
+
+       # Fix docdir installation path
+       sed '/^DOCDIR/s@$NAME@${PF}@' -i libinput-gestures-setup || die
+}
+
+src_test() { :; }
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+
+       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
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+}