Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/minikube/
Date: Sat, 25 Jun 2022 15:58:18
Message-Id: 1656172678.fca106fcafdd4891fc61c3a6c38e46ecac8020e1.zmedico@gentoo
1 commit: fca106fcafdd4891fc61c3a6c38e46ecac8020e1
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 25 15:57:53 2022 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 25 15:57:58 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fca106fc
7
8 sys-cluster/minikube: add 1.26.0
9
10 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
11
12 sys-cluster/minikube/Manifest | 1 +
13 sys-cluster/minikube/minikube-1.26.0.ebuild | 75 +++++++++++++++++++++++++++++
14 2 files changed, 76 insertions(+)
15
16 diff --git a/sys-cluster/minikube/Manifest b/sys-cluster/minikube/Manifest
17 index 149915582a0c..96fb00dfdc24 100644
18 --- a/sys-cluster/minikube/Manifest
19 +++ b/sys-cluster/minikube/Manifest
20 @@ -1,2 +1,3 @@
21 DIST minikube-1.25.1-vendor.tar.gz 104698545 BLAKE2B 2402594f1a876e16f36f4341136b71a84a8848c90d61789c85b1b962848e029363ec1efa051b0a08a28d38e82ee5fd52ceb0f2836078102a22de0d9cff4cc041 SHA512 661cd0261535728a119d5a0fa5f15c535092ae870f094e85dd03cbb5449ccef89c64dacec02373a7097f0a81bf2c23a91254f2257c09db54cb48249a785d06a5
22 DIST minikube-1.25.2-vendor.tar.gz 103616191 BLAKE2B 6707011b208bf96670649192aef0100bee5780bc3321b41eddc12a62b2d4acbc566a8cdf557dae4a84b501c67b31ac35c77effb808bbc3ca56d65e7727977141 SHA512 2e964be6f0708a41ae1aaf1d47eabad8acf13ffafc5ae56cfd66f81ef94673d9661654c807bf2c8790ce5336f95f9fce377b82905e229e4d3534ed5d2622b5da
23 +DIST minikube-1.26.0-vendor.tar.gz 104726099 BLAKE2B b8dce4c567e370219c568e9b8298dc7d9b9e3b53330d644e943876683c19a80dbb77a938e3428f8662ac55f2359c473920d081c6ac8573ea79e30989ea8dcfb2 SHA512 76b6bc5a004a29864de6a0574a6abed18de6b92fd8a963576a284c8245fde31edf57fc82636299f4acaed0e69ca2134ded2e5606ed64b1de8d1a247e8c83ffa3
24
25 diff --git a/sys-cluster/minikube/minikube-1.26.0.ebuild b/sys-cluster/minikube/minikube-1.26.0.ebuild
26 new file mode 100644
27 index 000000000000..e71ab0934cc9
28 --- /dev/null
29 +++ b/sys-cluster/minikube/minikube-1.26.0.ebuild
30 @@ -0,0 +1,75 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +inherit bash-completion-r1 go-module toolchain-funcs
36 +GIT_COMMIT=f4b412861bb746be73053c9f6d2895f12cf78565
37 +GIT_COMMIT_SHORT=${GIT_COMMIT:0:9}
38 +
39 +DESCRIPTION="Single Node Kubernetes Cluster"
40 +HOMEPAGE="https://github.com/kubernetes/minikube https://kubernetes.io"
41 +
42 +SRC_URI="https://github.com/zmedico/minikube/archive/refs/tags/v${PV}-vendor.tar.gz -> ${P}-vendor.tar.gz"
43 +
44 +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 )"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +IUSE="hardened libvirt"
48 +
49 +COMMON_DEPEND="libvirt? ( app-emulation/libvirt:=[qemu] )"
50 +DEPEND="${COMMON_DEPEND}"
51 +RDEPEND="${COMMON_DEPEND}"
52 +BDEPEND="dev-go/go-bindata"
53 +
54 +RESTRICT+=" test"
55 +S=${WORKDIR}/${P}-vendor
56 +
57 +src_configure() {
58 + case "${ARCH}" in
59 + amd64|arm*)
60 + minikube_arch="${ARCH}" ;;
61 + ppc64)
62 + # upstream does not support big-endian ppc64
63 + minikube_arch="${ARCH}le" ;;
64 + *)
65 + die "${ARCH} is not supported" ;;
66 + esac
67 + minikube_target="out/minikube-linux-${minikube_arch}"
68 +}
69 +
70 +src_compile() {
71 + # out/docker-machine-driver-kvm2 target is amd64 specific
72 + # but libvirt useflag is masked on most arches.
73 + COMMIT=${GIT_COMMIT} \
74 + COMMIT_NO=${GIT_COMMIT} \
75 + COMMIT_SHORT=${GIT_COMMIT_SHORT} \
76 + CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \
77 + LDFLAGS="" \
78 + emake \
79 + $(usex libvirt "out/docker-machine-driver-kvm2" "") \
80 + "${minikube_target}"
81 +}
82 +
83 +src_install() {
84 + newbin "${minikube_target}" minikube
85 + use libvirt && dobin out/docker-machine-driver-kvm2
86 + dodoc -r site CHANGELOG.md README.md
87 +
88 + if ! tc-is-cross-compiler; then
89 + "${minikube_target}" completion bash > "${T}/bashcomp" || die
90 + "${minikube_target}" completion fish > "${T}/fishcomp" || die
91 + "${minikube_target}" completion zsh > "${T}/zshcomp" || die
92 +
93 + newbashcomp "${T}/bashcomp" minikube
94 + insinto /usr/share/fish/vendor_completions.d
95 + newins "${T}/fishcomp" minikube.fish
96 + insinto /usr/share/zsh/site-functions
97 + newins "${T}/zshcomp" _minikube
98 + fi
99 +}
100 +
101 +pkg_postinst() {
102 + elog "You may want to install the following optional dependencies:"
103 + elog " app-emulation/virtualbox or app-emulation/virtualbox-bin"
104 + elog " sys-cluster/kubectl"
105 +}