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.116.0.ebuild54
-rw-r--r--dev-util/gitlab-cli/metadata.xml4
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-util/gitlab-cli/Manifest b/dev-util/gitlab-cli/Manifest
index d54c3c621fc8..d189fb171ab0 100644
--- a/dev-util/gitlab-cli/Manifest
+++ b/dev-util/gitlab-cli/Manifest
@@ -2,6 +2,8 @@ DIST gitlab-cli-1.100.0-vendor.tar.xz 10362492 BLAKE2B bdb8e415d77a15eeb67cd1c7f
DIST gitlab-cli-1.100.0.tar.bz2 17607550 BLAKE2B e4237b9ff926988edb5ac35baca3860beb894d6652dae8b065666e5f7d5bc62313e9e66233a3c191b793a453b489b52c54446c5a85a458248fdacd2049d14c73 SHA512 18eaa1202395b6285641cd0c775c5508ad9cd657eedb4f9e314434d7694fca181704ccf947435aa9ba8c0292510528679e2ba730e0daba9bedc77e793bc3594b
DIST gitlab-cli-1.106.0-vendor.tar.xz 10388708 BLAKE2B 14bb5b6bcd8c4450bba277fbf69ba63350a357e34f2ac60c8556b17b81c9f822ed1ab78acc3015726110e56d0acbe07edc20b54153d18e45d290dfd2db5fdcc7 SHA512 44aa4d5dda1cc044e72476776c0e0a82c58dedf516ef3038f7df9b50493c4a3639752a908c93d8f00e45801c5dbd3a110d2fa4b4295d59d04bbafa48a699eeca
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.65.0-deps.tar.xz 45676844 BLAKE2B 62def35751dfb2fed5ac811520f45452468a71ae24947154a4731ea7011430626d3696cdad5e7887abc32abd74a587a2ceb56f6c7e2118e7ed619d5328f17dc7 SHA512 87edf69548b80277050bfd52ef53f4a3830042c512e4329353aa8c9ddc24442f2227d2c7ee4aa857b52760032e4e0b421f2ea0290f43d4dcbc280505e5183436
DIST gitlab-cli-1.65.0-man.tar.xz 30832 BLAKE2B cf0aacd559b9a98bb1ac85137020ea48f2ed7ae4fc61ae8159b0d019cbd3573c9140e5f6036ae31f77b578ce2ff28929eb8c44f4da9ed9ff8e3ebe7997d96c92 SHA512 b828de026c1f3c891e4a5da411c3d292933a9f82ddadeb1eaadf640934746bd9955ed19b8ebb509374057dfd91386451986cacb48b015c4b8a9495f70eaf3d7c
DIST gitlab-cli-1.65.0.tar.bz2 16964412 BLAKE2B 5cb5d073c5624acfe890eb73fd504aadadd8cfd2d33040db25234f840a1d78e0afd149eb1c2d7f23d277e6f74cbfd5fd53734d7b185f26b5c3d59c3134d455d4 SHA512 e01548eb4419ebd441c991b7e30037ddc7a6184a7ddbcde4206a45a0d64a41baaf044db137f56e781eeadef85421f793d59b162922fb32a31f886092f44406e9
diff --git a/dev-util/gitlab-cli/gitlab-cli-1.116.0.ebuild b/dev-util/gitlab-cli/gitlab-cli-1.116.0.ebuild
new file mode 100644
index 000000000000..90a43f0528c6
--- /dev/null
+++ b/dev-util/gitlab-cli/gitlab-cli-1.116.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=e8436ca8a1715369087a8c67787493b2434a3822
+
+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
+}
diff --git a/dev-util/gitlab-cli/metadata.xml b/dev-util/gitlab-cli/metadata.xml
index 17492b5107c4..478583f5b166 100644
--- a/dev-util/gitlab-cli/metadata.xml
+++ b/dev-util/gitlab-cli/metadata.xml
@@ -5,5 +5,9 @@
<email>williamh@gentoo.org</email>
<name>William Hubbs</name>
</maintainer>
+ <maintainer type="person">
+ <email>arthurzam@gentoo.org</email>
+ <name>Arthur Zamarin</name>
+ </maintainer>
<origin>baldeagleos-repo</origin>
</pkgmetadata>