diff options
author | Mark Wright <gienah@gentoo.org> | 2020-10-10 23:42:19 +1100 |
---|---|---|
committer | Mark Wright <gienah@gentoo.org> | 2020-10-13 23:53:07 +1100 |
commit | e5f1733418306d32be8446819ce8e5bd4411d1b5 (patch) | |
tree | 2cdb07a961c043357a52a5330c8d1b21377cbe3b /eclass | |
parent | eclass/opam.eclass: Changes from ml-overlay (diff) | |
download | gentoo-e5f1733418306d32be8446819ce8e5bd4411d1b5.tar.gz gentoo-e5f1733418306d32be8446819ce8e5bd4411d1b5.tar.bz2 gentoo-e5f1733418306d32be8446819ce8e5bd4411d1b5.zip |
eclass/dune.eclass: Add BDEPEND
Signed-off-by: Mark Wright <gienah@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/dune.eclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/dune.eclass b/eclass/dune.eclass index 9ab6ec204c21..2cab58a1de0a 100644 --- a/eclass/dune.eclass +++ b/eclass/dune.eclass @@ -4,6 +4,7 @@ # @ECLASS: dune.eclass # @MAINTAINER: # rkitover@gmail.com +# Mark Wright <gienah@gentoo.org> # @AUTHOR: # Rafael Kitover <rkitover@gmail.com> # @SUPPORTED_EAPIS: 5 6 7 @@ -25,8 +26,10 @@ esac EXPORT_FUNCTIONS src_compile src_test src_install RDEPEND=">=dev-lang/ocaml-4:=[ocamlopt?]" -DEPEND="${RDEPEND} - dev-ml/dune" +case ${EAPI:-0} in + 0|1|2|3|4|5|6) DEPEND="${RDEPEND} dev-ml/dune";; + *) BDEPEND="dev-ml/dune dev-lang/ocaml"; DEPEND="${RDEPEND}" ;; +esac dune_src_compile() { dune build @install || die |