Update of /cvsroot/fink/experimental/dmacks/finkinfo/gnome-2.10 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21758/dists/experimental/dmacks/finkinfo/gnome-2.10
Added Files: pygtk2-py.info pygtk2-py.patch Log Message: pygtk2-py 2.8.0; can't upgrade unstable b/c there's no pycairo-py so pygtk2-py doesn't build the gtk.py module. --- NEW FILE: pygtk2-py.patch --- diff -Nurd -x'*~' pygtk-2.8.0.orig/py-compile pygtk-2.8.0/py-compile --- pygtk-2.8.0.orig/py-compile 2005-09-02 10:31:41.000000000 -0400 +++ pygtk-2.8.0/py-compile 2005-09-06 13:30:28.000000000 -0400 @@ -33,16 +33,24 @@ PYTHON=python fi +destdir= basedir= +do_opts=1 +while [ $do_opts -ne 0 ]; do +do_opts=0 case "$1" in + --destdir) + shift + destdir=$1 + shift + do_opts=1 + ;; --basedir) - basedir=$2 - if test -z "$basedir"; then - echo "$0: Missing argument to --basedir." 1>&2 - exit 1 - fi - shift 2 + shift + basedir=$1 + shift + do_opts=1 ;; -h|--h*) cat <<\EOF @@ -60,6 +68,7 @@ exit 0 ;; esac +done if [ $# = 0 ]; then echo "$0: No files given. Try \`$0 --help' for more information." 1>&2 @@ -73,6 +82,11 @@ else trans="path = os.path.join('$basedir', file)" fi +if [ -z "$destdir$basedir" ]; then + trans_dest="dest = file" +else + trans_dest="dest = os.path.join('$destdir$basedir', file)" +fi $PYTHON -c " import sys, os, string, py_compile @@ -81,11 +95,12 @@ print 'Byte-compiling python modules...' for file in string.split(files): $trans + $trans_dest if not os.path.exists(path) or not (len(path) >= 3 and path[-3:] == '.py'): continue print file, sys.stdout.flush() - py_compile.compile(path) + py_compile.compile(dest,None,path) print" || exit $? # this will fail for python < 1.5, but that doesn't matter ... @@ -96,11 +111,12 @@ print 'Byte-compiling python modules (optimized versions) ...' for file in string.split(files): $trans + $trans_dest if not os.path.exists(path) or not (len(path) >= 3 and path[-3:] == '.py'): continue print file, sys.stdout.flush() - py_compile.compile(path) + py_compile.compile(dest,None,path) print" 2>/dev/null || : # Local Variables: --- NEW FILE: pygtk2-py.info --- Info2: << Package: pygtk2-py%type_pkg[python] Version: 2.8.0 Revision: 1 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. << DescPort: << If you have both pygtk and pygtk2 are installed in the same python, read <http://www.async.com.br/faq/pygtk/index.py?req=all#2.1>. On 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 <http://www.async.com.br/faq/pygtk/index.py?req=all#2.4> #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. py-compile makes it impossible to install to a temp location and so Makefile treats DESTDIR as the normal prefix, unlike every other autoconf pkg in the world. So we patch py-compile to take a new flag for DESTDIR and patch all Makefile.in to pass it. Thanks to Clef and graphics/pil for help debugging *Script in 2.0 pkgs. Originally ported by Michel Alexandre Salim <[EMAIL PROTECTED]> (up to pygtk2-1.99.15-1) << DescPackaging: << Needs gtk+2 >= 2.8.0 for cairo support but there's no pycairo yet so it's a non-issue. Needs cairo in order to built the gtk.py module, so not gonna commit this << Homepage: http://www.daa.com.au/~james/pygtk/ License: LGPL Maintainer: Daniel Macks <[EMAIL PROTECTED]> BuildDepends: x11-dev, python%type_pkg[python] (>= 2.3.5-1), numeric-py%type_pkg[python], pkgconfig (>= 0.9.0-1), glib2 (>= 2.8.0-1), glib2-dev (>= 2.8.0-1), pango1-xft2-dev (>= 1.10.0-1), atk1 (>= 1.8.0-1), gtk+2 (>= 2.3.4-1), gtk+2-dev (>= 2.3.4-1), libglade2 (>= 2.5.0-1), libxml2, libpng3, libjpeg, libtiff, libgettext3-dev, gettext-bin, gettext-tools, libiconv-dev, gtk-doc (>= 1.1-1), fink (>= 0.20.2-1), gtk+2-dev (>= 2.3.4-1) Depends: x11, python%type_pkg[python] (>= 2.3.5-1), numeric-py%type_pkg[python], glib2-shlibs (>= 2.8.0-1), pango1-xft2-shlibs (>= 1.10.0-1), atk1-shlibs (>= 1.8.0-1), gtk+2-shlibs (>= 2.3.4-1), libglade2-shlibs (>= 2.5.0-1), libxml2-shlibs, libpng3-shlibs, libjpeg-shlibs, libtiff-shlibs, gtk+2 (>= 2.3.4-1), gtk+2-shlibs (>= 2.3.4-1) Conflicts: pygtk2 Replaces: pygtk2 Source: mirror:gnome:sources/pygtk/2.8/pygtk-%v.tar.bz2 Source-MD5: fa1ec27360232cd318051f5196851f3e Type: python (2.3 2.4) Patch: %{ni}.patch 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 perl -pi -e 's|(--basedir)\s+(\$\(DESTDIR\))|--destdir $2 $1 |' `find . -name Makefile.in` << ConfigureParams: --mandir=%p/share/man --disable-dependency-tracking --datadir=%p/lib CompileScript: << PYTHON=%p/bin/python%type_raw[python] ./configure %c make << InstallScript: << make 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) Conflicts: pygtk2-py22-dev, pygtk2-py23-dev, pygtk2-py24-dev Replaces: pygtk2-py22-dev, pygtk2-py23-dev, pygtk2-py24-dev Files: bin include lib/pkgconfig lib/pygtk DocFiles: AUTHORS COPYING ChangeLog* MAPPING NEWS README THREADS TODO << << ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-commits