# -*- 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.2
revision        0
categories      comms
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
homepage        https://telepathy.freedesktop.org/wiki
master_sites    https://telepathy.freedesktop.org/releases/${name}/

checksums           rmd160  795fcf105de0aefb9ad5a009893a1d64242bd5f3 \
                    sha256  b0a374d771cdd081125f38c3abd079657642301c71a543d555e2bf21919273f0 \
                    size    3855853

set py_ver          3.14
set py_ver_nodot    [string map {. {}} ${py_ver}]

depends_build   path:bin/pkg-config:pkgconfig \
                port:python${py_ver_nodot}

depends_lib-append \
                port:dbus \
                port:dbus-glib

patchfiles      patch-configure.diff

use_parallel_build  no

configure.python    ${prefix}/bin/python${py_ver}

variant vala description "Enable GObject introspection and Vala bindings" {
    depends_build-append    path:bin/vala:vala
    license_noconflict-append   vala
    gobject_introspection   yes
    configure.args-append   --enable-vala-bindings
}

default_variants +vala

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