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

PortSystem          1.0
PortGroup           ocaml 1.0

name                ocaml-res
version             4.0.2
revision            2
categories          devel ml
platforms           darwin
license             LGPL-2.1
maintainers         mww openmaintainer
description         OCaml library for automatically resizing contiguous memory (arrays and strings)
long_description    ${description}
homepage            https://bitbucket.org/mmottl/res/
master_sites        https://bitbucket.org/mmottl/res/downloads/
checksums           rmd160  f1f04f9bfbcb3b3428b4bf9de563c7b133f64591 \
                    sha256  4f3e0a62c57ac1293ec119e94ecff2f404cd9196e71c276bd6c3855731af0d7e

distname            res-${version}

depends_lib         port:ocaml port:ocaml-findlib

use_oasis           yes
use_oasis_doc       yes

configure.args-append "--override docdir ${destroot}${prefix}/share/doc/${name}"

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     res-(\[0-9.\]+)${extract.suffix}

