summary refs log tree commit diff
diff options
context:
space:
mode:
authorAzat Bahawi <azahi@teknik.io>2020-08-15 11:40:07 +0300
committerAzat Bahawi <azahi@teknik.io>2020-08-15 11:40:07 +0300
commitce36c85a55e9bb5a4f258018b8fc5d4a703e14e7 (patch)
tree281e2a1b535a6e0bc083fc9cc7b8228a0a5ed06f
parentMerge pull request #6 from kc-kc/master (diff)
x11-misc/devour: Add live
Diffstat (limited to '')
-rw-r--r--x11-misc/devour/Manifest1
-rw-r--r--x11-misc/devour/devour-10.ebuild15
-rw-r--r--x11-misc/devour/devour-9999.ebuild32
3 files changed, 45 insertions, 3 deletions
diff --git a/x11-misc/devour/Manifest b/x11-misc/devour/Manifest
index 3faf2eb..0e4a278 100644
--- a/x11-misc/devour/Manifest
+++ b/x11-misc/devour/Manifest
@@ -1,2 +1 @@
 DIST v10.tar.gz 4400921 BLAKE2B b1e3f9fc606ff8e8d4838d9d608a19e5476e93ef8ba5fec1ff1dc3bac43b96ba3d88387e5a7abcd0ac8865f866c4e7e7a52016775e1e5998854bd1c06d8a1ecb SHA512 21b77d77bbb641ea8f3e7ae77f9368bb4dd411ec9896c28df4415aa2ae753a50f91543dd33990ff3b185e0326b2c96e1edba72c37e253a5aba7ec85a86162679
-EBUILD devour-10.ebuild 488 BLAKE2B a1ba28f3b9404e7a2fdab6d913b488e0b4592f46e48e61541036aee6e1ce159612ba0d1cd294626cd85e7c294ab89c8a5df128ba99af3a8cbd5f2b22f0672453 SHA512 0f3eaac03b2a2cde0df65e6f59afd20d996bfb917a3ca5200c48301a75d18e33317c4d78e411080a94d9746c41d8e1ae7b3b249c7e6c8fea5a752a49b4a1ce06
diff --git a/x11-misc/devour/devour-10.ebuild b/x11-misc/devour/devour-10.ebuild
index baa47af..1b871fb 100644
--- a/x11-misc/devour/devour-10.ebuild
+++ b/x11-misc/devour/devour-10.ebuild
@@ -3,13 +3,24 @@
 
 EAPI=7
 
+if [[ ${PV} == *9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/salman-abedin/devour.git"
+fi
+
 DESCRIPTION="Window Manager agnostic swallowing feature for terminal emulators"
 HOMEPAGE="https://github.com/salman-abedin/devour"
-SRC_URI="https://github.com/salman-abedin/devour/archive/v${PV}.tar.gz"
+
+if [[ ${PV} == *9999 ]]; then
+	SRC_URI=""
+	KEYWORDS=""
+else
+	SRC_URI="https://github.com/salman-abedin/devour/archive/v${PV}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
 IUSE=""
 
 DEPEND="x11-libs/libX11"
diff --git a/x11-misc/devour/devour-9999.ebuild b/x11-misc/devour/devour-9999.ebuild
new file mode 100644
index 0000000..a79c528
--- /dev/null
+++ b/x11-misc/devour/devour-9999.ebuild
@@ -0,0 +1,32 @@
+# Copyright 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/salman-abedin/devour.git"
+fi
+
+DESCRIPTION="Window Manager agnostic swallowing feature for terminal emulators"
+HOMEPAGE="https://github.com/salman-abedin/devour"
+
+if [[ ${PV} == *9999 ]]; then
+	SRC_URI=""
+	KEYWORDS=""
+else
+	SRC_URI="https://github.com/salman-abedin/devour/archive/v${PV}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE=""
+
+DEPEND="x11-libs/libX11"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_install() {
+	emake DESTDIR="${D}" PREFIX="/usr" BINPREFIX="/usr/bin" install
+}

Consider giving Nix/NixOS a try! <3