diff options
Diffstat (limited to 'dev-util/github-cli')
| -rw-r--r-- | dev-util/github-cli/Manifest | 6 | ||||
| -rw-r--r-- | dev-util/github-cli/files/github-cli-2.92.0-disable-telemetry.patch | 13 | ||||
| -rw-r--r-- | dev-util/github-cli/github-cli-2.76.2.ebuild | 44 | ||||
| -rw-r--r-- | dev-util/github-cli/github-cli-2.92.0.ebuild (renamed from dev-util/github-cli/github-cli-2.78.0.ebuild) | 16 | ||||
| -rw-r--r-- | dev-util/github-cli/github-cli-9999.ebuild | 16 |
5 files changed, 37 insertions, 58 deletions
diff --git a/dev-util/github-cli/Manifest b/dev-util/github-cli/Manifest index 536baa4c19f5..2b78b574e2ef 100644 --- a/dev-util/github-cli/Manifest +++ b/dev-util/github-cli/Manifest @@ -1,6 +1,4 @@ -DIST github-cli-2.76.2-deps.tar.xz 107178868 BLAKE2B b4688c6a0db9fd6b88c59ac6a348e5ba4047d3d42c92a80e005460862cbf6837161b8e3688aba7bb8840aa459c9ebcb5341a25c5eff781a9624d936381d58a36 SHA512 abd82f12b8ae6c4747fee646c807f657be0152a1253615081e5f9581f09eab3f03b5c3187c6d44596f0eeeffae6b20c4f93a440fc1ca45e2159537fe604d1c62 -DIST github-cli-2.76.2.tar.gz 15716947 BLAKE2B 4f7355c5985773083df7f01bbf8928ec921f71a537dcbcaa54eb6e6625fe07860cf783d3cf6d67c36d3b91d831177e3ca0779bf36c7082543b51e96cf2a834b5 SHA512 e934a4bc94b112d6871902eef918bef3748f0ecb6d0ff6b2595f70377cc15d587b865327b999f9c9efeb64be189e0ee79d4c6e26e4f80804798436480a2d31bc -DIST github-cli-2.78.0-deps.tar.xz 108123316 BLAKE2B 2a8a2f52cb1bab1048787ca092a72097a45f58bdd965a855c05b230d9f9623332d4923059476b9ec2c9e27d051b2d684e70a9c938ae6b3b1fb9752ee25b5669b SHA512 c8bae8ec82b3c05eb86d446e6076a490a9f887658e91a96a399e4fad6e00963e8bce6eda87c04443a8cab1a679cd0102c594219945a933fd97840b31ac098e89 -DIST github-cli-2.78.0.tar.gz 15722433 BLAKE2B d37bcfe97bbe0008f37c5ab5b63ea1773d354c50a23dde4ddf5dd70832c3f38f10140779ee5a9753f7670d47c9275bc38e0aef940934968ab67acecbbd1e9d04 SHA512 bc4b3025bfcbeb5bc5a1f43672cc75a8acc2f5a8dab5be9e4eca4ba51d5a8ea764ab7a1b59d0e50eb6912c205f7ede56a724349ad8f5b6687eb9dbf57b414137 DIST github-cli-2.81.0-deps.tar.xz 108440808 BLAKE2B 13f9cedd3c03a4100f38fe560c5a22cd76059cdb8a8de62591b1eeb086d663e5e828732ac1e00ba8edc217a6d6178d81b00422d85b5b9a51fc48bb7566ae8d53 SHA512 4f7b32a364298bf5f472e17dc1ddc6b54f4a602391ab45307a4927a1dd81d58eefa3a623b7126aa0239d00230ef036c5d1f4f94fd9db8445f1f37f2fa15d3cee DIST github-cli-2.81.0.tar.gz 15794402 BLAKE2B 363f47fd745f5c5b14dcd56d8666eb0f49cb322c61c47079f6f7a177b17344be05f07a46c6d26736fb385a3df130b58b39da7abe15742e1efc2584699666e669 SHA512 bfb89e594f10561360b0a9433eda4da3c65f7a8e0603b7a5bdb2f1daad1349d8a0b0688c66d3a7c87d44fbb8f6aabf17b410bb94055e40991a81b571580919d1 +DIST github-cli-2.92.0-deps.tar.xz 61751456 BLAKE2B 2f0dbd438f88a34aeeed0f8fd88aae668708b52de5751c2356a6be17c518a470e07e0379931249009c9d3394a100a157dba939b55884ac188e04ebe9cefadaa0 SHA512 9e394c10f036862199c52617b05748557ec2112d16c1c287dbc56fca6ed3292550cfdbb8e6489ffbecbe8d64d32d9958c3519d2fa1ef2e5b09cb2605dd1f3fca +DIST github-cli-2.92.0.tar.gz 14617847 BLAKE2B c62aab41a879907727e6f54e75ea4850e0f316c1d08a20b279a568c2c57e05f45bd32602c643417b68fb57f2c6f214525d4728b8cc6f2b8ce22f4fbe9ef9610e SHA512 d41c4eb1a37724e8761d48d045e1ba6ac2b13e87ced71316002060287872dedbbd9d6d7dea06e8a09ba5b191569743eef2fd373231bb8ddddd95851fc567d81e diff --git a/dev-util/github-cli/files/github-cli-2.92.0-disable-telemetry.patch b/dev-util/github-cli/files/github-cli-2.92.0-disable-telemetry.patch new file mode 100644 index 000000000000..f9d1e08efd4f --- /dev/null +++ b/dev-util/github-cli/files/github-cli-2.92.0-disable-telemetry.patch @@ -0,0 +1,13 @@ +https://bugs.gentoo.org/973099 + +--- a/internal/telemetry/telemetry.go ++++ b/internal/telemetry/telemetry.go +@@ -104,6 +104,8 @@ const ( + // The GH_TELEMETRY environment variable takes precedence, followed by DO_NOT_TRACK, then the configuration value. + // Recognized values for GH_TELEMETRY and config are "enabled", "disabled", "log", or any falsey value (e.g. "0", "false", "no") to disable telemetry. + func ParseTelemetryState(configValue string) TelemetryState { ++ _ = configValue ++ return Disabled + // GH_TELEMETRY env var takes highest precedence + if envVal, ok := lookupEnvFunc("GH_TELEMETRY"); ok { + envVal = strings.TrimSpace(strings.ToLower(envVal)) diff --git a/dev-util/github-cli/github-cli-2.76.2.ebuild b/dev-util/github-cli/github-cli-2.76.2.ebuild deleted file mode 100644 index c3af943699e0..000000000000 --- a/dev-util/github-cli/github-cli-2.76.2.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# 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 -} diff --git a/dev-util/github-cli/github-cli-2.78.0.ebuild b/dev-util/github-cli/github-cli-2.92.0.ebuild index 396379392a33..b6f12da04a4d 100644 --- a/dev-util/github-cli/github-cli-2.78.0.ebuild +++ b/dev-util/github-cli/github-cli-2.92.0.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=8 +EAPI=9 + inherit go-module DESCRIPTION="GitHub CLI" @@ -12,17 +13,22 @@ if [[ ${PV} == *9999 ]]; then 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" + SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${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" +LICENSE="MIT" +# Dependent licenses +LICENSE+=" Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0 Unlicense" SLOT="0" +RESTRICT="test" RDEPEND=">=dev-vcs/git-1.7.3" -RESTRICT="test" +PATCHES=( + "${FILESDIR}/${PN}-2.92.0-disable-telemetry.patch" +) src_unpack() { if [[ ${PV} == *9999 ]]; then diff --git a/dev-util/github-cli/github-cli-9999.ebuild b/dev-util/github-cli/github-cli-9999.ebuild index 396379392a33..b6f12da04a4d 100644 --- a/dev-util/github-cli/github-cli-9999.ebuild +++ b/dev-util/github-cli/github-cli-9999.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=8 +EAPI=9 + inherit go-module DESCRIPTION="GitHub CLI" @@ -12,17 +13,22 @@ if [[ ${PV} == *9999 ]]; then 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" + SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${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" +LICENSE="MIT" +# Dependent licenses +LICENSE+=" Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0 Unlicense" SLOT="0" +RESTRICT="test" RDEPEND=">=dev-vcs/git-1.7.3" -RESTRICT="test" +PATCHES=( + "${FILESDIR}/${PN}-2.92.0-disable-telemetry.patch" +) src_unpack() { if [[ ${PV} == *9999 ]]; then |
