summaryrefslogtreecommitdiff
path: root/dev-util/gitlab-cli/gitlab-cli-1.119.0.ebuild
diff options
context:
space:
mode:
authorCrucible <crucible@localhost>2026-09-24 20:11:12 -0500
committerCrucible <crucible@localhost>2026-09-24 20:11:12 -0500
commitb15863f694d57e70e1ca114c172a86352489bf0b (patch)
tree7daac3ac580c4f41444bf648c327d33d1d1c224a /dev-util/gitlab-cli/gitlab-cli-1.119.0.ebuild
parent4ee8e923b706dbd107d50841841ea6a6c25a02ff (diff)
downloadsrcux-b15863f694d57e70e1ca114c172a86352489bf0b.tar.gz
srcux-b15863f694d57e70e1ca114c172a86352489bf0b.tar.xz
srcux-b15863f694d57e70e1ca114c172a86352489bf0b.zip
Publish srcux candidate 0000000394-20260924-200842
Diffstat (limited to 'dev-util/gitlab-cli/gitlab-cli-1.119.0.ebuild')
-rw-r--r--dev-util/gitlab-cli/gitlab-cli-1.119.0.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-util/gitlab-cli/gitlab-cli-1.119.0.ebuild b/dev-util/gitlab-cli/gitlab-cli-1.119.0.ebuild
new file mode 100644
index 000000000000..e2b1c2d3837d
--- /dev/null
+++ b/dev-util/gitlab-cli/gitlab-cli-1.119.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2023-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=9
+
+inherit go-module shell-completion sysroot
+
+# update on every bump
+GIT_COMMIT=f5016eda261bb7142627d05d1d85a20d6dd56ddc
+
+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://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.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"
+
+BDEPEND=">=dev-lang/go-1.27.0"
+
+QA_PRESTRIPPED=usr/bin/glab
+
+src_unpack() {
+ mkdir -p "${S}" || die
+ ln -s "../${P}/vendor" "${S}/vendor" || die
+ go-module_src_unpack
+}
+
+src_compile() {
+ emake \
+ BUILD_COMMIT_SHA=${GIT_COMMIT::8} \
+ GLAB_VERSION=v${PV} \
+ build manpage
+
+ einfo "generating shell completion files"
+ sysroot_try_run_prefixed bin/glab completion -s bash > "${T}"/glab.bash || die
+ sysroot_try_run_prefixed bin/glab completion -s zsh > "${T}"/glab.zsh || die
+ sysroot_try_run_prefixed bin/glab completion -s fish > "${T}"/glab.fish || die
+}
+
+src_install() {
+ dobin bin/glab
+ dodoc README.md
+ doman share/man/man1/*
+
+ [[ -s "${T}"/glab.bash ]] && newbashcomp "${T}"/glab.bash glab
+ [[ -s "${T}"/glab.zsh ]] && newzshcomp "${T}"/glab.zsh _glab
+ [[ -s "${T}"/glab.fish ]] && dofishcomp "${T}"/glab.fish
+}