# $Id: Portfile 98499 2012-10-07 11:42:35Z mww@macports.org $

PortSystem          1.0

name                ocaml-batteries
conflicts           ocaml-batteries-devel
version             1.5.0
revision            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        https://forge.ocamlcore.org/frs/download.php/950/
platforms           darwin

distname            batteries-${version}

checksums           sha1    658a8401676d04f785ab2e98ea1586d5b49d5481 \
                    rmd160  30e6d5199f1f18874ba74bf835f88ed0de7ecdc0

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 qtest

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"

