summaryrefslogtreecommitdiffstats
path: root/app-admin/openshift-client-tools/openshift-client-tools-1.3.2.ebuild
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /app-admin/openshift-client-tools/openshift-client-tools-1.3.2.ebuild
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'app-admin/openshift-client-tools/openshift-client-tools-1.3.2.ebuild')
-rw-r--r--app-admin/openshift-client-tools/openshift-client-tools-1.3.2.ebuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/app-admin/openshift-client-tools/openshift-client-tools-1.3.2.ebuild b/app-admin/openshift-client-tools/openshift-client-tools-1.3.2.ebuild
new file mode 100644
index 0000000..f755dd4
--- /dev/null
+++ b/app-admin/openshift-client-tools/openshift-client-tools-1.3.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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"
+ emake all OS_GIT_MINOR="" OS_GIT_MAJOR="" OS_GIT_VERSION="v${PV}" WHAT="cmd/oc ${MY_TAGS}"
+}
+
+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
+} \ No newline at end of file