summaryrefslogtreecommitdiff
path: root/dev-util/github-cli
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-28 07:59:59 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-28 07:59:59 +0100
commitb8325835c82367d22428eb41afa0f2d375338d3c (patch)
treec416b8853bd14fc346da5d0129843cc4a68a30a0 /dev-util/github-cli
parentd2ed973482fdd800013658e83a61709b29e0a80f (diff)
gentoo auto-resync : 28:06:2024 - 07:59:59
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.52.0.ebuild66
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-util/github-cli/Manifest b/dev-util/github-cli/Manifest
index 23f94a0d8f21..fabd108cceed 100644
--- a/dev-util/github-cli/Manifest
+++ b/dev-util/github-cli/Manifest
@@ -8,10 +8,13 @@ DIST github-cli-2.33.0-deps.tar.xz 100032668 BLAKE2B bffaed49d2724951a34e37632ff
DIST github-cli-2.33.0.tar.gz 898066 BLAKE2B 0af992e0687c1e5c2c3552e35419a65af348f76eee91f38377396eb7e7713e8c982b4677a9c35f329380d0281b443e342bb6470b0eade85118248e41333266db SHA512 76a5490964828e375eb3cc0a625c25e6005f9cd44ae40ec04432fd7672bed4628b4db4ffdc713ec2cb59f00c6308e5cf2141a3c932d08ccef4fe5ef676b09916
DIST github-cli-2.42.0-deps.tar.xz 101578632 BLAKE2B 54153cd48dac9b2f3fc094b5060cca3d9911bda33dfd7e1b42f23b74f97597a664c8e490bec70c6e1215c2310aa6862398da035c3f662e819e158802b915d216 SHA512 4e7c0ac720ef8e2c5ab4c6d0918abc0e8a6c17df31566f4b0e49b74f90225093b792ec6d60ffb98db1a53eaa7a52e2fbcb1a059c57972e344522216a85736f90
DIST github-cli-2.42.0.tar.gz 825997 BLAKE2B dadb64c62f55ed02c48b56ad02762b806fd4eb0c26c5d9509c9976b6fbddfc542fe46bc54c1790394ac7874e7632f655c001fdcd6cc629fa1fa1b4fc984211b3 SHA512 b8e76ea0bda9f9e78d9b8d5ff57326c1fa77f280688948facd83549d88f3d2259516ad9bb0f0455cecfa34168ef317f01683383cbe1b41e150b5ea9ab8c2fa2b
+DIST github-cli-2.52.0-deps.tar.xz 89577956 BLAKE2B 5259f324843c92ea1781d14e948893c3632438d46cc05469edac4557e9977c6df889c796fe4f7b1bcb4b6d64830b8c5c5b5cb2b37a21757990ede84a0fbe4c75 SHA512 bb9b28a8b9251d8cb4082ea5a040bd7d844fa2fa4243f8933502dccbb0673349dd1b0b6191c60905266eab88bdb1e3f7df6e53a3bea13e98236a36e6c0dfab7b
+DIST github-cli-2.52.0.tar.gz 988293 BLAKE2B 383a6e88a509cbe25544088f7260335b264d36f0acfc1ca4dbd648b911671d1fe0a4b85d678225bc81ba4a236de8acc2ba57bc55b19cfc53c5dcb746d3ab1a76 SHA512 bb43f4160eebfa61c56d1272f379689f33e115d9b00cc0af40212cdb2964fb9953f25cee777baef95dc751e80a64e5b374c98e07ac5118963a43f8b29100c27b
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-2.42.0.ebuild 1615 BLAKE2B 09e7d9420e7cca10a5540232809aa186cc67125513aab7fa3c688815e4665a515a19197f5898afaa05765f173e48e9e3e885c1f5655d55cedfe54853bb188909 SHA512 f3a4fee287cb1a0cba1ff8836c79706085e012673101fbf9b1ffe8a570c73324c9c64a4a51d16f51a77d86d6c64f5bc0b2a0faf4f335fa832c077cb89461b2ca
+EBUILD github-cli-2.52.0.ebuild 1615 BLAKE2B 09e7d9420e7cca10a5540232809aa186cc67125513aab7fa3c688815e4665a515a19197f5898afaa05765f173e48e9e3e885c1f5655d55cedfe54853bb188909 SHA512 f3a4fee287cb1a0cba1ff8836c79706085e012673101fbf9b1ffe8a570c73324c9c64a4a51d16f51a77d86d6c64f5bc0b2a0faf4f335fa832c077cb89461b2ca
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.52.0.ebuild b/dev-util/github-cli/github-cli-2.52.0.ebuild
new file mode 100644
index 000000000000..2d0c1da34ead
--- /dev/null
+++ b/dev-util/github-cli/github-cli-2.52.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2024 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
+}