Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/buildah/
Date: Fri, 18 Oct 2019 04:46:03
Message-Id: 1571373822.1671df03467cc6249de10f043ccddfacb3d93a9d.zmedico@gentoo
1 commit: 1671df03467cc6249de10f043ccddfacb3d93a9d
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 18 04:43:42 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 18 04:43:42 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1671df03
7
8 app-emulation/buildah: Bump to version 1.11.3
9
10 Package-Manager: Portage-2.3.77, Repoman-2.3.17
11 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
12
13 app-emulation/buildah/Manifest | 1 +
14 app-emulation/buildah/buildah-1.11.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 1e2514b010a..cc53b820d9a 100644
19 --- a/app-emulation/buildah/Manifest
20 +++ b/app-emulation/buildah/Manifest
21 @@ -1 +1,2 @@
22 DIST buildah-1.11.2.tar.gz 10128075 BLAKE2B ad8f4253b62cd7709bf5ae530d002190c1850da6bbfa7dff2281de0592422eccc67a4ba6e52f7a82d6c1b320b986237a84d0ffaaf9b3b1b93822a54621365250 SHA512 f491d96d5bb4d0aa03981fb58d24f36c2e3928179c8fb79e85f323ce9a65ae6da05b816d86ae43f94a83a1b2445b315f93ca28b531436d9b4e5861e4adef2aac
23 +DIST buildah-1.11.3.tar.gz 10429884 BLAKE2B 2d433a128d115c6b2f3a9d246d41406993905dee357237796cea3295036d026ca93f8c98ca992cfebfa574ab0d5e7b974fd356a146b7cde58986166bc18a5645 SHA512 07fff3f8c044ad01a663bf5470b19f75568ce741b3bb45f656200099ba559622597111ede3e20331dc06139f2e58d962d92bf0fdd00284ca6ed05b5b66500975
24
25 diff --git a/app-emulation/buildah/buildah-1.11.3.ebuild b/app-emulation/buildah/buildah-1.11.3.ebuild
26 new file mode 100644
27 index 00000000000..6a58e5f4b30
28 --- /dev/null
29 +++ b/app-emulation/buildah/buildah-1.11.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 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
41 +SLOT="0"
42 +IUSE="ostree selinux"
43 +EGO_PN="${HOMEPAGE#*//}"
44 +EGIT_COMMIT="v${PV}"
45 +GIT_COMMIT="0bafbfe"
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 +}