commit:     d065e5c03acdc0f432d032c278a0fbcd5be397c8
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 16 22:05:26 2025 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun Mar 16 22:05:40 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d065e5c0

dev-util/github-cli: add 2.68.1

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 dev-util/github-cli/Manifest                 |  2 ++
 dev-util/github-cli/github-cli-2.68.1.ebuild | 44 ++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/dev-util/github-cli/Manifest b/dev-util/github-cli/Manifest
index d3277d205392..e80047cb615e 100644
--- a/dev-util/github-cli/Manifest
+++ b/dev-util/github-cli/Manifest
@@ -2,3 +2,5 @@ DIST github-cli-2.65.0-deps.tar.xz 68106872 BLAKE2B 
cc32318356dda4c703721243f57e
 DIST github-cli-2.65.0.tar.gz 12939630 BLAKE2B 
9d4f5ab0ae8d2b2638a2aeeedefd7fcca7b526dcc71595e22fc8a1a834ed613959999dc7590a8799cb2682b9710c8701a94e7d4cd5a469d6e88b0a551e030f3d
 SHA512 
801d98427e0c58961840e6f6be5fd0a4863da6da1aa31d3af43eb440f2a9dda930d8e7226ba69ebfb04393928092924de913ecb582c0588682773b6e4c76165b
 DIST github-cli-2.66.1-deps.tar.xz 72745840 BLAKE2B 
2d57fd21d05a56ef6c7cd098d5121838b4c0dab14565ee88c0deddd4645e2f2dbf82f4f13e19106565b790d6d2dce201200e8271863666f267e9f668f1db2fac
 SHA512 
22294bff4cbc477e45738dd8c176b319171b20384e81f1ca9c485ed9f00163f26545deb86142c2818b968fdcabb7ae739779c75448f661a74d962424efdb9223
 DIST github-cli-2.66.1.tar.gz 12962922 BLAKE2B 
bd0f56928fd24823782b1191afa44d8aaac17e501ac77981d53fe83fee56e70ee2f7602f3e43f8fdcef899f63784861e78aae6a86f286c44f175a0565616d9d5
 SHA512 
8d25a7c9cb79e94316362590f133aabe8d78bf7d180506b7e6980fabd9d7b4ad8d405f55c0439dac2293b5998e3f951fd05e469dc197f24095a51a872b6cd925
+DIST github-cli-2.68.1-deps.tar.xz 72745620 BLAKE2B 
295590956a6ecfc6cf4dc0a3bd589edfacf951f4e5b975438d4688488ba1b37e7d08c282e34a8cc41e196be3a9f42073a773b77be9915d5094e183b1307f6bf8
 SHA512 
d7a2078ff6576128accc62a0bf409b0b03afaa2e6da5392441c6f8960a715218578685d8a06c308b2d254a92282e981a17f8d5cfabda407b4c55c0cadb8323ff
+DIST github-cli-2.68.1.tar.gz 12985312 BLAKE2B 
eaa232027117c3be638a68b5dd5c45fbda7b076fadaee8bc2dde81212fd096b0ee759cba4df473c7402a84e80fdf2f8764d79db1d8df519a36cc2529eef9fa1f
 SHA512 
cc46186151ab2711eb3b9af61e3339db542db389f594db489942f425a0101b5878cd49800f29e7bab3eeeeb67f6147f540994b9c9cac6d644aef8e4b1c3104e5

diff --git a/dev-util/github-cli/github-cli-2.68.1.ebuild 
b/dev-util/github-cli/github-cli-2.68.1.ebuild
new file mode 100644
index 000000000000..cd54bf0e7d58
--- /dev/null
+++ b/dev-util/github-cli/github-cli-2.68.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+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://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz";
+       KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv"
+       S="${WORKDIR}/cli-${PV}"
+fi
+
+LICENSE="MIT Apache-2.0 BSD BSD-2 MPL-2.0"
+SLOT="0"
+
+RDEPEND=">=dev-vcs/git-1.7.3"
+
+RESTRICT="test"
+
+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=/usr bin/gh manpages completions
+}
+
+src_install() {
+       emake prefix=/usr DESTDIR="${D}" install
+       dodoc README.md
+}

Reply via email to