mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
sys-cluster/minikube: add 1.37.0
Closes: https://bugs.gentoo.org/965822 Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
parent
5aeef4adcd
commit
c31a4c7536
@ -2,3 +2,5 @@ DIST minikube-1.34.0-deps.tar.xz 10740660 BLAKE2B 70bc9d0023f874314e334d9e90255f
|
||||
DIST minikube-1.34.0.tar.gz 88461867 BLAKE2B 13534d330a17c5f542053c90780c97de1821e3388ebaf80512116f7bbdc6f3cd9068edc8f157a3f82364b589fc5c6600a2ab15a9fbcd973b879ed500562e26e9 SHA512 bc70f533bf7d0a9cf7eb1a09d71b05d6eacddf954d328e3f2a8221f5e175be95d9d260a61d901d85e777af9939a8a02ccf81e74700453bddd15e7b3f59e50b55
|
||||
DIST minikube-1.35.0-deps.tar.xz 11771972 BLAKE2B 9e20c273dc7773038a1c012d629d1d4738888d0274b6c6ad1e92c30a714baec8ce8cb6af5ce4cecb94be65577e5db1b7880ffe1b61f1aa78aaef54b19e1e0de5 SHA512 37561c3919721f6bb0de53f3a5e9edfcff30285d3431a4ef54d7cfd4ece38420143c5b97d24939ffe51dccb81b674698cc1e0fe72d66b33a642e288552082e73
|
||||
DIST minikube-1.35.0.tar.gz 104887585 BLAKE2B 4d4f7e5ef1046cc8a1ea88558182f948ce7aa7783eeadc4efb2e27ec4c0e6807c2ae03d9526b163e755a79b02e79cc2871407b96192d932269ae8eba5c9c0af9 SHA512 ba016e4c74cf9db0acaeb45716ecfd9a1d8f7b730667a556e8b812bd5aa52a9b659ec0e5aff6a977172d833e25a543968658ae06e34b71d9576708fc16a70a40
|
||||
DIST minikube-1.37.0-deps.tar.xz 8843024 BLAKE2B 465eea55caa9acc07c647beba2f00842767136ab00a18b7aba813e2991e6c5ad2f929bfc4cb65910236e686056c60ea5eec6c9aed390c77bcd00c513a752dfdc SHA512 d748be33d3ede1a6f68115c58290dbeed5f7a93d1ec232f57f7ad0425eaac0773a214f93f44bec72ce4f4425e23276576d4bf3785e1d59ff8a8aa57849b31b6a
|
||||
DIST minikube-1.37.0.tar.gz 88912353 BLAKE2B 2c849fedd98f5e0f3036968c7fa367ff8ba6e8c14dcb11b11de2e2b574b36f624d4ddb164d983312ddd3498b192e28ea324282f0a3eae41063bf9ee113bbff84 SHA512 c6a30526230ff2fd26380727794a1db390762f5326cda30a2339065ad5b53326edcba887b39a09113fd8a9717018add3bf0f350796c9e80933a35325b5a74275
|
||||
|
||||
85
sys-cluster/minikube/minikube-1.37.0.ebuild
Normal file
85
sys-cluster/minikube/minikube-1.37.0.ebuild
Normal file
@ -0,0 +1,85 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit bash-completion-r1 go-module toolchain-funcs
|
||||
GIT_COMMIT=65318f4cfff9c12cc87ec9eb8f4cdd57b25047f3
|
||||
GIT_COMMIT_SHORT=${GIT_COMMIT:0:9}
|
||||
|
||||
DESCRIPTION="Local kubernetes clusters for learning and development"
|
||||
HOMEPAGE="https://github.com/kubernetes/minikube https://kubernetes.io"
|
||||
|
||||
SRC_URI="https://github.com/kubernetes/minikube/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
|
||||
|
||||
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 ~arm64"
|
||||
IUSE="hardened libvirt"
|
||||
|
||||
COMMON_DEPEND="libvirt? ( app-emulation/libvirt:=[qemu] )"
|
||||
DEPEND="${COMMON_DEPEND}"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
BDEPEND="dev-go/go-bindata"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
ln -sv ../vendor ./ || die
|
||||
default
|
||||
sed -e '/export GOTOOLCHAIN/d' -i Makefile || die
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user