diff options
author | Agostino Sarubbo <ago@gentoo.org> | 2023-02-01 10:10:06 +0100 |
---|---|---|
committer | Agostino Sarubbo <ago@gentoo.org> | 2023-02-01 10:10:06 +0100 |
commit | 743eadacf04f2a4db71a67ab49c3a7d0cdb3aadc (patch) | |
tree | 790245b06445c858515c21e037935e54f6795b5e /app-admin/exo | |
parent | sys-kernel/vanilla-sources: add 6.1.9, drop 6.1.8 (diff) | |
download | gentoo-743eadacf04f2a4db71a67ab49c3a7d0cdb3aadc.tar.gz gentoo-743eadacf04f2a4db71a67ab49c3a7d0cdb3aadc.tar.bz2 gentoo-743eadacf04f2a4db71a67ab49c3a7d0cdb3aadc.zip |
app-admin/exo: EAPI 8 - use .gh for tarball - set version
Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
Diffstat (limited to 'app-admin/exo')
-rw-r--r-- | app-admin/exo/Manifest | 1 | ||||
-rw-r--r-- | app-admin/exo/exo-1.64.0-r1.ebuild | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/app-admin/exo/Manifest b/app-admin/exo/Manifest index 7e78205564d1..8738af5596c2 100644 --- a/app-admin/exo/Manifest +++ b/app-admin/exo/Manifest @@ -1 +1,2 @@ +DIST exo-1.64.0.gh.tar.gz 5538941 BLAKE2B c3c88c9f735d26dcb12b4314148afcc826af341068b6afbb821ed4e826aed81f80ca5ef613a1e5ca3a817db752904684e3ddfee44ed3a517cdb316b7852de0fb SHA512 8fb6bc3df187d9bf1ca58c9d27489426364b7eef3729c83e9b83c7977d09b4a2f4870ec78499656f926738a51bca7d698b1e3c65a65f791689db257a00482413 DIST exo-1.64.0.tar.gz 5538941 BLAKE2B c3c88c9f735d26dcb12b4314148afcc826af341068b6afbb821ed4e826aed81f80ca5ef613a1e5ca3a817db752904684e3ddfee44ed3a517cdb316b7852de0fb SHA512 8fb6bc3df187d9bf1ca58c9d27489426364b7eef3729c83e9b83c7977d09b4a2f4870ec78499656f926738a51bca7d698b1e3c65a65f791689db257a00482413 diff --git a/app-admin/exo/exo-1.64.0-r1.ebuild b/app-admin/exo/exo-1.64.0-r1.ebuild new file mode 100644 index 000000000000..8b7ec86e5d08 --- /dev/null +++ b/app-admin/exo/exo-1.64.0-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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" + +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} -ldflags "-X main.version=${PVR}-gentoo -X main.commit=" || 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} +} |