From e23cdda4dbb0c83b9e682ab5e916085a35203da5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 23 Jun 2018 07:00:28 +0100 Subject: gentoo resync : 23.06.2018 --- app-emulation/buildah/Manifest | 4 ++- app-emulation/buildah/buildah-1.1.ebuild | 56 ++++++++++++++++++++++++++++++++ app-emulation/buildah/metadata.xml | 5 +++ 3 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 app-emulation/buildah/buildah-1.1.ebuild (limited to 'app-emulation/buildah') diff --git a/app-emulation/buildah/Manifest b/app-emulation/buildah/Manifest index 7b5ba7a3451a..967e0b47dc11 100644 --- a/app-emulation/buildah/Manifest +++ b/app-emulation/buildah/Manifest @@ -1,3 +1,5 @@ DIST buildah-1.0.tar.gz 2865669 BLAKE2B 7749ed00637fff9c2bcee63ef9e8985b3e6e2abff1c1f4787dc0730b9765576fac9173dd05cbc289aed3c0d20ff374a78976beb86c73adb221184415e4906a41 SHA512 17779e5bbc20fff6da607898620a8193e11ef13ddc033e7868776aab53a710e09428dca0450f11368d750bf7179fd4850ac3a8a445bd9537d987bd837853f4e5 +DIST buildah-1.1.tar.gz 4253820 BLAKE2B ae30a677a2f569d87da0ab85732078912598cf25f7b22ad25540f5d89797983a8549eef1bc8d151d4e0be078b97e024df145bb882bdd8443becb07774bfb5875 SHA512 9957590d7413436195307746682496616fd2350b832242f33fb4cb07c1144addae445eeff062f403d26a68329f1153468489032bc9bbcf870839c760a720ef95 EBUILD buildah-1.0.ebuild 1030 BLAKE2B 6433baa65962203139b9ff71c665f46d7de0a6d74e90c55cf32c9a0559af94d3eb7b3707f4184c83902e92231bbdebae3769b83110dfe41570e5642e25b45a8d SHA512 207cb4e59bfa5f233fe0c97ddb967ff9521b4e16828e9a7186a2c93968b6c2e14d5dd41185bcd0e45096dde0d00eeb3c848490db1fe6400c35110786e21129f6 -MISC metadata.xml 330 BLAKE2B 0be4a049ad821a2355b1d5ac21ae58def26c7f3310a56c7b870c25e6c018f1bc6147c59bfdc42885ba4f8238538d69e31928f35f002ec5ba684da87673b8f87c SHA512 c8c1341578b493bc9b68d615fb68232bed4369a60b839e397ba03e330f452e23124e180ee804a3fb1708169382aa65046931bc480f2690f37c3f698c12a94963 +EBUILD buildah-1.1.ebuild 1388 BLAKE2B 8dd9609a8d7c8e2f132e7f0d07b311c05fb0a364cd9c63d3f68c065e40bfe4776c3b1650463064ff96b40dc64ebaec9c87c6ed346705f371925822b2d097a7db SHA512 fb2c0381296021c4e4e60649532413b154c2a5e28fcc91fa3998e8be1e845d0c5f215bb17b0397441df63fd5bfea7d72b9f281ec891cf11b1bd309b2e52d8bcb +MISC metadata.xml 433 BLAKE2B 5b06389433033a1cf28f5fcae5dd41f4ebe0582d9537e8e163fad82046a66477a6ac3ed26ea63e60ea392919afcd3f0f45ae8ddabefd3a518707d5adff04e9d6 SHA512 3ab67ceda6ca0c8bd10f8868172d9686c8eeaa856760453be1c3ba907abb734ba37f5e9885547a16f69c67aa8d96e576de1ddf3208c08f4d44c2d90b081c74a6 diff --git a/app-emulation/buildah/buildah-1.1.ebuild b/app-emulation/buildah/buildah-1.1.ebuild new file mode 100644 index 000000000000..3be0b76e6b5f --- /dev/null +++ b/app-emulation/buildah/buildah-1.1.ebuild @@ -0,0 +1,56 @@ +# 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:= + selinux? ( sys-libs/libselinux:= )" +DEPEND="${RDEPEND}" +RESTRICT="test" +REQUIRED_USE="!selinux? ( !ostree )" +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 07a3ba13a110..e09086fd802c 100644 --- a/app-emulation/buildah/metadata.xml +++ b/app-emulation/buildah/metadata.xml @@ -5,6 +5,11 @@ zmedico@gentoo.org Zac Medico + + + Enables dependencies for handling of OSTree images. + + projectatomic/buildah -- cgit v1.2.3