PortSystem 1.0

name		tkirc
version		2.46
revision            1
categories	irc
license		GPL-2+
maintainers	nomaintainer
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.
homepage	http://netsplit.de/tkirc2/

platforms	darwin
supported_archs	noarch
master_sites	ftp://ftp.netsplit.de/pub/tcltk/ netbsd:packages/distfiles
checksums	md5 b6b16369e2d1cd6a0941d93577d6831e
distname	${name}${version}
worksrcdir	tkirc2

depends_run         port:ircii \
                    port:tk

use_configure	no

build {
    reinplace -locale C "s;wish8.3;${prefix}/bin/wish;" ${worksrcpath}/tkirc2
}

destroot {
    xinstall ${worksrcpath}/tkirc2 ${destroot}${prefix}/bin
    ln -s tkirc2 ${destroot}${prefix}/bin/tkirc

    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -W ${worksrcpath} CHANGES COPYING README ${destroot}${docdir}

    xinstall -d ${destroot}${prefix}/share/doc/tkirc/examples
    copy ${worksrcpath}/.tkirc2 ${destroot}${prefix}/share/doc/tkirc/examples
}
