[90203] trunk/dports/devel/ocaml-bin-prot
mww at macports.org
mww at macports.org
Sun Feb 26 04:56:57 PST 2012
Revision: 90203
http://trac.macports.org/changeset/90203
Author: mww at macports.org
Date: 2012-02-26 04:56:55 -0800 (Sun, 26 Feb 2012)
Log Message:
-----------
ocaml-bin-prot: fix compilation with latest clang (C99-semantics of inline, array-out-of-bound hack from OCaml's bigarray.h)
Modified Paths:
--------------
trunk/dports/devel/ocaml-bin-prot/Portfile
Added Paths:
-----------
trunk/dports/devel/ocaml-bin-prot/files/
trunk/dports/devel/ocaml-bin-prot/files/patch-myocamlbuild.ml.diff
Modified: trunk/dports/devel/ocaml-bin-prot/Portfile
===================================================================
--- trunk/dports/devel/ocaml-bin-prot/Portfile 2012-02-26 02:44:44 UTC (rev 90202)
+++ trunk/dports/devel/ocaml-bin-prot/Portfile 2012-02-26 12:56:55 UTC (rev 90203)
@@ -24,6 +24,16 @@
sha1 5744736b5eb9367633c5fc124d531f6d9d66ee5e \
rmd160 fe02221b20f2bb176a2a5e6f293c906470f945ce
+# remove me if http://caml.inria.fr/mantis/view.php?id=5516 is fixed
+patchfiles patch-myocamlbuild.ml.diff
+post-patch {
+ # deal with C99 semantics of inline
+ if {${configure.compiler} == "clang"} {
+ reinplace "s|inline||g" ${worksrcpath}/lib/common_stubs.c \
+ ${worksrcpath}/lib/read_stubs.c ${worksrcpath}/lib/write_stubs.c
+ }
+}
+
depends_lib port:ocaml port:ocaml-findlib port:ocaml-ounit port:ocaml-type-conv
use_configure no
@@ -31,6 +41,8 @@
build.env PREFIX=${prefix}
+test.run yes
+
set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
destroot.env OCAMLFIND_LDCONF="ignore" \
Added: trunk/dports/devel/ocaml-bin-prot/files/patch-myocamlbuild.ml.diff
===================================================================
--- trunk/dports/devel/ocaml-bin-prot/files/patch-myocamlbuild.ml.diff (rev 0)
+++ trunk/dports/devel/ocaml-bin-prot/files/patch-myocamlbuild.ml.diff 2012-02-26 12:56:55 UTC (rev 90203)
@@ -0,0 +1,10 @@
+--- myocamlbuild.ml 2011-09-01 19:40:11.000000000 +0200
++++ myocamlbuild.ml 2012-02-26 13:36:34.000000000 +0100
+@@ -512,6 +512,7 @@
+ "-Wextra";
+ "-Wunused";
+ "-Werror";
++ "-Wno-array-bounds"; (* remove me if http://caml.inria.fr/mantis/view.php?id=5516 is fixed *)
+ "-Wno-long-long";
+ ]
+ in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120226/c2c2d61c/attachment.html>
More information about the macports-changes
mailing list