From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E0D4A158020 for ; Tue, 18 Oct 2022 01:52:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C55C5E0928; Tue, 18 Oct 2022 01:52:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B07EFE0928 for ; Tue, 18 Oct 2022 01:52:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9E7093411A4 for ; Tue, 18 Oct 2022 01:52:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0DE6B61D for ; Tue, 18 Oct 2022 01:52:43 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1666057950.7f9fadb5bf5d0e7f1a50e01ceefa828164e88a27.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/minikube/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/minikube/Manifest sys-cluster/minikube/minikube-1.27.1.ebuild X-VCS-Directories: sys-cluster/minikube/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 7f9fadb5bf5d0e7f1a50e01ceefa828164e88a27 X-VCS-Branch: master Date: Tue, 18 Oct 2022 01:52:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ae08f695-4dbd-45f4-b859-95d6616152e4 X-Archives-Hash: 41ead307d3b13f21f19731b41cfe990f commit: 7f9fadb5bf5d0e7f1a50e01ceefa828164e88a27 Author: Zac Medico gentoo org> AuthorDate: Tue Oct 18 01:50:48 2022 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Oct 18 01:52:30 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f9fadb5 sys-cluster/minikube: add 1.27.1 Signed-off-by: Zac Medico gentoo.org> sys-cluster/minikube/Manifest | 1 + sys-cluster/minikube/minikube-1.27.1.ebuild | 75 +++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/sys-cluster/minikube/Manifest b/sys-cluster/minikube/Manifest index ce3ab3473730..b140ba04e204 100644 --- a/sys-cluster/minikube/Manifest +++ b/sys-cluster/minikube/Manifest @@ -1 +1,2 @@ DIST minikube-1.26.1-vendor.tar.gz 104831112 BLAKE2B 532856492a6b7759d3aaccf9baf9dd603b81953d8691d4df5aef8a667cde13d4035728e31ba52d440fb18661be94cf406ff101eed1a9fe1e2b86fc845a9268c5 SHA512 d9efe06a4912df67543246aae92ccfae62d7e0e25480761bbf0705d2867481d8cd89ea2441bd318e5ce0d682deaf5b81ae3a40000c270a0d6884ba07f69909f3 +DIST minikube-1.27.1-vendor.tar.gz 105040688 BLAKE2B 7694ad7306b7bb9004f9fb766a6c1dea57970318433bc5c0886be9c261299cce5dd590188009ef2e19060badf9755f155f336e8224670040faa873802deffc02 SHA512 296ec071b9a906c17bbfd9c53a42d10106e20f71d5c16197b44fcb9ba8f4c544945e0eb21a06bc7bde9f6eeaad5a5a81be96055505acec9effb954df14ff5837 diff --git a/sys-cluster/minikube/minikube-1.27.1.ebuild b/sys-cluster/minikube/minikube-1.27.1.ebuild new file mode 100644 index 000000000000..bf5c38fc7857 --- /dev/null +++ b/sys-cluster/minikube/minikube-1.27.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=fe869b5d4da11ba318eb84a3ac00f336411de7ba +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" +}