summaryrefslogtreecommitdiff
path: root/dev-util/github-cli
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-01-17 01:13:38 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-01-17 01:13:38 +0000
commit0e82736d0df44565875b055019ded1be0ac5c319 (patch)
treebd9daea4309088c78f6b358305ab15849d97d159 /dev-util/github-cli
parent79be8f00e2aa293669b8e22e1ef02d2d5c5f9e25 (diff)
gentoo auto-resync : 17:01:2023 - 01:13:38
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.21.2.ebuild66
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-util/github-cli/Manifest b/dev-util/github-cli/Manifest
index 05b878649a31..a9954ce5b202 100644
--- a/dev-util/github-cli/Manifest
+++ b/dev-util/github-cli/Manifest
@@ -2,7 +2,10 @@ DIST github-cli-2.18.0-deps.tar.xz 98885904 BLAKE2B 2ba1252ca1ddab0e0dda6dbbd6b2
DIST github-cli-2.18.0.tar.gz 738480 BLAKE2B c56adae59ddbfa6693dff569c265db615e9609f7fee9942c349cb202d64f44ea1e2cccdb89632e65ebb954e133939e54053933b77782c741d768742403975e65 SHA512 3522d42016b165a8ffa5620bd2352023affceabb26d6c14ba5f5eeb5f42e3cfc002c71e7f0c1acbf4d626f0c3588c1609255802aabd1f4f700875ada82ef6826
DIST github-cli-2.20.2-deps.tar.xz 105896704 BLAKE2B c9562daa3dc682b4733d4a6b716556b13fc7329a46124f4cd1a0b2df9b8498d32801a97259a27645af643482d934a5968b237c48da4bcba2fe8ceda7d833e194 SHA512 81b1d7d7309a6abd0f9c2702345dc983816e835ed9058d140c717e5fc26352dc456d2bf63fc1bea3ca890c31e7173f3d3450939a3a58fff1b317b352bff0a885
DIST github-cli-2.20.2.tar.gz 759883 BLAKE2B a227ffc039ce861b0e006679f5487c5d9016cb57fc90438e29cccfcce6b087534ca7f53858c492296f35d721b802639d8b0100cf9c04166162e2f207a35c856b SHA512 2e14c408c2fbf5a409e7a271b5c77400cc84cd7f2567722fe7140f685ecd297dd39062d02d3fafaf9fa396da419fb7aa0c2d93c0541a30f3286c6745c5965df4
+DIST github-cli-2.21.2-deps.tar.xz 105943376 BLAKE2B 88b2f6a74a5bd88bfab180531c275f210ec153a5accc07a5a22889151ce373feab4cdd50db0677fa3208de43e89b646327722b50fe5d87194f0a13b97cda8c9b SHA512 4bd39a91b33f4c8898e69901d1657dfd93a6889c51bd8f1c6107517e6280bd77e86a3afcff406480ef2e0625fb2c41b37fb8abb9bafdb35d306c50d9e40c63d6
+DIST github-cli-2.21.2.tar.gz 774307 BLAKE2B 8f50d2cf5b093311974bffb56c0055021c35bf14f9323af0baaf5bc5803340ea053f7ae3cb5fe6475820c4e59a0044b55e865a87763be0cf65f7bb58ea9f5196 SHA512 c2bf99cfabae8329c6c0114afb2b7aadc6b081a0fa2398452c452f97e393f3597a61aa354223fad4f4a848089ee42dc26a529a43fc7006ffae090dadcb18c2e7
EBUILD github-cli-2.18.0.ebuild 1631 BLAKE2B 0534fbee7d0866ccf6b1c56dd7f4a61104403e83c54ac22a4d13617aeab22193adda2de47203d3876ffd3b9dae82b5db8fda5633145c3c109b2cc051e95c0114 SHA512 55f9c9df94a9c8ad27d1eb319988633e6f1809d4dad3a8b8d4785a6b47b79e85dc292d7d8309b8fc330f86d2057a2281898d26bcb2cbd43c8ee55657e0873ed3
EBUILD github-cli-2.20.2.ebuild 1631 BLAKE2B 0534fbee7d0866ccf6b1c56dd7f4a61104403e83c54ac22a4d13617aeab22193adda2de47203d3876ffd3b9dae82b5db8fda5633145c3c109b2cc051e95c0114 SHA512 55f9c9df94a9c8ad27d1eb319988633e6f1809d4dad3a8b8d4785a6b47b79e85dc292d7d8309b8fc330f86d2057a2281898d26bcb2cbd43c8ee55657e0873ed3
+EBUILD github-cli-2.21.2.ebuild 1631 BLAKE2B 1cea99dce04811ab6781a8524a00a76a57ddc61c3fb7fb0b8cdccee973d6449b950671f8a83c6f64146dd5250be7ca630632c868732aa0e8c1885efcbd2b9dba SHA512 5d7615d4ad54031218bcbe005d9af53b32f31b05d67acab1c18e5f27260b2481133ee9663de8959cd4eb8c48a85ae4e9ffbf6bf556404dbb63e6c3a8da0e838a
EBUILD github-cli-9999.ebuild 1617 BLAKE2B a87729766ea2024b042cf2da4d5eeae4ef982631aa6f33ba3eb17b339d662b58f48922d6a02c0570fb22c9124c382c81ed582e772f9c6162b6f481cd291fe963 SHA512 76004565ee008af52491dc297b2507a4dd0e1384a428daea01a2bb544daca450a661a49089897696fe0537ed60651a69f44f45378326d226297d93a1c1f4133d
MISC metadata.xml 331 BLAKE2B 1ffd21cb61a7db81d5c8f1b3731dc6a23aa98e6db92e2af3101eefd99b18862a89bb42993cb770bc26307eb70c96966abee1bba45c73de31c1e47300caf170b3 SHA512 2a90a401ff9f5646bcb0a8e1b38bd95629f7b69d4fd485de5f5c32063cceb0d223b30696181d328e09c6f8191e8fbaabf81370f42577312c2eb8d22d9509d1b9
diff --git a/dev-util/github-cli/github-cli-2.21.2.ebuild b/dev-util/github-cli/github-cli-2.21.2.ebuild
new file mode 100644
index 000000000000..afe949aebe68
--- /dev/null
+++ b/dev-util/github-cli/github-cli-2.21.2.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 '-flto*' flags to avoid build failures.
+ filter-flags "-flto*"
+ # 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
+}