summary refs log tree commit diff
path: root/x11-misc
diff options
context:
space:
mode:
authorAzat Bahawi <azahi@teknik.io>2020-09-19 21:20:26 +0300
committerAzat Bahawi <azahi@teknik.io>2020-09-19 21:20:39 +0300
commitc40c646f8a0a9c477dc217f50009fa4c2fdbd4e2 (patch)
tree112ca7f80aa2af8bc6ed38adf2b36cfb18c1cd48 /x11-misc
parentMerge pull request #7 from caseyavila/master (diff)
x11-misc/herbe: Add live, docs, upstream info
Package-Manager: Portage-3.0.7, Repoman-3.0.1
Manifest-Sign-Key: B40FCB6608BBE3B6
Signed-off-by: Azat Bahawi <azahi@teknik.io>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/herbe/Manifest15
-rw-r--r--x11-misc/herbe/herbe-1.0.0-r1.ebuild (renamed from x11-misc/herbe/herbe-1.0.0.ebuild)33
-rw-r--r--x11-misc/herbe/herbe-9999.ebuild47
-rw-r--r--x11-misc/herbe/metadata.xml3
4 files changed, 87 insertions, 11 deletions
diff --git a/x11-misc/herbe/Manifest b/x11-misc/herbe/Manifest
index 5d496e9..260b004 100644
--- a/x11-misc/herbe/Manifest
+++ b/x11-misc/herbe/Manifest
@@ -1,2 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
 DIST herbe-1.0.0.tar.gz 4974 BLAKE2B fd5c9141138f109e68947115578578217b23c577ff22edae5b593a84de38a36e63dd147ebed31052ba29f39f5aefbc99b6031da9e5087f246d5cd82b815d850d SHA512 3f49de25fd92194d1354054c207616343d9c21a9d82c6c4e3316ebc5228c0bd90650621438d14cd4730135f328c0438ef054a2b6843f3bd4d15f9cb47a22df12
-EBUILD herbe-1.0.0.ebuild 632 BLAKE2B dc29625ba8ff7315e2e5823f96109638ae9f895f93dd9b58e3d57485d572ccbf734dffc07af54fb9781b4fa71a32693ce2cd98a60390556a5da5465ecdad484b SHA512 00b476a760d86a269d89e80d0cc292d7729dc63f04cd897ca45ef87ca86a8e619c8b9078fbece179cb7bf29c2f8214a0016e66067e67a643143fba960b4d96d8
+-----BEGIN PGP SIGNATURE-----
+
+iQEzBAEBCAAdFiEE6fNIPzHHKbRMonw4tA/LZgi747YFAl9mS+oACgkQtA/LZgi7
+47Y3wwf+IC+ouBxVsFWJDARCaPrwnqVwGD6ABiMTGsYEcujpg40L4acnTahyeRdf
+HbTIGOLrkt/bbqkUPBslJiOzXMqHq6r3obTY3DpdyZXu0PBPQXT77+OI9LzyTpZU
+v7FVx5WbuI7y5oL2j1xCD+Z7hi7vlgoMYHNzwDVeGQRCENwavFN42AW5E+tYngk9
+kUhxZnWuXundue47VZhcr97AD/6qgnlJgkW0Yz2UtokEwYzF/hs+yC0EUTsqoZK6
+UnKiMOEYOTmzjss3RXc8tTfwNE0DF4h7TfjXvS+N8VT21Oe1q7nsRdOFcs8zUI69
+zyDN2BacxBcruQuuvIb9wz5e8rkseA==
+=Fant
+-----END PGP SIGNATURE-----
diff --git a/x11-misc/herbe/herbe-1.0.0.ebuild b/x11-misc/herbe/herbe-1.0.0-r1.ebuild
index 263ceab..bc9427d 100644
--- a/x11-misc/herbe/herbe-1.0.0.ebuild
+++ b/x11-misc/herbe/herbe-1.0.0-r1.ebuild
@@ -3,32 +3,45 @@
 
 EAPI=7
 
-inherit savedconfig
+if [[ ${PV} == *9999 ]]; then
+	SCM="git-r3"
+	EGIT_REPO_URI="https://github.com/dudik/herbe.git"
+fi
 
-DESCRIPTION="Daemon-less notifications without D-Bus. Minimal and lightweight."
+inherit savedconfig ${SCM}
+
+DESCRIPTION="Daemon-less notifications without D-Bus"
 HOMEPAGE="https://github.com/dudik/herbe"
-SRC_URI="https://github.com/dudik/herbe/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+if [[ ${PV} == *9999 ]]; then
+	SRC_URI=""
+	KEYWORDS=""
+else
+	SRC_URI="https://github.com/dudik/herbe/archive/${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-DEPEND="x11-libs/libX11
-	x11-libs/libXft
+DEPEND="
 	media-libs/freetype:2
+	x11-libs/libX11
+	x11-libs/libXft
 "
 RDEPEND="${DEPEND}"
 BDEPEND=""
 
-src_prepare() {
-	default
+DOCS=( README.md )
 
+src_prepare() {
 	restore_config config.h
+	default
 }
 
 src_install() {
-	emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
-
 	save_config config.h
+	emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+	einstalldocs
 }
diff --git a/x11-misc/herbe/herbe-9999.ebuild b/x11-misc/herbe/herbe-9999.ebuild
new file mode 100644
index 0000000..bc9427d
--- /dev/null
+++ b/x11-misc/herbe/herbe-9999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+if [[ ${PV} == *9999 ]]; then
+	SCM="git-r3"
+	EGIT_REPO_URI="https://github.com/dudik/herbe.git"
+fi
+
+inherit savedconfig ${SCM}
+
+DESCRIPTION="Daemon-less notifications without D-Bus"
+HOMEPAGE="https://github.com/dudik/herbe"
+
+if [[ ${PV} == *9999 ]]; then
+	SRC_URI=""
+	KEYWORDS=""
+else
+	SRC_URI="https://github.com/dudik/herbe/archive/${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+DEPEND="
+	media-libs/freetype:2
+	x11-libs/libX11
+	x11-libs/libXft
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+DOCS=( README.md )
+
+src_prepare() {
+	restore_config config.h
+	default
+}
+
+src_install() {
+	save_config config.h
+	emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+	einstalldocs
+}
diff --git a/x11-misc/herbe/metadata.xml b/x11-misc/herbe/metadata.xml
index 90ac276..65b587d 100644
--- a/x11-misc/herbe/metadata.xml
+++ b/x11-misc/herbe/metadata.xml
@@ -5,4 +5,7 @@
 		<email>casey@theavilas.org</email>
 		<name>casey</name>
 	</maintainer>
+	<upstream>
+		<remote-id type="github">dudik/herbe</remote-id>
+	</upstream>
 </pkgmetadata>

Consider giving Nix/NixOS a try! <3