# $Id: Portfile 62874 2010-01-20 18:00:20Z mww@macports.org $

PortSystem          1.0

name                ocaml-doc
version             3.11
platforms           darwin
maintainers         mww openmaintainer
categories          lang ml
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           md5     bfb4ed960974159f4224014a979baf6d \
                    sha1    97159cf3d4ea64d0ca03f04997fdfc00982d22b0 \
                    rmd160  8d77630ee0c3dcdae1ef142a59eb876271f1c335

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}-${version}
}

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