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

PortSystem      1.0

name            telepathy-mission-control
version         5.16.6
license         LGPL-2.1
categories      comms
maintainers     {devans @dbevans} openmaintainer
homepage        https://telepathy.freedesktop.org/wiki
master_sites    https://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  2df8ae3995e919a7670e01aa3568215ef0777e34961ace1cac1c6477cb297a45 \
                rmd160  dc467ad800eaf9686e4fb7f40f2b6e1b18f028c3 \
                size    1127785

depends_build   port:pkgconfig \
                port:libxslt \
                port:dbus-python39 \
                port:py39-gobject \
                port:py39-twisted

depends_lib     port:telepathy-glib

patchfiles      patch-configure.diff \
                dynamic_lookup-11.patch

configure.python \
                ${prefix}/bin/python3.9

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

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\]+)"
