summary refs log tree commit diff
diff options
context:
space:
mode:
authorAzat Bahawi <azahi@teknik.io>2020-02-29 13:09:27 +0300
committerAzat Bahawi <azahi@teknik.io>2020-02-29 13:09:27 +0300
commit13579edd3824ee67519edaf7eb28be3335d44596 (patch)
treec9771c5996f6c2d5352e43430bf0ed2539bcd06e
parentx11-misc/sxlock: Add live ebuild (diff)
x11-misc/unclutter-xfixes: Bump EAPI, bump version, live
Diffstat (limited to '')
-rw-r--r--x11-misc/unclutter-xfixes/Manifest2
-rw-r--r--x11-misc/unclutter-xfixes/unclutter-xfixes-1.5.ebuild (renamed from x11-misc/unclutter-xfixes/unclutter-xfixes-1.3.ebuild)21
-rw-r--r--x11-misc/unclutter-xfixes/unclutter-xfixes-9999.ebuild39
3 files changed, 56 insertions, 6 deletions
diff --git a/x11-misc/unclutter-xfixes/Manifest b/x11-misc/unclutter-xfixes/Manifest
index 23b2b09..6da6c4a 100644
--- a/x11-misc/unclutter-xfixes/Manifest
+++ b/x11-misc/unclutter-xfixes/Manifest
@@ -1 +1 @@
-DIST unclutter-xfixes-1.3.tar.gz 6131 BLAKE2B eae9787e7d16e57de9f395a51f6e32ed357282737f054205696cb05cd63852a6d24bbd4d05244b42b0019597a10ddcb648f709be7b227dc28b6e794ef8817aa5 SHA512 0f6f23d814162ae2af592f889d4531aefd9dfce6172637d42861e3ffa4e99d361f4916ada76849f6fe2f1c453a69a80ea6bec9645445986589c179b02973f844
+DIST unclutter-xfixes-1.5.tar.gz 7998 BLAKE2B 3eb6e259d85ca85eac3776fe1f4ff57dd3f2a8573f478880d174b3fb75ba23e54281e12b9d62243501539dee4225d3c64c5bf32a3c6aa1549f729ebd617ab5aa SHA512 0b8823d5ab64193f7e5fe03ceecbe0f475bbe36f78c4a0295705a80e9df1e5a8c4f65eb749b55e5b8b06aa3248e4f2fc1daac1b14b84aab157bdfbff39bba095
diff --git a/x11-misc/unclutter-xfixes/unclutter-xfixes-1.3.ebuild b/x11-misc/unclutter-xfixes/unclutter-xfixes-1.5.ebuild
index 015342f..1b0609a 100644
--- a/x11-misc/unclutter-xfixes/unclutter-xfixes-1.3.ebuild
+++ b/x11-misc/unclutter-xfixes/unclutter-xfixes-1.5.ebuild
@@ -1,24 +1,35 @@
 # Copyright 2018-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/Airblader/unclutter-xfixes.git"
+fi
 
 DESCRIPTION="A rewrite of unclutter using the x11-xfixes extension"
 HOMEPAGE="https://github.com/Airblader/unclutter-xfixes"
-SRC_URI="https://github.com/Airblader/unclutter-xfixes/archive/v${PV}.tar.gz \
-	-> ${P}.tar.gz"
+
+if [[ ${PV} == *9999  ]]; then
+	SRC_URI=""
+	KEYWORDS=""
+else
+	SRC_URI="https://github.com/Airblader/unclutter-xfixes/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64"
 IUSE=""
 
 DEPEND="x11-libs/libXi
+	dev-libs/libev
 	x11-libs/libX11
 	x11-libs/libXfixes
-	dev-libs/libev
 "
 RDEPEND="${DEPEND}"
+BDEPEND=""
 
 src_prepare() {
 	default
diff --git a/x11-misc/unclutter-xfixes/unclutter-xfixes-9999.ebuild b/x11-misc/unclutter-xfixes/unclutter-xfixes-9999.ebuild
new file mode 100644
index 0000000..1b0609a
--- /dev/null
+++ b/x11-misc/unclutter-xfixes/unclutter-xfixes-9999.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2018-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/Airblader/unclutter-xfixes.git"
+fi
+
+DESCRIPTION="A rewrite of unclutter using the x11-xfixes extension"
+HOMEPAGE="https://github.com/Airblader/unclutter-xfixes"
+
+if [[ ${PV} == *9999  ]]; then
+	SRC_URI=""
+	KEYWORDS=""
+else
+	SRC_URI="https://github.com/Airblader/unclutter-xfixes/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+DEPEND="x11-libs/libXi
+	dev-libs/libev
+	x11-libs/libX11
+	x11-libs/libXfixes
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_prepare() {
+	default
+
+	sed -e "s/\$(shell git describe --all --long --always)/${PV}/" \
+		-i Makefile || die
+}

Consider giving Nix/NixOS a try! <3