commit:     df69c215388080936fc64624b7d5108a1af63621
Author:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Thu May 16 09:51:26 2024 +0000
Commit:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Thu May 16 09:51:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df69c215

app-admin/exo: add 1.78.2

Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>

 app-admin/exo/Manifest          |  1 +
 app-admin/exo/exo-1.78.2.ebuild | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/app-admin/exo/Manifest b/app-admin/exo/Manifest
index 9dc2d63c0338..a3af343c84c6 100644
--- a/app-admin/exo/Manifest
+++ b/app-admin/exo/Manifest
@@ -1 +1,2 @@
 DIST exo-1.78.1.gh.tar.gz 11082424 BLAKE2B 
35a822a44f95e36e6e1ec47f08d8087e387a5614e57f4cf19a87bddf0bf0d796892644b79553da271c72a2c98cf3865aeec73803730872706f3769fed5176daf
 SHA512 
84f32d19ccaae606f488609eb0f26c3b2195299e5a5714f9d472082297f50323da110b80c53a6f993bf92dd6b6aeb9e3452067525e568630dc41db283731ca79
+DIST exo-1.78.2.gh.tar.gz 11084100 BLAKE2B 
56cf1212040df77d2e39bbc90490276563a45632fe47f1781bba84fe5d99634a6d050c52dd15c9bb837e7ebef2ea21087a5c50cc165b0b606a0f3e9b4f59182a
 SHA512 
1f2b3fedd12a00457e241b0d00eb4235804b60c8c8e6bec1f970617a969761eb9e18c10a6031bffba6c58571ca7049c47d8eb74f3fbaacb095ef72b21bea1c20

diff --git a/app-admin/exo/exo-1.78.2.ebuild b/app-admin/exo/exo-1.78.2.ebuild
new file mode 100644
index 000000000000..43fbacd8aa32
--- /dev/null
+++ b/app-admin/exo/exo-1.78.2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="Command-line tool for everything at Exoscale: compute, storage, 
dns"
+HOMEPAGE="https://github.com/exoscale/cli";
+SRC_URI="https://github.com/exoscale/cli/archive/v${PV}.tar.gz -> 
${P}.gh.tar.gz"
+S="${WORKDIR}/cli-${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND=">=dev-lang/go-1.16:="
+RESTRICT="strip"
+
+src_compile() {
+       ego build -mod vendor -o ${PN} -ldflags "-X main.version=${PVR}-gentoo 
-X main.commit="
+}
+
+src_test() {
+       # run at least 'exo version' for test
+       ./exo version > /dev/null 2>&1
+       if [[ $? -ne 0 ]]
+       then
+               die "Test failed"
+       fi
+}
+
+src_install() {
+       dobin ${PN}
+}

Reply via email to