# $Id: Portfile,v 1.6 2005/06/14 06:28:46 jkh Exp $

PortSystem 1.0
name		tkirc
version		2.46
categories	irc
maintainers	darwinports@opendarwin.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	${portname}${portversion}
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"
}

