commit:     3036250096d02749b1fc5229a03ec6fb6088cf32
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  9 19:57:16 2023 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Jan  9 19:58:07 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30362500

dev-util/gitlab-cli: new package, add 1.24.1

This is the official gitlab command line interface.

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 dev-util/gitlab-cli/Manifest                 |  2 ++
 dev-util/gitlab-cli/gitlab-cli-1.24.1.ebuild | 32 ++++++++++++++++++++++++++++
 dev-util/gitlab-cli/metadata.xml             | 11 ++++++++++
 3 files changed, 45 insertions(+)

diff --git a/dev-util/gitlab-cli/Manifest b/dev-util/gitlab-cli/Manifest
new file mode 100644
index 000000000000..c3766e5455f0
--- /dev/null
+++ b/dev-util/gitlab-cli/Manifest
@@ -0,0 +1,2 @@
+DIST gitlab-cli-1.24.1-deps.tar.xz 34979684 BLAKE2B 
238ac4e1a4182cc2dd83a4a49f9306e2e76635a43297df21e022b9990eb20dc0eb3b06b16d0132f1b813fc7440ddcaf6335ef77afc3c79e4d0a7d4b3443fdbd1
 SHA512 
e96423b82812fce4621fb4467ea6f861e87d9b897b5f1a6512a860880e22a8ae1ec08ae6a4e874e3ba33456bc93c3f0e1117a2705c911056f55f6f7aaef318c5
+DIST gitlab-cli-1.24.1.tar.bz2 16630772 BLAKE2B 
61f618ef8cee468904457d8ac8a992ce45dd0e354296e24e4176c9f22acc26d33d9672e47542b017bdd515fb9c17bb11b9ba17cafabe66d739b9c6414a640a34
 SHA512 
aa92f3edbc490fe3fede9a65dda9267475f0f15a3265de31a00dc62719f7ba36d75573a7cee807e013b9218ea3497c3b6e8663bcb1a872e91a15000a2d16f386

diff --git a/dev-util/gitlab-cli/gitlab-cli-1.24.1.ebuild 
b/dev-util/gitlab-cli/gitlab-cli-1.24.1.ebuild
new file mode 100644
index 000000000000..1a5307e23852
--- /dev/null
+++ b/dev-util/gitlab-cli/gitlab-cli-1.24.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module
+GIT_COMMIT=e02b30c6e3ff7801f22d37ed63850211ca0c7bb6
+
+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://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz";
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# tests communicate with gitlab.com and require a personal access token
+RESTRICT="test"
+
+S="${WORKDIR}/cli-v${PV}-${GIT_COMMIT}"
+
+src_compile() {
+       emake \
+               GLAB_VERSION=v${PV} \
+               build manpage
+}
+
+src_install() {
+       dobin bin/glab
+       dodoc README.md
+       doman share/man/man1/*
+}

diff --git a/dev-util/gitlab-cli/metadata.xml b/dev-util/gitlab-cli/metadata.xml
new file mode 100644
index 000000000000..1f7a2d8ea63a
--- /dev/null
+++ b/dev-util/gitlab-cli/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>William Hubbs</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="gitlab">gitlab-org/cli</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to