# $Id: Portfile 95925 2012-07-26 18:02:21Z mww@macports.org $

PortSystem 1.0

name                ocaml-doc
version             4.00
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  91c99bf290d3fbf9381188fad4ececcd59e9a962 \
                    sha256  8ca43859d8a71f0941a2453b7b808d7e58ad54804a9cf285875fa30e6576b31a

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"

