diff options
Diffstat (limited to 'app-admin/openshift-source-to-image')
-rw-r--r-- | app-admin/openshift-source-to-image/Manifest | 2 | ||||
-rw-r--r-- | app-admin/openshift-source-to-image/openshift-source-to-image-1.1.8.ebuild | 38 |
2 files changed, 40 insertions, 0 deletions
diff --git a/app-admin/openshift-source-to-image/Manifest b/app-admin/openshift-source-to-image/Manifest new file mode 100644 index 0000000..1fb8d35 --- /dev/null +++ b/app-admin/openshift-source-to-image/Manifest @@ -0,0 +1,2 @@ +DIST openshift-source-to-image-1.1.8.tar.gz 1724043 SHA256 8c49faf71bd55cf49f69614b12d47fdbd0a024cdc3fa72fcdcb1c7ed98c22fc2 SHA512 a38111fad26578a27efcefb1fe38a85635a29236eed65cb18c9f6c8a880ecca121e98b8f1613b4974363204ad0dcfb0590289bad349168743c287cdcf5601a95 WHIRLPOOL 1e4f0b2eb61400a5300da8f9aba1820699724cb3cc51916e667560a2863a0d2b4e0f06c5bf0d8996608a88f6f7e740c7970cc9a5e6dd23c59e1d2a799e2b497c +EBUILD openshift-source-to-image-1.1.8.ebuild 971 SHA256 33e5423a71b8a8d4989e7c3c3e79b9d0c019424f6f98f5e3e2d5a4e630dfbdfb SHA512 bf64f14a3adad1970480d36fe73923045b7a1ba487250cd60d88f63ee2b664ad40979d54190e7b4898b0b27ea9f7de8a7dd917114d665d1e41c4c33351f1c100 WHIRLPOOL e30ed9e90aa33951f3b6cfc2e54907d1cbbda1d8362c701a9fb9f14f67927fcfecb5cd3fc65d284d92ff11591052f797841de8a6dad339e68f9d6c3dfb85027c diff --git a/app-admin/openshift-source-to-image/openshift-source-to-image-1.1.8.ebuild b/app-admin/openshift-source-to-image/openshift-source-to-image-1.1.8.ebuild new file mode 100644 index 0000000..8e21426 --- /dev/null +++ b/app-admin/openshift-source-to-image/openshift-source-to-image-1.1.8.ebuild @@ -0,0 +1,38 @@ +# 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/source-to-image/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="bash-completion" + +DEPEND="dev-lang/go" +RDEPEND="bash-completion? ( >=app-shells/bash-completion-2.3-r1 )" + +S="${WORKDIR}/source-to-image-${PV}" + +src_compile() { + export S2I_GIT_CATALOG_VERSION="v${PV}" + export S2I_GIT_MINOR="" + export S2I_GIT_MAJOR="" + export S2I_GIT_VERSION="v${PV}" + hack/build-go.sh || die +} + +src_install() { + case "${ARCH}" in + x86) MY_ARCH="386" ;; + *) MY_ARCH="${ARCH}" ;; + esac + + dobin "_output/local/bin/linux/${MY_ARCH}/s2i" + dobin "_output/local/bin/linux/${MY_ARCH}/sti" + use bash-completion && dobashcomp contrib/completions/bash/s2i +} |