# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem      1.0

name            gnome-panel
version         2.26.3
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     devans openmaintainer
categories      gnome
platforms       darwin
description     Panel component for the GNOME 2 Desktop.

long_description \
    ${description}

homepage        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2       yes

checksums       md5     38de69896976d57abb4f4720fef62fcf \
                sha1    8fdb1e47bef9f3de9c01f830a84ecf30fda3d48f \
                rmd160  07b961a2224c6de0253495c6aeefdb2fb4804c8e

depends_build   port:pkgconfig \
                port:intltool \
                port:p5-xml-parser \
                port:gnome-doc-utils \
                port:gtk-doc \
                port:shared-mime-info

depends_lib     port:gnome-desktop \
                port:gnome-menus \
                port:policykit-gnome \
                port:evolution-data-server \
                port:librsvg \
                port:libwnck

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

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

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