mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
gitlab-cli 1.48.0 requires go 1.23.2. Closes: https://bugs.gentoo.org/942996 Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de> Closes: https://github.com/gentoo/gentoo/pull/39481 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
34 lines
797 B
Bash
34 lines
797 B
Bash
# Copyright 2023-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
inherit go-module
|
|
GIT_COMMIT=2db471edb1eb73439eecc04e0a6ab5acc1f32c80
|
|
|
|
DESCRIPTION="the official gitlab command line interface"
|
|
HOMEPAGE="https://gitlab.com/gitlab-org/cli"
|
|
SRC_URI="https://gitlab.com/gitlab-org/cli/-/archive/v${PV}/${PN}-v${PV}.tar.bz2 -> ${P}.tar.bz2"
|
|
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
|
|
S="${WORKDIR}/cli-v${PV}-${GIT_COMMIT}"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
BDEPEND=">=dev-lang/go-1.23.2"
|
|
|
|
# tests communicate with gitlab.com and require a personal access token
|
|
RESTRICT="test"
|
|
|
|
src_compile() {
|
|
emake \
|
|
GLAB_VERSION=v${PV} \
|
|
build manpage
|
|
}
|
|
|
|
src_install() {
|
|
dobin bin/glab
|
|
dodoc README.md
|
|
doman share/man/man1/*
|
|
}
|