# $Id: Portfile 61455 2009-12-11 21:48:45Z ryandesign@macports.org $

PortSystem          1.0

name                caml-res
version             3.2.0
distname            release-${version}
worksrcdir          res-${distname}
categories          devel ml
maintainers         mww openmaintainer
description         OCaml library for automatically resizing contiguous memory (arrays and strings)
long_description	${description}
homepage            http://www.ocaml.info/home/ocaml_sources.html
platforms           darwin
master_sites        http://hg.ocaml.info/release/res/archive/
checksums           md5     21545649743375ef57693fb6f025c48e \
                    sha1    ecddc0386ad02bc94cd46787fff7f262c3a8ca68 \
                    rmd160  269eef9992177a1618e82df502beaafc5ed6e47c
use_bzip2           yes

livecheck.type      regex
livecheck.regex     "res/archive/release-(\\d+(?:\\.\\d+)*).tar.bz2"

depends_lib         port:ocaml port:caml-findlib

use_configure       no

build.env           PREFIX=${prefix}
use_parallel_build  no

set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib

destroot.env        OCAMLFIND_INSTFLAGS="-destdir $ocamlfind_destdir"

pre-destroot {
    file mkdir $ocamlfind_destdir
}
