# $Id$

PortSystem          1.0
PortGroup           ocaml 1.0

name                ocaml-bolt
version             1.4
revision            2
categories          devel ml
license             LGPL-3
platforms           darwin
maintainers         mww openmaintainer
description         Bolt is a logging tool for the Objective Caml language.
long_description    ${description}
homepage            http://bolt.x9c.fr/
master_sites        https://forge.ocamlcore.org/frs/download.php/1043/

distname            bolt-${version}
checksums           rmd160  9f43bc4d02228ff0521c84db850a89497e5600e3 \
                    sha256  fea361095802d2630a38a512b07ba348a8cc6b84525132d6d249e57e333f00b1

depends_lib         port:ocaml port:ocaml-findlib

configure.pre_args  -ocaml-prefix ${prefix} -ocamlfind ${ocamlfind_wrapper}

use_parallel_build  no

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc
    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.url       http://bolt.x9c.fr/downloads.html
livecheck.regex     bolt-(\[0-9.\]+)${extract.suffix}