PortSystem      1.0

name            txt2regex
version         0.8
revision        1
categories      sysutils
platforms       any
maintainers     technokracy.net:grrr
supported_archs noarch
license         GPL-2

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

depends_build   port:gettext

patchfiles      patch-Makefile.diff

use_configure   no
build           {}

destroot.args   PREFIX=${prefix}

# sed: RE error: illegal byte sequence
destroot.env    LC_CTYPE=C

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