# -*- 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 92850 2012-05-09 05:11:59Z jmr@macports.org $

PortSystem          1.0

name                gnome-python26-extras
version             2.25.3

categories          gnome python
platforms           darwin
maintainers         elelay

description         "Extra" Python modules for some GNOME Desktop libraries.
long_description    ${description}\
					egg-recent, gksu, gksu2, gksui, gtkmozembed are not built.\
					File a bug if you need them.

homepage            http://www.pygtk.org/

set myname          gnome-python-extras
set branch          [join [lrange [split ${version} .] 0 1] .]

master_sites        gnome:sources/${myname}/${branch}
distname            ${myname}-${version}
dist_subdir         ${myname}

checksums           md5     9f3b7ec5c57130b96061cb486b79c076 \
                    sha1    e69e5288466c960ed6f985bb10c9969b21ed85a4 \
                    rmd160  e09bc0152512e2caa61626a7dc788d7336f24e46

use_bzip2           yes

depends_build       port:pkgconfig
depends_lib         port:py26-eggtrayicon \
                    port:py26-gdl \
                    port:py26-gda \
                    port:py26-gtkhtml2 \
                    port:py26-gtkspell

patchfiles          patch-configure.diff

configure.args-append		 --disable-allbindings

set python.branch   2.6
set python.prefix   ${frameworks_dir}/Python.framework/Versions/${python.branch}
set python.bin      ${python.prefix}/bin/python${python.branch}

configure.args-append       --prefix=${python.prefix}
configure.pkg_config_path   ${python.prefix}/lib/pkgconfig

configure.python        ${python.bin}
configure.env-append    PYGTK_CODEGEN=${frameworks_dir}/Python.framework/Versions/2.6/bin/pygobject-codegen-2.0

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