dev-ml/js_of_ocaml: Fix build with latest ppx tools.
authorAlexis Ballier <aballier@gentoo.org>
Sat, 1 Apr 2017 21:50:21 +0000 (23:50 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Sun, 2 Apr 2017 08:38:03 +0000 (10:38 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

dev-ml/js_of_ocaml/files/ppx.patch [new file with mode: 0644]
dev-ml/js_of_ocaml/js_of_ocaml-2.8.4.ebuild

diff --git a/dev-ml/js_of_ocaml/files/ppx.patch b/dev-ml/js_of_ocaml/files/ppx.patch
new file mode 100644 (file)
index 0000000..c46293f
--- /dev/null
@@ -0,0 +1,11 @@
+Index: js_of_ocaml-2.8.4/lib/ppx_driver/ppx_js_driver.ml
+===================================================================
+--- js_of_ocaml-2.8.4.orig/lib/ppx_driver/ppx_js_driver.ml
++++ js_of_ocaml-2.8.4/lib/ppx_driver/ppx_js_driver.ml
+@@ -1,5 +1,5 @@
+ let () =
+   let js_mapper = Ppx_js.js_mapper [] in
+-  Ppx_driver.register_transformation "js_of_ocaml"
++  Ppx_driver.register_transformation_using_ocaml_current_ast "js_of_ocaml"
+     ~impl:(js_mapper.Ast_mapper.structure js_mapper)
+     ~intf:(js_mapper.Ast_mapper.signature js_mapper)
index a68da44990b4a25a0ca484feab14c3ae7faee769..11d4b7ce0093c0cd21b3d30d3831fc9168db8271 100644 (file)
@@ -40,6 +40,10 @@ RDEPEND="
        deriving? ( >=dev-ml/deriving-0.6:= )"
 DEPEND="${RDEPEND}"
 
+src_prepare() {
+       epatch "${FILESDIR}/ppx.patch"
+}
+
 src_configure() {
        printf "\n\n" >> Makefile.conf
        use ocamlopt || echo "BEST := byte" >> Makefile.conf