summaryrefslogtreecommitdiff
path: root/dev-util/github-cli/github-cli-2.81.0.ebuild
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2025-10-02 12:11:34 -0500
committerWilliam Hubbs <williamh@gentoo.org>2025-10-02 12:11:51 -0500
commita128cdbfe7badf90baa04364d9a4475687532bbd (patch)
tree363e0a554dd0bee0190b6e393d6233ffa33e5518 /dev-util/github-cli/github-cli-2.81.0.ebuild
parent1b4b2a64da6c04807d5b6e53c6ccfdf8e968bd83 (diff)
downloadgentoo-a128cdbfe7badf90baa04364d9a4475687532bbd.tar.gz
gentoo-a128cdbfe7badf90baa04364d9a4475687532bbd.tar.bz2
gentoo-a128cdbfe7badf90baa04364d9a4475687532bbd.zip
dev-util/github-cli: add 2.81.0
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-util/github-cli/github-cli-2.81.0.ebuild')
-rw-r--r--dev-util/github-cli/github-cli-2.81.0.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-util/github-cli/github-cli-2.81.0.ebuild b/dev-util/github-cli/github-cli-2.81.0.ebuild
new file mode 100644
index 000000000000..396379392a33
--- /dev/null
+++ b/dev-util/github-cli/github-cli-2.81.0.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="${EPREFIX}/usr" bin/gh manpages completions
+}
+
+src_install() {
+ emake prefix="${EPREFIX}/usr" DESTDIR="${D}" install
+ dodoc README.md
+}