# -*- 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

PortSystem      1.0
PortGroup       gobject_introspection 1.0

name            telepathy-glib
version         0.24.1
license         LGPL-2.1+
description     The ${name} component of Telepathy - a Flexible Communications Framework.
long_description \
                The ${name} component of Telepathy - a Flexible Communications Framework. \
                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.
maintainers     {devans @dbevans} openmaintainer
categories      comms
platforms       darwin
homepage        http://telepathy.freedesktop.org/wiki
master_sites    http://telepathy.freedesktop.org/releases/${name}/

checksums       rmd160  a01ea8180f4cc25f40b5aeadb1564230b46a0b57 \
                sha256  9e0df1d8f857e0270cf0b32e2d1ca5a24aa7282873361785d573f72ad7f7d5eb

depends_build   port:pkgconfig \
                port:python27

depends_lib     port:dbus-glib

patchfiles      patch-configure.diff

use_parallel_build no

configure.python ${prefix}/bin/python2.7

variant vala description {Enable GObject introspection and Vala bindings} {
    depends_build-append    port:vala
    gobject_introspection   yes
    configure.args-append   --enable-vala-bindings
}

# port folks requires +vala

default_variants +vala

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