# $Id: Portfile 113344 2013-11-13 20:55:17Z toby@macports.org $

PortSystem 1.0

name             sic
version          1.2
categories       irc
maintainers      toby
description      extremely fast, small and simple irc client
long_description \
	sic is an extremely fast, small and simple irc client. It \
	reads commands from standard input and prints all server \
	output to standard output. It multiplexes also all channel \
	traffic into one output, that you don't have to switch \
	different channel buffers, that's actually a feature.
homepage         http://tools.suckless.org/sic/
platforms        darwin
license          MIT
master_sites     http://dl.suckless.org/tools/
checksums        rmd160 19810b37d5635dbf7e3155344a6dff71b9c8bacc \
                 sha256 ac07f905995e13ba2c43912d7a035fbbe78a628d7ba1c256f4ca1372fb565185

patchfiles       patch-config.mk

configure {
	reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/config.mk
	reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/config.mk
	reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/config.mk
	reinplace "s|__LDFLAGS__|${configure.ldflags}|" ${worksrcpath}/config.mk
}

livecheck.type   regex
livecheck.url    [lindex ${master_sites} 0]
livecheck.regex  href=\"sic-(.*)\\.tar\\.gz\"
