# $Id: Portfile 101620 2013-01-15 06:43:09Z mww@macports.org $

PortSystem          1.0
PortGroup           ocaml 1.0

name                ocaml-uint
version             1.1.0
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/1100/
checksums           rmd160  fcbb7954e165d4bc72d4c512d8e6c1c000c22aa3 \
                    sha256  61d64fb645b307aac44125553aa921a50203ffafd3ef8edf1b94eb7f02ae2421

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}

