# $Id: Portfile 56371 2009-08-26 19:23:28Z toby@macports.org $

PortSystem 1.0

name             sic
version          1.0
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
master_sites     http://dl.suckless.org/tools/
checksums        md5    d73d07d5de3ea06e9e83b90d26749202 \
                 sha1   814395a4366e7962867d869616220b073f664023 \
                 rmd160 cf258b14eb8a756906df898041453efc9efcc83a

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.check  regex
livecheck.url    [lindex ${master_sites} 0]
livecheck.regex  href=\"sic-(.*)\\.tar\\.gz\"
