From 2cb38bc42a2d5cea1a1fa428916aa0c0641d145f Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Sun, 9 Jul 2017 10:20:00 +0200 Subject: [PATCH] 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 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() { -- 2.26.2