commit:     7df911571b5260491947b1fd3bd8678ab9cc6c69
Author:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  6 17:16:04 2016 +0000
Commit:     Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Sun Nov  6 17:16:04 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7df91157

app-emulation/hyperd: Initial version

Package-Manager: portage-2.3.2

 app-emulation/hyperd/Manifest            |  1 +
 app-emulation/hyperd/hyperd-0.7.0.ebuild | 50 ++++++++++++++++++++++++++++++++
 app-emulation/hyperd/metadata.xml        | 15 ++++++++++
 3 files changed, 66 insertions(+)

diff --git a/app-emulation/hyperd/Manifest b/app-emulation/hyperd/Manifest
new file mode 100644
index 00000000..d642abe
--- /dev/null
+++ b/app-emulation/hyperd/Manifest
@@ -0,0 +1 @@
+DIST hyperd-0.7.0.tar.gz 10885921 SHA256 
e79d4e6aebe01d2117e981050ecb88dd24f8a9e45e2fbe1a558bcd1ee5d90b88 SHA512 
7fc731b393a6bdf173101ee0a6d0e5a3339c6bb6dc1595fbde5b36df5a674f22e95f599e704925532ca0ee5ca931ebdf9f14bba9ad20b62000aee48408adb73f
 WHIRLPOOL 
cf911afabcbd7ec9954ad571d12269cff85fb9a84de81a83b483a002707c6ca2e6e8c43540f08f24ae12ccc5eddddc4280e45d67c3a696cfdd2ee4301458aa3d

diff --git a/app-emulation/hyperd/hyperd-0.7.0.ebuild 
b/app-emulation/hyperd/hyperd-0.7.0.ebuild
new file mode 100644
index 00000000..bef9be9
--- /dev/null
+++ b/app-emulation/hyperd/hyperd-0.7.0.ebuild
@@ -0,0 +1,50 @@
+# 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}"
+
+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
+}

diff --git a/app-emulation/hyperd/metadata.xml 
b/app-emulation/hyperd/metadata.xml
new file mode 100644
index 00000000..8880e01
--- /dev/null
+++ b/app-emulation/hyperd/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Manuel Rüger</name>
+       </maintainer>
+       <use>
+               <flag name="libvirt">Enable support for KVM via libvirt</flag>
+               <flag name="xen">Enable support for the Xen Hypervisor</flag>
+       </use>
+       <upstream>
+               <remote-id type="github">hyperhq/hyperd</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to