# -*- 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 113791 2013-11-23 18:49:16Z devans@macports.org $

PortSystem 1.0

name            telepathy-idle
version         0.2.0
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       rmd160  bbac1f917da0580066bd52bea4ec466f6370513e \
                sha256  3013ad4b38d14ee630b8cc8ada5e95ccaa849b9a6fe15d2eaf6d0717d76f2fab

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}-(\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*)${extract.suffix}
