summaryrefslogtreecommitdiff
path: root/dev-util/gitlab-cli
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/gitlab-cli')
-rw-r--r--dev-util/gitlab-cli/Manifest2
-rw-r--r--dev-util/gitlab-cli/gitlab-cli-1.119.0.ebuild54
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-util/gitlab-cli/Manifest b/dev-util/gitlab-cli/Manifest
index eff6cf2847e0..669aa8dbff93 100644
--- a/dev-util/gitlab-cli/Manifest
+++ b/dev-util/gitlab-cli/Manifest
@@ -2,3 +2,5 @@ DIST gitlab-cli-1.106.0-vendor.tar.xz 10388708 BLAKE2B 14bb5b6bcd8c4450bba277fbf
DIST gitlab-cli-1.106.0.tar.bz2 17711631 BLAKE2B 4069c0094f73d1c0c79e1c6e9c92f9095b45237b46f51b3a9fe32ae14c20b0e075d9c1384f4f705fd6a07e3b49e01086476e44b1038f1a367cc6ce52e77e0889 SHA512 b8b287d7b7ae5f7b11ece75502c07c22fbfc17fbf313e20d59049041aab81a6d0c139be016c8b7a2c00e274177593580c096947aa0ba8c4b95507cc46422c19e
DIST gitlab-cli-1.116.0-vendor.tar.xz 10438712 BLAKE2B 92c55aac214c4f646813bb25697aa66b1c0eda7d4d0687b90092a1259d5cd5f5a06bb92b78f64235b62de25e12c269be1614b8b656ebda441ee7107de1c5385d SHA512 d8e89662c23a3156023169f81e41c2812131243d2f93b03ee0e49d56a3626c5d8503a1d9342d079cfb3e7226915fa9e10f77491fae42ddde796bcb9487ad3dcd
DIST gitlab-cli-1.116.0.tar.bz2 17874337 BLAKE2B 0524389cd0d4b2c3c9eb4a9c0ef3d8739dd38e3b0365b1a6d68afe14e87ed7e00f7c11852fbcc30f2ef4275215c9b273519385e83f935cc73942efe96ea8085f SHA512 22193ea737d6944bbe0aa6e220d6e5607a9e3c77a4cb054349947b51e415ab2d09268c7b593c8757ee36a307a891ab1115d2ff0963ed892ea57e70496a918ba0
+DIST gitlab-cli-1.119.0-vendor.tar.xz 10526856 BLAKE2B 7ff05a36bb7b2699f1f5de08e73c01e32868eb4256b7082b35911787da39b351ead26e6da7aa158881def75aa0d9c920f525c41bfcd1540779469e673b8e92b6 SHA512 a98f9c70585e2a254d70114c92df1042771ed452517c2bfe757ca7d74000b6d5836adfb8e96b4af371e4ec45c815d67065ed58dc0efa26b66ff7aef02e1cd03b
+DIST gitlab-cli-1.119.0.tar.bz2 17973213 BLAKE2B 0369c932fdf09b53f2b1e464ba0bfaaeccb16349aee2a4bca7d21cc793156bd4ad8169e4295af4289b17920dcaa9411b8cb94419ff495ae389d40d76284a6517 SHA512 88fd47933bd25706a304d82fed4708ce311085c37a90744873d6fa8add2ca532c1959d80969bbcd069975d29a4bf39a24b0bd8e97a8b19ae47bfd7981f284de6
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
+}