diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2016-11-08 21:32:19 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2016-11-08 21:32:19 +0100 |
commit | 134dd349fd4cc179545ba99e937a53705a43b1ce (patch) | |
tree | 8cde19f74ffd4349673db4a9a1cc374428ef8769 /app-emulation/hyperd/hyperd-0.7.0-r1.ebuild | |
parent | net-misc/stunnel: version bump to 5.37 (diff) | |
download | gentoo-134dd349fd4cc179545ba99e937a53705a43b1ce.tar.gz gentoo-134dd349fd4cc179545ba99e937a53705a43b1ce.tar.bz2 gentoo-134dd349fd4cc179545ba99e937a53705a43b1ce.zip |
app-emulation/hyperd: Add misse dependency on lvm2
Gentoo-Bug: 599126
Package-Manager: portage-2.3.2
Diffstat (limited to 'app-emulation/hyperd/hyperd-0.7.0-r1.ebuild')
-rw-r--r-- | app-emulation/hyperd/hyperd-0.7.0-r1.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-emulation/hyperd/hyperd-0.7.0-r1.ebuild b/app-emulation/hyperd/hyperd-0.7.0-r1.ebuild new file mode 100644 index 000000000000..a5c0703ef09e --- /dev/null +++ b/app-emulation/hyperd/hyperd-0.7.0-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +EGO_PN="github.com/hyperhq/hyperd" + +inherit autotools systemd golang-vcs-snapshot + +DESCRIPTION="Hypervisor-based Runtime for OCI" +HOMEPAGE="https://github.com/hyperhq/hyperd" +SRC_URI="https://github.com/hyperhq/hyperd/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="libvirt xen" + +RDEPEND="libvirt? ( >=app-emulation/libvirt-1.2.2 ) + xen? ( app-emulation/xen )" +DEPEND="${RDEPEND} + sys-fs/lvm2" + +src_prepare() { + pushd src/${EGO_PN} || die + default + eautoreconf + popd +} + +src_configure() { + local myeconfargs=( $(use_with libvirt) + $(use_with xen) ) + pushd src/${EGO_PN} || die + econf "${myeconfargs[@]}" + popd +} + +src_compile() { + GOPATH="${S}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} +} + +src_install() { + dodoc src/${EGO_PN}/README.md + dobin src/${EGO_PN}/hyperd + dobin src/${EGO_PN}/hyperctl + insinto /etc/hyper/ + doins src/${EGO_PN}/package/dist/etc/hyper/config + systemd_dounit src/${EGO_PN}/package/dist/lib/systemd/system/hyperd.service +} |