1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6..7} )
8 inherit python-single-r1 xdg-utils
10 DESCRIPTION="Actions gestures on your touchpad using libinput"
11 HOMEPAGE="https://github.com/bulletmark/libinput-gestures"
12 if [[ ${PV} == *9999 ]] ; then
14 EGIT_REPO_URI="https://github.com/bulletmark/${PN}.git"
16 SRC_URI="https://github.com/bulletmark/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="~amd64 ~x86"
23 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
25 RDEPEND="${PYTHON_DEPS}
26 >=dev-libs/libinput-1.8.0
29 DEPEND=">=dev-libs/libinput-1.8.0
30 dev-util/desktop-file-utils"
35 # Fix docdir installation path
36 sed '/^DOCDIR/s@$NAME@${PF}@' -i libinput-gestures-setup || die
44 elog "You must be in the input group to read the touchpad device."
46 if ! has_version x11-libs/gtk+:3 ; then
47 elog "${PN}-setup script supports Gnome 3 via x11-libs/gtk+:3."
49 if ! has_version kde-plasma/kde-cli-tools:5 ; then
50 elog "${PN}-setup script supports Plasma 5 via kde-plasma/kde-cli-tools:5."