dev-ml/ocaml-cstruct: build only enabled targets, should fix bug #623742

Package-Manager: Portage-2.3.6, Repoman-2.3.2
This commit is contained in:
Alexis Ballier
2017-07-04 08:58:42 +02:00
parent e1592f1210
commit 71182f8212

View File

@@ -38,6 +38,22 @@ DEPEND="
${RDEPEND}
"
get_targets() {
local tgt="cstruct,cstruct-unix"
use lwt && tgt+=",cstruct-lwt"
use async && tgt+=",cstruct-async"
use ppx && tgt+=",ppx_cstruct"
echo "${tgt}"
}
src_compile() {
jbuilder build -p $(get_targets) || die
}
src_test() {
jbuilder runtest -p $(get_targets) || die
}
oinstall() {
opam-installer -i \
--prefix="${ED}/usr" \