Install this version:
emerge -a =dev-util/glab-1.92.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/glab-1.92.1
Or alternatively:
emerge --autounmask-write -a =dev-util/glab-1.92.1
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module tmpfiles
DESCRIPTION="A GitLab CLI tool bringing GitLab to your command line"
HOMEPAGE="https://gitlab.com/gitlab-org/cli"
SRC_URI="https://gitlab.com/gitlab-org/cli/-/archive/v${PV}/cli-v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://gentoo.rgst.io/updater_artifacts/${CATEGORY}/${PN}/${PV}/deps.tar.xz -> ${P}-deps.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86"
BDEPEND=">=dev-lang/go-1.26"
RESTRICT="test"
src_unpack() {
default
mv "cli-v${PV}" "${P}"
}
src_compile() {
emake GLAB_VERSION=${PV} build
mkdir -p ${S}/man
go run ./cmd/gen-docs/docs.go --manpage --path ${S}/man
}
src_install() {
dobin ${S}/bin/${PN}
einstalldocs
for page in "${S}/man/"*; do
doman "${page}"
done
}
>=dev-lang/go-1.26
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | glab-1.92.1.tar.gz | 17126361 bytes | https://gitlab.com/gitlab-org/cli/-/archive/v1.92.1/cli-v.tar.gz |