Commits

Mitsuhiro Nakamura  committed 40f660d

Added devel/caml-core.

  • Participants
  • Parent commits 1e58898

Comments (0)

Files changed (2)

File devel/caml-core/Portfile

+# $Id: Portfile 77747 2011-04-11 04:32:35Z jmr@macports.org $
+
+PortSystem          1.0
+
+name                caml-core
+version             107.01
+categories          devel ml
+platforms           darwin
+maintainers         mww openmaintainer
+description         Jane Street's alternative to the standard OCaml library
+license             LGPL-2.1
+long_description    ${description}
+homepage            http://www.janestreet.com/ocaml/
+master_sites        ${homepage}
+checksums           md5     375d8f46e47d44e1de35cf36b78b9c8e \
+                    sha1    ef4443939cb42f5778912608d3023a669b06d44f \
+                    rmd160  5a496d71ac40bd709675e12a90233956a7a9309d
+
+distname            core-${version}
+
+depends_lib         port:ocaml port:caml-findlib port:caml-sexplib \
+                    port:caml-res port:caml-bin-prot port:caml-fieldslib
+
+use_configure       no
+
+build.env           PREFIX=${prefix}
+use_parallel_build  no
+
+set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
+
+destroot.env        OCAMLFIND_DESTDIR="$ocamlfind_destdir"
+
+pre-destroot {
+    xinstall -m 755 -d $ocamlfind_destdir/stublibs
+}
+
+platform darwin {
+    patchfiles-append lib_zone.ml.diff
+}

File devel/caml-core/files/lib_zone.ml.diff

+--- lib/zone.ml.orig	2011-10-28 19:30:49.000000000 +0900
++++ lib/zone.ml	2011-10-28 19:30:54.000000000 +0900
+@@ -387,7 +387,7 @@
+   let default () =
+     {
+       full = false;
+-      basedir = "/usr/share/zoneinfo/posix";
++      basedir = "/usr/share/zoneinfo";
+       table = String.Table.create ~size:11 ();
+     }
+