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

epoch               1
github.setup        westes flex 2.7.9 v
categories          devel
license             BSD
maintainers         {ryandesign @ryandesign} openmaintainer

description         Fast lexical analyser generator

long_description    \
    Flex is a tool for generating programs that require pattern-matching on \
    text. It is usually used together with yacc/bison to automatically \
    generate a parser for a language grammar, e.g. the syntax of a \
    configuration file.

github.tarball_from releases
use_lzip            yes

checksums           rmd160  6dea8da8cae0ab91e511d71c5133690d7a90f847 \
                    sha256  d4714e657807e56af17a89b08ed1eb8e2cad237f3b9b05513bfbbeb60fe65cef \
                    size    1088567

depends_lib         port:gettext-runtime
depends_run         port:m4
depends_skip_archcheck-append m4

installs_libs       yes

configure.args      ac_cv_prog_AWK=/usr/bin/awk

test.run            yes
test.target         check

# GNU sed is required for running the test suite
depends_test-append port:gsed
test.env-append     PATH=${prefix}/libexec/gnubin:$env(PATH)
