# $Id: Portfile 88530 2012-01-04 02:07:30Z mww@macports.org $

PortSystem          1.0

name                ocaml-batteries
version             1.4.1
categories          devel ml
maintainers         erickt openmaintainer
license             LGPL-2.1
description         A new O'Caml standard library
long_description    OCaml Batteries included (or simply Batteries) is a \
                    community-driven effort to standardize on an consistent, \
                    documented, and comprehensive development platform for the \
                    OCaml programming language.
homepage            http://batteries.forge.ocamlcore.org/
master_sites        http://forge.ocamlcore.org/frs/download.php/684/
platforms           darwin

distname            batteries-${version}

checksums           sha1    bb681690ab5a6f8b0b21c4de38349f07302eb4ba \
                    rmd160  bdadb7ae9725abc9dce829458b519fa240588341

depends_lib         port:ocaml \
                    port:ocaml-findlib \
                    port:ocaml-type-conv \
                    port:ocaml-sexplib \
                    port:ocaml-bin-prot \
                    port:ocaml-camomile \
                    port:ocaml-zip \
                    port:ocaml-ocamlnet \
                    port:ocaml-ounit

use_configure       no
use_parallel_build  no

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

build.target        all doc

destroot.target     install install-doc
destroot.destdir    DESTDIR=${ocamlfind_destdir} DOCROOT=${destroot}${prefix}/share/doc/${name}

pre-destroot {
    file mkdir $ocamlfind_destdir
}

livecheck.type      regex
livecheck.regex     "batteries-(.*?).tar.gz"

