summaryrefslogtreecommitdiff
path: root/dev-util/github-cli/github-cli-2.81.0.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-10-02 19:05:21 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-10-02 19:05:21 +0000
commitaee0c31dbc78c41664cf2579b7e49094fc2cc08e (patch)
tree5a7e2d89be77ea4f9f6eb33a475db11ca3881362 /dev-util/github-cli/github-cli-2.81.0.ebuild
parentce479461bc2cdeb5274590d8fe1e9bdf99e12e8a (diff)
downloadbaldeagleos-repo-aee0c31dbc78c41664cf2579b7e49094fc2cc08e.tar.gz
baldeagleos-repo-aee0c31dbc78c41664cf2579b7e49094fc2cc08e.tar.xz
baldeagleos-repo-aee0c31dbc78c41664cf2579b7e49094fc2cc08e.zip
Adding metadata
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
+}