mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
45 lines
867 B
Bash
45 lines
867 B
Bash
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit dune multiprocessing
|
|
|
|
DESCRIPTION="OCaml bindings to the Xen grant tables libraries"
|
|
HOMEPAGE="https://github.com/mirage/ocaml-gnt"
|
|
SRC_URI="https://github.com/mirage/ocaml-gnt/releases/download/v${PV}/${PN}-v${PV}.tbz"
|
|
S="${WORKDIR}/${PN}-v${PV}"
|
|
|
|
LICENSE="ISC"
|
|
SLOT="0/${PV}"
|
|
KEYWORDS="~amd64"
|
|
IUSE="ocamlopt unix"
|
|
|
|
DEPEND="
|
|
dev-ml/cstruct
|
|
dev-ml/cmdliner
|
|
dev-ml/io-page
|
|
dev-ml/lwt
|
|
dev-ml/lwt-dllist
|
|
dev-ml/mirage-profile
|
|
|
|
unix? (
|
|
app-emulation/xen
|
|
dev-ml/io-page[unix(-)]
|
|
)
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
src_compile() {
|
|
local pkgs="xen-gnt"
|
|
if use unix ; then
|
|
pkgs="${pkgs},xen-gnt-unix"
|
|
fi
|
|
dune build -p "${pkgs}" -j $(makeopts_jobs) || die
|
|
}
|
|
|
|
src_install() {
|
|
dune_src_install xen-gnt
|
|
use unix && dune_src_install xen-gnt-unix
|
|
}
|