diff options
Diffstat (limited to 'dev-util/gitlab-cli')
| -rw-r--r-- | dev-util/gitlab-cli/Manifest | 2 | ||||
| -rw-r--r-- | dev-util/gitlab-cli/gitlab-cli-1.100.0.ebuild | 59 | ||||
| -rw-r--r-- | dev-util/gitlab-cli/metadata.xml | 2 |
3 files changed, 62 insertions, 1 deletions
diff --git a/dev-util/gitlab-cli/Manifest b/dev-util/gitlab-cli/Manifest index a10e7cab6422..1b4ec665ae22 100644 --- a/dev-util/gitlab-cli/Manifest +++ b/dev-util/gitlab-cli/Manifest @@ -1,3 +1,5 @@ +DIST gitlab-cli-1.100.0-vendor.tar.xz 10362492 BLAKE2B bdb8e415d77a15eeb67cd1c7fd3bdf03858c8e6637ffd152b77b8c03627840c550841177630e2ee7c63ffc5323f89a8970b2d33475b230b2dff387d9235700ff SHA512 a84edee7d13349c0d1553f4e073abeb7e10daeb88a080c778d586dd0e2ef59f08fec232166bc22a882e2509e857b0c68aa6cbe4ac1a7657dd1cb10d810cd314a +DIST gitlab-cli-1.100.0.tar.bz2 17607550 BLAKE2B e4237b9ff926988edb5ac35baca3860beb894d6652dae8b065666e5f7d5bc62313e9e66233a3c191b793a453b489b52c54446c5a85a458248fdacd2049d14c73 SHA512 18eaa1202395b6285641cd0c775c5508ad9cd657eedb4f9e314434d7694fca181704ccf947435aa9ba8c0292510528679e2ba730e0daba9bedc77e793bc3594b 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.100.0.ebuild b/dev-util/gitlab-cli/gitlab-cli-1.100.0.ebuild new file mode 100644 index 000000000000..c1db03ae19e0 --- /dev/null +++ b/dev-util/gitlab-cli/gitlab-cli-1.100.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 2023-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module shell-completion sysroot + +# update on every bump +GIT_COMMIT=e345ca679f612b4990175d6e33839ba864bb02d2 + +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.26.3" + +QA_PRESTRIPPED=usr/bin/glab + +src_unpack() { + mkdir -p "${S}" || die + ln -s "../${P}/vendor" "${S}/vendor" || die + go-module_src_unpack + sed -e 's/check_update: true/check_update: false/' -i "${S}/internal/config/config.yaml.lock" || die + chmod 600 "${S}/internal/config/config.yaml.lock" || die +} + +src_compile() { + emake \ + GLAB_VERSION=v${PV} \ + gen-config + 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 bash > "${T}"/glab.bash || die + sysroot_try_run_prefixed bin/glab completion zsh > "${T}"/glab.zsh || die + sysroot_try_run_prefixed bin/glab completion 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 53c5cdf5c8dd..a3a706e426ca 100644 --- a/dev-util/gitlab-cli/metadata.xml +++ b/dev-util/gitlab-cli/metadata.xml @@ -6,5 +6,5 @@ <name>William Hubbs</name> </maintainer> - <origin>gentoo-staging</origin> + <origin>liguros-repo</origin> </pkgmetadata>
\ No newline at end of file |
