diff --git a/app-emulation/crun/Manifest b/app-emulation/crun/Manifest new file mode 100644 index 0000000..ed5749e --- /dev/null +++ b/app-emulation/crun/Manifest @@ -0,0 +1 @@ +EBUILD crun-0.10.ebuild 1093 BLAKE2B 21a32165109986705d0337cac7ea0ee5dd22c71db053883dc28562104cc246bdc198b0d495485ce2e22a4407bd2e18d46ecf5db174361592cd9a547fcdb7cfed SHA512 b60748a30ede84c380da4779ad88d289be2f380c37bd18b1dd6eb8bd8f7a1a40e05152ef215eeee71552a34a3af785c5e1dc644686ac5ecf16333487b63f52be diff --git a/app-emulation/crun/crun-0.10.ebuild b/app-emulation/crun/crun-0.10.ebuild new file mode 100644 index 0000000..6101c5c --- /dev/null +++ b/app-emulation/crun/crun-0.10.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" + +inherit git-r3 autotools eutils + +SLOT="0" + +DESCRIPTION="A fast and low-memory footprint OCI Container Runtime fully written in C" +HOMEPAGE="https://github.com/giuseppe/crun" +EGIT_REPO_URI="${HOMEPAGE}.git" + +LICENSE="GPL-3" + +KEYWORDS="~amd64" +IUSE="selinux systemd static-libs" +DEPEND=" + dev-libs/yajl + sys-libs/libseccomp + selinux? ( sys-libs/libselinux ) + systemd? ( sys-apps/systemd ) +" +RDEPEND="${DEPEND}" +BDEPEND="" + +src_unpack() { + einfo "Tracking release ${PV}." + git-r3_fetch ${EGIT_REPO_URI} refs/tags/${PV} || die "Failed to fetch" + git-r3_checkout || die "Failed to check out" +} + +src_configure() { + cd "${EGIT_CHECKOUT_DIR}" + einfo "Preparing targets..." + eautoreconf || die "Failed to configure" + econf $(usex static-libs '--enabled-shared --enabled-static' '--enable-shared --disable-static' '' '') || die "failed to configure" +} + +src_compile() { + cd "${EGIT_CHECKOUT_DIR}" + einfo "Commencing compilation..." + emake || die "Failed to compile" +}