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

# Upstream tags releases as libunibreak_M_N but names the tarball
# libunibreak-M.N, so derive the port version from the tag component.
github.setup        adah1972 libunibreak 7_0 libunibreak_
github.tarball_from releases
version             [string map {_ .} ${github.version}]
revision            0

distname            ${name}-${version}

checksums           rmd160  0b239b0f240f16d296f8f15c77f62d6858ed348c \
                    sha256  8c9a6e121736cd0d5c890ae3ae96f3f4010a19aa040f1dbded833a62a87717d3 \
                    size    885859

categories          textproc
license             zlib
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

description         Unicode line, word and grapheme breaking library

long_description    libunibreak is an implementation of the line breaking and \
    word breaking algorithms as described in Unicode Standard Annex 14 and \
    Unicode Standard Annex 29. It is designed to be used in a generic text \
    renderer.

depends_build-append \
                    port:pkgconfig

configure.args      --disable-silent-rules

test.run            yes
test.target         check

github.livecheck.regex \
                    {(\d+(?:_\d+)+)}
