# -*- 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
# $Id: Portfile 105971 2013-05-11 12:12:41Z ryandesign@macports.org $

PortSystem          1.0

name                reflex
version             2.5.4-20100906
set version_date    [lindex [split ${version} -] 1]
categories          devel
platforms           darwin
maintainers         ryandesign openmaintainer
# not sure what license to list, since it's similar to but not identical to BSD

description         a variant of the flex fast lexical scanner

long_description    Reflex is a new implementation of flex, which is a tool \
                    for generating programs that perform pattern-matching on \
                    text.

homepage            http://invisible-island.net/reflex/
master_sites        ftp://invisible-island.net/reflex/
distname            ${name}-${version_date}
extract.suffix      .tgz

checksums           rmd160  4421344d49f68b5a5a90fce96ffd1ca73767cf14 \
                    sha256  111daaf27268943b37ffe5fd4197c918d0f7854e4506957672a8da1f70360459

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

test.run            yes
test.target         bigcheck

livecheck.type      regex
livecheck.version   ${version_date}
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
