Portfile

# $Id: Portfile 23053 2007-03-23 20:35:47Z pipping@macports.org $

PortSystem 1.0
name tkirc
version 2.46
categories irc
maintainers nomaintainer@macports.org
description A Tk-based GUI for the ircII Internet Relay Chat client
long_description Tkirc is a frontend for unix's ircII (shell-client for the Internet Relay Chat) based on Tcl/Tk. If you know how to use ircII, you should not have any problems using tkirc.

platforms darwin
master_sites ftp://ftp.netsplit.de/pub/tcltk/
checksums md5 b6b16369e2d1cd6a0941d93577d6831e
depends_run bin:ircII:ircii bin:wish8.4:tk
distname ${name}${version}
worksrcdir tkirc2

configure {}
build {
reinplace "s;wish8.3;wish8.4;" ${worksrcpath}/tkirc2
}

destroot {
system "install -d ${destroot}${prefix}/bin"
system "install -d ${destroot}${prefix}/share/doc/tkirc/examples"
system "install -c ${worksrcpath}/tkirc2 ${destroot}${prefix}/bin"
system "ln -fs ${destroot}${prefix}/bin/tkirc2 ${destroot}${prefix}/bin/tkirc"
system "install -c ${worksrcpath}/CHANGES ${destroot}${prefix}/share/doc/tkirc"
system "install -c ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/tkirc"
system "install -c ${worksrcpath}/README ${destroot}${prefix}/share/doc/tkirc"
system "tar -cf - -C ${worksrcpath} .tkirc2 | tar -xf - -C ${destroot}${prefix}/share/doc/tkirc/examples"
}