# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 86620 2011-10-30 00:33:16Z devans@macports.org $

PortSystem      1.0

name            telepathy-sofiasip
version         0.6.8
revision        1
license         LGPL-2.1
categories      comms
maintainers     devans openmaintainer
platforms       darwin
homepage        http://tp-sofiasip.sourceforge.net/
master_sites    http://telepathy.freedesktop.org/releases/${name}

description     Telepathy-SofiaSIP is a SIP connection manager (protocol plugin) \
                for the Telepathy framework.

long_description \
                $description \
                The Telepathy project is building a unified framework for many \
                different kinds of real-time communications. It uses the D-Bus \
                messaging system to provide a simple interface for client applications, \
                allowing them to quickly take advantage of Telepathy's benefits.

checksums       sha1    d33ae7e0ccdde876f216b4643e51217affc94b1b \
                rmd160  da5cec2d281625a862910b1e0240811d1b58675a

patchfiles      patch-configure.diff

depends_build   port:pkgconfig \
                port:gtk-doc

depends_lib     port:telepathy-glib \
                port:sofia-sip

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}
