From 49bd0f9d17543af095a511adb6300e71d3235f54 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 13 Dec 2019 13:51:04 -0800 Subject: [PATCH] app-emulation/buildah: Bump to version 1.11.6 Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Zac Medico --- app-emulation/buildah/Manifest | 1 + app-emulation/buildah/buildah-1.11.6.ebuild | 56 +++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 app-emulation/buildah/buildah-1.11.6.ebuild diff --git a/app-emulation/buildah/Manifest b/app-emulation/buildah/Manifest index f2f644ce3048..b539c7018abe 100644 --- a/app-emulation/buildah/Manifest +++ b/app-emulation/buildah/Manifest @@ -1,2 +1,3 @@ DIST buildah-1.11.5.tar.gz 10594213 BLAKE2B 421d4ea78ad84fbae42086b8d49fec26db8e2aa1f83e261a8b5b1f3f41a5be4ea2fdeb41d4e27fb52bf23f309b8aea1d050cea0c6deffcad0ebb273032e712ba SHA512 04a9c51e1cb6f3a88f118b69dcea1eba85b02d534e671cd5bf31a6d6a797bce4a488c9373c92736fccd74331c1242ff60a95f44626ecbb50c32db176c7106e86 +DIST buildah-1.11.6.tar.gz 10600477 BLAKE2B b70849ca0121e32cd66da3da282a443688c15a783a1be7d5d3650bf1122c865e9674d0790fb599f6da4c04072a19360aa224ccc76d516e8a8e71061c903dd0e1 SHA512 419d51d0b430dbc38862bad218cf0bb9a698472dd3932e69fa6bcfb2023b9cd10cf03916f2333892cdcc051ce799664619c62941965a59420d81ba4706e9d7be DIST containers-storage-1.14.0-vfs-user-xattrs.patch 14835 BLAKE2B 99c35933dcb25385ee83b80cf282c11c738d0e4d91216cc08a50522f6caa9bca5938299412908f16df404f99e80616a10b4c02c0ebc38240a987830ddaf15008 SHA512 62c7ed49728bd12b5706f59b0d4af3b18d90e8cfc2b06e681f84fe3f5d3e0cd5c0317147109c4e3ec4fec26f82c269af3c9813e47339ce102e4e97400b74627d diff --git a/app-emulation/buildah/buildah-1.11.6.ebuild b/app-emulation/buildah/buildah-1.11.6.ebuild new file mode 100644 index 000000000000..0b2d48115c43 --- /dev/null +++ b/app-emulation/buildah/buildah-1.11.6.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit bash-completion-r1 go-module + +KEYWORDS="~amd64" +DESCRIPTION="A tool that facilitates building OCI images" +HOMEPAGE="https://github.com/containers/buildah" +LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0" +SLOT="0" +IUSE="selinux" +EGIT_COMMIT="v${PV}" +GIT_COMMIT="9513cb8" +CONTAINERS_STORAGE_PATCH="containers-storage-1.14.0-vfs-user-xattrs.patch" +SRC_URI="https://github.com/containers/buildah/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz + https://github.com/containers/storage/pull/466.patch -> ${CONTAINERS_STORAGE_PATCH}" +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" + +src_prepare() { + default + sed -e 's| \([ab]\)/| \1/vendor/github.com/containers/storage/|' < \ + "${DISTDIR}/${CONTAINERS_STORAGE_PATCH}" > \ + "${WORKDIR}/${CONTAINERS_STORAGE_PATCH}" || die + eapply "${WORKDIR}/${CONTAINERS_STORAGE_PATCH}" + sed -e 's|^\(GIT_COMMIT ?= \).*|\1'${GIT_COMMIT}'|' -i Makefile || die + + [[ -f selinux_tag.sh ]] || die + use selinux || { echo -e "#!/bin/sh\ntrue" > \ + selinux_tag.sh || die; } +} + +src_compile() { + export -n GOCACHE XDG_CACHE_HOME + emake all +} + +src_install() { + dodoc CHANGELOG.md CONTRIBUTING.md README.md install.md troubleshooting.md + doman docs/*.1 + dodoc -r docs/tutorials + dobin ${PN} imgtype + dobashcomp contrib/completions/bash/buildah +} + +src_test() { + emake test-unit +} -- 2.26.2