# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                ocaml-doc
version             5.4
revision            0
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        https://caml.inria.fr/pub/distrib/ocaml-${version}/
distname            ocaml-${version}-refman-html

checksums           rmd160  102365ec0ea01f21e4af896362d767beb507eac3 \
                    sha256  2ee64c79207ff072f25915d67ed697262ba961383a66200b553c71db462e4aff \
                    size    2353791

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       https://github.com/ocaml/ocaml/releases
livecheck.regex     {releases/tag/(\d+\.\d+)\.\d}
