diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-01-24 06:47:17 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-01-24 06:47:17 +0000 |
commit | f1e6490ffadd8d677960342b348f2b08492dd5f6 (patch) | |
tree | 63f2fb113fe5dad7c6a20b69255e07f9bc2446f2 /app-admin/hcloud | |
parent | c78477d222e1ceb9516a9bbbadbba0b5c1ce11db (diff) |
gentoo auto-resync : 24:01:2025 - 06:47:17
Diffstat (limited to 'app-admin/hcloud')
-rw-r--r-- | app-admin/hcloud/Manifest | 2 | ||||
-rw-r--r-- | app-admin/hcloud/hcloud-1.50.0.ebuild | 35 |
2 files changed, 37 insertions, 0 deletions
diff --git a/app-admin/hcloud/Manifest b/app-admin/hcloud/Manifest index 0d59dc14019c..c7f48d5a977b 100644 --- a/app-admin/hcloud/Manifest +++ b/app-admin/hcloud/Manifest @@ -1,3 +1,5 @@ DIST hcloud-1.49.0.tar.xz 2400804 BLAKE2B 50752dd18c20a0ad5783157d2b51514375d3c14ab945188208043709af1f74109e2adc0d31cbb0cd2b6078f4e2ad22940f81bfb538a4cd4acb93a9c069ee18b9 SHA512 4f26f70d9e90e2cabdbca7d0bebc545117c9b684bf03c263dc2bfca66bd8d2088afdc47ecbb9f835a6ab30700aea75dcb27998d71afd18f803205239dcfb50c4 +DIST hcloud-1.50.0.tar.xz 2420496 BLAKE2B 19132156f835bb8369d2c46659455343ab908ed1b775accd07df8eeb189b08e90ef030bcbcd52d2cc0d0f61b548e97ffb64671e26b6502283d857a8db26decbe SHA512 081b5f133944a7fc282943dbb59ac00d35ead0456cbf8da63c1e7a4d4cafb638eabc1a1e29915e90952c63931a0c8f270b9d36ed81ae900f06c38e9bac1e68b7 EBUILD hcloud-1.49.0.ebuild 800 BLAKE2B a4f25dfa0a14c320de08fd2c7b85947396d9f0580af920d2e8a72316e3c261bc9ca69d46be99b922df15be87f33f2ea6bed50473ee5226457332a8b9e334326b SHA512 9f7dc7c5fd40196ce2a3a75a86cb96705bf294cd02310138ac2dae8a86a23fe3241514c680e962de8e7ce0cc6db80601f83f0fd9cfa4ecf64db1335ab26a7cbc +EBUILD hcloud-1.50.0.ebuild 801 BLAKE2B 4134be82d009030f7fad6195c7fd65a57402b87f76e113afed4e594434c6431e320dd941b6d83c400acb7920594d1f07072a6414b8d47798dc47576564756ebd SHA512 3d691abd1d735a3f75ba96c4268f3cb97dfeb48ce95d130019f7bceee3905b0bbdcc94febf2a8f795794727bb07f3ce0f209256caa728d946ff5b4a772e39336 MISC metadata.xml 338 BLAKE2B 6ba2cbe509581ac35dabd93abe166f960d69d1f14336779848483386d28e22dd06e5d196061312827b7a945369f05a466417a1636b607e138515957a75db6f84 SHA512 cc69ce0ab7ba3a9af94ef1918738074cdd725bef2ff70d6c19e46d07bb9514d05ef6415c7ba5b372e7a98902a8440cdb9f7b14a848c3ff2f054863356971ddde diff --git a/app-admin/hcloud/hcloud-1.50.0.ebuild b/app-admin/hcloud/hcloud-1.50.0.ebuild new file mode 100644 index 000000000000..a41551010d80 --- /dev/null +++ b/app-admin/hcloud/hcloud-1.50.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="A command-line interface for Hetzner Cloud" +HOMEPAGE="https://github.com/hetznercloud/cli" +SRC_URI="https://dev.gentoo.org/~ago/distfiles/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +src_compile() { + ego build -o ${PN} -ldflags "-w -X github.com/hetznercloud/cli/internal/version.versionPrerelease=gentoo" ./cmd/${PN} +} + +src_test() { + ./hcloud version + if [[ $? -ne 0 ]] + then + die "hcloud version test failed" + fi + + # Avoid error like: + # -buildmode=pie not supported when -race is enabled on linux/amd64 + GOFLAGS=${GOFLAGS//-buildmode=pie} + ego test -coverpkg=./... -coverprofile=coverage.txt -v -race ./... +} + +src_install() { + dobin ${PN} +} |