# $Id$

PortSystem          1.0
PortGroup           ocaml 1.0

name                ocaml-uint
version             1.1.5
revision            1
categories          devel ml
platforms           darwin
license             BSD
maintainers         mww openmaintainer
description         Unsigned ints for OCaml
long_description    ${description}
homepage            http://forge.ocamlcore.org/projects/ocaml-uint/
master_sites        http://forge.ocamlcore.org/frs/download.php/1487/
checksums           rmd160  11529ff9601bbc8dc93b76949addf47850a910b7 \
                    sha256  e58c75490c192d34c75c4cafda7b71406d3ce86e69b0b680590d48ea0335ccea

depends_lib         port:ocaml port:ocaml-findlib

use_oasis           yes
use_oasis_doc       yes

patch {
    reinplace "s|\$prefix/include|${destroot}\$prefix/include|g" ${worksrcpath}/setup.ml
}

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

livecheck.type      regex
livecheck.url       http://forge.ocamlcore.org/frs/?group_id=139
livecheck.regex     uint-(\[0-9.\]+)${extract.suffix}