minikube-0.16.0.ebuild 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. PYTHON_COMPAT=( python{2_7,3_4,3_5} )
  5. inherit python-any-r1 golang-build golang-vcs-snapshot
  6. EGO_PN="k8s.io/minikube/..."
  7. ARCHIVE_URI="https://github.com/kubernetes/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  8. KEYWORDS="~amd64"
  9. DESCRIPTION="Single Node Kubernetes Cluster"
  10. HOMEPAGE="https://github.com/kubernetes/minikube https://kubernetes.io"
  11. SRC_URI="${ARCHIVE_URI}"
  12. LICENSE="Apache-2.0"
  13. SLOT="0"
  14. IUSE=""
  15. DEPEND="dev-go/go-bindata
  16. ${PYTHON_DEPS}"
  17. RDEPEND=">=sys-cluster/kubectl-1.5.2"
  18. RESTRICT="test"
  19. src_prepare() {
  20. default
  21. 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
  22. 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
  23. }
  24. src_compile() {
  25. LDFLAGS="" GOPATH="${WORKDIR}/${P}" emake -C src/${EGO_PN%/*}
  26. }
  27. src_install() {
  28. pushd src/${EGO_PN%/*} || die
  29. dobin out/minikube out/localkube
  30. dodoc CHANGELOG.md DRIVERS.md README.md ROADMAP.md
  31. popd || die
  32. }