commit:     03f751f4d3dcd0850462d3803d452c46fc8a5657
Author:     Vladimir Pavljuchenkov <spiderx <AT> spiderx <DOT> dp <DOT> ua>
AuthorDate: Sat Mar 22 13:30:33 2025 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Mon Apr 21 12:19:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03f751f4

app-admin/doctl: add 1.124.0, use shell-completion.eclass

use reproducible SRC_URI (wrt 881053)

Closes: https://bugs.gentoo.org/881053
Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua>
Closes: https://github.com/gentoo/gentoo/pull/41091
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>

 app-admin/doctl/Manifest             |  1 +
 app-admin/doctl/doctl-1.124.0.ebuild | 51 ++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/app-admin/doctl/Manifest b/app-admin/doctl/Manifest
index c4bd1be5203c..9856e9f7215e 100644
--- a/app-admin/doctl/Manifest
+++ b/app-admin/doctl/Manifest
@@ -1 +1,2 @@
+DIST doctl-1.124.0-source.tar.gz 8166335 BLAKE2B 
60b6a39fbd46401f4377bb640ed23eaf5196c398e875806e4d8f8c7d37f7bf6fd6efb382691b571848ecb22764e85d5211224c0e77c0faaf5e26e2b8da842dbd
 SHA512 
a3229e0ee2f12834fd727c4bcb64a1a6e87486341f41cae24eca8ebd2dd89571520345ba8676082098516c0263fa53479d5316c2281133cee56b98e02278a2a7
 DIST doctl-1.79.0.tar.gz 5661873 BLAKE2B 
276cf8355f982070e2a44306f0d2bca5c269eccab3d67fe8b1b68171d393bacfb857e78fc66e036b0c039fa4bcf26505c029a1ba5ccebfeebf81d4dc3f51d82f
 SHA512 
8257fc8d32ee097f78420138bd12572235dd7a6cead65fe1a666a9686d2f31add50a85a99fed45aae641b583b47b079a0ea3ce6e9e017c6ecfc7dfc14f7b5abd

diff --git a/app-admin/doctl/doctl-1.124.0.ebuild 
b/app-admin/doctl/doctl-1.124.0.ebuild
new file mode 100644
index 000000000000..66d450f3264e
--- /dev/null
+++ b/app-admin/doctl/doctl-1.124.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo go-module shell-completion
+
+DESCRIPTION="A command line tool for DigitalOcean services"
+HOMEPAGE="https://github.com/digitalocean/doctl";
+SRC_URI="https://github.com/digitalocean/${PN}/releases/download/v${PV}/${P}-source.tar.gz";
+S="${WORKDIR}"
+
+LICENSE="Apache-2.0 MIT BSD BSD-2 ISC MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="test? ( dev-vcs/git )"
+
+src_compile() {
+       LDFLAGS="-X github.com/digitalocean/doctl.Major=$(ver_cut 1)
+               -X github.com/digitalocean/doctl.Minor=$(ver_cut 2)
+               -X github.com/digitalocean/doctl.Patch=$(ver_cut 3-)
+               -X github.com/digitalocean/doctl.Label=release"
+       GOFLAGS="-v -x -mod=vendor" ego build -ldflags "$LDFLAGS" ./cmd/...
+
+       local completion
+       for completion in bash zsh fish ; do
+               edo ./doctl completion ${completion} > doctl.${completion} \
+                       || die "completion for ${completion} failed"
+       done
+}
+
+src_test() {
+       git init || die "git init failed"
+       git config user.email "[email protected]" || die "git mail config failed"
+       git config user.name "Your Name" || die "git user config failed"
+
+       GOFLAGS="-v -x -mod=vendor" ego test -work ./commands/... ./do/... \
+               ./pkg/... ./internal/... .
+}
+
+src_install() {
+       einstalldocs
+       dobin doctl
+
+       newbashcomp doctl.bash doctl
+       newfishcomp doctl.fish doctl
+       newzshcomp doctl.zsh _doctl
+}

Reply via email to