# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-

PortSystem              1.0
PortGroup               github 1.0

github.setup            apertium lttoolbox 3.7.6 v
revision                0
categories              textproc
license                 GPL-2+
maintainers             nomaintainer

description             toolbox for lexical processing, morphological analysis \
                        and generation

long_description        lttoolbox is a toolbox from the Apertium platform \
                        used for lexical processing, morphological analysis \
                        and generation of words. Analysis involves finding \
                        the lemma and grammatical information (e.g. noun, \
                        plural) of a surface form. Generation is the opposite \
                        process. The package is split into three programs, \
                        lt-comp (compiler), lt-proc (processor), and \
                        lt-expand (generates all possible mappings between \
                        surface forms and lexical forms).

homepage                http://wiki.apertium.org/wiki/Lttoolbox

checksums               rmd160  6950ffe612a4667e8f67f28e290aed569fe5e8a1 \
                        sha256  ab1291608ab56e541698d57a22bc1a64cd6f0b453bc2aee7792540f878bb1d1d \
                        size    211782

compiler.cxx_standard   2017
configure.cxxflags-append \
                        -std=c++17 \
                        -I${prefix}/include/utf8cpp

use_autoreconf          yes

depends_build           port:autoconf \
                        port:automake \
                        port:libtool \
                        path:bin/pkg-config:pkgconfig \
                        port:utfcpp

depends_lib             port:libxml2 \
                        port:icu

livecheck.regex         /${name}-(\[0-9.\]+)${extract.suffix}
