Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/libinput-gestures/
Date: Thu, 26 Apr 2018 07:50:18
Message-Id: 1524729002.2c687ae9c9e2d028168d4b9cc185d2a27db59d01.polynomial-c@gentoo
1 commit: 2c687ae9c9e2d028168d4b9cc185d2a27db59d01
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 19 13:59:52 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 26 07:50:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c687ae9
7
8 x11-misc/libinput-gestures: Make live ebuild more universal.
9
10 Also add icon file handler and fix DOCDIR installation path.
11
12 Package-Manager: Portage-2.3.30, Repoman-2.3.9
13
14 .../libinput-gestures-9999.ebuild | 25 ++++++++++++++++++----
15 1 file changed, 21 insertions(+), 4 deletions(-)
16
17 diff --git a/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild b/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild
18 index 23897423933..39fb049c736 100644
19 --- a/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild
20 +++ b/x11-misc/libinput-gestures/libinput-gestures-9999.ebuild
21 @@ -5,16 +5,20 @@ EAPI=6
22
23 PYTHON_COMPAT=( python{3_4,3_5,3_6} )
24
25 -inherit git-r3 python-single-r1
26 +inherit gnome2-utils python-single-r1
27
28 DESCRIPTION="Actions gestures on your touchpad using libinput"
29 HOMEPAGE="https://github.com/bulletmark/libinput-gestures"
30 -EGIT_REPO_URI="https://github.com/bulletmark/${PN}.git"
31 -SRC_URI=""
32 +if [[ ${PV} == *9999 ]] ; then
33 + inherit git-r3
34 + EGIT_REPO_URI="https://github.com/bulletmark/${PN}.git"
35 +else
36 + SRC_URI="https://github.com/bulletmark/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
37 + KEYWORDS="~amd64 ~x86"
38 +fi
39
40 LICENSE="GPL-3"
41 SLOT="0"
42 -KEYWORDS=""
43 IUSE="test"
44 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
45
46 @@ -26,7 +30,16 @@ DEPEND=">=dev-libs/libinput-1.8.0
47 dev-util/desktop-file-utils
48 test? ( dev-python/flake8[${PYTHON_USEDEP}] )"
49
50 +src_prepare() {
51 + default
52 +
53 + # Fix docdir installation path
54 + sed '/^DOCDIR/s@$NAME@${PF}@' -i libinput-gestures-setup || die
55 +}
56 +
57 pkg_postinst() {
58 + gnome2_icon_cache_update
59 +
60 elog "You must be in the input group to read the touchpad device."
61
62 if ! has_version x11-libs/gtk+:3 ; then
63 @@ -36,3 +49,7 @@ pkg_postinst() {
64 elog "${PN}-setup script supports Plasma 5 via kde-plasma/kde-cli-tools:5."
65 fi
66 }
67 +
68 +pkg_postrm() {
69 + gnome2_icon_cache_update
70 +}