1 |
commit: a8211189d255112a0a3d2086faea4270b016cbbe |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 2 14:46:14 2018 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 2 14:46:14 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8211189 |
7 |
|
8 |
sys-cluster/minikube: Include docker-kvm2 driver and localkube |
9 |
|
10 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
11 |
|
12 |
sys-cluster/minikube/minikube-0.28.0-r1.ebuild | 44 ++++++++++++++++++++++++++ |
13 |
1 file changed, 44 insertions(+) |
14 |
|
15 |
diff --git a/sys-cluster/minikube/minikube-0.28.0-r1.ebuild b/sys-cluster/minikube/minikube-0.28.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..4c4e0c4d484 |
18 |
--- /dev/null |
19 |
+++ b/sys-cluster/minikube/minikube-0.28.0-r1.ebuild |
20 |
@@ -0,0 +1,44 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
26 |
+ |
27 |
+inherit python-any-r1 golang-build golang-vcs-snapshot |
28 |
+ |
29 |
+EGO_PN="k8s.io/minikube" |
30 |
+ARCHIVE_URI="https://github.com/kubernetes/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
31 |
+KEYWORDS="~amd64" |
32 |
+ |
33 |
+DESCRIPTION="Single Node Kubernetes Cluster" |
34 |
+HOMEPAGE="https://github.com/kubernetes/minikube https://kubernetes.io" |
35 |
+SRC_URI="${ARCHIVE_URI}" |
36 |
+ |
37 |
+LICENSE="Apache-2.0" |
38 |
+SLOT="0" |
39 |
+IUSE="hardened" |
40 |
+ |
41 |
+DEPEND="dev-go/go-bindata |
42 |
+ ${PYTHON_DEPS}" |
43 |
+RDEPEND=">=sys-cluster/kubectl-1.9.4" |
44 |
+ |
45 |
+RESTRICT="test" |
46 |
+ |
47 |
+src_prepare() { |
48 |
+ default |
49 |
+ 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 |
50 |
+ 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 |
51 |
+} |
52 |
+ |
53 |
+src_compile() { |
54 |
+ export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" |
55 |
+ LDFLAGS="" GOPATH="${WORKDIR}/${P}" emake -C src/${EGO_PN} out/docker-machine-driver-kvm2 out/localkube out/minikube-linux-amd64 |
56 |
+} |
57 |
+ |
58 |
+src_install() { |
59 |
+ pushd src/${EGO_PN} || die |
60 |
+ newbin out/minikube-linux-amd64 minikube |
61 |
+ dobin out/{docker-machine-driver-kvm2,localkube} |
62 |
+ dodoc -r docs CHANGELOG.md README.md |
63 |
+ popd || die |
64 |
+} |