commit: e77127908febc4a7dbb273a275de3a810352d7fc Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> AuthorDate: Mon Feb 20 16:10:53 2017 +0000 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> CommitDate: Mon Feb 20 16:10:53 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7712790
sys-cluster/minikube: Initial version Package-Manager: Portage-2.3.3, Repoman-2.3.1 sys-cluster/minikube/Manifest | 1 + sys-cluster/minikube/metadata.xml | 8 ++++++ sys-cluster/minikube/minikube-0.16.0.ebuild | 43 +++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) diff --git a/sys-cluster/minikube/Manifest b/sys-cluster/minikube/Manifest new file mode 100644 index 0000000000..43949cd313 --- /dev/null +++ b/sys-cluster/minikube/Manifest @@ -0,0 +1 @@ +DIST minikube-0.16.0.tar.gz 16133596 SHA256 ea5034287eaccf6ae357a6679fb830fe28d14e2512f4008972e0404b248282ac SHA512 0e3aea16cef775b29a22544d15e760eeb5cc3cf91e96104fe1b1682e6cbe5bdcf30b7ebefc9456b31f768ec26d3e16f290921974e147a730d144a104dc052548 WHIRLPOOL 370e8ade300f6c34bdb6d697ed3c1e21de3ffed89d78597bc97c8fbccf000308f600a9f5982897805ee3ac27a11e77625fb9e29fd0f752f29f2faef2e72af320 diff --git a/sys-cluster/minikube/metadata.xml b/sys-cluster/minikube/metadata.xml new file mode 100644 index 0000000000..97df2a0097 --- /dev/null +++ b/sys-cluster/minikube/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mr...@gentoo.org</email> + <name>Manuel Rüger</name> + </maintainer> +</pkgmetadata> diff --git a/sys-cluster/minikube/minikube-0.16.0.ebuild b/sys-cluster/minikube/minikube-0.16.0.ebuild new file mode 100644 index 0000000000..ca8f353282 --- /dev/null +++ b/sys-cluster/minikube/minikube-0.16.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +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="" + +DEPEND="dev-go/go-bindata + ${PYTHON_DEPS}" +RDEPEND=">=sys-cluster/kubectl-1.5.2" + +RESTRICT="test" + +src_prepare() { + default + sed -i -e 's#$(GOPATH)/bin/go-bindata#go-bindata#' -e 's#GOBIN=$(GOPATH)/bin go get github.com/jteeuwen/go-bindata/...##' src/${EGO_PN%/*}/Makefile || die + sed -i -e "s/get_rev(), get_version(), get_tree_state()/get_rev(), get_version(), 'gitTreeState=clean'/" src/${EGO_PN%/*}/hack/get_k8s_version.py || die +} + +src_compile() { + LDFLAGS="" GOPATH="${WORKDIR}/${P}" emake -C src/${EGO_PN%/*} +} + +src_install() { + pushd src/${EGO_PN%/*} || die + dobin out/minikube out/localkube + dodoc CHANGELOG.md DRIVERS.md README.md ROADMAP.md + popd || die +}