Gentoo Archives: gentoo-commits

From: Agostino Sarubbo <ago@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/hcloud/
Date: Tue, 28 Jun 2022 14:15:09
Message-Id: 1656425703.c9baed78f05f99338abd378e4338ff6d2a9a509d.ago@gentoo
1 commit: c9baed78f05f99338abd378e4338ff6d2a9a509d
2 Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 28 14:15:03 2022 +0000
4 Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 28 14:15:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9baed78
7
8 app-admin/hcloud: version bump to 1.30.0
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>
12
13 app-admin/hcloud/Manifest | 1 +
14 app-admin/hcloud/hcloud-1.30.0.ebuild | 34 ++++++++++++++++++++++++++++++++++
15 2 files changed, 35 insertions(+)
16
17 diff --git a/app-admin/hcloud/Manifest b/app-admin/hcloud/Manifest
18 index c6d9ebf90350..8790dba4eab3 100644
19 --- a/app-admin/hcloud/Manifest
20 +++ b/app-admin/hcloud/Manifest
21 @@ -1 +1,2 @@
22 DIST hcloud-1.29.5.tar.xz 1416952 BLAKE2B 4b1c9e1df9bb3fdb63c28890e7f9cfb8c4c628fd22b765d8265e63415b8feee0466f32fd6a87a5cd981d231f93a60c28c140c1efa7ea33c327b234f1a4d6b0cf SHA512 fbe395c47cf1bef800c162b8c44359dab173c636ec4d7e8e4629fa95b323731c7c3d8a9045dd77692b7beb8a3554cdce567f2285640a5b410262be69442fe99e
23 +DIST hcloud-1.30.0.tar.xz 1650212 BLAKE2B 5fe33e0e782524822bcd7f199d826009ef6c68e9759281613eda1c8481f962b220956fa24515a6f93bf246f43bd0198ddd180a299ddbe2e91327c83f9685ac26 SHA512 9a1160d03f30ac939b5e8eab466f1496476efdcca6b138bc89ca7c0ac5be211ca570eadb050948d1c8bdeeb13b392c6ac0c2a1726c4c53ffca2689e389a3f64f
24
25 diff --git a/app-admin/hcloud/hcloud-1.30.0.ebuild b/app-admin/hcloud/hcloud-1.30.0.ebuild
26 new file mode 100644
27 index 000000000000..82ba00ab5dca
28 --- /dev/null
29 +++ b/app-admin/hcloud/hcloud-1.30.0.ebuild
30 @@ -0,0 +1,34 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +DESCRIPTION="A command-line interface for Hetzner Cloud"
37 +HOMEPAGE="https://github.com/hetznercloud/cli"
38 +SRC_URI="https://dev.gentoo.org/~ago/distfiles/${P}.tar.xz"
39 +
40 +LICENSE="MIT"
41 +SLOT="0"
42 +KEYWORDS="~amd64"
43 +
44 +IUSE=""
45 +DEPEND="dev-lang/go:="
46 +RESTRICT="strip"
47 +QA_FLAGS_IGNORED=".*"
48 +
49 +src_compile() {
50 + go build -mod vendor -o ${PN} -ldflags "-w -X github.com/hetznercloud/cli/internal/version.Version=${PV}-gentoo" ./cmd/${PN} || die "build failed"
51 +}
52 +
53 +src_test() {
54 + # For upstream a simple test is run 'hcloud version'
55 + ./hcloud version
56 + if [[ $? -ne 0 ]]
57 + then
58 + die "Test failed"
59 + fi
60 +}
61 +
62 +src_install() {
63 + dobin ${PN}
64 +}