PortSystem          1.0
PortGroup           ocaml 1.0

name                ocaml-res
version             4.0.4
revision            1
categories          ocaml devel
platforms           darwin
license             LGPL-2.1
maintainers         nomaintainer
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  e724aa2280654ae8391c437c985994c6d19d1259 \
                    sha256  bac9fddebca10e5cdb364babc49e62df0f6289cdadf3cef2810d9b4b81e23bd1

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}