dev-ml/xen-evtchn: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-04-06 22:11:52 +02:00
parent e9f884bc10
commit 50424dfa8a
3 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST xen-evtchn-v2.1.0.tbz 6877 BLAKE2B 458250df905a5b32f62161e06c637823c35933463418d13ee0b6aa2e7fd8146d9a019bf0bb6f8a125e73c0470789254728fceb27cfd24887660f246b87d48ea6 SHA512 df7d767432d450c19b5f26a85f9d442f5b5eab2013a1733c5b04b820043b61cad814813c322f7c6ce2f000b7428941b8a83f6c1059d0ee88947df9f16029d92d

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<upstream>
<remote-id type="github">mirage/evtchn</remote-id>
</upstream>
<use>
<flag name="unix">Xen event channel interface for Linux</flag>
</use>
</pkgmetadata>

View File

@@ -0,0 +1,44 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit dune multiprocessing
MY_P="${PN}-v${PV}"
DESCRIPTION="Xen event channel interface for Mirage"
HOMEPAGE="https://github.com/mirage/ocaml-evtchn"
SRC_URI="https://github.com/mirage/ocaml-evtchn/releases/download/v${PV}/${MY_P}.tbz"
S="${WORKDIR}/${MY_P}"
LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="ocamlopt test unix"
RDEPEND="
dev-ml/lwt
dev-ml/lwt-dllist
dev-ml/cmdliner
unix? ( app-emulation/xen )
"
DEPEND="
${RDEPEND}
test? ( dev-ml/ounit )
"
RESTRICT="!test? ( test )"
REQUIRED_USE="test? ( unix )"
src_compile() {
local pkgs="xen-evtchn"
use unix && pkgs="${pkgs},xen-evtchn-unix"
dune build --only-packages "${pkgs}" -j $(makeopts_jobs) --profile release || die
}
src_install() {
dune_src_install xen-evtchn
use unix && dune_src_install xen-evtchn-unix
}