# -*- 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

PortSystem          1.0
PortGroup           conflicts_build 1.0

name                bitchx
version             1.2.1
revision            4

categories          irc
license             BSD
maintainers         nomaintainer

description         BitchX - An IRC Client based on ircII w/ ANSI color and much much more.
long_description    BitchX is an IRC (Internet Relay Chat) client by Colten Edwards aka \
                    panasync@efnet, it is based on it's predecessors ircII and EPIC. \
                    BitchX was originally started as a script by Trench and HappyCrappy \
                    for the popular UNIX IRC client ircII. Around Christmas of 1994 the \
                    script was patched directly into the client by panasync.

homepage            https://sourceforge.net/projects/bitchx/
master_sites        sourceforge:project/${name}/ircii-pana/${name}-${version}

checksums           rmd160  0bf85169f26297fe517b2886f8b9693c360f32f7 \
                    sha256  2d270500dd42b5e2b191980d584f6587ca8a0dbda26b35ce7fadb519f53c83e2 \
                    size    2549182

# https://trac.macports.org/ticket/70258
conflicts_build     gcam

depends_lib         path:lib/libssl.dylib:openssl

# backported from https://sourceforge.net/p/bitchx/git/ci/4f63d4892995eec6707f194b462c9fc3184ee85d/
# backported from https://github.com/freebsd/freebsd-ports/commit/7075120b4d50ebba264775ce8a5bcbcafd1d99a2
# backported from https://sourceforge.net/p/bitchx/git/ci/184af728c73c379d1eee57a387b6012572794fa8/
patchfiles          patch-duplicate-definitions.diff \
                    patch-expr2.diff \
                    patch-openssl11.diff

# the patch above modifies configure.in
use_autoreconf      yes

configure.args      --mandir=${prefix}/share/man \
                    --enable-ipv6 \
                    --with-ssl \
                    --without-gtk

livecheck.type      regex
livecheck.url       http://sourceforge.net/projects/bitchx/files/
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)
