[84562] trunk/dports/devel/ocaml-extunix
mww at macports.org
mww at macports.org
Wed Sep 28 02:47:33 PDT 2011
Revision: 84562
http://trac.macports.org/changeset/84562
Author: mww at macports.org
Date: 2011-09-28 02:47:32 -0700 (Wed, 28 Sep 2011)
Log Message:
-----------
ocaml-extunix: patch to enable more functions on OS X (otherwise they are not found but available)
Modified Paths:
--------------
trunk/dports/devel/ocaml-extunix/Portfile
Added Paths:
-----------
trunk/dports/devel/ocaml-extunix/files/
trunk/dports/devel/ocaml-extunix/files/patch-src-discover.ml.diff
Modified: trunk/dports/devel/ocaml-extunix/Portfile
===================================================================
--- trunk/dports/devel/ocaml-extunix/Portfile 2011-09-28 08:10:20 UTC (rev 84561)
+++ trunk/dports/devel/ocaml-extunix/Portfile 2011-09-28 09:47:32 UTC (rev 84562)
@@ -4,6 +4,7 @@
name ocaml-extunix
version 0.0.3
+revision 1
categories devel ml
maintainers mww openmaintainer
description Extended Unix Library for OCaml
@@ -18,6 +19,8 @@
depends_lib port:ocaml port:caml-findlib port:caml-ounit
+patchfiles patch-src-discover.ml.diff
+
set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
# cheat the system by providing a thin ocamlfind-wrapper that obeys destdir
Added: trunk/dports/devel/ocaml-extunix/files/patch-src-discover.ml.diff
===================================================================
--- trunk/dports/devel/ocaml-extunix/files/patch-src-discover.ml.diff (rev 0)
+++ trunk/dports/devel/ocaml-extunix/files/patch-src-discover.ml.diff 2011-09-28 09:47:32 UTC (rev 84562)
@@ -0,0 +1,19 @@
+--- src/discover.ml 2011-07-12 10:21:07.000000000 +0200
++++ src/discover.ml 2011-09-28 11:33:04.000000000 +0200
+@@ -35,8 +35,6 @@
+ let get_includes = filter_map (function I s -> Some s | _ -> None)
+
+ let config_defines = [
+- "_POSIX_C_SOURCE 200112L";
+- "_XOPEN_SOURCE 600";
+ "_BSD_SOURCE";
+ "_LARGEFILE64_SOURCE";
+ "WIN32_LEAN_AND_MEAN";
+@@ -243,6 +241,6 @@
+ "EXECINFO", L[ I"execinfo.h"; S"backtrace"; S"backtrace_symbols"; ];
+ "SETENV", L[ I"stdlib.h"; S"setenv"; S"unsetenv"; ];
+ "CLEARENV", L[ I"stdlib.h"; S"clearenv"; ];
+- "MKDTEMP", L[ I"stdlib.h"; S"mkdtemp"; ];
++ "MKDTEMP", L[ I"stdlib.h"; I"unistd.h"; S"mkdtemp"; ];
+ ]
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110928/c7a23ba9/attachment-0001.html>
More information about the macports-changes
mailing list