summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2018-05-14 19:23:34 -0700
committerZac Medico <zmedico@gentoo.org>2018-05-14 20:04:34 -0700
commit80ecdf50aba5c494c93298e14e1f40b0901d547b (patch)
tree6e1c78e2a8cf809afa0c518d1c5e692d63ab0157 /app-emulation/buildah
parentdev-db/mariadb: Add patch to 10.1 series for atomic detection (diff)
downloadgentoo-80ecdf50aba5c494c93298e14e1f40b0901d547b.tar.gz
gentoo-80ecdf50aba5c494c93298e14e1f40b0901d547b.tar.bz2
gentoo-80ecdf50aba5c494c93298e14e1f40b0901d547b.zip
app-emulation/buildah: add package
Package-Manager: Portage-2.3.36, Repoman-2.3.9
Diffstat (limited to 'app-emulation/buildah')
-rw-r--r--app-emulation/buildah/Manifest1
-rw-r--r--app-emulation/buildah/buildah-1.0.ebuild45
-rw-r--r--app-emulation/buildah/metadata.xml11
3 files changed, 57 insertions, 0 deletions
diff --git a/app-emulation/buildah/Manifest b/app-emulation/buildah/Manifest
new file mode 100644
index 000000000000..8d2a34f718b0
--- /dev/null
+++ b/app-emulation/buildah/Manifest
@@ -0,0 +1 @@
+DIST buildah-1.0.tar.gz 2865669 BLAKE2B 7749ed00637fff9c2bcee63ef9e8985b3e6e2abff1c1f4787dc0730b9765576fac9173dd05cbc289aed3c0d20ff374a78976beb86c73adb221184415e4906a41 SHA512 17779e5bbc20fff6da607898620a8193e11ef13ddc033e7868776aab53a710e09428dca0450f11368d750bf7179fd4850ac3a8a445bd9537d987bd837853f4e5
diff --git a/app-emulation/buildah/buildah-1.0.ebuild b/app-emulation/buildah/buildah-1.0.ebuild
new file mode 100644
index 000000000000..49d8d6bd981e
--- /dev/null
+++ b/app-emulation/buildah/buildah-1.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit golang-vcs-snapshot
+
+KEYWORDS="~amd64"
+DESCRIPTION="A tool that facilitates building OCI images"
+HOMEPAGE="https://github.com/projectatomic/buildah"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+EGO_PN="${HOMEPAGE#*//}"
+EGIT_COMMIT="v${PV}"
+GIT_COMMIT="1ab80bc"
+SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+RDEPEND="app-crypt/gpgme:=
+ app-emulation/skopeo
+ dev-libs/libgpg-error:=
+ dev-libs/libassuan:=
+ sys-fs/lvm2:=
+ sys-libs/libseccomp:="
+DEPEND="${RDEPEND}"
+RESTRICT="test"
+S="${WORKDIR}/${P}/src/${EGO_PN}"
+
+src_prepare() {
+ default
+ sed -e 's|^\(GIT_COMMIT := \).*|\1'${GIT_COMMIT}'|' -i Makefile || die
+}
+
+src_compile() {
+ GOPATH="${WORKDIR}/${P}" emake all
+}
+
+src_install() {
+ dodoc README.md
+ doman docs/*.1
+ dodoc -r docs/tutorials
+ dobin ${PN} imgtype
+}
+
+src_test() {
+ GOPATH="${WORKDIR}/${P}" emake test-unit
+}
diff --git a/app-emulation/buildah/metadata.xml b/app-emulation/buildah/metadata.xml
new file mode 100644
index 000000000000..07a3ba13a110
--- /dev/null
+++ b/app-emulation/buildah/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>zmedico@gentoo.org</email>
+ <name>Zac Medico</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">projectatomic/buildah</remote-id>
+ </upstream>
+</pkgmetadata>