# $Id: Portfile 113343 2013-11-13 20:52:12Z toby@macports.org $

PortSystem 1.0

name             ii
version          1.7
categories       irc
maintainers      toby
description      minimalist FIFO and filesystem-based IRC client
long_description \
	ii is a minimalist FIFO and filesystem-based IRC client. \
	It creates an irc directory tree with server, channel and \
	nick name directories. In every directory a FIFO in file \
	and a normal out file is created.
homepage         http://tools.suckless.org/ii/
platforms        darwin
license          MIT
master_sites     http://dl.suckless.org/tools/
checksums        rmd160 b107bf4b62ad77a91e383fd7b25dbf54d6238d43 \
                 sha256 3a72ac6606d5560b625c062c71f135820e2214fed098e6d624fc40632dc7cc9c

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=\"ii-(.*)\\.tar\\.gz\"
