summaryrefslogtreecommitdiff
path: root/dev-util/github-cli
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/github-cli')
-rw-r--r--dev-util/github-cli/Manifest2
-rw-r--r--dev-util/github-cli/github-cli-2.93.0.ebuild51
-rw-r--r--dev-util/github-cli/metadata.xml2
3 files changed, 54 insertions, 1 deletions
diff --git a/dev-util/github-cli/Manifest b/dev-util/github-cli/Manifest
index 2b78b574e2ef..b55a2a3f9c40 100644
--- a/dev-util/github-cli/Manifest
+++ b/dev-util/github-cli/Manifest
@@ -2,3 +2,5 @@ DIST github-cli-2.81.0-deps.tar.xz 108440808 BLAKE2B 13f9cedd3c03a4100f38fe560c5
DIST github-cli-2.81.0.tar.gz 15794402 BLAKE2B 363f47fd745f5c5b14dcd56d8666eb0f49cb322c61c47079f6f7a177b17344be05f07a46c6d26736fb385a3df130b58b39da7abe15742e1efc2584699666e669 SHA512 bfb89e594f10561360b0a9433eda4da3c65f7a8e0603b7a5bdb2f1daad1349d8a0b0688c66d3a7c87d44fbb8f6aabf17b410bb94055e40991a81b571580919d1
DIST github-cli-2.92.0-deps.tar.xz 61751456 BLAKE2B 2f0dbd438f88a34aeeed0f8fd88aae668708b52de5751c2356a6be17c518a470e07e0379931249009c9d3394a100a157dba939b55884ac188e04ebe9cefadaa0 SHA512 9e394c10f036862199c52617b05748557ec2112d16c1c287dbc56fca6ed3292550cfdbb8e6489ffbecbe8d64d32d9958c3519d2fa1ef2e5b09cb2605dd1f3fca
DIST github-cli-2.92.0.tar.gz 14617847 BLAKE2B c62aab41a879907727e6f54e75ea4850e0f316c1d08a20b279a568c2c57e05f45bd32602c643417b68fb57f2c6f214525d4728b8cc6f2b8ce22f4fbe9ef9610e SHA512 d41c4eb1a37724e8761d48d045e1ba6ac2b13e87ced71316002060287872dedbbd9d6d7dea06e8a09ba5b191569743eef2fd373231bb8ddddd95851fc567d81e
+DIST github-cli-2.93.0-deps.tar.xz 61700336 BLAKE2B bba7bca4409d591c16b4a68a999e80ff2262db320f812092b795aa832ddf0f86918175825473a6b13a1db16748fc4457f8988ae3740369d92e91871fbe177eea SHA512 bb5fef61dc48d11e8e54f3d72736b037db02d22e07c71d6e5025ce2923139d4ec4094e4e051dfbac74f4cde35e0f53b03eef32e7f4bcca6d3378ef4e2522f6a5
+DIST github-cli-2.93.0.tar.gz 14621130 BLAKE2B e5632c4ae2f47e92a6f0377506b7bec77d884f59befe608e58d53630c251909c8fc87479f648d4e2b66373381182edeef6dcc955aff48bdd33a668be09500209 SHA512 b096ec58e468fccf06c23d428d5ad34eb52d152d8ae232ded3387814ae1a1b397ad40c267fda11881108aa077b4cac52d16e0ef1d1fe9337af75893a2c0c4ef8
diff --git a/dev-util/github-cli/github-cli-2.93.0.ebuild b/dev-util/github-cli/github-cli-2.93.0.ebuild
new file mode 100644
index 000000000000..f45edf95ba48
--- /dev/null
+++ b/dev-util/github-cli/github-cli-2.93.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=9
+
+inherit go-module
+
+DESCRIPTION="GitHub CLI"
+HOMEPAGE="https://github.com/cli/cli"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/cli/cli.git"
+else
+ SRC_URI="https://github.com/cli/cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-deps.tar.xz"
+ KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv"
+ S="${WORKDIR}/cli-${PV}"
+fi
+
+LICENSE="MIT"
+# Dependent licenses
+LICENSE+=" Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0 Unlicense"
+SLOT="0"
+RESTRICT="test"
+
+RDEPEND=">=dev-vcs/git-1.7.3"
+BDEPEND=">=dev-lang/go-1.26.1"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.92.0-disable-telemetry.patch"
+)
+
+src_unpack() {
+ if [[ ${PV} == *9999 ]]; then
+ git-r3_src_unpack
+ go-module_live_vendor
+ else
+ go-module_src_unpack
+ fi
+}
+
+src_compile() {
+ [[ ${PV} != 9999 ]] && export GH_VERSION="v${PV}"
+ emake prefix="${EPREFIX}/usr" bin/gh manpages completions
+}
+
+src_install() {
+ emake prefix="${EPREFIX}/usr" DESTDIR="${D}" install
+ dodoc README.md
+}
diff --git a/dev-util/github-cli/metadata.xml b/dev-util/github-cli/metadata.xml
index 53c5cdf5c8dd..a3a706e426ca 100644
--- a/dev-util/github-cli/metadata.xml
+++ b/dev-util/github-cli/metadata.xml
@@ -6,5 +6,5 @@
<name>William Hubbs</name>
</maintainer>
- <origin>gentoo-staging</origin>
+ <origin>liguros-repo</origin>
</pkgmetadata> \ No newline at end of file