Info2: << Package: backports.lzma-py%type_pkg[python] Version: 0.0.2 Revision: 1 Type: python (2.6 2.7 3.1 3.2) Description: Backport of py33's lzma module DescDetail: << See http://docs.python.org/3.3/library/lzma.html for documentation. << DescPackaging: << This is the lzma module lifted verbatim from Python 3.3. << Maintainer: Daniel Johnson License: BSD Homepage: https://pypi.python.org/pypi/backports.lzma Source: https://pypi.python.org/packages/source/b/backports.lzma/backports.lzma-%v.tar.gz Source-MD5: 9be75f9874fdd9187cd2eca494270fcf Depends: python%type_pkg[python], backports-py%type_pkg[python], liblzma5-shlibs BuildDepends: fink (>= 0.24.12), liblzma5 PatchScript: perl -pi -e 's|"~"|"%p"|' setup.py CompileScript: %p/bin/python%type_raw[python] setup.py build InfoTest: << TestScript: << #!/bin/bash -ev export PYTHONPATH=`ls -d %b/build/lib*` # Needed to pass tests on <= py27. export LANG=en_US.UTF-8 %p/bin/python%type_raw[python] test/test_lzma.py || exit 2 find ./build -name "*.pyc" -delete << << InstallScript: << %p/bin/python%type_raw[python] setup.py install --root=%d # We must use the __init__.py from the backports-py package. rm -f %i/lib/python%type_raw[python]/site-packages/backports/__init__.{py,pyc} rm -rf %i/lib/python%type_raw[python]/site-packages/backports/__pycache__ << <<