# -*- 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.3 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  d1344bd3e3cd1fb7a2d19ec649e83aeff4299fa1 \
                    sha256  8b08f0c6c2e38f20f8da9144d96cfda1f96d629b18638c621c95024939e18d2c \
                    size    1076261

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)
