mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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@spiderx.dp.ua> Closes: https://github.com/gentoo/gentoo/pull/41091 Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
This commit is contained in:
committed by
Petr Vaněk
parent
acf03fefb8
commit
03f751f4d3
@@ -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
|
||||
|
||||
51
app-admin/doctl/doctl-1.124.0.ebuild
Normal file
51
app-admin/doctl/doctl-1.124.0.ebuild
Normal file
@@ -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 "you@example.com" || 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
|
||||
}
|
||||
Reference in New Issue
Block a user