# -*- 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 116550 2014-01-28 11:54:22Z devans@macports.org $

PortSystem      1.0

name            telepathy-mission-control
version         5.16.1
license         LGPL-2.1
categories      comms
maintainers     devans openmaintainer
platforms       darwin
homepage        http://telepathy.freedesktop.org/wiki
master_sites    http://telepathy.freedesktop.org/releases/${name}

description     The ${name} component of Telepathy - a Flexible Communications Framework.

long_description \
                Telepathy Mission Control is a telepathy (chat and voip framework) component \
                providing a way for "end-user" applications to abstract some details of low \
                level telepathy components such as connection managers.

checksums       sha256  14ceb7d53535b43d44b8271ad11319d1d0fe6d193d154636b9e62b42799b9723 \
                rmd160  74882c294ff436d7cd4374e7eeae5b6d9c3bb4e0

depends_build   port:pkgconfig \
                port:libxslt \
                port:gtk-doc

depends_lib     port:telepathy-glib

patchfiles      patch-configure.diff

configure.args  --disable-upower \
                --disable-schemas-compile

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

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

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

post-activate {
    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex "${name}-(\[0-9\]+\\.\[0-9\]*\[02468\]\\.\[0-9\]+)"
