mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user