diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2016-12-12 16:06:08 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2016-12-12 16:06:08 +0100 |
commit | fc3edabb53822c6cef4a1b2e752e3c69c0708a33 (patch) | |
tree | 861001069cafcd7e7771c278d41806a73157486a /app-emulation/kompose | |
parent | games-puzzle/sgt-puzzles: Large changeset, fixes #593480 (diff) | |
download | gentoo-fc3edabb53822c6cef4a1b2e752e3c69c0708a33.tar.gz gentoo-fc3edabb53822c6cef4a1b2e752e3c69c0708a33.tar.bz2 gentoo-fc3edabb53822c6cef4a1b2e752e3c69c0708a33.zip |
app-emulation/kompose: Initial version
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-emulation/kompose')
-rw-r--r-- | app-emulation/kompose/Manifest | 1 | ||||
-rw-r--r-- | app-emulation/kompose/kompose-0.1.2_p20161207.ebuild | 33 | ||||
-rw-r--r-- | app-emulation/kompose/metadata.xml | 11 |
3 files changed, 45 insertions, 0 deletions
diff --git a/app-emulation/kompose/Manifest b/app-emulation/kompose/Manifest new file mode 100644 index 000000000000..47636d56b14f --- /dev/null +++ b/app-emulation/kompose/Manifest @@ -0,0 +1 @@ +DIST kompose-0.1.2_p20161207.tar.gz 4931237 SHA256 d4e008f6b9e5086365bc2cfb9a0883026cb6e8bb925612e31dc2112498c10bc0 SHA512 6dc5b047fdc56e368508338975221644219b820d90960c726a601ac0c33e637a25e4c98cd3ec8438d5fe7c7e30bb554fa89c43805668f0189d1b59e0785d5361 WHIRLPOOL 6a96698a786b87309e334c5ab69681002e232118e64bdd5778fa42ef2f02b993459e6bc1b9e40c84c0a3b5398569b3dcd2ef01479f64ecda68b15cae96020fa6 diff --git a/app-emulation/kompose/kompose-0.1.2_p20161207.ebuild b/app-emulation/kompose/kompose-0.1.2_p20161207.ebuild new file mode 100644 index 000000000000..7472d638f3c2 --- /dev/null +++ b/app-emulation/kompose/kompose-0.1.2_p20161207.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit golang-build golang-vcs-snapshot + +EGO_PN="github.com/kubernetes-incubator/kompose/..." +EGIT_COMMIT="04a3131834cddfb1af42b63b21641fbbf84a4a9d" +ARCHIVE_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Tool to move from docker-compose to Kubernetes" +HOMEPAGE="https://github.com/kubernetes-incubator/kompose" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0/${PVR}" +IUSE="hardened" + +src_prepare() { + default + sed -i -e "s/HEAD/${EGIT_COMMIT:0:7}/" src/${EGO_PN%/*}/version/version.go || die +} + +src_compile() { + export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')" + GOPATH="${S}" go build -o bin/kompose src/${EGO_PN%/*}/main.go || die +} + +src_install() { + dobin bin/* + dodoc -r src/${EGO_PN%/*}/{docs,{README,RELEASE,ROADMAP,CHANGELOG,CONTRIBUTING}.md} +} diff --git a/app-emulation/kompose/metadata.xml b/app-emulation/kompose/metadata.xml new file mode 100644 index 000000000000..1bc30e19f324 --- /dev/null +++ b/app-emulation/kompose/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mrueg@gentoo.org</email> + <name>Manuel Rüger</name> + </maintainer> + <upstream> + <remote-id type="github">kubernetes-incubator/kompose</remote-id> + </upstream> +</pkgmetadata> |