diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-07-02 16:46:14 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-07-02 16:46:14 +0200 |
commit | a8211189d255112a0a3d2086faea4270b016cbbe (patch) | |
tree | b65ca08cbee1c01170273d72d5e1d2a289f4ee7e /sys-cluster/minikube | |
parent | app-crypt/openpgp-keys-gentoo-release: Bump to 20180702 (diff) | |
download | gentoo-a8211189d255112a0a3d2086faea4270b016cbbe.tar.gz gentoo-a8211189d255112a0a3d2086faea4270b016cbbe.tar.bz2 gentoo-a8211189d255112a0a3d2086faea4270b016cbbe.zip |
sys-cluster/minikube: Include docker-kvm2 driver and localkube
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'sys-cluster/minikube')
-rw-r--r-- | sys-cluster/minikube/minikube-0.28.0-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
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 000000000000..4c4e0c4d484f --- /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 +} |