1 |
commit: a94a3df89153fa514be328be032071c2d41545e7 |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 1 21:50:21 2017 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 2 08:38:03 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a94a3df8 |
7 |
|
8 |
dev-ml/js_of_ocaml: Fix build with latest ppx tools. |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
dev-ml/js_of_ocaml/files/ppx.patch | 11 +++++++++++ |
13 |
dev-ml/js_of_ocaml/js_of_ocaml-2.8.4.ebuild | 4 ++++ |
14 |
2 files changed, 15 insertions(+) |
15 |
|
16 |
diff --git a/dev-ml/js_of_ocaml/files/ppx.patch b/dev-ml/js_of_ocaml/files/ppx.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..c46293f546d |
19 |
--- /dev/null |
20 |
+++ b/dev-ml/js_of_ocaml/files/ppx.patch |
21 |
@@ -0,0 +1,11 @@ |
22 |
+Index: js_of_ocaml-2.8.4/lib/ppx_driver/ppx_js_driver.ml |
23 |
+=================================================================== |
24 |
+--- js_of_ocaml-2.8.4.orig/lib/ppx_driver/ppx_js_driver.ml |
25 |
++++ js_of_ocaml-2.8.4/lib/ppx_driver/ppx_js_driver.ml |
26 |
+@@ -1,5 +1,5 @@ |
27 |
+ let () = |
28 |
+ let js_mapper = Ppx_js.js_mapper [] in |
29 |
+- Ppx_driver.register_transformation "js_of_ocaml" |
30 |
++ Ppx_driver.register_transformation_using_ocaml_current_ast "js_of_ocaml" |
31 |
+ ~impl:(js_mapper.Ast_mapper.structure js_mapper) |
32 |
+ ~intf:(js_mapper.Ast_mapper.signature js_mapper) |
33 |
|
34 |
diff --git a/dev-ml/js_of_ocaml/js_of_ocaml-2.8.4.ebuild b/dev-ml/js_of_ocaml/js_of_ocaml-2.8.4.ebuild |
35 |
index a68da44990b..11d4b7ce009 100644 |
36 |
--- a/dev-ml/js_of_ocaml/js_of_ocaml-2.8.4.ebuild |
37 |
+++ b/dev-ml/js_of_ocaml/js_of_ocaml-2.8.4.ebuild |
38 |
@@ -40,6 +40,10 @@ RDEPEND=" |
39 |
deriving? ( >=dev-ml/deriving-0.6:= )" |
40 |
DEPEND="${RDEPEND}" |
41 |
|
42 |
+src_prepare() { |
43 |
+ epatch "${FILESDIR}/ppx.patch" |
44 |
+} |
45 |
+ |
46 |
src_configure() { |
47 |
printf "\n\n" >> Makefile.conf |
48 |
use ocamlopt || echo "BEST := byte" >> Makefile.conf |