dev-ml/pxp: fix build with ocaml 4.03
authorAlexis Ballier <aballier@gentoo.org>
Sun, 1 May 2016 18:50:00 +0000 (20:50 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 3 May 2016 09:13:52 +0000 (11:13 +0200)
Package-Manager: portage-2.2.28
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
dev-ml/pxp/files/oc43.patch [new file with mode: 0644]
dev-ml/pxp/pxp-1.2.8.ebuild

diff --git a/dev-ml/pxp/files/oc43.patch b/dev-ml/pxp/files/oc43.patch
new file mode 100644 (file)
index 0000000..0168c70
--- /dev/null
@@ -0,0 +1,13 @@
+Index: pxp-1.2.8/src/pxp-engine/pxp_document.ml
+===================================================================
+--- pxp-1.2.8.orig/src/pxp-engine/pxp_document.ml
++++ pxp-1.2.8/src/pxp-engine/pxp_document.ml
+@@ -3398,8 +3398,6 @@ let find_all_elements ?deeply eltype bas
+ ;;
+-exception Skip;;
+-
+ let map_tree ~pre ?(post=(fun x -> x)) base =
+   let rec map_rec n =
+     let n' = pre n in
index 0e272ed607b04dbd1d558ac03bc48b41100a04ab..77edb0055c3acd2169c97e56aed16bb5a95db990 100644 (file)
@@ -27,6 +27,10 @@ IUSE="examples +ocamlopt"
 
 S=${WORKDIR}/${MY_P}
 
+src_prepare() {
+       epatch "${FILESDIR}/oc43.patch"
+}
+
 src_configure() {
        #the included configure does not support  many standard switches and is quite picky
        ./configure || die "configure failed"