Skip to content

Commit

Permalink
dev-ml/js_of_ocaml: Fix build with latest ppx tools.
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.5, Repoman-2.3.2
  • Loading branch information
aballier committed Apr 2, 2017
1 parent 8afec5e commit a94a3df
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dev-ml/js_of_ocaml/files/ppx.patch
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 4 additions & 0 deletions dev-ml/js_of_ocaml/js_of_ocaml-2.8.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a94a3df

Please sign in to comment.