1 |
commit: 9dc3663a2ba8a9a84fa283d166e91a249ab65d2b |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 10 21:37:53 2020 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 10 21:37:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dc3663a |
7 |
|
8 |
sci-mathematics/alt-ergo: fix build with ocaml-4.09 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/712032 |
11 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
12 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
13 |
|
14 |
sci-mathematics/alt-ergo/alt-ergo-2.3.0.ebuild | 9 +++++++-- |
15 |
1 file changed, 7 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/sci-mathematics/alt-ergo/alt-ergo-2.3.0.ebuild b/sci-mathematics/alt-ergo/alt-ergo-2.3.0.ebuild |
18 |
index 6dc8404508d..2f9029c56d0 100644 |
19 |
--- a/sci-mathematics/alt-ergo/alt-ergo-2.3.0.ebuild |
20 |
+++ b/sci-mathematics/alt-ergo/alt-ergo-2.3.0.ebuild |
21 |
@@ -1,4 +1,4 @@ |
22 |
-# Copyright 1999-2019 Gentoo Authors |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
EAPI=7 |
27 |
@@ -12,7 +12,7 @@ SLOT="0" |
28 |
KEYWORDS="amd64" |
29 |
IUSE="examples gtk +ocamlopt" |
30 |
|
31 |
-DEPEND=">=dev-lang/ocaml-3.12.1[ocamlopt?] |
32 |
+DEPEND=">=dev-lang/ocaml-4.09.0[ocamlopt?] |
33 |
dev-ml/zarith |
34 |
gtk? ( >=dev-ml/lablgtk-2.14[sourceview,ocamlopt?] ) |
35 |
dev-ml/camlzip |
36 |
@@ -25,6 +25,11 @@ RDEPEND="${DEPEND}" |
37 |
|
38 |
DOCS=( CHANGES INSTALL.md README.md ) |
39 |
|
40 |
+src_prepare() { |
41 |
+ default |
42 |
+ find "${S}" -name \*.ml | xargs sed -i "s:Pervasives:Stdlib:g" || die |
43 |
+} |
44 |
+ |
45 |
src_configure() { |
46 |
./configure --prefix /usr --libdir=/usr/$(get_libdir) |
47 |
} |