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

name                re-flex
github.setup        Genivia RE-flex 5.5.0 v
revision            0
github.tarball_from archive

checksums           rmd160  c4327215223b0d6f22a05a479668c0d3c16d0094 \
                    sha256  9057d0d149259d3706e878c54a9c393ab22c7580f35bbd7ddea56e72db906da2 \
                    size    7562485

categories          devel
maintainers         nomaintainer
license             BSD

description         regex-centric, fast lexical analyzer generator for C++ with full Unicode support

long_description    RE/flex is a regex-centric, fast lexical analyzer generator for C++ with \
                    full Unicode support. Faster than Flex. Accepts Flex specifications. \
                    Generates reusable source code that is easy to understand. Introduces \
                    indent/dedent anchors, lazy quantifiers, functions for lex/syntax error \
                    reporting and more. Seamlessly integrates with Bison and other parsers.

homepage            https://www.genivia.com/doc/reflex/html/

notes               "The executable and manpage are renamed to \"re-flex\" (consistent with the port name), avoiding conflict with the pre-existing \"reflex\" port."

configure.args-append --program-transform-name=s,reflex,re-flex,g

compiler.cxx_standard 2011

test.run            yes
test.target         test

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 {*}[glob ${worksrcpath}/doc/html/*] ${destroot}${docdir}
}
