summaryrefslogtreecommitdiff
path: root/app-containers/kind/kind-0.30.0.ebuild
blob: cdb8e74e45b981120ba215e7e254642bc3978e60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit edo go-module shell-completion

DESCRIPTION="Kind is a tool for running local Kubernetes clusters using Docker"
HOMEPAGE="https://kind.sigs.k8s.io/"
SRC_URI="https://github.com/kubernetes-sigs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://distfiles.dutra.sh/distfiles/${P}-vendor.tar.xz"

LICENSE="Apache-2.0 BSD BSD-2 MPL-2.0 MIT"
SLOT="0"
KEYWORDS="~amd64"

# Tests failed: fatal: not a git repository
RESTRICT=test

RDEPEND=">=app-containers/docker-cli-23.0.0"

src_compile() {
	ego build -v -x -o ${PN}
	edo ./${PN} completion fish > kind.fish
	edo ./${PN} completion bash > kind.bash
	edo ./${PN} completion zsh > kind.zsh
}

src_install() {
	dobin ${PN}
	newbashcomp "${PN}.bash" "${PN}"
	dofishcomp "${PN}.fish"
	newzshcomp "${PN}.zsh" "_${PN}"
}