# -*- 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 91902 2012-04-13 03:13:06Z jeremyhu@macports.org $

PortSystem 1.0

name            telepathy-salut
version         0.6.0
license         LGPL-2.1+
set branch      [join [lrange [split ${version} .] 0 1] .]
description     The ${name} component of Telepathy - a Flexible Communications Framework
long_description \
                Salut implements the Telepathy D-Bus specification for link-local XMPP (XEP-0174, often called \"Bonjour\")
maintainers     devans openmaintainer
categories      comms
platforms       darwin
homepage        http://telepathy.freedesktop.org/wiki/
master_sites    http://telepathy.freedesktop.org/releases/${name}/

checksums       sha1    c484b3ad335233c7ad3075cb659afcb351a575d9 \
                rmd160  d532bde43e69a29ccd1478ffb2c807ce08cc3b66

depends_build   port:pkgconfig \
                port:gtk-doc

depends_lib     port:telepathy-glib \
                port:gnutls \
                port:avahi \
                port:libsoup

patchfiles      patch-configure.diff patch-glib-2.32.diff

configure.args  --disable-silent-rules \
                --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}"
