mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
Reported by xgqt and parona. It breaks metadata generation with pkgcraft too: > ERROR invalid pkg: dev-util/gitlab-cli-1.65.0::gentoo: line 9: go-mod/: restricted: cannot specify `/' in command names Fixes: 723ddb4206f51e6a47bbada0a40acf95f9938ca4 Signed-off-by: Sam James <sam@gentoo.org>
39 lines
949 B
Bash
39 lines
949 B
Bash
# Copyright 2023-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
inherit go-module
|
|
|
|
# update on every bump
|
|
GIT_COMMIT=8514bc42ef2c15a0ff27782a22b3add584b0d21c/
|
|
|
|
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"
|
|
SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-man.tar.xz"
|
|
S="${WORKDIR}/cli-v${PV}-${GIT_COMMIT}"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
# tests communicate with gitlab.com and require a personal access token
|
|
RESTRICT="test"
|
|
|
|
QA_PRESTRIPPED=usr/bin/glab
|
|
|
|
src_compile() {
|
|
emake \
|
|
BUILD_COMMIT_SHA=${GIT_COMMIT::8} \
|
|
GLAB_VERSION=v${PV} \
|
|
build
|
|
mv ../share "${T}" || die
|
|
}
|
|
|
|
src_install() {
|
|
dobin bin/glab
|
|
dodoc README.md
|
|
doman "${T}"/share/man/man1/*
|
|
}
|