mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-ml/mirage-profile: disable xen enable unix
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user