commit: 1c1491debaf5316851abf30a34e4084342c38e8c
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 3 10:58:01 2016 +0000
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Thu Mar 3 10:58:10 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c1491de
dev-lang/ocaml: add tests support
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild
b/dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild
index 8034265..0aea93c 100644
--- a/dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild
+++ b/dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild
@@ -91,6 +91,14 @@ src_compile() {
fi
}
+src_test() {
+ if use ocamlopt ; then
+ emake -j1 tests
+ else
+ ewarn "${PN} testsuite requires ocamlopt useflag"
+ fi
+}
+
src_install() {
emake BINDIR="${ED}"/usr/bin \
LIBDIR="${ED}"/usr/$(get_libdir)/ocaml \