# -*- 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 91900 2012-04-13 02:27:08Z jeremyhu@macports.org $

PortSystem 1.0

name            telepathy-gabble
version         0.14.1
license         LGPL-2.1 MIT
set branch      [join [lrange [split ${version} .] 0 1] .]
description     The ${name} component of Telepathy - a Flexible Communications Framework
long_description \
                Gabble is a Jabber/XMPP connection manager that handles single- and multi-user \
                chats and voice/video calls.
maintainers     devans openmaintainer
categories      comms
platforms       darwin
homepage        http://telepathy.freedesktop.org/wiki/
master_sites    http://telepathy.freedesktop.org/releases/${name}/

checksums       sha1    ff61c311c3a24b780c21c07bcce6082b689b3917 \
                rmd160  c77f167339657282a2b2d74c4a58bc499a84ad51

depends_build   port:pkgconfig \
                port:gtk-doc

depends_lib     port:telepathy-glib \
                port:libxslt \
                port:libsoup \
                port:libnice \
                port:cyrus-sasl2

patchfiles      patch-configure.diff

configure.args  --disable-silent-rules \
                --without-ca-certificates \
                --disable-Werror

variant python25 conflicts python26 python27 description {Use python 2.5} {
    configure.python          ${prefix}/bin/python2.5
    depends_lib-append        port:py25-twisted
}

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

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

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

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