# $Id$

PortSystem 1.0

name                ocaml-doc
version             4.01
license             Permissive
platforms           darwin
maintainers         mww openmaintainer
categories          lang ml
supported_archs     noarch
description         The Objective Caml reference manual
long_description    ${description}
homepage            http://www.ocaml.org/
master_sites        http://caml.inria.fr/pub/distrib/ocaml-${version} \
                    ftp://ftp.inria.fr/INRIA/Projects/cristal/ocaml/ocaml-${version}
distname            ocaml-${version}-refman-html
checksums           rmd160  0cfdd75eb93aa637fe9f364e854a2c51cfc1f8c6 \
                    sha256  01019c8f8a29a8a7f422e090704b666ade2a007d57ea9412285f88f716656001

set docdir          ${prefix}/share/doc/${name}-${version}

use_configure       no

build               {}

destroot {
    xinstall -d ${destroot}${prefix}/share/doc
    file copy ${workpath}/htmlman ${destroot}${prefix}/share/doc/${name}
}

livecheck.type  regex
livecheck.url   http://caml.inria.fr/download.en.html
livecheck.regex "ocaml-.*/ocaml-(.*)-refman.html.tar.gz"