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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CC65E138334 for ; Mon, 2 Jul 2018 14:46:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 75C7EE096B; Mon, 2 Jul 2018 14:46:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3F573E096B for ; Mon, 2 Jul 2018 14:46:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AFA59335C7A for ; Mon, 2 Jul 2018 14:46:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B927D359 for ; Mon, 2 Jul 2018 14:46:51 +0000 (UTC) From: "Manuel Rüger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" Message-ID: <1530542774.a8211189d255112a0a3d2086faea4270b016cbbe.mrueg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/minikube/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/minikube/minikube-0.28.0-r1.ebuild X-VCS-Directories: sys-cluster/minikube/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: a8211189d255112a0a3d2086faea4270b016cbbe X-VCS-Branch: master Date: Mon, 2 Jul 2018 14:46:51 +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-Archives-Salt: 2b3bc9dd-3d8e-4e6f-83ba-381523f395a1 X-Archives-Hash: e6984739c6ff467227060c84eb05413e commit: a8211189d255112a0a3d2086faea4270b016cbbe Author: Manuel Rüger gentoo org> AuthorDate: Mon Jul 2 14:46:14 2018 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Mon Jul 2 14:46:14 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8211189 sys-cluster/minikube: Include docker-kvm2 driver and localkube Package-Manager: Portage-2.3.41, Repoman-2.3.9 sys-cluster/minikube/minikube-0.28.0-r1.ebuild | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/sys-cluster/minikube/minikube-0.28.0-r1.ebuild b/sys-cluster/minikube/minikube-0.28.0-r1.ebuild new file mode 100644 index 00000000000..4c4e0c4d484 --- /dev/null +++ b/sys-cluster/minikube/minikube-0.28.0-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit python-any-r1 golang-build golang-vcs-snapshot + +EGO_PN="k8s.io/minikube" +ARCHIVE_URI="https://github.com/kubernetes/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Single Node Kubernetes Cluster" +HOMEPAGE="https://github.com/kubernetes/minikube https://kubernetes.io" +SRC_URI="${ARCHIVE_URI}" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="hardened" + +DEPEND="dev-go/go-bindata + ${PYTHON_DEPS}" +RDEPEND=">=sys-cluster/kubectl-1.9.4" + +RESTRICT="test" + +src_prepare() { + default + sed -i -e 's/ -s -w/ -w/' -e 's#.*GOBIN=$(GOPATH)/bin go get github.com/jteeuwen/go-bindata/...##' -e 's#$(GOPATH)/bin/go-bindata#/usr/bin/go-bindata#g' src/${EGO_PN}/Makefile || die + sed -i -e "s/get_commit(), get_tree_state(), get_version()/get_commit(), 'gitTreeState=clean', get_version()/" src/${EGO_PN}/hack/get_k8s_version.py || die +} + +src_compile() { + export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" + LDFLAGS="" GOPATH="${WORKDIR}/${P}" emake -C src/${EGO_PN} out/docker-machine-driver-kvm2 out/localkube out/minikube-linux-amd64 +} + +src_install() { + pushd src/${EGO_PN} || die + newbin out/minikube-linux-amd64 minikube + dobin out/{docker-machine-driver-kvm2,localkube} + dodoc -r docs CHANGELOG.md README.md + popd || die +}