# -*- 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 85526 2011-10-14 06:36:57Z jmr@macports.org $

PortSystem 1.0

name            py25-gnome
set my_name     gnome-python
version         2.28.1
revision        1
set branch      [join [lrange [split $version .] 0 1] .]
categories      python gnome
license         LGPL-2.1+
platforms       darwin
maintainers     nomaintainer
description     gnome-python is a set of python interfaces to gnome-libs.
long_description    ${description}

homepage        http://www.pygtk.org/
master_sites    gnome:sources/$my_name/$branch/
use_bzip2       yes
distname        $my_name-$version

checksums       md5     a17ad952813ed86f520de8e07194a2bf \
                sha1    de7e66aff141c4c64bc25cdb85193fab0899b983 \
                rmd160  92d6536ed28ae760ea1519fea68565d29249dd33

depends_build   port:pkgconfig

depends_lib     port:libgnomeui \
                port:py25-gtk \
                port:py25-orbit \
                port:libgnome \
                port:python25 \
                port:libgnomecanvas \
                port:gnome-vfs \
                port:gconf \
                port:libbonobo \
                port:libbonoboui

build.args      PYTHON_LDFLAGS= PYTHON_LIBS=

configure.python ${prefix}/bin/python2.5

use_parallel_build  yes

variant quartz description {fix bonobo import error when gtk +quartz is used} {
    patchfiles-append   bonobo.diff
}

platform darwin 9 {
    post-patch {
        reinplace "s| -export-symbols-regex.*||g" \
            ${worksrcpath}/bonobo/Makefile.in \
            ${worksrcpath}/gconf/Makefile.in \
            ${worksrcpath}/gnome/Makefile.in \
            ${worksrcpath}/gnomecanvas/Makefile.in \
            ${worksrcpath}/gnomevfs/Makefile.in
    }
}

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