summary refs log tree commit diff
path: root/x11-misc
diff options
context:
space:
mode:
authorAzat Bahawi <azahi@teknik.io>2020-02-29 11:40:10 +0300
committerAzat Bahawi <azahi@teknik.io>2020-02-29 11:40:10 +0300
commiteb65684aaf81a8fb4c1b008f2554a8f8aa2447ec (patch)
tree8984b97e2c17749eab5908feecd01ac589ee51e7 /x11-misc
parentx11-misc/lemonbar: Bump EAPI, add live ebuild (diff)
x11-misc/n30f: Bump EAPI, add live ebuild
Diffstat (limited to '')
-rw-r--r--x11-misc/n30f/n30f-2.0.ebuild18
-rw-r--r--x11-misc/n30f/n30f-9999.ebuild30
2 files changed, 45 insertions, 3 deletions
diff --git a/x11-misc/n30f/n30f-2.0.ebuild b/x11-misc/n30f/n30f-2.0.ebuild
index 9a36253..c327652 100644
--- a/x11-misc/n30f/n30f-2.0.ebuild
+++ b/x11-misc/n30f/n30f-2.0.ebuild
@@ -1,18 +1,30 @@
 # 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/sdhand/n30f.git"
+fi
 
 DESCRIPTION="A quick hack to display an image in a non-wm-managed window"
 HOMEPAGE="https://github.com/sdhand/n30f"
-SRC_URI="https://github.com/sdhand/n30f/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+if [[ ${PV} == *9999 ]]; then
+	SRC_URI=""
+	KEYWORDS=""
+else
+	SRC_URI="https://github.com/sdhand/n30f/archive/${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
 IUSE=""
 
 DEPEND="x11-libs/cairo
 	x11-libs/libxcb
 "
 RDEPEND="${DEPEND}"
+BDEPEND=""
diff --git a/x11-misc/n30f/n30f-9999.ebuild b/x11-misc/n30f/n30f-9999.ebuild
new file mode 100644
index 0000000..c327652
--- /dev/null
+++ b/x11-misc/n30f/n30f-9999.ebuild
@@ -0,0 +1,30 @@
+# 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/sdhand/n30f.git"
+fi
+
+DESCRIPTION="A quick hack to display an image in a non-wm-managed window"
+HOMEPAGE="https://github.com/sdhand/n30f"
+
+if [[ ${PV} == *9999 ]]; then
+	SRC_URI=""
+	KEYWORDS=""
+else
+	SRC_URI="https://github.com/sdhand/n30f/archive/${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+
+DEPEND="x11-libs/cairo
+	x11-libs/libxcb
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""

Consider giving Nix/NixOS a try! <3