diff options
author | Zac Medico <zmedico@gentoo.org> | 2022-08-02 16:08:16 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2022-08-02 16:08:30 -0700 |
commit | 7f45df3227aa9dd446bf67ee583f49c89c4f516b (patch) | |
tree | 5aa5db39d889c1635466266929c6eca86b16d39c /sys-cluster/minikube | |
parent | app-admin/vault: add 1.11.2 (diff) | |
download | gentoo-7f45df3227aa9dd446bf67ee583f49c89c4f516b.tar.gz gentoo-7f45df3227aa9dd446bf67ee583f49c89c4f516b.tar.bz2 gentoo-7f45df3227aa9dd446bf67ee583f49c89c4f516b.zip |
sys-cluster/minikube: add 1.26.1
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'sys-cluster/minikube')
-rw-r--r-- | sys-cluster/minikube/Manifest | 1 | ||||
-rw-r--r-- | sys-cluster/minikube/minikube-1.26.1.ebuild | 75 |
2 files changed, 76 insertions, 0 deletions
diff --git a/sys-cluster/minikube/Manifest b/sys-cluster/minikube/Manifest index 96fb00dfdc24..a0a5cbafb854 100644 --- a/sys-cluster/minikube/Manifest +++ b/sys-cluster/minikube/Manifest @@ -1,3 +1,4 @@ DIST minikube-1.25.1-vendor.tar.gz 104698545 BLAKE2B 2402594f1a876e16f36f4341136b71a84a8848c90d61789c85b1b962848e029363ec1efa051b0a08a28d38e82ee5fd52ceb0f2836078102a22de0d9cff4cc041 SHA512 661cd0261535728a119d5a0fa5f15c535092ae870f094e85dd03cbb5449ccef89c64dacec02373a7097f0a81bf2c23a91254f2257c09db54cb48249a785d06a5 DIST minikube-1.25.2-vendor.tar.gz 103616191 BLAKE2B 6707011b208bf96670649192aef0100bee5780bc3321b41eddc12a62b2d4acbc566a8cdf557dae4a84b501c67b31ac35c77effb808bbc3ca56d65e7727977141 SHA512 2e964be6f0708a41ae1aaf1d47eabad8acf13ffafc5ae56cfd66f81ef94673d9661654c807bf2c8790ce5336f95f9fce377b82905e229e4d3534ed5d2622b5da DIST minikube-1.26.0-vendor.tar.gz 104726099 BLAKE2B b8dce4c567e370219c568e9b8298dc7d9b9e3b53330d644e943876683c19a80dbb77a938e3428f8662ac55f2359c473920d081c6ac8573ea79e30989ea8dcfb2 SHA512 76b6bc5a004a29864de6a0574a6abed18de6b92fd8a963576a284c8245fde31edf57fc82636299f4acaed0e69ca2134ded2e5606ed64b1de8d1a247e8c83ffa3 +DIST minikube-1.26.1-vendor.tar.gz 104831112 BLAKE2B 532856492a6b7759d3aaccf9baf9dd603b81953d8691d4df5aef8a667cde13d4035728e31ba52d440fb18661be94cf406ff101eed1a9fe1e2b86fc845a9268c5 SHA512 d9efe06a4912df67543246aae92ccfae62d7e0e25480761bbf0705d2867481d8cd89ea2441bd318e5ce0d682deaf5b81ae3a40000c270a0d6884ba07f69909f3 diff --git a/sys-cluster/minikube/minikube-1.26.1.ebuild b/sys-cluster/minikube/minikube-1.26.1.ebuild new file mode 100644 index 000000000000..029fbb4dba7b --- /dev/null +++ b/sys-cluster/minikube/minikube-1.26.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit bash-completion-r1 go-module toolchain-funcs +GIT_COMMIT=62e108c3dfdec8029a890ad6d8ef96b6461426dc +GIT_COMMIT_SHORT=${GIT_COMMIT:0:9} + +DESCRIPTION="Single Node Kubernetes Cluster" +HOMEPAGE="https://github.com/kubernetes/minikube https://kubernetes.io" + +SRC_URI="https://github.com/zmedico/minikube/archive/refs/tags/v${PV}-vendor.tar.gz -> ${P}-vendor.tar.gz" + +LICENSE="Apache-2.0 BSD BSD-2 CC-BY-4.0 CC-BY-SA-4.0 CC0-1.0 GPL-2 ISC LGPL-3 MIT MPL-2.0 WTFPL-2 ZLIB || ( LGPL-3+ GPL-2 ) || ( Apache-2.0 LGPL-3+ ) || ( Apache-2.0 CC-BY-4.0 )" +SLOT="0" +KEYWORDS="~amd64" +IUSE="hardened libvirt" + +COMMON_DEPEND="libvirt? ( app-emulation/libvirt:=[qemu] )" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" +BDEPEND="dev-go/go-bindata" + +RESTRICT+=" test" +S=${WORKDIR}/${P}-vendor + +src_configure() { + case "${ARCH}" in + amd64|arm*) + minikube_arch="${ARCH}" ;; + ppc64) + # upstream does not support big-endian ppc64 + minikube_arch="${ARCH}le" ;; + *) + die "${ARCH} is not supported" ;; + esac + minikube_target="out/minikube-linux-${minikube_arch}" +} + +src_compile() { + # out/docker-machine-driver-kvm2 target is amd64 specific + # but libvirt useflag is masked on most arches. + COMMIT=${GIT_COMMIT} \ + COMMIT_NO=${GIT_COMMIT} \ + COMMIT_SHORT=${GIT_COMMIT_SHORT} \ + CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \ + LDFLAGS="" \ + emake \ + $(usex libvirt "out/docker-machine-driver-kvm2" "") \ + "${minikube_target}" +} + +src_install() { + newbin "${minikube_target}" minikube + use libvirt && dobin out/docker-machine-driver-kvm2 + dodoc -r site CHANGELOG.md README.md + + if ! tc-is-cross-compiler; then + "${minikube_target}" completion bash > "${T}/bashcomp" || die + "${minikube_target}" completion fish > "${T}/fishcomp" || die + "${minikube_target}" completion zsh > "${T}/zshcomp" || die + + newbashcomp "${T}/bashcomp" minikube + insinto /usr/share/fish/vendor_completions.d + newins "${T}/fishcomp" minikube.fish + insinto /usr/share/zsh/site-functions + newins "${T}/zshcomp" _minikube + fi +} + +pkg_postinst() { + elog "You may want to install the following optional dependencies:" + elog " app-emulation/virtualbox or app-emulation/virtualbox-bin" + elog " sys-cluster/kubectl" +} |