# -*- 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 87672 2011-12-01 09:25:34Z devans@macports.org $

PortSystem 1.0

name            telepathy-logger
version         0.2.12
set branch      [join [lrange [split ${version} .] 0 1] .]
license         LGPL-2.1+
description     The ${name} component of Telepathy - a Flexible Communications Framework
long_description \
                Telepathy Logger is a session daemon that should be activated whenever telepathy is being used

maintainers     devans openmaintainer
categories      comms
platforms       darwin
homepage        http://telepathy.freedesktop.org/wiki/Logger
master_sites    http://telepathy.freedesktop.org/releases/${name}/

use_bzip2       yes

checksums       sha1    0c8630f7b49a3c20bb485bbc43e5535b9af28cb8 \
                rmd160  9080d1475bf2c94f6cb955d18ced43e64e03a493

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

depends_lib     port:telepathy-glib \
                port:libxml2 \
                port:sqlite3

patchfiles      patch-configure.diff

configure.args  --disable-silent-rules \
                --disable-coding-style-checks \
                --enable-introspection=no

variant python25 conflicts python26 python27 description {Enable building of Python 2.5 bindings} {
                depends_lib-append          port:py25-twisted
                configure.python            ${prefix}/bin/python2.5
}

variant python26 conflicts python25 python27 description {Enable building of Python 2.6 bindings} {
                depends_lib-append          port:py26-twisted
                configure.python            ${prefix}/bin/python2.6
}

variant python27 conflicts python25 python26 description {Enable building of Python 2.7 bindings} {
                depends_lib-append          port:py27-twisted
                configure.python            ${prefix}/bin/python2.7
}

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

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex "${name}-(${branch}\\.\\d+(?:\\.\\d+)*)${extract.suffix}"
