sys-cluster/openshift-clients: verion update to 4.17.0.202409111134

This commit is contained in:
2024-11-01 13:16:34 +03:00
parent 34bdf43f71
commit a4f0ae3e2b
2 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,40 @@
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit bash-completion-r1 go-module
OS_VERSION=${PV//_p/-}
BN=oc
DESCRIPTION="The OpenShift Command Line, part of OKD"
HOMEPAGE="https://www.okd.io/"
SRC_URI="https://github.com/openshift/oc/archive/refs/tags/${PN}-${OS_VERSION}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~arm64"
IUSE="hardened"
BDEPEND=">=dev-lang/go-1.19
virtual/krb5
app-crypt/gpgme"
RESTRICT+=" test"
S="${WORKDIR}/${BN}-${PN}-${OS_VERSION}"
src_compile() {
CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" \
emake OS_GIT_VERSION="v${OS_VERSION}" OS_GIT_COMMIT='' OS_GIT_TREE_STATE=''
}
src_install() {
./${BN} completion bash > ${BN}.bash || die
./${BN} completion zsh > ${BN}.zsh || die
newbashcomp ${BN}.bash ${BN}
insinto /usr/share/zsh/site-functions
newins ${BN}.zsh _${BN}
./genman docs/generated oc
doman docs/generated/*
dobin ${BN}
}