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/Manifest3
-rw-r--r--dev-util/github-cli/github-cli-2.33.0.ebuild66
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-util/github-cli/Manifest b/dev-util/github-cli/Manifest
index 5ac52c48767b..36db0fb22be6 100644
--- a/dev-util/github-cli/Manifest
+++ b/dev-util/github-cli/Manifest
@@ -4,8 +4,11 @@ DIST github-cli-2.31.0-deps.tar.xz 106505536 BLAKE2B cfd4fd3b11839edeef86382b15a
DIST github-cli-2.31.0.tar.gz 888221 BLAKE2B ad1d0125ca043f180d1cb46eb4413ea654e3ab23ea72cac10c04c40f5858fda825b6cfa2022454293018416a1ef12b8182fe1bdfaf6fea977145503689a062a0 SHA512 e0dbdba446666d8a4ce9edb1b7387f26b8a865cf35d1006e86547ff44b7bffe78b29885b4e5e9654f966a6121d67e0097f4fc759405ffc9d34ca430032ed556a
DIST github-cli-2.32.1-deps.tar.xz 100042076 BLAKE2B d362088e2fd24938c52c352ca88a2af76f31c8f4048bd0845043668cfe5d438921623ddf99f54d4239dc2cce927d147e1a4ba16fceef4f824b9a2e34540854e2 SHA512 7964719eed7383169496c6f156320eb2c9aa2b7fae374c025bad2dad2215e0502662a0a7da3722cfb660132e6cf5620cb4189ce8aaf9cf6a36f0cda29d28d12b
DIST github-cli-2.32.1.tar.gz 897387 BLAKE2B 0a46b501958b3fc1b5d3e5467292dd3a3e4cc721d5ac822f637e26f345654bed01bdb27283a86351460c5f2650a54b635abf839e312bfe9b98b794eb60880aff SHA512 4b5b56809110c6b7c19dec344c7171df0eed0bcf5388bc0c63ce5ac4a3b6f4606f1e8de207f5b6889834013059013e8a4b6701b82b933322ed4fcf0e48144b72
+DIST github-cli-2.33.0-deps.tar.xz 100032668 BLAKE2B bffaed49d2724951a34e37632ff131f47f66fb79516a42482d2e0d7399b29266cad5b8519912feb33e279d5b7d39b76efaeaaa48ff462db9912e063b41ce8dc3 SHA512 aefdb7c12507dbf02acccc943be9074f7eac12beefd7a5f8a7a08bbacbbaa46cd91f46262258b3fc0a00b41fb0ccf4816621e9ebe4f2bb10b5f6c5e6260ac003
+DIST github-cli-2.33.0.tar.gz 898066 BLAKE2B 0af992e0687c1e5c2c3552e35419a65af348f76eee91f38377396eb7e7713e8c982b4677a9c35f329380d0281b443e342bb6470b0eade85118248e41333266db SHA512 76a5490964828e375eb3cc0a625c25e6005f9cd44ae40ec04432fd7672bed4628b4db4ffdc713ec2cb59f00c6308e5cf2141a3c932d08ccef4fe5ef676b09916
EBUILD github-cli-2.27.0.ebuild 1615 BLAKE2B 845d69a6a187e5fc876e6a149b00b3cc774344dc7c98f3fc3e4144677b06a7a5cf92569c7e7be3c91ea6159a415fda9449d387d65283f9f28756ddc68605f08c SHA512 e06e2fd06b4f463c362bbba47837a6be753e2703e647e31536776e583da55a871fe332fde173efc032142458ff17deb8681f19cb71ddf326b38f6b1a5ca57417
EBUILD github-cli-2.31.0.ebuild 1615 BLAKE2B 845d69a6a187e5fc876e6a149b00b3cc774344dc7c98f3fc3e4144677b06a7a5cf92569c7e7be3c91ea6159a415fda9449d387d65283f9f28756ddc68605f08c SHA512 e06e2fd06b4f463c362bbba47837a6be753e2703e647e31536776e583da55a871fe332fde173efc032142458ff17deb8681f19cb71ddf326b38f6b1a5ca57417
EBUILD github-cli-2.32.1.ebuild 1615 BLAKE2B 845d69a6a187e5fc876e6a149b00b3cc774344dc7c98f3fc3e4144677b06a7a5cf92569c7e7be3c91ea6159a415fda9449d387d65283f9f28756ddc68605f08c SHA512 e06e2fd06b4f463c362bbba47837a6be753e2703e647e31536776e583da55a871fe332fde173efc032142458ff17deb8681f19cb71ddf326b38f6b1a5ca57417
+EBUILD github-cli-2.33.0.ebuild 1615 BLAKE2B 845d69a6a187e5fc876e6a149b00b3cc774344dc7c98f3fc3e4144677b06a7a5cf92569c7e7be3c91ea6159a415fda9449d387d65283f9f28756ddc68605f08c SHA512 e06e2fd06b4f463c362bbba47837a6be753e2703e647e31536776e583da55a871fe332fde173efc032142458ff17deb8681f19cb71ddf326b38f6b1a5ca57417
EBUILD github-cli-9999.ebuild 1601 BLAKE2B 844b5029cfb42c2ab420a3eebe14feb99e264c8e9c55f685df09fd04bc383ed48e0ae2ee393117b7ff4ac008823b8d092aa76d6bd1a8a00e610a3079b0e02522 SHA512 b7efa88244eefa18bde5288c2862d7105bf04cbb19578a28abaaf26f08c789a8b602118c97da1503f5c180e60da6bc7fc608b1be98a1d6fe486480076cdfbcb1
MISC metadata.xml 331 BLAKE2B 1ffd21cb61a7db81d5c8f1b3731dc6a23aa98e6db92e2af3101eefd99b18862a89bb42993cb770bc26307eb70c96966abee1bba45c73de31c1e47300caf170b3 SHA512 2a90a401ff9f5646bcb0a8e1b38bd95629f7b69d4fd485de5f5c32063cceb0d223b30696181d328e09c6f8191e8fbaabf81370f42577312c2eb8d22d9509d1b9
diff --git a/dev-util/github-cli/github-cli-2.33.0.ebuild b/dev-util/github-cli/github-cli-2.33.0.ebuild
new file mode 100644
index 000000000000..6ee5a5968dbd
--- /dev/null
+++ b/dev-util/github-cli/github-cli-2.33.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit bash-completion-r1 flag-o-matic 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}"
+ # Filter LTO flags to avoid build failures.
+ filter-lto
+ # Filter '-ggdb3' flag to avoid build failures. bugs.gentoo.org/847991
+ filter-flags "-ggdb3"
+ # Go LDFLAGS are not the same as GCC/Binutils LDFLAGS
+ unset LDFLAGS
+ # Once we set up cross compiling, this line will need to be adjusted
+ # to compile for the target.
+ # Everything else in this function happens on the host.
+ emake
+
+ einfo "Building man pages"
+ emake manpages
+
+ einfo "Building completions"
+ go run ./cmd/gh completion -s bash > gh.bash-completion || die
+ go run ./cmd/gh completion -s zsh > gh.zsh-completion || die
+}
+
+src_install() {
+ dobin bin/gh
+ dodoc README.md
+
+ doman share/man/man?/gh*.?
+
+ newbashcomp gh.bash-completion gh
+ insinto /usr/share/zsh/site-functions
+ newins gh.zsh-completion _gh
+}