From 01d0c34e09444360b9b482bc424e4ccb0b7f5955 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sat, 30 Apr 2016 13:42:17 +0200 Subject: [PATCH] pfff: fix build on ocaml 4.03. --- srcpkgs/pfff/template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/srcpkgs/pfff/template b/srcpkgs/pfff/template index 72d7384016..1d8dc12686 100644 --- a/srcpkgs/pfff/template +++ b/srcpkgs/pfff/template @@ -1,7 +1,7 @@ # Template build file for 'pfff' pkgname=pfff version=0.29 -revision=1 +revision=2 build_style=configure configure_args="--prefix=/usr" short_desc="Tools and APIs for code analysis, visualization and transformation" @@ -15,6 +15,12 @@ depends="ocaml" nocross="yes" nostrip="yes" +post_extract() { + sed -i s/uint32/uint32_t/g external/ocamlzip/zlibstubs.c + sed -i '50,${/exception Error/d}' external/ocamlzip/zip.ml #duplicate def + sed -i 's/-warn-error .a//' Makefile.common lang_php/matcher/Makefile +} + do_build() { make depend make