# -*- 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 107341 2013-06-25 21:45:34Z devans@macports.org $

PortSystem	1.0

name		gnome-python-extras
version		2.25.3
revision        2
epoch           1
set branch      [join [lrange [split ${version} .] 0 1] .]
categories	gnome python
license		GPL-2+
platforms       darwin
maintainers	landonf openmaintainer

description	"Extra" Python modules for some GNOME Desktop libraries.
long_description	${description}
homepage	http://www.pygtk.org/

master_sites	gnome:sources/${name}/${branch}

checksums       md5     9f3b7ec5c57130b96061cb486b79c076 \
                sha1    e69e5288466c960ed6f985bb10c9969b21ed85a4 \
                rmd160  e09bc0152512e2caa61626a7dc788d7336f24e46

use_bzip2	yes

depends_build   port:pkgconfig

depends_lib	port:py25-gnome \
		port:gdl \
		port:libgda4 \
		port:libgtkhtml \
                port:gtkspell2

patchfiles	patch-configure.diff \
            patch-gdl-gdl-defs.diff \
            patch-pygobject

configure.python ${prefix}/bin/python2.5
configure.env-append    PYGTK_CODEGEN=${prefix}/bin/pygtk-codegen-2.0-2.5

configure.args  --disable-gtkmozembed \
                --disable-gksu2 \
                --disable-gksu \
                --disable-gksuui

platform darwin 9 {
    post-patch {
        reinplace "s|-export-symbols-regex.*||g" \
            ${worksrcpath}/egg/recent/Makefile.in \
            ${worksrcpath}/egg/tray/Makefile.in \
            ${worksrcpath}/gda/Makefile.in \
            ${worksrcpath}/gdl/Makefile.in \
            ${worksrcpath}/gksu/Makefile.in \
            ${worksrcpath}/gksu2/Makefile.in \
            ${worksrcpath}/gtkhtml2/Makefile.in \
            ${worksrcpath}/gtkspell/Makefile.in
        reinplace "s|-export-symbols-regex.*|\\\\|g" \
            ${worksrcpath}/gtkmozembed/Makefile.in
    }
}

livecheck.type      gnome-with-unstable
