# -*- 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                libdatrie
version             0.2.5
categories          devel
license             LGPL-2.1+
platforms           darwin
maintainers         nomaintainer

description         An Implementation of Double-Array Trie.
long_description    {*}${description}

homepage            https://linux.thai.net/projects/datrie
master_sites        https://linux.thai.net/pub/thailinux/software/libthai

checksums           rmd160  714187f16cbc328b8c2d5184db80cfed0393cace \
                    sha256  e9f3c82e2f157341e88836dbc048da61c320bcc43c42781d7f7944a18f2415b8

depends_lib         port:libiconv

configure.args      --disable-doxygen-doc

use_parallel_build  yes

test.run            yes
test.target         check

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog INSTALL NEWS README ${destroot}${prefix}/share/doc/${name}
}

variant doxygen description {Create and install API docs} {
    depends_lib-append      path:bin/doxygen:doxygen
    configure.args-delete   --disable-doxygen-doc
    configure.args-append   --with-html-docdir=${prefix}/share/doc/${name}/html
}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ">${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}<"
