mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
app-misc/ghq: add 1.10.1
Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
This commit is contained in:
2 files changed
+63
No files matched your search
@@ -1,4 +1,6 @@
|
||||
DIST ghq-1.1.5.tar.gz 48132 BLAKE2B 34cd8236b2a3c3ddea9aa308852312c3785807dd804b53bbdc0cef04aa74fd185cbab75f51258c3fa6e8184db485a44a8ded058c0b4559feb985c58240ee723c SHA512 09c8ef1bcb357c92b4baf691d92f57fb641735a3560517c05e94860f1204cba6652df77d57d79eea419ea8578fbcc0b07a0de95a5636d42765d6ac3c01117352
|
||||
DIST ghq-1.10.1-deps.tar.xz 16505464 BLAKE2B 057885f5a69328ab9b5bd51aa184ea855c9b9eb1c345723fcf0325cfc1077896cd2e006d9203d49f94fb79073c73cc397df2c1040848c373321f25cbac80626c SHA512 ed1ac41ffa0b2a604c7a95b422e70ce7eede2aba5849b9f872a7328cefc968881de4707518d6874190ef89b96946f5d083bf350e716c5c5d1562ea1c0afc3092
|
||||
DIST ghq-1.10.1.tar.gz 64468 BLAKE2B cb1287cec4b8459f9a74ebbc528b3628028be27becd5b832636ec96f7b27e614bc6ab6bcbfff245c5ca4bd8028659c2e6a35028c3b091411d9f0038599efae3d SHA512 0cd242e5006dcdc831d682a5ae1ffe6cabd642a86f00e0c0022708c34f38396a719e9ff2f1260f9ced27c22baba92817389ff4ecdc2f0865637015d445e777f0
|
||||
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
|
||||
DIST ghq-1.9.4-deps.tar.xz 26245100 BLAKE2B 5e1e1fd1a8a7a25e09ab09e1260fa7faec22d22b3e3f23ff48704155c0a2fbfa1c80a84c06279c22a5dd9fadf247481678ce8bdddb451dcac225188486f3ffcd SHA512 9c9ea809ef6a36a372143066775980c2411b4ae0c77b61ec13e3052c523e3479179346f2b007a0cd1c098f49f10f29babb8c7f811171cba1651439cf7f5cbf18
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
# Copyright 2019-2026 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"
|
||||
RESTRICT="mirror"
|
||||
else
|
||||
SRC_URI="
|
||||
https://github.com/x-motemen/ghq/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-go-mod-deps.tar.xz ->
|
||||
${P}-deps.tar.xz
|
||||
"
|
||||
KEYWORDS="~amd64"
|
||||
#bump the CURRENT_REVISION on the next release
|
||||
MY_GIT_REV="f600896"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
#gentoo-go-license ghq-1.10.1.ebuild
|
||||
LICENSE+=" BSD-2 BSD MIT "
|
||||
|
||||
SLOT="0"
|
||||
BDEPEND=">=dev-lang/go-1.26.0"
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == 9999 ]];then
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
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_test() {
|
||||
ego test -v ./...
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
einstalldocs
|
||||
}
|
||||
Reference in new issue
Block a user