commit: 2cb38bc42a2d5cea1a1fa428916aa0c0641d145f
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 9 08:20:00 2017 +0000
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Sun Jul 9 08:20:00 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cb38bc4
dev-ml/zarith: Skip tests when not building native code, they require it. Bug
#624292
Package-Manager: Portage-2.3.6, Repoman-2.3.2
dev-ml/zarith/zarith-1.5.ebuild | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dev-ml/zarith/zarith-1.5.ebuild b/dev-ml/zarith/zarith-1.5.ebuild
index fcb766936ac..25bf4fad370 100644
--- a/dev-ml/zarith/zarith-1.5.ebuild
+++ b/dev-ml/zarith/zarith-1.5.ebuild
@@ -37,7 +37,11 @@ src_compile() {
}
src_test() {
- emake HASOCAMLOPT=$(usex ocamlopt yes no) HASDYNLINK=$(usex ocamlopt
yes no) tests
+ if use ocamlopt ; then
+ emake HASOCAMLOPT=$(usex ocamlopt yes no) HASDYNLINK=$(usex
ocamlopt yes no) tests
+ else
+ ewarn "Tests require USE=ocamlopt. Skipping them."
+ fi
}
src_install() {