1 |
commit: 17f51b5ab0a29b1573c0a1c40ed175cac723e979 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 4 16:51:41 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 4 16:53:49 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17f51b5a |
7 |
|
8 |
app-emulation/buildah: Bump to version 1.8.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.67, Repoman-2.3.14 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
app-emulation/buildah/Manifest | 1 + |
14 |
app-emulation/buildah/buildah-1.8.3.ebuild | 57 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 58 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/buildah/Manifest b/app-emulation/buildah/Manifest |
18 |
index ca61180fe77..1c599c028c1 100644 |
19 |
--- a/app-emulation/buildah/Manifest |
20 |
+++ b/app-emulation/buildah/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST buildah-1.8.2.tar.gz 5102103 BLAKE2B 2e19f8af15e5f4a3c6488a44cc0f51592bc6f5201f217ea814daf4b08691f08170debfa2de01d39ae20c6289ed0915383b958cd5e59d8b598d867053ee990af2 SHA512 0cb8dc62c4139a5b500d4021b05344c70c1ec86ff9850bcca87011ad522fe95981d373d73b30b7899959876d78cd15e565e034cf136aa271a72fa4810ff34cae |
23 |
+DIST buildah-1.8.3.tar.gz 5114332 BLAKE2B 55ef5e10e8a2a2b95ef8f8cd28a3ccdb3e734fc3ef64a890900e20a5b8994f92571e2cdec875813203fc4e98a8c4f09656d16bc4c6242194131a25713e054492 SHA512 f875c448f81ef272ad0b7be9c1579d6650983fed4e471095cd645ae1126b49d91ec15b55a072e722205154b681eefc0fb32f5a452d827e875eb0c4779f5d712b |
24 |
|
25 |
diff --git a/app-emulation/buildah/buildah-1.8.3.ebuild b/app-emulation/buildah/buildah-1.8.3.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..0b435ee4967 |
28 |
--- /dev/null |
29 |
+++ b/app-emulation/buildah/buildah-1.8.3.ebuild |
30 |
@@ -0,0 +1,57 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+inherit bash-completion-r1 golang-vcs-snapshot |
36 |
+ |
37 |
+KEYWORDS="~amd64" |
38 |
+DESCRIPTION="A tool that facilitates building OCI images" |
39 |
+HOMEPAGE="https://github.com/containers/buildah" |
40 |
+LICENSE="Apache-2.0" |
41 |
+SLOT="0" |
42 |
+IUSE="ostree selinux" |
43 |
+EGO_PN="${HOMEPAGE#*//}" |
44 |
+EGIT_COMMIT="v${PV}" |
45 |
+GIT_COMMIT="547bd9a" |
46 |
+SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
47 |
+RDEPEND="app-crypt/gpgme:= |
48 |
+ app-emulation/skopeo |
49 |
+ dev-libs/libgpg-error:= |
50 |
+ dev-libs/libassuan:= |
51 |
+ sys-fs/lvm2:= |
52 |
+ sys-libs/libseccomp:= |
53 |
+ selinux? ( sys-libs/libselinux:= )" |
54 |
+DEPEND="${RDEPEND}" |
55 |
+RESTRICT="test" |
56 |
+REQUIRED_USE="!selinux? ( !ostree )" |
57 |
+S="${WORKDIR}/${P}/src/${EGO_PN}" |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ sed -e 's|^\(GIT_COMMIT ?= \).*|\1'${GIT_COMMIT}'|' -i Makefile || die |
62 |
+ |
63 |
+ [[ -f ostree_tag.sh ]] || die |
64 |
+ use ostree || { echo -e "#!/bin/sh\necho containers_image_ostree_stub" > \ |
65 |
+ ostree_tag.sh || die; } |
66 |
+ |
67 |
+ [[ -f selinux_tag.sh ]] || die |
68 |
+ use selinux || { echo -e "#!/bin/sh\ntrue" > \ |
69 |
+ selinux_tag.sh || die; } |
70 |
+} |
71 |
+ |
72 |
+src_compile() { |
73 |
+ export -n GOCACHE XDG_CACHE_HOME |
74 |
+ GOPATH="${WORKDIR}/${P}" emake all |
75 |
+} |
76 |
+ |
77 |
+src_install() { |
78 |
+ dodoc CHANGELOG.md CONTRIBUTING.md README.md install.md troubleshooting.md |
79 |
+ doman docs/*.1 |
80 |
+ dodoc -r docs/tutorials |
81 |
+ dobin ${PN} imgtype |
82 |
+ dobashcomp contrib/completions/bash/buildah |
83 |
+} |
84 |
+ |
85 |
+src_test() { |
86 |
+ GOPATH="${WORKDIR}/${P}" emake test-unit |
87 |
+} |