# $Id: Portfile 116411 2014-01-24 07:14:38Z mww@macports.org $

PortSystem          1.0
PortGroup ocaml 1.0

name                ocaml-batteries
conflicts           ocaml-batteries-devel
version             2.2
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/1363/
platforms           darwin

distname            batteries-${version}

checksums           rmd160  eb57d6497d190c991aafb03ef305f86b748a72b0 \
                    sha256  7a7139ffa0c0da356a3be63a1024eb15f15eaf6d396b999565e77f77ca789c7c

depends_lib         port:ocaml \
                    port:ocaml-findlib \
                    port:ocaml-ounit \
                    port:ocaml-bisect

use_oasis           yes

configure.args-append "--destdir ${destroot}"

# setup does ignore ocamlfind wrapper AND --destdir :/
destroot.env-append PATH=${workpath}:$env(PATH)

livecheck.type      regex
livecheck.regex     "batteries-(.*?).tar.gz"
livecheck.url       https://forge.ocamlcore.org/frs/?group_id=17

