summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-04-19 15:59:52 +0200
committerLars Wendler <polynomial-c@gentoo.org>2018-04-26 09:50:02 +0200
commit2c687ae9c9e2d028168d4b9cc185d2a27db59d01 (patch)
tree0c38e57bdb36861d8c03d191b784fd29103ba043
parentx11-misc/libinput-gestures: Fixed HOMEPAGE variable. (diff)
downloadgentoo-2c687ae9c9e2d028168d4b9cc185d2a27db59d01.tar.gz
gentoo-2c687ae9c9e2d028168d4b9cc185d2a27db59d01.tar.bz2
gentoo-2c687ae9c9e2d028168d4b9cc185d2a27db59d01.zip
x11-misc/libinput-gestures: Make live ebuild more universal.
Also add icon file handler and fix DOCDIR installation path. Package-Manager: Portage-2.3.30, Repoman-2.3.9
-rw-r--r--x11-misc/libinput-gestures/libinput-gestures-9999.ebuild25
1 files changed, 21 insertions, 4 deletions
diff --git a/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild b/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild
index 238974239339..39fb049c736d 100644
--- a/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild
+++ b/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild
@@ -5,16 +5,20 @@ EAPI=6
PYTHON_COMPAT=( python{3_4,3_5,3_6} )
-inherit git-r3 python-single-r1
+inherit gnome2-utils python-single-r1
DESCRIPTION="Actions gestures on your touchpad using libinput"
HOMEPAGE="https://github.com/bulletmark/libinput-gestures"
-EGIT_REPO_URI="https://github.com/bulletmark/${PN}.git"
-SRC_URI=""
+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"
-KEYWORDS=""
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
@@ -26,7 +30,16 @@ DEPEND=">=dev-libs/libinput-1.8.0
dev-util/desktop-file-utils
test? ( dev-python/flake8[${PYTHON_USEDEP}] )"
+src_prepare() {
+ default
+
+ # Fix docdir installation path
+ sed '/^DOCDIR/s@$NAME@${PF}@' -i libinput-gestures-setup || die
+}
+
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
@@ -36,3 +49,7 @@ pkg_postinst() {
elog "${PN}-setup script supports Plasma 5 via kde-plasma/kde-cli-tools:5."
fi
}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}