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.12.1
Revision: 5
Distribution: (%type_pkg[python] = 23) 10.4, (%type_pkg[python] = 24) 10.4, (%type_pkg[python] = 24) 10.5
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
<<
DescPort: <<
If you have both pygtk and pygtk2 are installed in the same python,
read
OS X, there is a problem with parts of pygtk2 pulling in pygtk(1):
% examples/atk/atk-demo.py
Traceback (most recent call last):
File "examples/atk/atk-demo.py", line 4, in ?
import atk
ImportError: Failure linking new module: : dyld: python2.3 multiple
definitions of symbol _g_allocator_free
/sw/lib/libglib-1.2.0.dylib(gmem.lo) definition of _g_allocator_free
/sw/lib/libglib-2.0.0.dylib(libglib-2.0.0.200.1.dylib-master.o) definition
of _g_allocator_free
% examples/simple.py
dyld: python2.3 multiple definitions of symbol _g_get_current_time
/sw/lib/libglib-2.0.0.dylib(libglib-2.0.0.200.1.dylib-master.o) definition of _g_get_current_time
/sw/lib/libglib-1.2.0.dylib(gmain.lo) definition of _g_get_current_time
Trace/BPT trap (core dumped)
which is solved by
#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 codegen, 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.
<<
Homepage: http://www.pygtk.org
License: LGPL
Maintainer: Daniel Macks
BuildDepends: <<
atk1 (>= 1.20.0-1),
cairo (>= 1.6-1),
expat1,
fink (>= 0.24.12-1),
fontconfig2-dev (>= 2.4.1-1),
freetype219 (>= 2.3.5-1),
gettext-bin,
gettext-tools,
glib2-dev (>= 2.14.0-1),
glitz,
gtk+2-dev (>= 2.12.0-1),
gtk-doc (>= 1.8-1),
libgettext3-dev,
libglade2 (>= 2.6.2-1),
libiconv-dev,
libjpeg,
libpng3,
libtiff,
libxml2 (>= 2.6.30-1),
pango1-xft2-ft219-dev (>= 1.18.4-4),
pixman (>= 0.10.0-1),
pkgconfig (>= 0.21-1),
pycairo-py%type_pkg[python]-dev,
pygobject2-py%type_pkg[python]-dev (>= 2.14.1-1),
x11-dev,
xft2-dev
<<
Depends: <<
atk1-shlibs (>= 1.20.0-1),
glib2-shlibs (>= 2.14.0-1),
gtk+2-shlibs (>= 2.12.0-1),
libgettext3-shlibs,
libglade2-shlibs (>= 2.6.2-1),
libiconv,
libjpeg-shlibs,
libpng3-shlibs,
libtiff-shlibs,
libxml2-shlibs (>= 2.6.30-1),
numeric-py%type_pkg[python],
pango1-xft2-ft219-shlibs (>= 1.18.4-4),
pycairo-py%type_pkg[python],
pygobject2-py%type_pkg[python] (>= 2.14.1-1),
python%type_pkg[python],
x11
<<
Conflicts: pygtk2
Replaces: pygtk2, pygtk2-py%type_pkg[python], pygtk2-gtk-py23
Source: mirror:gnome:sources/pygtk/2.12/pygtk-%v.tar.bz2
Source-MD5: a816346d750d61e3fa67a200e4292694
Type: python (2.3 2.4)
PatchScript: <<
perl -pi -e 's|#\!\s*/usr/bin/env\s+python.*|#\!%p/bin/python%type_raw[python]|' `find examples -name \*.py` codegen/*.py tests/*.py
<<
ConfigureParams: --mandir=%p/share/man --disable-dependency-tracking --datadir=%p/lib
CompileScript: <<
PYTHON=%p/bin/python%type_raw[python] PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:$PKG_CONFIG_PATH" FREETYPE_CONFIG=%p/lib/freetype219/bin/freetype-config ./configure %c
make
<<
InstallScript: <<
make -j1 install DESTDIR=%d
fgrep '#!' %i/lib/pygtk/2.0/codegen/*.py|cut -f1 -d:|xargs chmod a+x
mkdir -p %i/share
mv %i/lib/gtk-doc %i/share
<<
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
DocFiles: AUTHORS COPYING ChangeLog* MAPPING NEWS README THREADS TODO
<<
<<