summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/exo/Manifest1
-rw-r--r--app-admin/exo/exo-1.52.1.ebuild36
2 files changed, 37 insertions, 0 deletions
diff --git a/app-admin/exo/Manifest b/app-admin/exo/Manifest
index b2e36c93557e..227edbcdac45 100644
--- a/app-admin/exo/Manifest
+++ b/app-admin/exo/Manifest
@@ -1 +1,2 @@
DIST exo-1.52.0.tar.gz 5593768 BLAKE2B e1299a57bfe06050d06d735a6d351a3d913260e0b5fc0183ac9a4cd53ba0d50a39e3e5d796484dcc560d6b8c68ab32420da3d269c48a0a4c6b251b9469fa1950 SHA512 6e18204c9485ce538448a8f000b3c9eea58ae35141cdfed4f9a1671567a58965b907e18efa62524de62d111c5fe0a24ea7b196d20fce5d17ecb9c60fcb757b80
+DIST exo-1.52.1.tar.gz 5594576 BLAKE2B c8cd5011014b9eee899afe7cdd1d45708be221d33772c858c5fb4d62ece0ecec3cdef0aa106c9ce2b0604cb9735cc17674f65274f88becb6c6f7eaaf2643d29f SHA512 25612b8dfd1ce55a1860f75357977ca8cccd0b24860eb091a203c84895c449b59ee5788e6a9e71168cf1927d3d6584cd5f379a3e32565215dcc1ea7210d38714
diff --git a/app-admin/exo/exo-1.52.1.ebuild b/app-admin/exo/exo-1.52.1.ebuild
new file mode 100644
index 000000000000..6149acedfa18
--- /dev/null
+++ b/app-admin/exo/exo-1.52.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE=""
+DEPEND="dev-lang/go:="
+RESTRICT="strip"
+QA_FLAGS_IGNORED=".*"
+
+S="${WORKDIR}/cli-${PV}"
+
+src_compile() {
+ go build -mod vendor -o ${PN} || die "build failed"
+}
+
+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}
+}