diff options
author | Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua> | 2021-01-15 20:46:55 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-01-16 10:03:00 +0200 |
commit | 826a84fac54a69deb96191ad93eb4bd03d19d66c (patch) | |
tree | 2d37948f8eb1e66b7a6d9c883b5413a37a333dfd /x11-misc/libinput-gestures/libinput-gestures-2.56.ebuild | |
parent | app-misc/rpick: Drop 0.6.1 (diff) | |
download | gentoo-826a84fac54a69deb96191ad93eb4bd03d19d66c.tar.gz gentoo-826a84fac54a69deb96191ad93eb4bd03d19d66c.tar.bz2 gentoo-826a84fac54a69deb96191ad93eb4bd03d19d66c.zip |
x11-misc/libinput-gestures: version bump, move to xdg eclass
Closes: https://bugs.gentoo.org/753227
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Vladimir Pavljuchenkov <spiderx@spiderx.dp.ua>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'x11-misc/libinput-gestures/libinput-gestures-2.56.ebuild')
-rw-r--r-- | x11-misc/libinput-gestures/libinput-gestures-2.56.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/x11-misc/libinput-gestures/libinput-gestures-2.56.ebuild b/x11-misc/libinput-gestures/libinput-gestures-2.56.ebuild new file mode 100644 index 000000000000..ef3844015c8f --- /dev/null +++ b/x11-misc/libinput-gestures/libinput-gestures-2.56.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +inherit python-single-r1 xdg + +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 + x11-misc/wmctrl + x11-misc/xdotool" +DEPEND="dev-libs/libinput + dev-util/desktop-file-utils" + +src_prepare() { + default + + # Fix docdir installation path + sed -i "/^DOCDIR/s@\$NAME@${PF}@" libinput-gestures-setup \ + || die "sed failed for libinput-gestures-setup" +} + +src_test() { :; } + +pkg_postinst() { + xdg_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 +} |