# -*- 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
# $Id: Portfile 85801 2011-10-16 07:40:39Z jmr@macports.org $

PortSystem 1.0

name		gnome-utils
version		2.30.0
revision        3
set branch      [join [lrange [split ${version} .] 0 1] .]
description	GNOME utilities
long_description Utilities for the GNOME 2.0 desktop.
maintainers	devans openmaintainer
categories	gnome
license		GPL-2+
platforms	darwin
homepage	http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/

checksums       md5     c6d779ddccf99cbe0667b578078dd011 \
                sha1    107f60f499340bb5c02e92db645836f6187b4c37 \
                rmd160  952102bb1751819a22d468309958234f00b2733b

depends_build   port:pkgconfig \
                port:intltool \
                port:gnome-doc-utils \
                port:gtk-doc \
                port:gnome-common

depends_lib     port:gconf \
                port:libgtop \
                port:gnome-panel

use_bzip2 	yes

patchfiles      patch-gnome-dictionary-libgdict-Makefile.am.diff \
                patch-gsearchtool-libgnomeui-deprecated-Makefile.am.diff \
                bad-return.patch

use_autoreconf  yes

configure.args  --x-includes=${prefix}/include \
                --x-libraries=${prefix}/lib \
                --disable-scrollkeeper \
                --disable-schemas-install

#
# gnome-panel is not universal
#

universal_variant no

post-activate	{
	system "scrollkeeper-update"
        system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
        system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
            gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}

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