Diff cri-tools-1.32.0 with a cri-tools-1.33.0

/usr/portage/app-containers/cri-tools/cri-tools-1.33.0.ebuild 2026-02-19 11:18:07.321315011 +0300
1
# Copyright 2021-2025 Gentoo Authors
1
# Copyright 2021-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
inherit bash-completion-r1 go-module
6
inherit go-env go-module shell-completion sysroot
7 7

  
8 8
DESCRIPTION="CLI and validation tools for Kubelet Container Runtime (CRI)"
9 9
HOMEPAGE="https://github.com/kubernetes-sigs/cri-tools"
......
17 17
DOCS=( docs {README,RELEASE,CHANGELOG,CONTRIBUTING}.md )
18 18

  
19 19
src_compile() {
20
	local GOOS=$(go-env_goos)
21
	CRICTL="build/bin/${GOOS}/${GOARCH}/crictl"
20 22
	emake VERSION="${PV}"
21
	find build/ -name crictl -exec cp {} build/bin/ \; || die
22
	./build/bin/crictl completion bash > "crictl.bash" || die
23
	./build/bin/crictl completion zsh > "crictl.zsh" || die
23

  
24
	sysroot_try_run_prefixed "${CRICTL}" completion bash > crictl.bash || die
25
	sysroot_try_run_prefixed "${CRICTL}" completion zsh > crictl.zsh || die
24 26
}
25 27

  
26 28
src_install() {
27 29
	einstalldocs
30
	dobin "${CRICTL}"
28 31

  
29
	dobin ./build/bin/crictl
30
	newbashcomp crictl.bash crictl
31
	insinto /usr/share/zsh/site-functions
32
	newins crictl.zsh _crictl
32
	[[ -s crictl.bash ]] && newbashcomp crictl.bash crictl
33
	[[ -s crictl.zsh ]] && newzshcomp crictl.zsh _crictl
33 34
}
Thank you!