1 |
commit: 8762ce2768ade2f75a3f87f4591bd30a3be88f21 |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 4 20:46:39 2017 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 4 20:46:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8762ce27 |
7 |
|
8 |
sci-mathematics/why3-for-spark: Add ocamlopt use flag |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
sci-mathematics/why3-for-spark/why3-for-spark-2017.ebuild | 12 ++++++++++-- |
13 |
1 file changed, 10 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/sci-mathematics/why3-for-spark/why3-for-spark-2017.ebuild b/sci-mathematics/why3-for-spark/why3-for-spark-2017.ebuild |
16 |
index ca75d4898e4..63af700cd3e 100644 |
17 |
--- a/sci-mathematics/why3-for-spark/why3-for-spark-2017.ebuild |
18 |
+++ b/sci-mathematics/why3-for-spark/why3-for-spark-2017.ebuild |
19 |
@@ -15,9 +15,9 @@ SRC_URI="http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed055 |
20 |
LICENSE="GPL-3" |
21 |
SLOT="0" |
22 |
KEYWORDS="~amd64" |
23 |
-IUSE="coq doc emacs gtk html hypothesis-selection profiling zarith zip" |
24 |
+IUSE="coq doc emacs gtk html hypothesis-selection +ocamlopt profiling zarith zip" |
25 |
|
26 |
-DEPEND=">=dev-lang/ocaml-4.02.3 |
27 |
+DEPEND=">=dev-lang/ocaml-4.02.3[ocamlopt?] |
28 |
dev-ml/menhir |
29 |
coq? ( sci-mathematics/coq ) |
30 |
doc? ( dev-tex/rubber ) |
31 |
@@ -55,6 +55,7 @@ src_configure() { |
32 |
$(use_enable gtk ide) \ |
33 |
$(use_enable html html-doc) \ |
34 |
$(use_enable hypothesis-selection) \ |
35 |
+ $(use_enable ocamlopt native-code) \ |
36 |
$(use_enable profiling) \ |
37 |
$(use_enable zarith) \ |
38 |
$(use_enable zip) |
39 |
@@ -62,6 +63,13 @@ src_configure() { |
40 |
|
41 |
src_compile() { |
42 |
default |
43 |
+ if use ocamlopt; then |
44 |
+ emake byte |
45 |
+ else |
46 |
+ # If using bytecode we dont want to strip the binary as it would remove |
47 |
+ # the bytecode and only leave ocamlrun... |
48 |
+ export STRIP_MASK="*/bin/*" |
49 |
+ fi |
50 |
use doc && emake doc |
51 |
} |