mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 14:03:33 -04:00
dev-ml/xen-gnt: useflags
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -8,4 +8,7 @@
|
|||||||
<upstream>
|
<upstream>
|
||||||
<remote-id type="github">mirage/ocaml-gnt</remote-id>
|
<remote-id type="github">mirage/ocaml-gnt</remote-id>
|
||||||
</upstream>
|
</upstream>
|
||||||
|
<use>
|
||||||
|
<flag name="unix">build the userspace library</flag>
|
||||||
|
</use>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
inherit dune
|
inherit dune multiprocessing
|
||||||
|
|
||||||
DESCRIPTION="OCaml bindings to the Xen grant tables libraries"
|
DESCRIPTION="OCaml bindings to the Xen grant tables libraries"
|
||||||
HOMEPAGE="https://github.com/mirage/ocaml-gnt"
|
HOMEPAGE="https://github.com/mirage/ocaml-gnt"
|
||||||
@@ -13,19 +13,32 @@ S="${WORKDIR}/${PN}-v${PV}"
|
|||||||
LICENSE="ISC"
|
LICENSE="ISC"
|
||||||
SLOT="0/${PV}"
|
SLOT="0/${PV}"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
IUSE="ocamlopt"
|
IUSE="ocamlopt unix"
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
dev-ml/cstruct
|
dev-ml/cstruct
|
||||||
dev-ml/cmdliner
|
dev-ml/cmdliner
|
||||||
<=dev-ml/io-page-2.2.0
|
dev-ml/io-page
|
||||||
dev-ml/lwt
|
dev-ml/lwt
|
||||||
dev-ml/lwt-dllist
|
dev-ml/lwt-dllist
|
||||||
dev-ml/mirage-profile
|
dev-ml/mirage-profile
|
||||||
|
|
||||||
|
unix? (
|
||||||
|
app-emulation/xen
|
||||||
|
dev-ml/io-page[unix(-)]
|
||||||
|
)
|
||||||
"
|
"
|
||||||
RDEPEND="${DEPEND}"
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local pkgs="xen-gnt"
|
||||||
|
if use unix ; then
|
||||||
|
pkgs="${pkgs},xen-gnt-unix"
|
||||||
|
fi
|
||||||
|
dune build --only-packages "${pkgs}" -j $(makeopts_jobs) --profile release || die
|
||||||
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dune_src_install xen-gnt
|
dune_src_install xen-gnt
|
||||||
dune_src_install xen-gnt-unix
|
use unix && dune_src_install xen-gnt-unix
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user