summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/opam.eclass9
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/opam.eclass b/eclass/opam.eclass
index 2789e32d315a..262d726a8a7a 100644
--- a/eclass/opam.eclass
+++ b/eclass/opam.eclass
@@ -29,8 +29,13 @@ QA_FLAGS_IGNORED='.*'
RDEPEND=">=dev-lang/ocaml-4:="
case ${EAPI:-0} in
- 0|1|2|3|4|5|6) DEPEND="${RDEPEND} ${OPAM_INSTALLER_DEP}";;
- *) BDEPEND="${OPAM_INSTALLER_DEP} dev-lang/ocaml"; DEPEND="${RDEPEND}" ;;
+ 5|6)
+ DEPEND="${RDEPEND} ${OPAM_INSTALLER_DEP}"
+ ;;
+ *)
+ BDEPEND="${OPAM_INSTALLER_DEP} dev-lang/ocaml"
+ DEPEND="${RDEPEND}"
+ ;;
esac
# @ECLASS-VARIABLE: OPAM_INSTALLER