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

name                ocaml-xtmpl
version             1.1.0
revision            2
categories          ocaml devel
maintainers         nomaintainer
license             GPL-3
description         Xml templating library
long_description    {*}${description}

homepage            https://www.good-eris.net/xtmpl
master_sites        ${homepage}/releases/
distname            xtmpl-${version}
use_bzip2           yes
checksums           rmd160  40cf590eb06c2c2d79d35bf9c6f991a328ba22e5 \
                    sha256  be69a4a8ab7ebf26cb35d4869a5d6cd955d628f8bbc377fbc838130883678613 \
                    size    36933

depends_lib-append  port:ocaml-iri \
                    port:ocaml-logs \
                    port:ocaml-re \
                    port:ocaml-sedlex \
                    port:ocaml-uutf

ocaml.build_type    dune

subport ocaml-xtmpl_ppx {
    description     {*}${description}, ppx extension

    depends_lib     port:ocaml-ppxlib \
                    port:ocaml-xtmpl
}

livecheck.type      regex
livecheck.regex     xtmpl-(\[0-9\.]+).tar.bz2
