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