PortSystem 1.0

name                ocaml-doc
version             4.08
license             Permissive
platforms           any
maintainers         nomaintainer
categories          lang ocaml
supported_archs     noarch
description         The Objective Caml reference manual
long_description    ${description}
homepage            https://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  249d58ef866e9bae7ada66bbca53684f8015a392 \
                    sha256  7e27bfb9e45b1618ab7c8461cb6c6244b006125593475c87ba49dd09746b5e77 \
                    size    1704609

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"
