commit: cbb0901e1530860c7d37193dc8ccdf21e23405b2 Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org> AuthorDate: Thu Dec 18 09:48:56 2025 +0000 Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org> CommitDate: Thu Dec 18 09:48:56 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbb0901e
app-admin/hcloud: add 1.57.0 Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org> app-admin/hcloud/Manifest | 1 + app-admin/hcloud/hcloud-1.57.0.ebuild | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/app-admin/hcloud/Manifest b/app-admin/hcloud/Manifest index 8222eab1e3e1..05fba1a1f1e2 100644 --- a/app-admin/hcloud/Manifest +++ b/app-admin/hcloud/Manifest @@ -1 +1,2 @@ DIST hcloud-1.51.0.tar.xz 2654224 BLAKE2B 02c6ff3ceb2dc6bb88625ff2f69552c6c0cc48e124829432b111219a80bd76780d67bcde3935e58157fa3970318c980159fb6abdcffeb941dfafb6da2423dd8c SHA512 ecb9d0fcb1945f030f5499ca48d2a4fc06e7917de1298a14812425789b1258bbe1d126fa08fc82e2af378b79923dd9571b8468aa142618dfad57e9320dacb422 +DIST hcloud-1.57.0.tar.xz 2391896 BLAKE2B 48239e27117b3a0fe424714efc6e5f2aadf0d8a8dff48e4f55deba8adbac44f831f498f6e2c70ab75855b8d9610544649c1c13541053a92081a65dd287704a5f SHA512 b1f0533225579854e43791cd8b590fdf196c5c001730477c77bb32147d9071bba6474eca31328ce7f1c54c7918ac8336e805dfcd2ff0c2003a1b4e22f4462a85 diff --git a/app-admin/hcloud/hcloud-1.57.0.ebuild b/app-admin/hcloud/hcloud-1.57.0.ebuild new file mode 100644 index 000000000000..a41551010d80 --- /dev/null +++ b/app-admin/hcloud/hcloud-1.57.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} +}
