# -*- 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 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem	1.0

name            gnome-python-desktop
version         2.26.0
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      gnome python
maintainers     devans openmaintainer
description     Python modules for some GNOME Desktop libraries.
long_description	${description}
platforms       darwin
homepage        http://www.pygtk.org/
master_sites    gnome:sources/${name}/${branch}/

checksums       md5     fbcf4ef5ec4a8c4eec4d390c5889c80f \
                sha1    9f30c470ea73cb11b1daa6e10f1e980ec5698086 \
                rmd160  dda34b9fe39567d591f654af9a9c9f6dab5f9a15

use_bzip2       yes

depends_lib	port:py25-gtk \
                port:py25-cairo \
                port:gtksourceview \
                port:libgtop \
                port:gnome-media \
                port:gnome-panel \
                port:metacity \
                port:evince \
                port:bug-buddy \
                port:totem-pl-parser

# TODO  port:nautilus-cd-burner

configure.args 	--enable-metacity \
                --disable-nautilusburn

configure.python ${prefix}/bin/python2.5
configure.pkg_config_path  ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/lib/pkgconfig

platform darwin 9 {
    post-patch {
        reinplace "s| -export-symbols-regex.*||g" \
            ${worksrcpath}/evolution/Makefile.in \
            ${worksrcpath}/gnomeapplet/Makefile.in \
            ${worksrcpath}/gnomedesktop/Makefile.in \
            ${worksrcpath}/gnomekeyring/Makefile.in \
            ${worksrcpath}/gnomeprint/Makefile.in \
            ${worksrcpath}/gtksourceview/Makefile.in \
            ${worksrcpath}/gtop/Makefile.in \
            ${worksrcpath}/mediaprofiles/Makefile.in \
            ${worksrcpath}/metacity/Makefile.in \
            ${worksrcpath}/nautilusburn/Makefile.in \
            ${worksrcpath}/rsvg/Makefile.in \
            ${worksrcpath}/totem/Makefile.in \
            ${worksrcpath}/wnck/Makefile.in
    }
}

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