From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7927F1382C5 for ; Thu, 26 Apr 2018 07:50:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 91882E0802; Thu, 26 Apr 2018 07:50:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 74801E0802 for ; Thu, 26 Apr 2018 07:50:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 70C24335C7C for ; Thu, 26 Apr 2018 07:50:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 06F7529B for ; Thu, 26 Apr 2018 07:50:09 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1524729002.2c687ae9c9e2d028168d4b9cc185d2a27db59d01.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/libinput-gestures/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-misc/libinput-gestures/libinput-gestures-9999.ebuild X-VCS-Directories: x11-misc/libinput-gestures/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 2c687ae9c9e2d028168d4b9cc185d2a27db59d01 X-VCS-Branch: master Date: Thu, 26 Apr 2018 07:50:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0be10218-325f-482e-a367-4f0fd4d34fde X-Archives-Hash: 223e4d83cc49a9cf79dc4574e3dbee05 commit: 2c687ae9c9e2d028168d4b9cc185d2a27db59d01 Author: Lars Wendler gentoo org> AuthorDate: Thu Apr 19 13:59:52 2018 +0000 Commit: Lars Wendler gentoo org> CommitDate: Thu Apr 26 07:50:02 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c687ae9 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 .../libinput-gestures-9999.ebuild | 25 ++++++++++++++++++---- 1 file 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 23897423933..39fb049c736 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 +}