sys-cluster/kubectl: Version bump to 1.17.0
authorManuel Rüger <mrueg@gentoo.org>
Tue, 17 Dec 2019 15:47:35 +0000 (16:47 +0100)
committerManuel Rüger <mrueg@gentoo.org>
Tue, 17 Dec 2019 15:47:35 +0000 (16:47 +0100)
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Manuel Rüger <mrueg@gentoo.org>
sys-cluster/kubectl/Manifest
sys-cluster/kubectl/kubectl-1.17.0.ebuild [new file with mode: 0644]

index 3f054485fb80cf5f87a092a27b26834f8a4215bb..9233a8d534bfd9e1fcbb29c921c614afe7154ada 100644 (file)
@@ -2,3 +2,4 @@ DIST kubernetes-1.14.10.tar.gz 28106613 BLAKE2B 7ccb89c1390299a224a766a8004b4bfc
 DIST kubernetes-1.14.9.tar.gz 28099090 BLAKE2B 418e00594eb5d06c9e508054c95ac12e00bc431344c8eef7a8e016729a75f811d430dd00de1f6434ac79d6f5c784758edd062135066cd02c9ab55ba04be416b5 SHA512 61ffb34d0d3ed7543539b9c7339db1a04aa86a396f35a2fe214d64d772488146db8e1ee36a51efc629d6f1378745ec60c2f94051026b30a9b72604080f01b6f6
 DIST kubernetes-1.15.7.tar.gz 26671514 BLAKE2B 7ef6f92ea90fd8f45f250dfa4e081a171ad76c72f4eae4b4e901cb8335259779b7546ac31f97eb2a45daf85f49fdd4408577b96a1e0fd750a5509eb0446bfa8e SHA512 a0fb9dca9b6993ac828427589f4e03e9431b97c2ce153cc00a6e5b669dced05bfe236f2ecb85b623359b4e910c662dc473cd3226dfc4e85bd2551fbabbdfc836
 DIST kubernetes-1.16.4.tar.gz 31220590 BLAKE2B 3ee3ab50f2a10c419b99f7f25072ad7b129741829d241ad788b343e5bd30ec3c9b07053755a2ec650227c0d26ae34f3d1d101cfd50ed6b16b3415a8233c8e4c0 SHA512 84768ffe3d4147082b3b151c7787498a78ee0e6aee537f5fb21c8e0e30e72b222d68942389063e8fc2a549aec423fc84a9696b3b70b9ae746a2b87a2f47297de
+DIST kubernetes-1.17.0.tar.gz 31727453 BLAKE2B 692937c3153338bc290768eda1d3dab0cb5afdc329b795831d5e144eb7a28d40a92403ab82361d010c36e2b31d8fa1eb0047762258194d34f10841107de96cd9 SHA512 906cdae9bf9ca04cd8b1ce869fa7e7af575127ccf1616b070a29d1a32861f96672c8f55e955942a86722d64a0a269cecf52707f6e5b1d853badfe28f10e1628f
diff --git a/sys-cluster/kubectl/kubectl-1.17.0.ebuild b/sys-cluster/kubectl/kubectl-1.17.0.ebuild
new file mode 100644 (file)
index 0000000..7f668c0
--- /dev/null
@@ -0,0 +1,47 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit golang-build golang-vcs-snapshot bash-completion-r1
+
+EGO_PN="k8s.io/kubernetes"
+ARCHIVE_URI="https://github.com/kubernetes/kubernetes/archive/v${PV}.tar.gz -> kubernetes-${PV}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="CLI to run commands against Kubernetes clusters"
+HOMEPAGE="https://github.com/kubernetes/kubernetes https://kubernetes.io"
+SRC_URI="${ARCHIVE_URI}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND=">=dev-lang/go-1.13
+       dev-go/go-bindata"
+
+RESTRICT="test"
+
+src_prepare() {
+       default
+       sed -i -e "/vendor\/github.com\/jteeuwen\/go-bindata\/go-bindata/d" -e "s/-s -w/-w/" src/${EGO_PN}/hack/lib/golang.sh || die
+       sed -i -e "/export PATH/d" src/${EGO_PN}/hack/generate-bindata.sh || die
+}
+
+src_compile() {
+       LDFLAGS="" GOPATH="${WORKDIR}/${P}" emake -j1 -C src/${EGO_PN} WHAT=cmd/${PN} GOFLAGS=-v
+       pushd src/${EGO_PN} || die
+       _output/bin/${PN} completion bash > ${PN}.bash || die
+       _output/bin/${PN} completion zsh > ${PN}.zsh || die
+       popd || die
+}
+
+src_install() {
+       pushd src/${EGO_PN} || die
+       dobin _output/bin/${PN}
+
+       newbashcomp ${PN}.bash ${PN}
+       insinto /usr/share/zsh/site-functions
+       newins ${PN}.zsh _${PN}
+
+       popd || die
+}