app-admin/hcloud: remove old

Signed-off-by: Agostino Sarubbo <ago@gentoo.org>
This commit is contained in:
Agostino Sarubbo
2025-03-06 09:53:35 +01:00
parent acb1ff9486
commit 95fb3098fb
2 changed files with 0 additions and 36 deletions

View File

@@ -1,2 +1 @@
DIST hcloud-1.49.0.tar.xz 2400804 BLAKE2B 50752dd18c20a0ad5783157d2b51514375d3c14ab945188208043709af1f74109e2adc0d31cbb0cd2b6078f4e2ad22940f81bfb538a4cd4acb93a9c069ee18b9 SHA512 4f26f70d9e90e2cabdbca7d0bebc545117c9b684bf03c263dc2bfca66bd8d2088afdc47ecbb9f835a6ab30700aea75dcb27998d71afd18f803205239dcfb50c4
DIST hcloud-1.50.0.tar.xz 2420496 BLAKE2B 19132156f835bb8369d2c46659455343ab908ed1b775accd07df8eeb189b08e90ef030bcbcd52d2cc0d0f61b548e97ffb64671e26b6502283d857a8db26decbe SHA512 081b5f133944a7fc282943dbb59ac00d35ead0456cbf8da63c1e7a4d4cafb638eabc1a1e29915e90952c63931a0c8f270b9d36ed81ae900f06c38e9bac1e68b7

View File

@@ -1,35 +0,0 @@
# 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}
}