# -*- 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.2.0
revision            3
categories          textproc devel ocaml
maintainers         nomaintainer
license             GPL-3
description         Xml templating library for OCaml
long_description    {*}${description}

homepage            https://www.good-eris.net/xtmpl/
master_sites        ${homepage}releases/

distname            xtmpl-${version}

use_bzip2           yes

checksums           rmd160  73bfe0f29543fbf9acad4353c9535152f0da5ebe \
                    sha256  72140fa4583aa369ad056ddba8d9929ccd6693d96fd286d691e23333efc090d9 \
                    size    37001

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

ocaml.build_type    dune

subport ocaml-xtmpl_ppx {
    description         Xml templating library for OCaml, ppx extension
    long_description    {*}${description}

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

livecheck.type      regex
livecheck.url       https://framagit.org/zoggy/xtmpl/-/tags
livecheck.regex     {xtmpl-(\d+\.\d+\.\d+)\.tar}
