summaryrefslogtreecommitdiff
blob: 3242c555827537307545bef78dc4a831e7bacdcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit golang-vcs-snapshot

GIT_COMMIT="04850e14d38a69a38c16c800e237b1108056513e"

KEYWORDS="~amd64"
DESCRIPTION="Istio configuration command line utility"
EGO_PN="istio.io/istio"
HOMEPAGE="https://github.com/istio/istio"
MY_PV=${PV/_/-}
SRC_URI="https://github.com/istio/istio/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""

RESTRICT="test"

src_compile() {
	pushd "src/${EGO_PN}" || die
	BUILDINFO="istio.io/istio/pkg/version.buildVersion=${PV}
		istio.io/istio/pkg/version.buildGitRevision=${GIT_COMMIT}
		istio.io/istio/pkg/version.buildStatus=Clean" \
	VERBOSE=1 GOPATH="${WORKDIR}/${P}" TAG=${PV} emake istioctl
	popd || die
}

src_install() {
	dobin out/linux_amd64/release/${PN}
	pushd "src/${EGO_PN}" || die
	dodoc README.md
}