forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-emulation/buildah: version bump to 1.2
Package-Manager: Portage-2.3.43, Repoman-2.3.10
- Loading branch information
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST buildah-1.1.tar.gz 4253820 BLAKE2B ae30a677a2f569d87da0ab85732078912598cf25f7b22ad25540f5d89797983a8549eef1bc8d151d4e0be078b97e024df145bb882bdd8443becb07774bfb5875 SHA512 9957590d7413436195307746682496616fd2350b832242f33fb4cb07c1144addae445eeff062f403d26a68329f1153468489032bc9bbcf870839c760a720ef95 | ||
DIST buildah-1.2.tar.gz 4403310 BLAKE2B df3a1d12a41e9d585d3191103140fc232a2c247283996f394bd151f61615057b15d934e165be47794465c30217c32b3e6b53fbf4d2ef5a2f3349840dadad8171 SHA512 0aac0a80c3c50f0171199e549c0321ce1a756ca838dd9d92b0b0d58bd6b4e212390642c8a4a2aea794616292058624ab0c8707d2ea0cdcbcc555b387df611dc2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 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 | ||
} |