# -*- 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            dbus-glib
version         0.114
revision        1

maintainers     nomaintainer
categories      devel
license         {AFL-2.1 GPL-2+}
description     Glib bindings for the dbus message bus system.

long_description \
                ${description} dbus-glib is deprecated, please use GDBus \
                in new GLib-based projects.

homepage        https://www.freedesktop.org/wiki/Software/dbus/
master_sites    https://dbus.freedesktop.org/releases/dbus-glib/

checksums       rmd160  5f12e869b0ba4883cd9c88e57aaa429fc6c0e65f \
                sha256  c09c5c085b2a0e391b8ee7d783a1d63fe444e96717cc1814d61b5e8fc2827a7c \
                size    737791

depends_build   port:pkgconfig

depends_lib     port:expat \
                path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:dbus \
                port:gettext-runtime

configure.args  --disable-gtk-doc \
                --disable-silent-rules \
                --disable-tests

pre-test {
    if {![variant_isset test]} {
        ui_error "test variant must be activated to enable test support"
        error "Please enable test variant"
    }
}

variant test description {Enable building of test code} {
    configure.args-replace --disable-tests --enable-tests
    test.run        yes
    test.target     check
}

variant doc description {Use gtk-doc to build documentation} {
    depends_build-append port:gtk-doc
    configure.args-replace --disable-gtk-doc --enable-gtk-doc
}

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