dev-util/github-cli - 2.102.0 (gentoo)

Search

Install

Install this version:

emerge -a =dev-util/github-cli-2.102.0

Package Information

Description:
GitHub CLI
Homepage:
https://github.com/cli/cli
License:
MIT Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0 Unlicense

Ebuild Details

Version EAPI Keywords Slot
2.102.0 9 amd64 arm64 ~loong ppc64 ~riscv 0
View Raw Ebuild
# 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.27.0"

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
}

Inherited Eclasses

Dependencies

RDEPEND

>=dev-vcs/git-1.7.3

BDEPEND

>=dev-lang/go-1.27.0

Manifest for 2.102.0

Type File Size Source URLs
DIST github-cli-2.102.0-deps.tar.xz 66376532 bytes https://github.com/gentoo-golang-dist/github-cli/releases/download/v2.102.0/github-cli-2.102.0-deps.tar.xz
DIST github-cli-2.102.0.tar.gz 15296359 bytes https://github.com/cli/cli/archive/v2.102.0.tar.gz