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

name            telepathy-salut
version         0.8.1
revision        4
license         LGPL-2.1+
set branch      [join [lrange [split ${version} .] 0 1] .]
description     The ${name} component of Telepathy - a Flexible Communications Framework
long_description \
                Salut implements the Telepathy D-Bus specification for link-local XMPP (XEP-0174, often called \"Bonjour\")
maintainers     {devans @dbevans} openmaintainer
categories      comms
homepage        https://telepathy.freedesktop.org/wiki/
master_sites    https://telepathy.freedesktop.org/releases/${name}/

checksums       sha256  70b9108ac8b511b7688e1b580de4ddb8981603c3cbde01f287ef8f9cb708618e \
                rmd160  9c2ad3b480a95339fef98c2f80e9d57309543c81

depends_build   port:pkgconfig

depends_lib     port:telepathy-glib \
                path:lib/pkgconfig/gnutls.pc:gnutls \
                port:avahi \
                port:libsoup-2.4 \
                port:ossp-uuid \
                port:py27-twisted

patchfiles      patch-configure.diff \
                patch-lib-ext-wocky-Makefile.in.diff

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

configure.args  --disable-silent-rules \
                --disable-Werror

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