-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9696ec
commit 941497d
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
DIST glab-1.46.1-deps.tar.xz 55576664 BLAKE2B 9fe5c9b6dce80f45b513a27d363272d8c9b6d42d36ecf415218d6c13cfd20a4ee0d36209ef75db309ab875481602b948c2a7c8f35cae79eba15053c883f1d5e5 SHA512 a25c9ccb68a07d3249eb11d68d91b0c540c54f8b5aa40a21e48a67b6f1ce2d034a5e8bfb73bfcc3edb11d86380d33b85f70def99c0e93087eb5cc2923fb5f953 | ||
DIST glab-1.46.1.tar.gz 16752804 BLAKE2B b8de336a5e327669e48b19d8fa592972fe3bfa63f783f10de2a8288e5abd5c7d1d8be10c0d0ac2e5e80f3c81b9b11f90bc4b789c73f09ba5fb6ed256f860f16f SHA512 2290b6fa1b4b42f5dbb58998b2f834c4fc067ff139237625faf769e957a799db68b9498646ae835f7632704db1a2b3dd9c79cb11d139cb80e61ed99bb91141db | ||
DIST glab-1.47.0-deps.tar.xz 62267364 BLAKE2B 76f28b1fac3f79085071693d56df8ec2ad0b86bf8783b39a0b6d66c603ece1bfc8864dc029219c813f608c87737bad35c71d9f556cce14d56edbfc5b750e5b49 SHA512 c8fc66c1bd455b8608ee4dd6fce24788a066694ea6a0f1399b003b6d4265b064a89f643d0071cb595e425d5eaecff54e5bbd7d52f1e0bd26eef2c1b3da8fe9a0 | ||
DIST glab-1.47.0.tar.gz 16774690 BLAKE2B 097cb1bb6ae797d4ce6e0757003052c339618103fb5d49e0aa428d3b2b49606366ad2c0aab8518ac2dfc814786adb2e27ae68cea8dfa7de17ef79caf8541d8a7 SHA512 fa0b9560e0f96403792527940a80428a5c9525e91e3f2c11442e4b443fc140c4017da87e077341972dbae6ae43bb72c282285c29c1f937b209ba69de7617fff8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright 2020-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
inherit go-module tmpfiles | ||
|
||
DESCRIPTION="A GitLab CLI tool bringing GitLab to your command line" | ||
HOMEPAGE="https://gitlab.com/gitlab-org/cli" | ||
SRC_URI="https://gitlab.com/gitlab-org/cli/-/archive/v${PV}/cli-v${PV}.tar.gz -> ${P}.tar.gz" | ||
SRC_URI+=" https://gentoo.rgst.io/updater_artifacts/${CATEGORY}/${PN}/${PV}/deps.tar.xz -> ${P}-deps.tar.xz" | ||
|
||
LICENSE="MIT" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86" | ||
|
||
BDEPEND=">=dev-lang/go-1.23" | ||
|
||
RESTRICT="test" | ||
|
||
src_unpack() { | ||
default | ||
mv "cli-v${PV}" "${P}" | ||
} | ||
|
||
src_compile() { | ||
emake GLAB_VERSION=${PV} build | ||
|
||
mkdir -p ${S}/man | ||
go run ./cmd/gen-docs/docs.go --manpage --path ${S}/man | ||
} | ||
|
||
src_install() { | ||
dobin ${S}/bin/${PN} | ||
einstalldocs | ||
|
||
for page in "${S}/man/"*; do | ||
doman "${page}" | ||
done | ||
} |