Info2: << Package: 3to2-py%type_pkg[python] Version: 1.1a4 Revision: 1 # Needs nose-py33 before adding 3.3 variant. Type: python (3.1 3.2) Description: Refactor python 3.x syntax into 2.x syntax DescDetail: << lib3to2 is a set of fixers that are intended to backport code written for Python version 3.x into Python version 2.x. The final target 2.x version is the latest version of the 2.5 branch, though for the Google Summer of Code (TM) a later branch will be necessary for some of the more difficult fixers (or some of the new features with no syntactical equivalent in Python 2.5) that have been backported to the 2.x branches. << DescUsage: << Run "3to2" to convert stdin ("-"), files or directories given as arguments. By default, the tool outputs a unified diff-formatted patch on standard output and a "what was changed" summary on standard error, but the "-w" option can be given to write back converted files, creating ".bak"-named backup files. << Maintainer: Daniel Johnson License: BSD Homepage: http://pypi.python.org/pypi/awkwardduet Source: https://launchpad.net/awkwardduet/1.1/%v/+download/awkwardduet-%v.tar.gz Source-MD5: 9c10002b9195fe954de46d9d8744d387 Depends: python%type_pkg[python] BuildDepends: fink (>= 0.24.12), setuptools-tng-py%type_pkg[python] PatchScript: << #!/bin/bash -ev if [ %type_pkg[python] -eq 31 ]; then perl -pi -e 's/unittest\.case/unittest2.case/' src/lib3to2/tests/test_format_numbering.py src/lib3to2/tests/test_utils.py fi << CompileScript: << %p/bin/python%type_raw[python] setup.py build << InfoTest: << TestDepends: nose-py%type_pkg[python], (%type_pkg[python] = 31) unittest2-py%type_pkg[python] TestScript: %p/bin/python%type_raw[python] setup.py test || exit 2 << InstallScript: << %p/bin/python%type_raw[python] setup.py install --root=%d mv %i/bin/3to2 %i/bin/3to2-%type_pkg[python] << PostInstScript: << update-alternatives --install %p/bin/3to2 3to2 %p/bin/3to2-%type_pkg[python] %type_pkg[python] << PreRmScript: << if [ $1 != "upgrade" ]; then update-alternatives --remove 3to2 %p/bin/3to2-%type_pkg[python] fi << DocFiles: PKG-INFO README.rst NEWS.rst <<