From: Alexis Ballier Date: Sun, 9 Jul 2017 08:20:00 +0000 (+0200) Subject: dev-ml/zarith: Skip tests when not building native code, they require it. Bug #624292 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2cb38bc42a2d5cea1a1fa428916aa0c0641d145f;p=gentoo.git 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 --- diff --git a/dev-ml/zarith/zarith-1.5.ebuild b/dev-ml/zarith/zarith-1.5.ebuild index fcb766936ac4..25bf4fad3701 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() {