# -*- 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
# $Id: Portfile 83344 2011-08-30 05:11:55Z dports@macports.org $

PortSystem      1.0
PortGroup       muniversal 1.0

name            gconf
set my_name     GConf
epoch           1
# Before updating to 2.32.x, examine https://trac.macports.org/ticket/28077
version         2.28.1
revision        2
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     nomaintainer
categories      gnome
platforms       darwin
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        http://www.gnome.org/projects/gconf/
master_sites    gnome:sources/${my_name}/${branch}/
distname        ${my_name}-${version}
use_bzip2       yes

checksums       sha1    944e067a85b43e7a778b9ee244f85508931a49a0 \
                rmd160  9ee3b6e68553997a128ca2b49992ddfbe157609b

depends_build   port:pkgconfig \
                port:intltool

depends_lib     port:gtk2 \
                port:dbus-glib \
                port:policykit \
                port:orbit2

patchfiles      patch-defaults-Makefile.am.diff

configure.args  --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 port:openldap
               configure.args-delete --without-openldap
}

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
