# -*- 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

name                tkregexp
version             3.0
categories          x11
license             GPL-2+
platforms           any
supported_archs     noarch
maintainers         nomaintainer
homepage            http://laurent.riesterer.free.fr/regexp/
description         Design and debug regular expressions

long_description    tkregexp helps you to design or more generally work \
                    with regular expressions. As it is often difficult to \
                    write the right regexp at the first try, this tool will \
                    show you the effet of your regexp on a sample you can \
                    choose.

master_sites        ${homepage}
checksums           md5 e87b1bce03b9e7e1d6a23b0b77490f1e

distname            visual_regexp-${version}

depends_run         bin:wish8.4:tk

use_configure       no

build               {}

post-build {
    reinplace "s|wish8.3|wish8.4|" ${worksrcpath}/visual_regexp.tcl
}

destroot {
    xinstall -m 755 ${worksrcpath}/visual_regexp.tcl \
    ${destroot}${prefix}/bin
    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 ${worksrcpath}/README \
    ${destroot}${prefix}/share/doc/${name}
}

post-destroot {
    system "cd ${destroot}${prefix}/bin && \
            ln -s visual_regexp.tcl tkregexp"
}

livecheck.name      visual_regexp
