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