the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: pygtk2-gtk-py%type_pkg[python]
Version: 2.16.0
Revision: 4
Description: Python bindings for the GTK widget set
DescDetail: <<
PyGTK provides an object oriented interface that is slightly higher
level than the C one. It automatically does all the type casting and
reference counting that you would have to do normally with the C API.
The original pygtk2-py binding set split into pygtk2-gtk-py and pygobject2-py
<<
DescPackaging: <<
Fix some -I ordering: local before global
Regenerating gtk-doc files The Right Way (--enable-gtk-doc) is
very slow, so just patch the prefix in the bad URLs in the
existing generated files.
<<
DescPort: <<
#The widget demo examples/pygtk-demo works, but some of the other
#examples in examples/* do not (for a variety of reasons).
^--no longer install examples/
^--See also http://bugzilla.gnome.org/show_bug.cgi?id=132058
Patched examples (not installed) and demos, tests scripts to
use the desired python interpretter.
Originally ported by Michel Alexandre Salim
(up to pygtk2-1.99.15-1)
pygobject is now a its own external package (and is not part of newer
versions of pygtk2) so excise all bits of it from here and use that.
Recent glib doesn't publish -lintl, so pass it directly.
<<
Homepage: http://www.pygtk.org
License: LGPL
Maintainer: Daniel Macks
BuildDepends: <<
atk1 (>= 1.28.0-1),
cairo (>= 1.8.8-3),
fink (>= 0.24.12-1),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-4),
freetype219 (>= 2.3.12-1),
gettext-bin,
gettext-tools,
glib2-dev (>= 2.22.0-1),
glitz,
gtk+2-dev (>= 2.18.0-1),
gtk-doc (>= 1.13-5),
libgettext8-dev,
libglade2 (>= 2.6.4-2),
libxml2 (>= 2.6.30-1),
pango1-xft2-ft219-dev (>= 1.24.5-4),
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23),
pycairo-py%type_pkg[python]-dev (>= 1.8.8-3),
pygobject2-py%type_pkg[python]-dev (>= 2.20.0-1),
x11-dev
<<
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),
glib2-shlibs (>= 2.22.0-1),
gtk+2-shlibs (>= 2.18.0-1),
libgettext8-shlibs,
libglade2-shlibs (>= 2.6.4-2),
libxml2-shlibs (>= 2.6.30-1),
numpy-py%type_pkg[python] (>= 1.3.0-7),
pango1-xft2-ft219-shlibs (>= 1.24.5-4),
pycairo-py%type_pkg[python] (>= 1.8.8-3),
pygobject2-py%type_pkg[python] (>= 2.20.0-1),
python%type_pkg[python]
<<
Conflicts: pygtk2
Replaces: pygtk2, pygtk2-py%type_pkg[python], pygtk2-gtk-py23
Source: mirror:gnome:sources/pygtk/2.16/pygtk-%v.tar.bz2
Source-MD5: bd0d437fefd6d5390f5d770a495cd50c
Type: python (2.6 2.7)
PatchFile: %{ni}.patch
PatchFile-MD5: 0a9187a2c05b0def3628a86a78992a86
PatchScript: <<
%{default_script}
perl -pi -e 's|#\!\s*/usr/bin/env\s+python.*|#\!%p/bin/python%type_raw[python]|' `find examples -name \*.py` tests/*.py
<<
ConfigureParams: --mandir=%p/share/man --enable-dependency-tracking
CompileScript: <<
PYTHON=%p/bin/python%type_raw[python] PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH" ./configure %c
make
fink-package-precedence --prohibit-bdep %n-dev .
<<
# requires x11 display
#InfoTest: TestScript: make check || exit 2
InstallScript: <<
make -j1 install DESTDIR=%d
<<
DocFiles: AUTHORS COPYING ChangeLog* MAPPING NEWS README THREADS TODO
SplitOff: <<
Package: %N-dev
Description: Tools for compiling against pygtk2
Depends: %N (= %v-%r)
BuildDependsOnly: true
Conflicts: <<
pygtk2-gtk-py22-dev,
pygtk2-gtk-py23-dev,
pygtk2-gtk-py24-dev,
pygtk2-gtk-py25-dev,
pygtk2-gtk-py26-dev,
pygtk2-gtk-py27-dev
<<
Replaces: <<
pygtk2-gtk-py22, pygtk2-py22-dev, pygtk2-gtk-py22-dev,
pygtk2-gtk-py23, pygtk2-py23-dev, pygtk2-gtk-py23-dev,
pygtk2-gtk-py24, pygtk2-py24-dev, pygtk2-gtk-py24-dev,
pygtk2-gtk-py25, pygtk2-py25-dev, pygtk2-gtk-py25-dev,
pygtk2-gtk-py26-dev,
pygtk2-gtk-py27-dev
<<
Files: <<
bin
include
lib/pkgconfig
lib/pygtk
share/gtk-doc
share/pygtk
<<
DocFiles: AUTHORS COPYING ChangeLog* MAPPING NEWS README THREADS TODO
<<
<<
diff -Nurd -x'*~' pygtk-2.16.0.orig/Makefile.in pygtk-2.16.0/Makefile.in
--- pygtk-2.16.0.orig/Makefile.in 2009-08-23 13:10:26.000000000 -0400
+++ pygtk-2.16.0/Makefile.in 2010-02-26 04:12:35.000000000 -0500
@@ -332,10 +332,10 @@
ChangeLog
INCLUDES = \
+ -I$(srcdir)/gtk \
$(PYTHON_INCLUDES) \
$(PYGOBJECT_CFLAGS) \
- $(GLIB_CFLAGS) \
- -I$(srcdir)/gtk
+ $(GLIB_CFLAGS)
# pkg-config files
diff -Nurd -x'*~' pygtk-2.16.0.orig/gtk/Makefile.in pygtk-2.16.0/gtk/Makefile.in
--- pygtk-2.16.0.orig/gtk/Makefile.in 2009-08-23 13:10:25.000000000 -0400
+++ pygtk-2.16.0/gtk/Makefile.in 2010-02-26 05:03:24.000000000 -0500
@@ -323,9 +323,9 @@
libglade.override $(GTKUNIXPRINT_DEFS) \
$(GTKUNIXPRINT_TYPES_DEFS) gtkunixprint.override
INCLUDES = \
+ -I$(srcdir)/gtk \
$(PYTHON_INCLUDES) \
- $(PYGOBJECT_CFLAGS) \
- -I$(srcdir)/gtk
+ $(PYGOBJECT_CFLAGS)
# defs files
@@ -413,7 +413,7 @@
# libglade module
LIBGLADE_DEFS = libglade.defs
glade_la_CFLAGS = $(LIBGLADE_CFLAGS)
-glade_la_LIBADD = $(LIBGLADE_LIBS)
+glade_la_LIBADD = $(LIBGLADE_LIBS) -lintl
glade_la_LDFLAGS = $(common_ldflags) -export-symbols-regex initglade
glade_la_SOURCES = libglademodule.c
nodist_glade_la_SOURCES = libglade.c