Info2: << Package: pyobjc-py%type_pkg[python] Version: 2.2+svn2349 Revision: 1 Type: python(2.5 2.6 2.7) # Distribution: 10.5, 10.6 Architecture: powerpc, i386 License: BSD Maintainer: James Bunton Homepage: http://pyobjc.sourceforge.net/ Description: Glue to interface Python with Objective-C DescDetail: << The PyObjC package provides the glue needed to interface the Python interpreter with the Objective-C language. At its core is the 'objc' module makes Objective-C objects and classes available as first-class Python citizens. It is not only possible to use Objective-C objects but you can also subclass Objective-C classes. To make it easier to use the core 'objc' module, this package also provides a number of modules that are wrappers for the Cocoa frameworks, such as Foundation and AppKit. These modules not only give you access to the classes in these frameworks but also to the functions and constants in those modules. To test see windows appear on your Mac OS X desktop from Python scripts, run some of the example scripts in the pyobjc-pyXX-doc package. << BuildDepends: fink (>= 0.24.12), flag-sort Depends: python%type_pkg[python], setuptools-py%type_pkg[python] Source: http://delx.net.au/software/pyobjc-%v.tar.bz2 Source-MD5: 03f3af1ca313f7061c24de823005576d PatchFile: %{ni}.patch PatchFile-md5: f906d4d896a6d2e0de5585b256c54bf5 CompileScript: << #!/bin/bash -ev distribution="$(sw_vers -productVersion | cut -d. -f1-2)" if [ "$distribution" = 10.4 ]; then mv {,incompatible-}pyobjc-framework-CFNetwork fi if [ "%type_raw[python]" = "2.5" ]; then export CC="flag-sort gcc-4.0" export CFLAGS='-D_DARWIN_C_SOURCE' else export CC="flag-sort gcc" export CXX="flag-sort g++" fi for proj in pyobjc-core pyobjc-metadata pyobjc-framework* do echo -ne "\n----- $proj -----\n\n" min_os=10.4 if grep -q "min_os_level=" "${proj}/setup.py" then min_os=`grep min_os_level ${proj}/setup.py | sed "s|[',]||g" | cut -d= -f2` fi echo "min_os=$min_os" if [ "$distribution" '<' "$min_os" ] ; then mv "${proj}" incompatible-${proj} continue fi pushd "${proj}" > /dev/null # Build python libs %p/bin/python%type_raw[python] setup.py build popd > /dev/null done << InstallScript: << #!/bin/bash -ev for proj in pyobjc-core pyobjc-metadata pyobjc-framework* do echo -ne "\n----- $proj -----\n\n" pushd "${proj}" > /dev/null # Install python libs %p/bin/python%type_raw[python] setup.py install --root=%d # Install docs mkdir -p %i/share/doc/%N/"${proj}" for doc in Doc doc Examples examples README.txt ReadMe.txt NEWS.txt HISTORIC.txt Install.txt; do if [ -r "$doc" ]; then cp -rp "$doc" %i/share/doc/%N/"${proj}"/ fi done popd > /dev/null done # Language versioned executables cd %i/bin for filename in *; do mv -v $filename $filename-py%type_pkg[python] done << SplitOff: << Description: Binaries for pyobjc Package: %N-bin Depends: %N (= %v-%r) Files: bin PostInstScript: << for filename in \ nibclassbuilder \ pyobjc-metadata-gen \ pyobjc-metadata-lint \ pyobjc-metadata-overrides \ pyobjc-wrapper-gen do update-alternatives --install %p/bin/$filename $filename %p/bin/$filename-py%type_pkg[python] %type_pkg[python] done << PreRmScript: << if [ "$1" = "upgrade" ]; then exit fi for filename in \ nibclassbuilder \ pyobjc-metadata-gen \ pyobjc-metadata-lint \ pyobjc-metadata-overrides \ pyobjc-wrapper-gen do update-alternatives --remove $filename %p/bin/$filename-py%type_pkg[python] done << << SplitOff2: << Description: Docs and example scripts for pyobjc Package: %N-doc Files: share/doc/%N << DescPackaging: << There are no available tarballs of pyobjc The file pyobjc-2.2+svn2349.tar.bz2 was created from trunk of the pyobjc repository with the following commands. $ umask 022 $ svn export -r 2349 http://svn.red-bean.com/pyobjc/trunk/pyobjc pyobjc-2.2+svn2349 $ rm -rf altgraph macholib modulegraph py2app PyOpenGL-2.0.2.01 $ tar jcf pyobjc-2.2+svn2349.tar.bz2 pyobjc-2.2+svn2349/ flag-sort needed to avoid finding %p/include/ffi.h from fink's libffi -- fangism << <<