# -*- 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 6.0.0 v
revision            0
github.tarball_from archive

checksums           rmd160  6d3df5068f4b95ff8a82e7b20ab99a17f41b069a \
                    sha256  488a778577429408a3390b6aeac796eccaaa1297bb7573feccf3b608b9ae9d95 \
                    size    7531578

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}
}
