# -*- 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 113826 2013-11-24 15:23:11Z nicos@macports.org $

PortSystem          1.0
PortGroup           cmake 1.0

name                telepathy-qt
version             0.9.3
categories          comms
maintainers         nicos openmaintainer
license             LGPL-2.1+
description         The ${name} component of Telepathy - a Flexible \
                    Communications Framework.
long_description    Telepathy is a D-Bus framework for unifying real time \
                    communication, including instant messaging, voice calls \
                    and video calls. It abstracts differences between protocols \
                    to provide a unified interface for applications.
platforms           darwin
homepage            http://telepathy.freedesktop.org/wiki
master_sites        http://telepathy.freedesktop.org/releases/${name}/

checksums           rmd160  7bf8b861c8ec3a3922b74687fad38e7c2217564d \
                    sha256  c0ff57bea79b86ad343e184c16941d05f6d6d7dfd03876b44502f11935f44bf9

depends_lib-append  port:qt4-mac \
                    port:libtelepathy

#Patch for newer versions of cmake
patchfiles          patch-FindQt.diff

variant python25 conflicts python26 python27 description {Build using Python 2.5} {
        depends_build-append port:python25
        configure.python ${prefix}/bin/python2.5
}

variant python26 conflicts python25 python27 description {Build using Python 2.6} {
        depends_build-append port:python26
        configure.python ${prefix}/bin/python2.6
}

variant python27 conflicts python25 python26 description {Build using Python 2.7} {
        depends_build-append port:python27
        configure.python ${prefix}/bin/python2.7
}

default_variants +python27

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
