# $Id: Portfile 87958 2011-12-14 05:19:33Z ryandesign@macports.org $

PortSystem      1.0

name            txt2regex
version         0.8
categories      sysutils
platforms       darwin freebsd
maintainers     technokracy.net:grrr
description     Converts human sentences to regexes

long_description \
    Txt2regex is a Regular Expression Wizard that converts human sentences \
    to regexes. In a simple interactive console interface, the user answers \
    questions and the program build the regexes for more than 20 programs, \
    like Vim, Emacs, Perl, PHP, Python, Procmail and OpenOffice.org. It \
    is a Shell Script 100% written with Bash builtin commands.

homepage        http://txt2regex.sourceforge.net/
master_sites    ${homepage}
extract.suffix  .tgz

checksums       md5 83bc1f95b36fe51ade8d130fab390103 \
                sha1 367923b1dad95c68b8e46db6888135b8b8d00807 \
                rmd160 03387e1a43b17b7a977bcd8a5beb9b48c3cff24c

use_configure   no
build           {}

destroot {
    xinstall -m 555 ${worksrcpath}/${name}-${version}.sh ${destroot}${prefix}/bin/${name}
    xinstall -m 444 ${worksrcpath}/${name}.man ${destroot}${prefix}/share/man/man1
}

livecheck.type  regex
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
