commit:     8028df2ba1bb6ce5375e6448ccb09699e4cc5fa0
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 18 04:41:58 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Jun 18 04:43:23 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8028df2b

app-emulation/buildah: version bump to 1.1

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-emulation/buildah/Manifest           |  1 +
 app-emulation/buildah/buildah-1.1.ebuild | 54 ++++++++++++++++++++++++++++++++
 app-emulation/buildah/metadata.xml       |  5 +++
 3 files changed, 60 insertions(+)

diff --git a/app-emulation/buildah/Manifest b/app-emulation/buildah/Manifest
index 8d2a34f718b..609d9b7c884 100644
--- a/app-emulation/buildah/Manifest
+++ b/app-emulation/buildah/Manifest
@@ -1 +1,2 @@
 DIST buildah-1.0.tar.gz 2865669 BLAKE2B 
7749ed00637fff9c2bcee63ef9e8985b3e6e2abff1c1f4787dc0730b9765576fac9173dd05cbc289aed3c0d20ff374a78976beb86c73adb221184415e4906a41
 SHA512 
17779e5bbc20fff6da607898620a8193e11ef13ddc033e7868776aab53a710e09428dca0450f11368d750bf7179fd4850ac3a8a445bd9537d987bd837853f4e5
+DIST buildah-1.1.tar.gz 4253820 BLAKE2B 
ae30a677a2f569d87da0ab85732078912598cf25f7b22ad25540f5d89797983a8549eef1bc8d151d4e0be078b97e024df145bb882bdd8443becb07774bfb5875
 SHA512 
9957590d7413436195307746682496616fd2350b832242f33fb4cb07c1144addae445eeff062f403d26a68329f1153468489032bc9bbcf870839c760a720ef95

diff --git a/app-emulation/buildah/buildah-1.1.ebuild 
b/app-emulation/buildah/buildah-1.1.ebuild
new file mode 100644
index 00000000000..b108ed0a7a6
--- /dev/null
+++ b/app-emulation/buildah/buildah-1.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit bash-completion-r1 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="ostree selinux"
+EGO_PN="${HOMEPAGE#*//}"
+EGIT_COMMIT="v${PV}"
+GIT_COMMIT="fbf46d3"
+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
+
+       [[ -f ostree_tag.sh ]] || die
+       use ostree || { echo -e "#!/bin/sh\necho containers_image_ostree_stub" 
> \
+               ostree_tag.sh || die; }
+
+       [[ -f selinux_tag.sh ]] || die
+       use selinux || { echo -e "#!/bin/sh\ntrue" > \
+               selinux_tag.sh || die; }
+}
+
+src_compile() {
+       GOPATH="${WORKDIR}/${P}" emake all
+}
+
+src_install() {
+       dodoc CHANGELOG.md CONTRIBUTING.md README.md
+       doman docs/*.1
+       dodoc -r docs/tutorials
+       dobin ${PN} imgtype
+       dobashcomp contrib/completions/bash/buildah
+}
+
+src_test() {
+       GOPATH="${WORKDIR}/${P}" emake test-unit
+}

diff --git a/app-emulation/buildah/metadata.xml 
b/app-emulation/buildah/metadata.xml
index 07a3ba13a11..e09086fd802 100644
--- a/app-emulation/buildah/metadata.xml
+++ b/app-emulation/buildah/metadata.xml
@@ -5,6 +5,11 @@
                <email>zmed...@gentoo.org</email>
                <name>Zac Medico</name>
        </maintainer>
+       <use>
+               <flag name="ostree">
+                       Enables dependencies for handling of OSTree images.
+               </flag>
+       </use>
        <upstream>
                <remote-id type="github">projectatomic/buildah</remote-id>
        </upstream>

Reply via email to