diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-03-03 11:58:01 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-03-03 11:58:10 +0100 |
commit | 1c1491debaf5316851abf30a34e4084342c38e8c (patch) | |
tree | f73ebcfe348a208a5760f094604771e513d94a97 | |
parent | 05bd4dd77c86d117c253b3f323e223ee94120766 (diff) | |
download | gentoo-1c1491debaf5316851abf30a34e4084342c38e8c.tar.gz gentoo-1c1491debaf5316851abf30a34e4084342c38e8c.tar.xz |
dev-lang/ocaml: add tests support
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
-rw-r--r-- | dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild b/dev-lang/ocaml/ocaml-4.03.0_beta1.ebuild index 80342654783..0aea93c39f9 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 \ |