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/exo/
Date: Wed, 01 Feb 2023 09:11:15
Message-Id: 1675242606.743eadacf04f2a4db71a67ab49c3a7d0cdb3aadc.ago@gentoo
1 commit: 743eadacf04f2a4db71a67ab49c3a7d0cdb3aadc
2 Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 1 09:10:06 2023 +0000
4 Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 1 09:10:06 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=743eadac
7
8 app-admin/exo: EAPI 8 - use .gh for tarball - set version
9
10 Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>
11
12 app-admin/exo/Manifest | 1 +
13 app-admin/exo/exo-1.64.0-r1.ebuild | 36 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 37 insertions(+)
15
16 diff --git a/app-admin/exo/Manifest b/app-admin/exo/Manifest
17 index 7e78205564d1..8738af5596c2 100644
18 --- a/app-admin/exo/Manifest
19 +++ b/app-admin/exo/Manifest
20 @@ -1 +1,2 @@
21 +DIST exo-1.64.0.gh.tar.gz 5538941 BLAKE2B c3c88c9f735d26dcb12b4314148afcc826af341068b6afbb821ed4e826aed81f80ca5ef613a1e5ca3a817db752904684e3ddfee44ed3a517cdb316b7852de0fb SHA512 8fb6bc3df187d9bf1ca58c9d27489426364b7eef3729c83e9b83c7977d09b4a2f4870ec78499656f926738a51bca7d698b1e3c65a65f791689db257a00482413
22 DIST exo-1.64.0.tar.gz 5538941 BLAKE2B c3c88c9f735d26dcb12b4314148afcc826af341068b6afbb821ed4e826aed81f80ca5ef613a1e5ca3a817db752904684e3ddfee44ed3a517cdb316b7852de0fb SHA512 8fb6bc3df187d9bf1ca58c9d27489426364b7eef3729c83e9b83c7977d09b4a2f4870ec78499656f926738a51bca7d698b1e3c65a65f791689db257a00482413
23
24 diff --git a/app-admin/exo/exo-1.64.0-r1.ebuild b/app-admin/exo/exo-1.64.0-r1.ebuild
25 new file mode 100644
26 index 000000000000..8b7ec86e5d08
27 --- /dev/null
28 +++ b/app-admin/exo/exo-1.64.0-r1.ebuild
29 @@ -0,0 +1,36 @@
30 +# Copyright 1999-2023 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DESCRIPTION="Command-line tool for everything at Exoscale: compute, storage, dns"
36 +HOMEPAGE="https://github.com/exoscale/cli"
37 +SRC_URI="https://github.com/exoscale/cli/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
38 +
39 +LICENSE="Apache-2.0"
40 +SLOT="0"
41 +KEYWORDS="~amd64"
42 +
43 +IUSE=""
44 +DEPEND="dev-lang/go:="
45 +RESTRICT="strip"
46 +QA_FLAGS_IGNORED=".*"
47 +
48 +S="${WORKDIR}/cli-${PV}"
49 +
50 +src_compile() {
51 + go build -mod vendor -o ${PN} -ldflags "-X main.version=${PVR}-gentoo -X main.commit=" || die "build failed"
52 +}
53 +
54 +src_test() {
55 + # run at least 'exo version' for test
56 + ./exo version > /dev/null 2>&1
57 + if [[ $? -ne 0 ]]
58 + then
59 + die "Test failed"
60 + fi
61 +}
62 +
63 +src_install() {
64 + dobin ${PN}
65 +}