diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-16 10:53:11 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-16 10:53:11 -0500 |
| commit | 8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b (patch) | |
| tree | bb1e83c18d1cc77cdebfc5aeb9b12ad39c9787b5 /app-containers/k3d | |
| parent | f997c3ee588099e4f43e9ec845935868e3e60b8e (diff) | |
| download | baldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.tar.gz baldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.tar.xz baldeagleos-repo-8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b.zip | |
Adding metadata
Diffstat (limited to 'app-containers/k3d')
| -rw-r--r-- | app-containers/k3d/Manifest | 1 | ||||
| -rw-r--r-- | app-containers/k3d/k3d-5.9.0.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/app-containers/k3d/Manifest b/app-containers/k3d/Manifest index accf3dea1bdf..43d88e5f9f6a 100644 --- a/app-containers/k3d/Manifest +++ b/app-containers/k3d/Manifest @@ -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 diff --git a/app-containers/k3d/k3d-5.9.0.ebuild b/app-containers/k3d/k3d-5.9.0.ebuild new file mode 100644 index 000000000000..5131cee5f690 --- /dev/null +++ b/app-containers/k3d/k3d-5.9.0.ebuild @@ -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 +} |
