# $Id: Portfile 77747 2011-04-11 04:32:35Z jmr@macports.org $

PortSystem          1.0

name                caml-core
version             0.7.0
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     fc6195e8727f1e08020bad06c3833bc3 \
                    sha1    966a93901b8e168ecca4d010fa99b4c1d3b22bf8 \
                    rmd160  52a5e2a101b0ef33eb6ef7aca827aa69bdefb02b

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_TZ.ml.diff
}
