# $Id: Portfile 66004 2010-04-04 21:40:01Z ryandesign@macports.org $

PortSystem 1.0

name             irssistats
version          0.75
revision         1
categories       irc
maintainers      nomaintainer
description      generate IRC statistics from irssi logs
long_description \
	This tool generates IRC stats based on irssi logs.
homepage         http://royale.zerezo.com/irssistats/
platforms        darwin
master_sites     ${homepage}
checksums        md5 f3654fd292220bd9adada7ff6c7f0421

patch {
	reinplace "s|/etc|${prefix}/etc|" \
		${worksrcpath}/irssistats.1 \
		${worksrcpath}/irssistats.c \
		${worksrcpath}/irssistats.sgml \
		${worksrcpath}/sample.configfile
	reinplace "s|/usr|${prefix}|" \
		${worksrcpath}/irssistats.1 \
		${worksrcpath}/irssistats.sgml
}

use_configure    no

build.target
build.args CFLAGS="-O2 -fnested-functions"

destroot.destdir PRE=${destroot}${prefix}

livecheck.type   regex
livecheck.regex  ${name}-(\[0-9.\]+)\\.tar
