Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/cri-tools/
Date: Fri, 27 Sep 2019 13:58:16
Message-Id: 1569592679.01820f7b217964d4d23d13430bf55fb53cb580f7.mrueg@gentoo
1 commit: 01820f7b217964d4d23d13430bf55fb53cb580f7
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 27 13:57:39 2019 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 27 13:57:59 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01820f7b
7
8 app-emulation/cri-tools: Install shell completions
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.16
11 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
12
13 app-emulation/cri-tools/cri-tools-1.16.1.ebuild | 9 ++++++++-
14 1 file changed, 8 insertions(+), 1 deletion(-)
15
16 diff --git a/app-emulation/cri-tools/cri-tools-1.16.1.ebuild b/app-emulation/cri-tools/cri-tools-1.16.1.ebuild
17 index a298fcbf5cb..2ffbd049421 100644
18 --- a/app-emulation/cri-tools/cri-tools-1.16.1.ebuild
19 +++ b/app-emulation/cri-tools/cri-tools-1.16.1.ebuild
20 @@ -2,7 +2,7 @@
21 # Distributed under the terms of the GNU General Public License v2
22
23 EAPI=6
24 -inherit golang-build golang-vcs-snapshot
25 +inherit golang-build golang-vcs-snapshot bash-completion-r1
26
27 EGO_PN="github.com/kubernetes-sigs/cri-tools"
28 MY_PV="v${PV/_beta/-beta.}"
29 @@ -21,9 +21,16 @@ RESTRICT="test"
30 src_compile() {
31 GOPATH="${S}" go test -c -v -ldflags="-X ${EGO_PN}/pkg/version.Version=${MY_PV}" -o bin/critest ${EGO_PN}/cmd/critest || die
32 GOPATH="${S}" go build -v -ldflags="-X ${EGO_PN}/pkg/version.Version=${MY_PV}" -o bin/crictl ${EGO_PN}/cmd/crictl || die
33 + bin/crictl completion bash > ${PN}.bash || die
34 + bin/crictl completion zsh > ${PN}.zsh || die
35 }
36
37 src_install() {
38 dobin bin/*
39 +
40 + newbashcomp ${PN}.bash ${PN}
41 + insinto /usr/share/zsh/site-functions
42 + newins ${PN}.zsh _${PN}
43 +
44 dodoc -r src/${EGO_PN}/{docs,{README,RELEASE,CHANGELOG,CONTRIBUTING}.md}
45 }