# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 86607 2011-10-29 17:17:48Z devans@macports.org $

PortSystem 1.0

name            telepathy-idle
version         0.1.11
license         LGPL-2.1
description     The ${name} IRC connection manager component of Telepathy - a Flexible Communications Framework

long_description \
                Idle implements the Telepathy D-Bus specification for Internet Relay Chat, allowing Telepathy \
                clients like Empathy to connect to IRC servers.

maintainers     devans openmaintainer
categories      comms
platforms       darwin
homepage        http://telepathy.freedesktop.org/wiki/
master_sites    http://telepathy.freedesktop.org/releases/${name}/

checksums       sha1    99b4c98d4f4ab4005be838a8f792fea70eec5004 \
                rmd160  7ab751b7aa37f6dded0dd2c8a8e3f0b6f778ae48

depends_build   port:pkgconfig \
                port:libxslt \
                port:gtk-doc

depends_lib     port:telepathy-glib \
                port:openssl

patchfiles      patch-configure.diff \
                patch-src-idle-parser.c.diff

configure.args  --disable-silent-rules

variant python26 conflicts python27 description {Use Python 2.6} {
        depends_lib-append port:py26-twisted
        configure.python ${prefix}/bin/python2.6
}

variant python27 conflicts python26 description {Use Python 2.7} {
        depends_lib-append port:py27-twisted
        configure.python ${prefix}/bin/python2.7
}

if {![variant_isset python26]} {
        default_variants +python27
}

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
