# -*- 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 104704 2013-04-01 03:14:41Z jeremyhu@macports.org $

PortSystem 1.0

name            telepathy-salut
version         0.8.1
revision        1
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       sha256  70b9108ac8b511b7688e1b580de4ddb8981603c3cbde01f287ef8f9cb708618e \
                rmd160  9c2ad3b480a95339fef98c2f80e9d57309543c81

depends_build   port:pkgconfig \
                port:gtk-doc

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

patchfiles      patch-configure.diff \
                patch-lib-ext-wocky-Makefile.in.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}-(\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*)${extract.suffix}
