# $Id: Portfile 30259 2007-10-23 02:31:56Z jmpp@macports.org $

PortSystem 1.0
name			tkregexp
version			3.0
categories		x11
platforms		darwin
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"
			}
