diff options
author | Alexis Ballier <aballier@gentoo.org> | 2016-03-01 19:44:00 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2016-03-01 19:47:37 +0100 |
commit | 1ad5dd3aad5751e18d1ffa0fa91acf8f5280169c (patch) | |
tree | 55bf581f3167422d39c664399127e8c10fb55eea /dev-ml | |
parent | dev-ml/ppx_driver: add ocamlbuild rdep (diff) | |
download | gentoo-1ad5dd3aad5751e18d1ffa0fa91acf8f5280169c.tar.gz gentoo-1ad5dd3aad5751e18d1ffa0fa91acf8f5280169c.tar.bz2 gentoo-1ad5dd3aad5751e18d1ffa0fa91acf8f5280169c.zip |
dev-ml/menhir: fix build with ocamlbuild 0.9.1
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ml')
-rw-r--r-- | dev-ml/menhir/files/ocamlbuild.patch | 13 | ||||
-rw-r--r-- | dev-ml/menhir/menhir-20151112.ebuild | 6 |
2 files changed, 18 insertions, 1 deletions
diff --git a/dev-ml/menhir/files/ocamlbuild.patch b/dev-ml/menhir/files/ocamlbuild.patch new file mode 100644 index 000000000000..6a8743f44b89 --- /dev/null +++ b/dev-ml/menhir/files/ocamlbuild.patch @@ -0,0 +1,13 @@ +Index: menhir-20151112/src/Makefile +=================================================================== +--- menhir-20151112.orig/src/Makefile ++++ menhir-20151112/src/Makefile +@@ -19,7 +19,7 @@ endif + # ---------------------------------------------------------------------------- + # Ocamlbuild tool and settings. + +-OCAMLBUILD := ocamlbuild -classic-display -j 0 -cflags "-safe-string -bin-annot" ++OCAMLBUILD := ocamlbuild -no-hygiene -classic-display -j 0 -cflags "-safe-string -bin-annot" + + # ---------------------------------------------------------------------------- + # For everyday development. diff --git a/dev-ml/menhir/menhir-20151112.ebuild b/dev-ml/menhir/menhir-20151112.ebuild index 61fb1e2d35a7..1b7e19d30348 100644 --- a/dev-ml/menhir/menhir-20151112.ebuild +++ b/dev-ml/menhir/menhir-20151112.ebuild @@ -4,7 +4,7 @@ EAPI=5 -inherit findlib +inherit findlib eutils DESCRIPTION="LR(1) parser generator for the OCaml language" HOMEPAGE="http://gallium.inria.fr/~fpottier/menhir/" @@ -19,6 +19,10 @@ RDEPEND=">=dev-lang/ocaml-4.02:=[ocamlopt?]" DEPEND="${RDEPEND} dev-ml/ocamlbuild" +src_prepare() { + epatch "${FILESDIR}/ocamlbuild.patch" +} + src_configure() { if ! use ocamlopt ; then export TARGET=byte |