# -*- 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
PortGroup           github 1.0
PortGroup           ocaml 1.1

name                ocaml-re
github.setup        ocaml ocaml-re 1.14.0
revision            2
categories          ocaml devel
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             MIT
description         Regular expression library for OCaml
long_description    A pure OCaml regular expression library with support for \
                    Perl, POSIX extended, and Emacs-style regular expressions \
                    as well as shell-style file globbing.
checksums           rmd160  909d28e74af264785691c584403c2c25a3a9b712 \
                    sha256  e32eb4c6f319ff74241da9e1b00032f990241347271baf3adb468faaaa616147 \
                    size    110936
github.tarball_from archive

depends_test-append port:ocaml-js_of_ocaml \
                    port:ocaml-ounit \
                    port:ocaml-ppx_expect

ocaml.build_type    dune

post-destroot {
    file rename -- \
        ${destroot}${prefix}/share/doc/re \
        ${destroot}${prefix}/share/doc/${name}
}
