the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: gnome-python2-py%type_pkg[python]
Version: 2.22.3
Revision: 3
Maintainer: The Gnome Core Team
Source: mirror:gnome:sources/gnome-python/2.22/gnome-python-%v.tar.bz2
Source-MD5: ab12d94954a57de39b25eb7903d8429c
Type: python 2.5
Depends: <<
atk1-shlibs (>= 1.24.0-1),
audiofile-shlibs,
cairo-shlibs (>= 1.8-1),
dbus-shlibs (>= 1.2.1-1),
esound-shlibs (>= 0.2.38-1),
expat1-shlibs,
fontconfig2-shlibs (>= 2.4.1-1),
freetype219-shlibs (>= 2.3.7-7),
gconf2-shlibs (>= 2.24.0-1),
glib2-shlibs (>= 2.18.0-1),
glitz-shlibs,
gnome-keyring-shlibs (>= 0.8.1-1),
gnome-vfs2-unified (>= 1:2.24.0-1),
gtk+2-shlibs (>= 2.14.0-1),
libart2-shlibs,
libavahi-client3-shlibs,
libavahi-common3-shlibs,
libavahi-glib1-shlibs,
libbonobo2 (>= 2.24.0-1),
libbonoboui2 (>= 2.24.0-1),
libgettext3-shlibs,
libgnome2-shlibs (>= 2.24.0-1),
libgnomecanvas2-shlibs (>= 2.20.1.1-1),
libgnomeui2-shlibs (>= 2.20.4-1),
libiconv,
libpng3-shlibs,
libxml2-shlibs (>= 2.6.30-1),
orbit2-shlibs (>= 2.14.16-1),
pango1-xft2-ft219-shlibs (>= 1.22.0-4),
pixman-shlibs (>= 0.12.0-1),
popt-shlibs,
pycairo-py%type_pkg[python] (>= 1.6.4-1),
pygobject2-py%type_pkg[python] (>= 2.14.2-2),
pygtk2-gtk-py%type_pkg[python] (>= 2.12.1-3),
pyorbit2-py%type_pkg[python] (>= 2.14.3-1),
python%type_pkg[python],
x11-shlibs
<<
BuildDepends: <<
atk1 (>= 1.24.0-1),
audiofile,
autoconf,
automake1.10,
cairo (>= 1.8-1),
dbus-dev (>= 1.2.1-1),
esound (>= 0.2.38-1),
expat1,
fink (>= 0.24.12-1),
fontconfig2-dev (>= 2.4.1-1),
freetype219 (>= 2.3.7-7),
gconf2-dev (>= 2.24.0-1),
glib2-dev (>= 2.18.0-1),
glitz,
gnome-common (>= 2.20.0),
gnome-doc-utils (>= 0.14.0-1),
gnome-keyring-dev (>= 0.8.1-1),
gnome-vfs2-unified-dev (>= 1:2.24.0-1),
gtk+2-dev (>= 2.14.0-1),
libart2,
libavahi-client3-dev,
libavahi-common3-dev,
libavahi-glib1-dev,
libbonobo2-dev (>= 2.24.0-1),
libbonoboui2-dev (>= 2.24.0-1),
libgettext3-dev,
libgnome2-dev (>= 2.24.0-1),
libgnomecanvas2-dev (>= 2.20.1.1-1),
libgnomeui2-dev (>= 2.24.0-1),
libiconv-dev,
libpng3,
libtool14,
libxml2 (>= 2.6.30-1),
orbit2-dev (>= 2.14.16-1),
pango1-xft2-ft219-dev (>= 1.22.0-4),
pixman (>= 0.12.0-1),
pkgconfig (>= 0.23),
popt,
pycairo-py%type_pkg[python]-dev (>= 1.6.4-1),
pygobject2-py%type_pkg[python]-dev (>= 2.14.2-2),
pygtk2-gtk-py%type_pkg[python]-dev (>= 2.12.1-3),
pyorbit2-py%type_pkg[python]-dev (>= 2.14.3-1),
x11-dev,
xft2-dev
<<
Replaces: %{Ni}23, %{Ni}24
Suggests: gnome-python2-extras-py%type_pkg[python]
PatchFile: %n.patch
PatchFile-MD5: f5c0f3f29f5a902698c8e1bd261a3a85
SetCPPFLAGS: -fno-common
ConfigureParams: --disable-dependency-tracking PKG_CONFIG_PATH="%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH"
CompileScript: <<
autoreconf -f -i
PYTHON='%p/bin/python%type_raw[python]' ./configure %c
make
# make check
<<
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: <<
dbus-shlibs (>= 1.2.1-1),
gconf2-shlibs (>= 2.24.0-1),
glib2-shlibs (>= 2.18.0-1),
gnome-vfs2-unified-shlibs (>= 2.20.1.1-1),
libavahi-client3-shlibs,
libavahi-common3-shlibs,
libavahi-glib1-shlibs,
libbonobo2-shlibs (>= 2.24.0-1),
libgettext3-shlibs,
libiconv,
libxml2-shlibs (>= 2.6.30-1),
orbit2-shlibs (>= 2.14.16-1),
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.
'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.
No 2.24 release...use version from garnome-2.24.0
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
<<
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
<<
Homepage: http://www.pygtk.org
License: LGPL
<<
diff -Nurd -x'*~' gnome-python-2.22.3.orig/bonobo/Makefile.am gnome-python-2.22.3/bonobo/Makefile.am
--- gnome-python-2.22.3.orig/bonobo/Makefile.am 2008-08-28 13:45:52.000000000 -0400
+++ gnome-python-2.22.3/bonobo/Makefile.am 2008-10-20 01:54:28.000000000 -0400
@@ -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.22.3.orig/configure gnome-python-2.22.3/configure
--- gnome-python-2.22.3.orig/configure 2008-09-22 06:58:46.000000000 -0400
+++ gnome-python-2.22.3/configure 2008-10-20 01:56:58.000000000 -0400
@@ -24596,8 +24596,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.22.3.orig/gconf/Makefile.am gnome-python-2.22.3/gconf/Makefile.am
--- gnome-python-2.22.3.orig/gconf/Makefile.am 2008-08-28 13:45:52.000000000 -0400
+++ gnome-python-2.22.3/gconf/Makefile.am 2008-10-20 01:54:28.000000000 -0400
@@ -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.22.3.orig/gnome/Makefile.am gnome-python-2.22.3/gnome/Makefile.am
--- gnome-python-2.22.3.orig/gnome/Makefile.am 2008-08-28 13:45:52.000000000 -0400
+++ gnome-python-2.22.3/gnome/Makefile.am 2008-10-20 01:54:28.000000000 -0400
@@ -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 = $(GNOMEUI_CFLAGS) -I$(top_srcdir)/gnomevfs
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.22.3.orig/gnomecanvas/Makefile.am gnome-python-2.22.3/gnomecanvas/Makefile.am
--- gnome-python-2.22.3.orig/gnomecanvas/Makefile.am 2008-08-28 13:45:52.000000000 -0400
+++ gnome-python-2.22.3/gnomecanvas/Makefile.am 2008-10-20 01:54:28.000000000 -0400
@@ -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.22.3.orig/gnomevfs/Makefile.am gnome-python-2.22.3/gnomevfs/Makefile.am
--- gnome-python-2.22.3.orig/gnomevfs/Makefile.am 2008-08-28 13:45:52.000000000 -0400
+++ gnome-python-2.22.3/gnomevfs/Makefile.am 2008-10-20 01:54:28.000000000 -0400
@@ -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.22.3.orig/wscript gnome-python-2.22.3/wscript
--- gnome-python-2.22.3.orig/wscript 2008-09-22 06:41:18.000000000 -0400
+++ gnome-python-2.22.3/wscript 2008-10-20 00:57:41.000000000 -0400
@@ -88,6 +88,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')