dev-ml/mirage-profile: disable xen enable unix

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-04-06 17:17:47 +02:00
parent e2a03e1c0c
commit 901ee88cbb
2 changed files with 21 additions and 13 deletions

View File

@@ -9,6 +9,7 @@
<remote-id type="github">mirage/mirage-profile</remote-id>
</upstream>
<use>
<flag name="xen">Adds a Xen MirageOS backend collector</flag>
<flag name="unix">Adds a Unix backend collector</flag>
<!--<flag name="xen">Adds a Xen MirageOS backend collector</flag>-->
</use>
</pkgmetadata>

View File

@@ -13,28 +13,35 @@ S="${WORKDIR}/mirage-profile-${PV}"
LICENSE="BSD-2"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="ocamlopt xen"
IUSE="ocamlopt unix" # xen
RDEPEND="
dev-ml/mtime
dev-ml/io-page
dev-ml/cstruct
dev-ml/lwt
dev-ml/ocplib-endian
xen? (
dev-ml/mirage-xen
dev-ml/xenstore
)
unix? ( dev-ml/mtime )
"
# xen? (
# dev-ml/io-page[xen]
# dev-ml/mirage-xen
# dev-ml/mirage-xen-minios
# dev-ml/xenstore
# )
DEPEND="
${RDEPEND}
unix? ( dev-ml/cstruct[ppx] )
"
DEPEND="${RDEPEND}"
src_compile() {
local pkgs="mirage-profile-unix,mirage-profile"
use xen && pkgs="${pkgs},mirage-profile-xen"
local pkgs="mirage-profile-unix"
# use xen && pkgs="${pkgs},mirage-profile-xen"
use unix && pkgs="${pkgs},mirage-profile-unix"
dune build --only-packages "${pkgs}" -j $(makeopts_jobs) --profile release || die
}
src_install() {
dune_src_install mirage-profile
dune_src_install mirage-profile-unix
use xen && dune_src_install mirage-profile-xen
use unix && dune_src_install mirage-profile-unix
# use xen && dune_src_install mirage-profile-xen
}