Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/doctl/
Date: Mon, 03 Jan 2022 18:40:36
Message-Id: 1641235217.f59c5b781ccbccbb5c179e773708e563582b1d05.flow@gentoo
1 commit: f59c5b781ccbccbb5c179e773708e563582b1d05
2 Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua>
3 AuthorDate: Sat Jan 1 10:11:05 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 3 18:40:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f59c5b78
7
8 app-admin/doctl: version bump to 1.68, EAPI 8
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua>
12 Closes: https://github.com/gentoo/gentoo/pull/23611
13 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
14
15 app-admin/doctl/Manifest | 1 +
16 app-admin/doctl/doctl-1.68.0.ebuild | 43 +++++++++++++++++++++++++++++++++++++
17 2 files changed, 44 insertions(+)
18
19 diff --git a/app-admin/doctl/Manifest b/app-admin/doctl/Manifest
20 index 1dc7041d6b22..4515e82ef222 100644
21 --- a/app-admin/doctl/Manifest
22 +++ b/app-admin/doctl/Manifest
23 @@ -1 +1,2 @@
24 DIST doctl-1.57.0.tar.gz 5195498 BLAKE2B 17273e9f8f63464aa2ba6c6d48dfabd78b0bdeb7156dc315d1970fb0052710c7a4b37f1d5e2a7a60211f2ab166c0926de438959d853639a8c329ec39b3ee0577 SHA512 0c868c5732a48367a93bf2b884689dbd917ba6690c82516495862546bc31d58d44aab192bd3b3543f951e9fa9b7289e99fbdf828c017af68496b84f1585a5f6b
25 +DIST doctl-1.68.0.tar.gz 5514572 BLAKE2B e44be00e1b7451e84d3d6dc5a19dc04fcb5dab2c8a5c1923c0c0f99058a1938f9567d63681989e869341957586cdf549842cd45ca82503007039ae989664e8ff SHA512 d81799c227c071793af74f78e54d8348782caf158b28e0a12b92adf17b6c78c787a82abbdf3aa340a960f26c929b00f38015725e6e629aad7615096270d19c10
26
27 diff --git a/app-admin/doctl/doctl-1.68.0.ebuild b/app-admin/doctl/doctl-1.68.0.ebuild
28 new file mode 100644
29 index 000000000000..30469673185f
30 --- /dev/null
31 +++ b/app-admin/doctl/doctl-1.68.0.ebuild
32 @@ -0,0 +1,43 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +inherit bash-completion-r1 go-module
39 +
40 +DESCRIPTION="A command line tool for DigitalOcean services"
41 +HOMEPAGE="https://github.com/digitalocean/doctl"
42 +SRC_URI="https://github.com/digitalocean/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="Apache-2.0 MIT BSD BSD-2 ISC MPL-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +
48 +src_compile() {
49 + LDFLAGS="-X github.com/digitalocean/doctl.Major=$(ver_cut 1)
50 + -X github.com/digitalocean/doctl.Minor=$(ver_cut 2)
51 + -X github.com/digitalocean/doctl.Patch=$(ver_cut 3-)
52 + -X github.com/digitalocean/doctl.Label=release"
53 + GOFLAGS="-v -x -mod=vendor" \
54 + go build -ldflags "$LDFLAGS" ./cmd/... || die "build failed"
55 +
56 + ./doctl completion bash > doctl.bash || die "completion for bash failed"
57 + ./doctl completion zsh > doctl.zsh || die "completion for sh failed"
58 + ./doctl completion fish > doctl.fish || die "completion for fish failed"
59 +}
60 +
61 +src_test() {
62 + GOFLAGS="-v -x -mod=vendor" \
63 + go test -work ./do/... ./pkg/... . || die "test failed"
64 +}
65 +
66 +src_install() {
67 + einstalldocs
68 + dobin doctl
69 +
70 + newbashcomp doctl.bash doctl
71 + insinto /usr/share/zsh/site-functions
72 + newins doctl.zsh _doctl
73 + insinto /usr/share/fish/completion
74 + newins doctl.fish doctl
75 +}