commit:     db7d70e68d729bef7770de202da7a4ecd696b074
Author:     ingenarel <ingenarelitems <AT> gmail <DOT> com>
AuthorDate: Sun Jul 20 23:56:40 2025 +0000
Commit:     Saad Abdullah <ingenarelitems <AT> gmail <DOT> com>
CommitDate: Sun Jul 20 23:56:40 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=db7d70e6

app-misc/ghq: add 1.8.0, 9999

Signed-off-by: ingenarel <ingenarelitems <AT> gmail.com>

 app-misc/ghq/Manifest         |  2 ++
 app-misc/ghq/ghq-1.8.0.ebuild | 45 +++++++++++++++++++++++++++++++++++++++++++
 app-misc/ghq/ghq-9999.ebuild  | 45 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 92 insertions(+)

diff --git a/app-misc/ghq/Manifest b/app-misc/ghq/Manifest
index 634914462e..3d9c4f433d 100644
--- a/app-misc/ghq/Manifest
+++ b/app-misc/ghq/Manifest
@@ -2,3 +2,5 @@ DIST ghq-1.1.0-deps.tar.xz 21784100 BLAKE2B 
260a32dc15337cfae9100ee095b97dfb5c7c
 DIST ghq-1.1.0.tar.gz 45691 BLAKE2B 
37af8456cf3d9cf2f277822eca44e607d51e6d16847eecd60379ab54083f535da56b56f6bb9dd52d014498d5aa85e3c04e3c4d731cf996de1311950c61096499
 SHA512 
f307118c7052e7f23638796dc15936e2ecc9252d7e994a0281e329a9332573c9dd41fe7f45103aa249af1f0706bd14c31230892c2b808b1ac94f85dcf366316d
 DIST ghq-1.1.5-deps.tar.xz 35287100 BLAKE2B 
1062e87e286f87f46025f7b97d9bcf8f8883097a4a425e290535cf85cd79bb765a8d500b06a4dcdda061d2b3f3d5835dd6960c998b164697db5a64c19a32b017
 SHA512 
601a07899ef0b9d4f314a0f727166904150301b4c82c30365e93b27d5a38e2ed50ce88bac2e85fd0c1fa6934ffe293671ad6c97b168c385a56f1d592a3a4d99a
 DIST ghq-1.1.5.tar.gz 48132 BLAKE2B 
34cd8236b2a3c3ddea9aa308852312c3785807dd804b53bbdc0cef04aa74fd185cbab75f51258c3fa6e8184db485a44a8ded058c0b4559feb985c58240ee723c
 SHA512 
09c8ef1bcb357c92b4baf691d92f57fb641735a3560517c05e94860f1204cba6652df77d57d79eea419ea8578fbcc0b07a0de95a5636d42765d6ac3c01117352
+DIST ghq-1.8.0-deps.tar.xz 28212972 BLAKE2B 
ea5b16bd208b739e6318c4ed1083d3a783752ffe58293c72818f8e41d1d98bd8271711b2c4503c4730f99179d51bfa48faeb9e0ebaaa385fd0dd8a18b24553e4
 SHA512 
a87e3db3ed37b2d4109880a963f6f8de0cb491c04ecf47ab57f5a1b632905abd9815c50e8bd6cfe285ef6f99328de501505b2047d35d083b6006ee3bd1feb229
+DIST ghq-1.8.0.tar.gz 57101 BLAKE2B 
bf00d942ca9f65cc25438aa9fa50966f3cc89d9f14b802f529b789f9eaf74ac94d4a25f7c1cdaaa53d437a36e823807d5468672e1e01fb20b7c9bfe055fd3917
 SHA512 
807f3a06af8614561a604ae2c3a0f2a0a7565b26a7e76067e7efd3ce93fe112cadb1f36f054144bf4ed97a85a0d6a13d07baa3b74b264448a01f22f28161ad88

diff --git a/app-misc/ghq/ghq-1.8.0.ebuild b/app-misc/ghq/ghq-1.8.0.ebuild
new file mode 100644
index 0000000000..ab5f0dec36
--- /dev/null
+++ b/app-misc/ghq/ghq-1.8.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="Remote repository management made easy"
+HOMEPAGE="https://github.com/x-motemen/ghq";
+if [[ "${PV}" == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/x-motemen/ghq.git";
+       src_unpack() {
+               git-r3_src_unpack
+               go-module_live_vendor
+       }
+else
+       SRC_URI="https://github.com/x-motemen/ghq/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       SRC_URI+=" 
https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-deps.tar.xz";
+       KEYWORDS="~amd64"
+       #bump the CURRENT_REVISION on the next release
+       MY_GIT_REV="406c7dc"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+RESTRICT="mirror"
+
+src_prepare(){
+       default
+       sed -i -E 's/^\s*build:\s*deps\s*$/build:/; s/-s\s+-w\s+//' Makefile || 
die "sed failed!"
+}
+
+src_compile() {
+       if [[ "$PV" == 9999 ]]; then
+               emake build
+       else
+               emake build VERSION="${PV}" CURRENT_REVISION="$MY_GIT_REV"
+       fi
+}
+
+src_install() {
+       dobin "${PN}"
+       einstalldocs
+}

diff --git a/app-misc/ghq/ghq-9999.ebuild b/app-misc/ghq/ghq-9999.ebuild
new file mode 100644
index 0000000000..ab5f0dec36
--- /dev/null
+++ b/app-misc/ghq/ghq-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="Remote repository management made easy"
+HOMEPAGE="https://github.com/x-motemen/ghq";
+if [[ "${PV}" == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/x-motemen/ghq.git";
+       src_unpack() {
+               git-r3_src_unpack
+               go-module_live_vendor
+       }
+else
+       SRC_URI="https://github.com/x-motemen/ghq/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       SRC_URI+=" 
https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-deps.tar.xz";
+       KEYWORDS="~amd64"
+       #bump the CURRENT_REVISION on the next release
+       MY_GIT_REV="406c7dc"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+RESTRICT="mirror"
+
+src_prepare(){
+       default
+       sed -i -E 's/^\s*build:\s*deps\s*$/build:/; s/-s\s+-w\s+//' Makefile || 
die "sed failed!"
+}
+
+src_compile() {
+       if [[ "$PV" == 9999 ]]; then
+               emake build
+       else
+               emake build VERSION="${PV}" CURRENT_REVISION="$MY_GIT_REV"
+       fi
+}
+
+src_install() {
+       dobin "${PN}"
+       einstalldocs
+}

Reply via email to