gnome-python2-py stable port information

Info2: <<
Package: gnome-python2-py%type_pkg[python]
Version: 2.28.0
Revision: 3
Maintainer: The Gnome Core Team
Source: mirror:gnome:sources/gnome-python/2.28/gnome-python-%v.tar.bz2
Source-MD5: b627abbb0ed912e221cc072e3dd6f9d6
Type: python (2.6 2.7)
Depends: <<
atk1-shlibs (>= 1.28.0-1),
cairo-shlibs (>= 1.8.8-3),
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
gconf2-shlibs (>= 2.28.0-1),
glib2-shlibs (>= 2.22.0-1),
gtk+2-shlibs (>= 2.18.0-1),
libart2-shlibs,
libbonobo2 (>= 2.24.2-1),
libbonoboui2 (>= 2.24.2-1),
libgnome2-shlibs (>= 2.28.0-1),
libgnomecanvas2-shlibs (>= 2.26.0-3),
libgnomeui2-shlibs (>= 2.24.2-1),
orbit2-shlibs (>= 2.14.17-2),
pango1-xft2-ft219-shlibs (>= 1.24.5-4),
popt-shlibs,
pycairo-py%type_pkg[python] (>= 1.8.8-3),
pygobject2-py%type_pkg[python] (>= 2.20.0-1),
pygtk2-gtk-py%type_pkg[python] (>= 2.16.0-1),
pyorbit2-py%type_pkg[python] (>= 2.24.0-2),
python%type_pkg[python],
x11-shlibs
<<
BuildDepends: <<
atk1 (>= 1.28.0-1),
autoconf2.6,
automake1.11,
cairo (>= 1.8.8-3),
fink (>= 0.24.12-1),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-4),
freetype219 (>= 2.3.12-1),
gconf2-dev (>= 2.28.0-1),
glib2-dev (>= 2.22.0-1),
glitz,
gnome-common (>= 2.28.0),
gnome-doc-utils (>= 0.18.1-1),
gnome-vfs2-unified-dev (>= 1:2.24.2-1),
gtk+2-dev (>= 2.18.0-1),
libart2,
libbonobo2-dev (>= 2.24.2-1),
libbonoboui2-dev (>= 2.24.2-1),
libgettext8-dev,
libgnome2-dev (>= 2.28.0-1),
libgnomecanvas2-dev (>= 2.26.0-3),
libgnomeui2-dev (>= 2.24.2-1),
libtool2,
orbit2-dev (>= 2.14.17-2),
pango1-xft2-ft219-dev (>= 1.24.5-4),
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23),
popt,
pycairo-py%type_pkg[python]-dev (>= 1.8.8-3),
pygobject2-py%type_pkg[python]-dev (>= 2.20.0-1),
pygtk2-gtk-py%type_pkg[python]-dev (>= 2.16.0-1),
pyorbit2-py%type_pkg[python]-dev (>= 2.24.0-2),
python%type_pkg[python],
x11-dev
<<
Replaces: %{Ni}23, %{Ni}24
Suggests: gnome-python2-extras-py%type_pkg[python]
PatchFile: %{ni}.patch
PatchFile-MD5: 65e5156de98984b6935104414b398e26
ConfigureParams: --enable-dependency-tracking PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH"
CompileScript: <<
autoreconf -f -i
PYTHON='%p/bin/python%type_raw[python]' ./configure %c
make
fink-package-precedence --prohibit-bdep %n-dev .
<<
#InfoTest: TestScript: make check || exit 2
InstallScript: <<
make -j1 install DESTDIR=%d
# install -d -m 755 %i/share/doc/%n/examples
# install -m 644 examples/* %i/share/doc/%n/examples
<<
DocFiles: AUTHORS COPYING ChangeLog* NEWS README

#
SplitOff: <<
Package: %N-dev
Depends: %N (= %v-%r), python%type_pkg[python]-shlibs
Conflicts: %{Ni}23-dev, %{Ni}24-dev, %{Ni}25-dev, %{Ni}26-dev, %{Ni}27-dev
Replaces: %{Ni}23-dev, %{Ni}24-dev, %{Ni}23 (<< 2.12.0-1), %{Ni}24 (<< 2.12.0-1), %{Ni}25-dev, %{Ni}26-dev, %{Ni}27-dev
BuildDependsOnly: true
Files: <<
include
lib/pkgconfig
share/pygtk
share/gtk-doc
<<
DocFiles: AUTHORS COPYING ChangeLog* NEWS README
<<
#
SplitOff2: <<
Package: %N-vfsmodule
Depends: <<
gconf2-shlibs (>= 2.28.0-1),
glib2-shlibs (>= 2.22.0-1),
gnome-vfs2-unified-shlibs (>= 1:2.24.2-1),
libbonobo2-shlibs (>= 2.24.2-1),
orbit2-shlibs (>= 2.14.17-2),
python%type_pkg[python]-shlibs
<<
Conflicts: <<
%{Ni}23-vfsmodule,
%{Ni}24-vfsmodule,
%{Ni}25-vfsmodule,
%{Ni}26-vfsmodule,
%{Ni}27-vfsmodule
<<
Replaces: <<
%{Ni}23-vfsmodule, %{Ni}23 (<< 2.12.0-1), %{Ni}23-dev (<< 2.28.0-1),
%{Ni}24-vfsmodule, %{Ni}24 (<< 2.12.0-1), %{Ni}24-dev (<< 2.28.0-1),
%{Ni}25-vfsmodule, %{Ni}25-dev (<< 2.28.0-1),
%{Ni}26-vfsmodule, %{Ni}26-dev (<< 2.28.0-1),
%{Ni}27-vfsmodule
<<
Files: lib/gnome-vfs-2.0
DocFiles: AUTHORS COPYING ChangeLog* NEWS README
Description: Plugin for gnome-vfs2
<<
#
Description: Python bindings for GNOME2
DescDetail: <<
gnome-python2 provides bindings for the GNOME2 libraries to use the
Python programming language.

Starting with version 2.9.1, some bindings that used to be in
gnome-python2-pyXX have been moved to gnome-python2-extras-pyXX.
That package may not be available yet, but older %N does not compile
reliably any more.
<<
DescPackaging: <<
Moved development files %N -> %N-dev starting in 2.12.0-1.

Moved .so's .la %N-dev -> %N-vfsmodule as of 2.28.0-1

'make check' requires active x11 display.

configure autodetects and builds bindinds for whatever support libs
are found. We want to make sure we get things built as expected, so
patch configure to crash unless desired bindings would be built.

WAF build system is a disaster of hard-coded system paths and
incorrect assumptions about compiler flags. See:
http://bugzilla.gnome.org/show_bug.cgi?id=557030

Self-test broken (py26 nonpublic-API ihooks mess)
<<
DescPort: <<
Fix Makefiles so that pkg-config *_CFLAGS, are only passed to
compiler, as they are intended to be used. See:
http://bugzilla.gnome.org/show_bug.cgi?id=511643

Add missing link for direct symbol use: gconf.so -> libgobject
See: https://bugzilla.gnome.org/show_bug.cgi?id=611430
<<
Homepage: http://www.pygtk.org
License: LGPL
<<

gnome-python2-py stable port .patch

diff -Nurd -x'*~' gnome-python-2.28.0.orig/bonobo/Makefile.am gnome-python-2.28.0/bonobo/Makefile.am
--- gnome-python-2.28.0.orig/bonobo/Makefile.am 2009-05-04 06:24:35.000000000 -0400
+++ gnome-python-2.28.0/bonobo/Makefile.am 2010-02-28 11:47:17.000000000 -0500
@@ -31,7 +31,7 @@
if BUILD_BONOBO_ACTIVATION
pybonoboexec_LTLIBRARIES += activation.la
endif
-activation_la_CFLAGS = $(BONOBO_ACTIVATION_CFLAGS)
+activation_la_CPPFLAGS = $(BONOBO_ACTIVATION_CFLAGS)
activation_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initactivation
activation_la_LIBADD = $(BONOBO_ACTIVATION_LIBS) $(PYTHON_LIBS)
activation_la_SOURCES = activationmodule.c
@@ -39,7 +39,7 @@
if BUILD_BONOBO
pybonoboexec_LTLIBRARIES += _bonobo.la
endif
-_bonobo_la_CFLAGS = $(BONOBO_CFLAGS)
+_bonobo_la_CPPFLAGS = $(BONOBO_CFLAGS)
_bonobo_la_LDFLAGS = $(common_ldflags) -export-symbols-regex init_bonobo
_bonobo_la_LIBADD = $(BONOBO_LIBS) $(PYTHON_LIBS)
_bonobo_la_SOURCES = bonobomodule.c bonobo-arg.c pybonobo.h pybonobo.c
@@ -51,7 +51,7 @@
if BUILD_BONOBOUI
pybonoboexec_LTLIBRARIES += ui.la
endif
-ui_la_CFLAGS = $(BONOBOUI_CFLAGS)
+ui_la_CPPFLAGS = $(BONOBOUI_CFLAGS)
ui_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initui
ui_la_LIBADD = $(BONOBOUI_LIBS) $(PYTHON_LIBS)
ui_la_SOURCES = bonobouimodule.c
diff -Nurd -x'*~' gnome-python-2.28.0.orig/configure.ac gnome-python-2.28.0/configure.ac
--- gnome-python-2.28.0.orig/configure.ac 2009-09-21 10:27:37.000000000 -0400
+++ gnome-python-2.28.0/configure.ac 2010-02-28 16:28:41.000000000 -0500
@@ -273,7 +273,7 @@
dnl should we build the gconf module?
AC_ARG_BINDING([gconf], [ON])
if $build_gconf; then
- PKG_CHECK_MODULES(GCONF, gconf-2.0 >= gconf_required_version,
+ PKG_CHECK_MODULES(GCONF, gconf-2.0 >= gconf_required_version pygobject-2.0,
build_gconf=true,
build_gconf=false)
GCONF_INCLUDEDIR="`pkg-config gconf-2.0 --variable includedir`/gconf/2/gconf"
@@ -385,8 +385,11 @@
echo "Download it from: http://ftp.gnome.org/pub/GNOME/sources/pyorbit/2.0/"
fi

-echo "*****************************************************************************"
-echo "*** WARNING: You are using a deprecated build system (autotools)."
-echo "*** You should be using WAF instead; see the file INSTALL.WAF."
-echo "*** The autotools build system will be removed in a future version."
-echo "*****************************************************************************"
+# make sure all expected modules will be built
+# (missing deps just disable modules instead of crashing ./configure)
+if $build_gnome && $build_gnomeui && $build_gnomecanvas && $build_gnomevfs && $build_gnomevfsbonobo && $build_pyvfsmodule && $build_gconf && $build_bonobo && $build_bonobo_activation && $build_bonoboui; then
+ :
+else
+ echo "Incomplete package configuration."
+ exit 1
+fi
diff -Nurd -x'*~' gnome-python-2.28.0.orig/gconf/Makefile.am gnome-python-2.28.0/gconf/Makefile.am
--- gnome-python-2.28.0.orig/gconf/Makefile.am 2009-05-04 06:24:35.000000000 -0400
+++ gnome-python-2.28.0/gconf/Makefile.am 2010-02-28 11:47:17.000000000 -0500
@@ -12,7 +12,7 @@
# gconf binding

pkgpyexec_LTLIBRARIES = gconf.la
-gconf_la_CFLAGS = $(GCONF_CFLAGS)
+gconf_la_CPPFLAGS = $(GCONF_CFLAGS)
gconf_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initgconf
gconf_la_LIBADD = $(GCONF_LIBS) $(PYTHON_LIBS)
gconf_la_SOURCES = \
diff -Nurd -x'*~' gnome-python-2.28.0.orig/gnome/Makefile.am gnome-python-2.28.0/gnome/Makefile.am
--- gnome-python-2.28.0.orig/gnome/Makefile.am 2009-05-04 06:24:35.000000000 -0400
+++ gnome-python-2.28.0/gnome/Makefile.am 2010-02-28 11:47:17.000000000 -0500
@@ -22,7 +22,7 @@
# libgnome binding

pygnomeexec_LTLIBRARIES += _gnome.la
-_gnome_la_CFLAGS = $(GNOME_CFLAGS)
+_gnome_la_CPPFLAGS = $(GNOME_CFLAGS)
_gnome_la_LDFLAGS = $(common_ldflags) -export-symbols-regex init_gnome
_gnome_la_LIBADD = $(GNOME_LIBS) $(PYTHON_LIBS)
_gnome_la_SOURCES = gnomemodule.c
@@ -36,7 +36,7 @@
if BUILD_GNOMEUI
pygnomeexec_LTLIBRARIES += ui.la
endif
-ui_la_CFLAGS = $(GNOMEUI_CFLAGS) -I$(top_srcdir)/gnomevfs
+ui_la_CPPFLAGS = -I$(top_srcdir)/gnomevfs $(GNOMEUI_CFLAGS)
ui_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initui
ui_la_LIBADD = $(GNOMEUI_LIBS) $(PYTHON_LIBS)
ui_la_SOURCES = uimodule.c
diff -Nurd -x'*~' gnome-python-2.28.0.orig/gnomecanvas/Makefile.am gnome-python-2.28.0/gnomecanvas/Makefile.am
--- gnome-python-2.28.0.orig/gnomecanvas/Makefile.am 2009-05-04 06:24:36.000000000 -0400
+++ gnome-python-2.28.0/gnomecanvas/Makefile.am 2010-02-28 11:47:17.000000000 -0500
@@ -12,7 +12,7 @@

# libgnomecanvas binding
pkgpyexec_LTLIBRARIES = gnomecanvas.la
-gnomecanvas_la_CFLAGS = $(GNOMECANVAS_CFLAGS)
+gnomecanvas_la_CPPFLAGS = $(GNOMECANVAS_CFLAGS)
gnomecanvas_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initgnomecanvas
gnomecanvas_la_LIBADD = $(GNOMECANVAS_LIBS) $(PYTHON_LIBS)
gnomecanvas_la_SOURCES = canvasmodule.c
diff -Nurd -x'*~' gnome-python-2.28.0.orig/gnomevfs/Makefile.am gnome-python-2.28.0/gnomevfs/Makefile.am
--- gnome-python-2.28.0.orig/gnomevfs/Makefile.am 2009-05-04 06:24:36.000000000 -0400
+++ gnome-python-2.28.0/gnomevfs/Makefile.am 2010-02-28 11:47:17.000000000 -0500
@@ -12,7 +12,7 @@

# libgnomevfs binding
gnomevfs_LTLIBRARIES = _gnomevfs.la
-_gnomevfs_la_CFLAGS = $(GNOMEVFS_CFLAGS)
+_gnomevfs_la_CPPFLAGS = $(GNOMEVFS_CFLAGS)
_gnomevfs_la_LDFLAGS = $(common_ldflags) -export-symbols-regex init_gnomevfs
_gnomevfs_la_LIBADD = $(GNOMEVFS_LIBS) $(PYTHON_LIBS)
_gnomevfs_la_SOURCES = vfsmodule.c vfs-uri.c vfs-file-info.c vfs-dir-handle.c \
@@ -23,7 +23,7 @@
if BUILD_GNOMEVFSBONOBO
gnomevfs_LTLIBRARIES += gnomevfsbonobo.la
endif
-gnomevfsbonobo_la_CFLAGS = $(GNOMEVFSBONOBO_CFLAGS) -DGNOME_VFS_INCLUDE_BONOBO
+gnomevfsbonobo_la_CPPFLAGS = $(GNOMEVFSBONOBO_CFLAGS) -DGNOME_VFS_INCLUDE_BONOBO
gnomevfsbonobo_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initgnomevfsbonobo
gnomevfsbonobo_la_LIBADD = $(GNOMEVFSBONOBO_LIBS) $(PYTHON_LIBS)
gnomevfsbonobo_la_SOURCES = vfsbonobomodule.c pygnomevfsbonobo.h
@@ -40,7 +40,7 @@
vfsmethod_LTLIBRARIES =
endif

-libpythonmethod_la_CFLAGS = $(GNOME_VFS_MODULE_CFLAGS) -DGNOME_VFS_PYTHON_DIR="\"$(vfsmethoddir)\""
+libpythonmethod_la_CPPFLAGS = $(GNOME_VFS_MODULE_CFLAGS) -DGNOME_VFS_PYTHON_DIR="\"$(vfsmethoddir)\""
libpythonmethod_la_SOURCES = gnome-vfs-python-method.c
libpythonmethod_la_LDFLAGS = $(common_ldflags) -export-symbols-regex "vfs_module_(init|shutdown)"
libpythonmethod_la_LIBADD = $(GNOME_VFS_MODULE_LIBS) $(PYTHON_EMBED_LIBS)
diff -Nurd -x'*~' gnome-python-2.28.0.orig/gnomevfs/Makefile.in gnome-python-2.28.0/gnomevfs/Makefile.in
--- gnome-python-2.28.0.orig/gnomevfs/Makefile.in 2009-09-21 10:29:55.000000000 -0400
+++ gnome-python-2.28.0/gnomevfs/Makefile.in 2010-02-28 13:44:09.000000000 -0500
@@ -333,7 +333,7 @@
@BUILD_PYVFSMODULE_TRUE@vfsmethod_LTLIBRARIES = libpythonmethod.la
libpythonmethod_la_CFLAGS = $(GNOME_VFS_MODULE_CFLAGS) -DGNOME_VFS_PYTHON_DIR="\"$(vfsmethoddir)\""
libpythonmethod_la_SOURCES = gnome-vfs-python-method.c
-libpythonmethod_la_LDFLAGS = $(common_ldflags) -export-symbols-regex "vfs_module_(init|shutdown)"
+libpythonmethod_la_LDFLAGS = $(common_ldflags) -export-symbols-regex "vfs_module_(init|shutdown)" -no-undefined
libpythonmethod_la_LIBADD = $(GNOME_VFS_MODULE_LIBS) $(PYTHON_EMBED_LIBS)
all: all-am

diff -Nurd -x'*~' gnome-python-2.28.0.orig/wscript gnome-python-2.28.0/wscript
--- gnome-python-2.28.0.orig/wscript 2009-09-21 10:27:37.000000000 -0400
+++ gnome-python-2.28.0/wscript 2010-02-28 11:47:17.000000000 -0500
@@ -115,6 +115,7 @@
print "** The following modules will NOT be built:"
for m in not_built:
print "\t%s" % m
+ sys.exit(1)

conf.write_config_header('config.h')

gnome-python2-py _unstable_ port .patch