diff options
author | Zac Medico <zmedico@gentoo.org> | 2018-08-06 18:06:13 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2018-08-06 18:08:17 -0700 |
commit | bcc6056c7c69ce6385d3ee768bca2594dfcab529 (patch) | |
tree | 85b1dd12d85022381357de5b9982c608d5f0030b /app-emulation/buildah/buildah-1.3.ebuild | |
parent | app-emulation/buildah: remove old version 1.1 (diff) | |
download | gentoo-bcc6056c7c69ce6385d3ee768bca2594dfcab529.tar.gz gentoo-bcc6056c7c69ce6385d3ee768bca2594dfcab529.tar.bz2 gentoo-bcc6056c7c69ce6385d3ee768bca2594dfcab529.zip |
app-emulation/buildah: version bump to 1.3
Package-Manager: Portage-2.3.44, Repoman-2.3.10
Diffstat (limited to 'app-emulation/buildah/buildah-1.3.ebuild')
-rw-r--r-- | app-emulation/buildah/buildah-1.3.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/app-emulation/buildah/buildah-1.3.ebuild b/app-emulation/buildah/buildah-1.3.ebuild new file mode 100644 index 000000000000..2a0a4173a777 --- /dev/null +++ b/app-emulation/buildah/buildah-1.3.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="be87762" +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 install.md troubleshooting.md + doman docs/*.1 + dodoc -r docs/tutorials + dobin ${PN} imgtype + dobashcomp contrib/completions/bash/buildah +} + +src_test() { + GOPATH="${WORKDIR}/${P}" emake test-unit +} |