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.81.0.ebuild | 44 | ||||
| -rw-r--r-- | dev-util/github-cli/github-cli-2.92.0.ebuild | 51 | ||||
| -rw-r--r-- | dev-util/github-cli/github-cli-2.93.0.ebuild | 51 | ||||
| -rw-r--r-- | dev-util/github-cli/github-cli-9999.ebuild | 51 | ||||
| -rw-r--r-- | dev-util/github-cli/metadata.xml | 9 |
7 files changed, 225 insertions, 0 deletions
diff --git a/dev-util/github-cli/Manifest b/dev-util/github-cli/Manifest new file mode 100644 index 000000000000..b55a2a3f9c40 --- /dev/null +++ b/dev-util/github-cli/Manifest @@ -0,0 +1,6 @@ +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 +DIST github-cli-2.93.0-deps.tar.xz 61700336 BLAKE2B bba7bca4409d591c16b4a68a999e80ff2262db320f812092b795aa832ddf0f86918175825473a6b13a1db16748fc4457f8988ae3740369d92e91871fbe177eea SHA512 bb5fef61dc48d11e8e54f3d72736b037db02d22e07c71d6e5025ce2923139d4ec4094e4e051dfbac74f4cde35e0f53b03eef32e7f4bcca6d3378ef4e2522f6a5 +DIST github-cli-2.93.0.tar.gz 14621130 BLAKE2B e5632c4ae2f47e92a6f0377506b7bec77d884f59befe608e58d53630c251909c8fc87479f648d4e2b66373381182edeef6dcc955aff48bdd33a668be09500209 SHA512 b096ec58e468fccf06c23d428d5ad34eb52d152d8ae232ded3387814ae1a1b397ad40c267fda11881108aa077b4cac52d16e0ef1d1fe9337af75893a2c0c4ef8 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.81.0.ebuild b/dev-util/github-cli/github-cli-2.81.0.ebuild new file mode 100644 index 000000000000..04ae293a14a6 --- /dev/null +++ b/dev-util/github-cli/github-cli-2.81.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2026 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.92.0.ebuild b/dev-util/github-cli/github-cli-2.92.0.ebuild new file mode 100644 index 000000000000..f45edf95ba48 --- /dev/null +++ b/dev-util/github-cli/github-cli-2.92.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=9 + +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://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" +# 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" +BDEPEND=">=dev-lang/go-1.26.1" + +PATCHES=( + "${FILESDIR}/${PN}-2.92.0-disable-telemetry.patch" +) + +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.93.0.ebuild b/dev-util/github-cli/github-cli-2.93.0.ebuild new file mode 100644 index 000000000000..f45edf95ba48 --- /dev/null +++ b/dev-util/github-cli/github-cli-2.93.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=9 + +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://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" +# 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" +BDEPEND=">=dev-lang/go-1.26.1" + +PATCHES=( + "${FILESDIR}/${PN}-2.92.0-disable-telemetry.patch" +) + +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-9999.ebuild b/dev-util/github-cli/github-cli-9999.ebuild new file mode 100644 index 000000000000..f45edf95ba48 --- /dev/null +++ b/dev-util/github-cli/github-cli-9999.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=9 + +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://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" +# 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" +BDEPEND=">=dev-lang/go-1.26.1" + +PATCHES=( + "${FILESDIR}/${PN}-2.92.0-disable-telemetry.patch" +) + +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/metadata.xml b/dev-util/github-cli/metadata.xml new file mode 100644 index 000000000000..17492b5107c4 --- /dev/null +++ b/dev-util/github-cli/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>williamh@gentoo.org</email> + <name>William Hubbs</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
