From 7dc1ea37b7fe58797c825456b4ceaeb217c95e11 Mon Sep 17 00:00:00 2001 From: Terin Stock Date: Tue, 10 Sep 2024 23:55:50 +0200 Subject: sys-cluster/kind: new package, add 0.24.0 --- sys-cluster/kind/kind-0.24.0.ebuild | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 sys-cluster/kind/kind-0.24.0.ebuild (limited to 'sys-cluster/kind/kind-0.24.0.ebuild') diff --git a/sys-cluster/kind/kind-0.24.0.ebuild b/sys-cluster/kind/kind-0.24.0.ebuild new file mode 100644 index 0000000..437916b --- /dev/null +++ b/sys-cluster/kind/kind-0.24.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module shell-completion + +DESCRIPTION="Kubernetes IN Docker" +HOMEPAGE="https://github.com/kubernetes-sigs/kind/" +BDEPEND=">=dev-lang/go-1.17" +SRC_URI="https://github.com/kubernetes-sigs/kind/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz" + +LICENSE="Apache-2.0" +LICENSE+=" MIT BSD BSD-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +RESTRICT="!test? ( test )" +DEPEND="test? ( app-containers/docker )" + +src_compile() { + ego build . + ./kind completion bash > "${PN}.bash" || die + ./kind completion fish > "${PN}.fish" || die + ./kind completion zsh > "${PN}.zsh" || die +} + +src_test() { + ego test ./... +} + +src_install() { + dobin kind + + newbashcomp "${PN}.bash" "${PN}" + dofishcomp "${PN}.fish" + newzshcomp "${PN}.zsh" "_${PN}" +} -- cgit v1.2.3