1 |
commit: 1c1491debaf5316851abf30a34e4084342c38e8c |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 3 10:58:01 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 3 10:58:10 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c1491de |
7 |
|
8 |
dev-lang/ocaml: add tests support |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> |
12 |
|
13 |
dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild | 8 ++++++++ |
14 |
1 file changed, 8 insertions(+) |
15 |
|
16 |
diff --git a/dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild b/dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild |
17 |
index 8034265..0aea93c 100644 |
18 |
--- a/dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild |
19 |
+++ b/dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild |
20 |
@@ -91,6 +91,14 @@ src_compile() { |
21 |
fi |
22 |
} |
23 |
|
24 |
+src_test() { |
25 |
+ if use ocamlopt ; then |
26 |
+ emake -j1 tests |
27 |
+ else |
28 |
+ ewarn "${PN} testsuite requires ocamlopt useflag" |
29 |
+ fi |
30 |
+} |
31 |
+ |
32 |
src_install() { |
33 |
emake BINDIR="${ED}"/usr/bin \ |
34 |
LIBDIR="${ED}"/usr/$(get_libdir)/ocaml \ |