mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-containers/k3d: add 5.9.0
Closes: https://bugs.gentoo.org/960281 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST k3d-5.8.3.tar.gz 9542510 BLAKE2B d6b2e6701c576ff7cc25b979c18284e6e4dbe4fc8078f3669297b6aa0acddb6ad7e256255d8f8d8a97aef981b20f81529f621237d2f183c58aa37bfd58645b71 SHA512 e942a895b31c7906264380851e5f450e4f4b8bba5552d6693baf3428d2b8c7198f94d62b2791571867f24adda3a3edbac73253d04e13b8f5f3adba56310f6936
|
||||
DIST k3d-5.9.0.tar.gz 8955790 BLAKE2B dd8c6a71acf3886f35649c1bbae8bec555026fb9c35a67ccdbf48b61f1e45c8b32769e6767adc8c5e0ab1296315f325c1c09b73616027bb3a963ba410e6885c6 SHA512 ff13004db256c0fbc42472e5462c55c6c929d2bac774d7f0043810946541143bc878e3bb0bf8bf8b3b7c382aa6a4152e9f9e63a1d078336a3068b0be84a3cd48
|
||||
|
||||
50
app-containers/k3d/k3d-5.9.0.ebuild
Normal file
50
app-containers/k3d/k3d-5.9.0.ebuild
Normal file
@@ -0,0 +1,50 @@
|
||||
# Copyright 2021-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module shell-completion sysroot
|
||||
|
||||
K3D_K3S_TAG=v1.36.1-k3s1
|
||||
|
||||
DESCRIPTION="k3d creates k3s clusters in docker"
|
||||
HOMEPAGE="https://github.com/rancher/k3d"
|
||||
SRC_URI="https://github.com/rancher/k3d/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT Apache-2.0 BSD BSD-2 MPL-2.0 ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="doc"
|
||||
|
||||
BDEPEND=">=dev-lang/go-1.26.3"
|
||||
|
||||
src_compile() {
|
||||
local ldflags=(
|
||||
-w
|
||||
-X "github.com/k3d-io/k3d/v5/version.Version=v${PV}"
|
||||
-X "github.com/k3d-io/k3d/v5/version.K3sVersion=${K3D_K3S_TAG}"
|
||||
)
|
||||
local -x GOWORK="" CGO_ENABLED=1
|
||||
ego build -ldflags "${ldflags[*]}" -o bin/k3d
|
||||
|
||||
einfo "generating shell completion files"
|
||||
sysroot_try_run_prefixed ./bin/k3d completion bash > ${PN}.bash || die
|
||||
sysroot_try_run_prefixed ./bin/k3d completion zsh > ${PN}.zsh || die
|
||||
sysroot_try_run_prefixed ./bin/k3d completion fish > ${PN}.fish || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ego test -v ./... -skip "TestGetK3sVersion"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/${PN}
|
||||
|
||||
[[ -s ${PN}.bash ]] && newbashcomp ${PN}.bash ${PN}
|
||||
[[ -s ${PN}.zsh ]] && newzshcomp ${PN}.zsh _${PN}
|
||||
[[ -s ${PN}.fish ]] && dofishcomp ${PN}.fish
|
||||
|
||||
DOCS=( *.md )
|
||||
use doc && DOCS+=( docs )
|
||||
einstalldocs
|
||||
}
|
||||
Reference in New Issue
Block a user