diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-11-07 13:42:39 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-11-07 13:42:39 +0100 |
commit | 4cc5216765a12c45a3d45a2ec71b1265dcd72230 (patch) | |
tree | 88a7c3e2d846b7daa6711c0733be12a66ef472da /app-emulation/cri-tools/cri-tools-1.12.0.ebuild | |
parent | app-emulation/cri-tools: Add 1.0.0_alpha1 for kubernetes-1.9.x (diff) | |
download | gentoo-4cc5216765a12c45a3d45a2ec71b1265dcd72230.tar.gz gentoo-4cc5216765a12c45a3d45a2ec71b1265dcd72230.tar.bz2 gentoo-4cc5216765a12c45a3d45a2ec71b1265dcd72230.zip |
app-emulation/cri-tools: Version bump to 1.12.0
Signed-off-by: Manuel Rüger <mrueg@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'app-emulation/cri-tools/cri-tools-1.12.0.ebuild')
-rw-r--r-- | app-emulation/cri-tools/cri-tools-1.12.0.ebuild | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app-emulation/cri-tools/cri-tools-1.12.0.ebuild b/app-emulation/cri-tools/cri-tools-1.12.0.ebuild new file mode 100644 index 000000000000..a298fcbf5cbf --- /dev/null +++ b/app-emulation/cri-tools/cri-tools-1.12.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 2018 Sony Interactive Entertainment Inc. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit golang-build golang-vcs-snapshot + +EGO_PN="github.com/kubernetes-sigs/cri-tools" +MY_PV="v${PV/_beta/-beta.}" +ARCHIVE_URI="https://${EGO_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="CLI and validation tools for Kubelet Container Runtime (CRI)" +HOMEPAGE="https://github.com/kubernetes-sigs/cri-tools" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +RESTRICT="test" + +src_compile() { + GOPATH="${S}" go test -c -v -ldflags="-X ${EGO_PN}/pkg/version.Version=${MY_PV}" -o bin/critest ${EGO_PN}/cmd/critest || die + GOPATH="${S}" go build -v -ldflags="-X ${EGO_PN}/pkg/version.Version=${MY_PV}" -o bin/crictl ${EGO_PN}/cmd/crictl || die +} + +src_install() { + dobin bin/* + dodoc -r src/${EGO_PN}/{docs,{README,RELEASE,CHANGELOG,CONTRIBUTING}.md} +} |