# -*- 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
# $Id: Portfile 113522 2013-11-19 00:30:45Z mfeiri@macports.org $

PortSystem 1.0

name                znc
version             1.2
categories          irc
platforms           darwin
maintainers         mfeiri openmaintainer
license             Apache-2
description         An advanced IRC bouncer
long_description    ZNC is an IRC bounce/proxy with many advanced features \
                    like detaching, multiple users, multiple clients per \
                    user, channel/query playback buffers, SSL, IPv6, \
                    transparent DCC bouncing, C++/Perl/Tcl module support, \
                    party line, and Web administration.

homepage            http://znc.in/
master_sites        ${homepage}releases/old/
checksums           sha1    69a05702d2db8329ed323e9f74408260ea82c0eb \
                    rmd160  b7771437361f76ebe0bd7eebd00e221f0c2a4aa5

universal_variant   no
patchfiles          patch-modules-modperl.cpp.diff
depends_lib         port:openssl port:tcl port:perl5
configure.args      --enable-perl --enable-tcl --with-tcl=${prefix}/lib

post-extract {
    reinplace "s|-Wno-type-limits||g" ${worksrcpath}/modules/modperl/Makefile.inc
    reinplace "s|-Wno-strict-overflow||g" ${worksrcpath}/modules/modperl/Makefile.inc
}

livecheck.type      regex
livecheck.url       ${homepage}releases/
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
