add app-admin/openshift-client-tools ebuild
This commit is contained in:
parent
4715663cae
commit
ad94fbff7c
|
@ -0,0 +1,2 @@
|
||||||
|
DIST openshift-client-tools-3.7.0.tar.gz 103209189 BLAKE2B d3be7d636ef7a9d04a0f36f19121dfb8b058cb7fb4455ebc5feb49238abc849aeb89ac95fac0a32f151d1d8b88634f98de92c7ac7b10c8662bbbb52bbd8c00bf SHA512 6cd4e97a26648114a273243ab6e4d3f5024ccccf4c1ba339ff2b6b3fcaf1dac35f971f4da5462316c6d94eab5bd8baff694bd7af132ced5462c3349b6b3c70f8
|
||||||
|
EBUILD openshift-client-tools-3.7.0.ebuild 1122 BLAKE2B 1e94f045b55f5cbbd7a24914478842aa8096b7733d49458e332dc8a8a845a7b24a5ac201e86a82b7006cb0ad9567861fa4887f6c970e24429f5f6a7d14592d74 SHA512 347aec397817e502127fcf4be184d6276e3d6943b3ad90f0e8829e373a95ff83915b6b7a1359171a97ddf8edb23aad35f17e24b6f8ced248768e4cc347f9541c
|
|
@ -0,0 +1,47 @@
|
||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit bash-completion-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Enterprise Kubernetes for Developers (Client Tools)"
|
||||||
|
HOMEPAGE="https://www.openshift.org"
|
||||||
|
SRC_URI="https://github.com/openshift/origin/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="bash-completion kerberos"
|
||||||
|
|
||||||
|
DEPEND="dev-lang/go
|
||||||
|
kerberos? ( app-crypt/mit-krb5 )"
|
||||||
|
RDEPEND="bash-completion? ( >=app-shells/bash-completion-2.3-r1 )"
|
||||||
|
|
||||||
|
S="${WORKDIR}/origin-${PV}"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
use kerberos && MY_TAGS="-tags=gssapi"
|
||||||
|
|
||||||
|
export OS_GIT_CATALOG_VERSION="v${PV}"
|
||||||
|
export OS_GIT_MINOR=""
|
||||||
|
export OS_GIT_MAJOR=""
|
||||||
|
export OS_GIT_VERSION="v${PV}"
|
||||||
|
|
||||||
|
emake all WHAT="cmd/oc ${MY_TAGS} -v"
|
||||||
|
|
||||||
|
emake all WHAT="tools/gendocs -v"
|
||||||
|
emake all WHAT="tools/genman -v"
|
||||||
|
hack/generate-docs.sh || exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
case "${ARCH}" in
|
||||||
|
x86) MY_ARCH="386" ;;
|
||||||
|
*) MY_ARCH="${ARCH}" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
dobin "_output/local/bin/linux/${MY_ARCH}/oc"
|
||||||
|
doman docs/man/man1/oc*
|
||||||
|
use bash-completion && dobashcomp contrib/completions/bash/oc
|
||||||
|
}
|
Loading…
Reference in New Issue