# -*- 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       muniversal 1.0
PortGroup       active_variants 1.1
PortGroup       gobject_introspection 1.0

name            gconf
set my_name     GConf
epoch           1
version         3.2.6
revision        6
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     nomaintainer
categories      gnome
license         GPL-2+
description     GConf is a configuration database system.

long_description \
                GConf is a configuration database system, \
                functionally similar to the Windows registry \
                but lots better. :-) It's written for \
                the GNOME desktop but does not require GNOME.

homepage        https://www.gnome.org/projects/gconf/
master_sites    gnome:sources/${my_name}/${branch}/
distname        ${my_name}-${version}

use_xz          yes

checksums       rmd160  63c382672abfcee51440ff1e1524020e82fc304c \
                sha256  1912b91803ab09a5eed34d364bf09fe3a2a9c96751fde03a4e0cfa51a04d784c \
                size    1559904

depends_build   path:bin/pkg-config:pkgconfig \
                port:gettext \
                port:gtk-doc \
                port:intltool \
                port:gnome-common

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

gobject_introspection yes

configure.args  --disable-silent-rules \
                --enable-gsettings-backend \
                --without-openldap

destroot.keepdirs \
    ${destroot}${prefix}/etc/gconf/gconf.xml.mandatory \
    ${destroot}${prefix}/etc/gconf/gconf.xml.defaults

variant openldap description {Enable support for openldap} {
    depends_lib-append      path:lib/libldap.dylib:openldap
    configure.args-delete   --without-openldap
}

post-activate {
    system "${prefix}/bin/gio-querymodules ${prefix}/lib/gio/modules"
}

livecheck.type  gnome
livecheck.name  ${my_name}
