# $Id$

PortSystem 1.0

name            flex
version         2.5.35
revision        1
categories      devel
maintainers     mww
license         BSD
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."

homepage		http://flex.sourceforge.net/
platforms		darwin
master_sites    sourceforge
checksums      	md5 10714e50cea54dc7a227e3eddcd44d57 \
				sha1 c507095833aaeef2d6502e12638e54bf7ad2f24a
use_bzip2		yes

depends_lib		port:gettext

configure.args	--infodir=${prefix}/share/info \
				--mandir=${prefix}/share/man

use_parallel_build  yes

test.run	yes
test.target	check

post-destroot {
    ln -sf flex ${destroot}${prefix}/bin/flex++
}

livecheck.type  regex
livecheck.regex {version (\d+(?:\.\d+)*)}