mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
dev-ml/io-page: tests and useflags
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit dune
|
||||
inherit dune multiprocessing
|
||||
|
||||
MY_P="${PN}-v${PV}"
|
||||
|
||||
@@ -15,14 +15,28 @@ S="${WORKDIR}/${MY_P}"
|
||||
LICENSE="ISC"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="ocamlopt"
|
||||
IUSE="ocamlopt test unix"
|
||||
|
||||
RDEPEND="
|
||||
dev-ml/bigarray-compat
|
||||
dev-ml/cstruct
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? ( dev-ml/ounit )
|
||||
unix? ( dev-ml/configurator )
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="test? ( unix )"
|
||||
|
||||
src_compile() {
|
||||
local pkgs="io-page"
|
||||
use unix && pkgs="${pkgs},io-page-unix"
|
||||
dune build --only-packages "${pkgs}" -j $(makeopts_jobs) --profile release || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dune_src_install "io-page io-page-unix io-page-xen"
|
||||
dune_src_install io-page
|
||||
use unix && dune_src_install io-page-unix
|
||||
}
|
||||
|
||||
@@ -5,7 +5,8 @@ EAPI=8
|
||||
|
||||
inherit dune
|
||||
|
||||
MY_P=${PN}-v${PV}
|
||||
MY_P="${PN}-v${PV}"
|
||||
|
||||
DESCRIPTION="IO memory page library for Mirage backends"
|
||||
HOMEPAGE="https://github.com/mirage/io-page"
|
||||
SRC_URI="https://github.com/mirage/io-page/releases/download/v${PV}/${MY_P}.tbz"
|
||||
@@ -14,10 +15,16 @@ S="${WORKDIR}/${MY_P}"
|
||||
LICENSE="ISC"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="ocamlopt"
|
||||
IUSE="ocamlopt test"
|
||||
|
||||
RDEPEND="
|
||||
dev-ml/bigarray-compat
|
||||
dev-ml/cstruct
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? ( dev-ml/ounit )
|
||||
"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
@@ -9,4 +9,7 @@
|
||||
<upstream>
|
||||
<remote-id type="github">mirage/io-page</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="unix">Support for efficient handling of I/O memory pages on Unix</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
||||
Reference in New Issue
Block a user