# -*- 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                tkirc
version             2.46
revision            1
checksums           md5     b6b16369e2d1cd6a0941d93577d6831e

categories          irc
platforms           darwin
license             GPL-2+
maintainers         nomaintainer
supported_archs     noarch

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/

master_sites        ${homepage} \
                    netbsd:packages/distfiles

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
}

livecheck.regex     tkirc(\\d+(?:\\.\\d+)*)${extract.suffix}