Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/doctl/
Date: Mon, 01 Feb 2021 13:23:04
Message-Id: 1612185768.0cb85bc9eb54608aa28045ee1a45e02dc7041028.juippis@gentoo
1 commit: 0cb85bc9eb54608aa28045ee1a45e02dc7041028
2 Author: Vladimir Pavljuchenkov (SpiderX) <spiderx <AT> spiderx <DOT> dp <DOT> ua>
3 AuthorDate: Sat Mar 30 15:38:31 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 13:22:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cb85bc9
7
8 app-admin/doctl: new ebuild
9
10 A command line tool for DigitalOcean services
11
12 Package-Manager: Portage-3.0.13, Repoman-3.0.2
13 Signed-off-by: Vladimir Pavljuchenkov <spiderx <AT> spiderx.dp.ua>
14 Closes: https://github.com/gentoo/gentoo/pull/11546
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 app-admin/doctl/Manifest | 1 +
18 app-admin/doctl/doctl-1.55.0.ebuild | 40 ++++++++++++++++++++++++++++++++
19 app-admin/doctl/doctl-9999.ebuild | 46 +++++++++++++++++++++++++++++++++++++
20 app-admin/doctl/metadata.xml | 20 ++++++++++++++++
21 4 files changed, 107 insertions(+)
22
23 diff --git a/app-admin/doctl/Manifest b/app-admin/doctl/Manifest
24 new file mode 100644
25 index 00000000000..2b23d16cf2c
26 --- /dev/null
27 +++ b/app-admin/doctl/Manifest
28 @@ -0,0 +1 @@
29 +DIST doctl-1.55.0.tar.gz 5157504 BLAKE2B 1d3db2ee4ca71a459456e72f035648c5ba73c5372c3369b360e1ee3cc44ec1155295e5f425611c307371f902c7ffed7dbce2f959266f79ecb8f149144fc86596 SHA512 6cea86e184ea25d5a6740d4090148fbe053ce93ebe8f2344f5a2bf62283381ed2a9574862a5ba39f34a52bf85af550313b7dd316a321f31089673f898d37cf78
30
31 diff --git a/app-admin/doctl/doctl-1.55.0.ebuild b/app-admin/doctl/doctl-1.55.0.ebuild
32 new file mode 100644
33 index 00000000000..8241168248a
34 --- /dev/null
35 +++ b/app-admin/doctl/doctl-1.55.0.ebuild
36 @@ -0,0 +1,40 @@
37 +# Copyright 1999-2021 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +inherit bash-completion-r1 go-module
43 +
44 +DESCRIPTION="A command line tool for DigitalOcean services"
45 +HOMEPAGE="https://github.com/digitalocean/doctl"
46 +SRC_URI="https://github.com/digitalocean/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="Apache-2.0 MIT BSD BSD-2 ISC MPL-2.0"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE=""
52 +
53 +src_compile() {
54 + GOFLAGS="-v -x -mod=vendor" \
55 + go build ./cmd/... || die "build failed"
56 +
57 + ./doctl completion bash > doctl.bash || die "completion for bash failed"
58 + ./doctl completion zsh > doctl.zsh || die "completion for sh failed"
59 + ./doctl completion fish > doctl.fish || die "completion for fish failed"
60 +}
61 +
62 +src_test() {
63 + GOFLAGS="-v -x -mod=vendor" \
64 + go test -work ./do/... ./pkg/... . || die "test failed"
65 +}
66 +
67 +src_install() {
68 + einstalldocs
69 + dobin doctl
70 +
71 + newbashcomp doctl.bash doctl
72 + insinto /usr/share/zsh/site-functions
73 + newins doctl.zsh _doctl
74 + insinto /usr/share/fish/completion
75 + newins doctl.fish doctl
76 +}
77
78 diff --git a/app-admin/doctl/doctl-9999.ebuild b/app-admin/doctl/doctl-9999.ebuild
79 new file mode 100644
80 index 00000000000..59e3c4d9aa3
81 --- /dev/null
82 +++ b/app-admin/doctl/doctl-9999.ebuild
83 @@ -0,0 +1,46 @@
84 +# Copyright 1999-2021 Gentoo Authors
85 +# Distributed under the terms of the GNU General Public License v2
86 +
87 +EAPI=7
88 +
89 +EGIT_REPO_URI="https://github.com/digitalocean/${PN}.git"
90 +
91 +inherit bash-completion-r1 git-r3 go-module
92 +
93 +DESCRIPTION="A command line tool for DigitalOcean services"
94 +HOMEPAGE="https://github.com/digitalocean/doctl"
95 +SRC_URI=""
96 +
97 +LICENSE="Apache-2.0 MIT BSD BSD-2 ISC MPL-2.0"
98 +SLOT="0"
99 +KEYWORDS=""
100 +IUSE=""
101 +
102 +src_unpack() {
103 + git-r3_src_unpack
104 +}
105 +
106 +src_compile() {
107 + GOFLAGS="-v -x -mod=vendor" \
108 + go build ./cmd/... || die "build failed"
109 +
110 + ./doctl completion bash > doctl.bash || die "completion for bash failed"
111 + ./doctl completion zsh > doctl.zsh || die "completion for sh failed"
112 + ./doctl completion fish > doctl.fish || die "completion for fish failed"
113 +}
114 +
115 +src_test() {
116 + GOFLAGS="-v -x -mod=vendor" \
117 + go test -work ./do/... ./pkg/... . || die "test failed"
118 +}
119 +
120 +src_install() {
121 + einstalldocs
122 + dobin doctl
123 +
124 + newbashcomp doctl.bash doctl
125 + insinto /usr/share/zsh/site-functions
126 + newins doctl.zsh _doctl
127 + insinto /usr/share/fish/completion
128 + newins doctl.fish doctl
129 +}
130
131 diff --git a/app-admin/doctl/metadata.xml b/app-admin/doctl/metadata.xml
132 new file mode 100644
133 index 00000000000..02d7430b53a
134 --- /dev/null
135 +++ b/app-admin/doctl/metadata.xml
136 @@ -0,0 +1,20 @@
137 +<?xml version="1.0" encoding="UTF-8"?>
138 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
139 +<pkgmetadata>
140 + <maintainer type="person">
141 + <email>spiderx@××××××××××.ua</email>
142 + <name>Vladimir Pavljuchenkov</name>
143 + </maintainer>
144 + <maintainer type="project">
145 + <email>proxy-maint@g.o</email>
146 + <name>Proxy Maintainers</name>
147 + </maintainer>
148 + <longdescription lang="en">
149 + The official DigitalOcean command-line client,
150 + which leverages the DigitalOcean API to provide access
151 + to DigitalOcean services.
152 + </longdescription>
153 + <upstream>
154 + <remote-id type="github">digitalocean/doctl</remote-id>
155 + </upstream>
156 +</pkgmetadata>