If you don't feel like changing the code, I suggest setting the following variables in the ebuild: PYTHON_DEPEND="2:2.6" (before inherit) RESTRICT_PYTHON_ABIS="2.[45] 3.*" * Messages for package app-portage/tatt-9999: * git.eclass is deprecated. * Please update your ebuilds to use git-2 instead. For details, see * http://archives.gentoo.org/gentoo-dev/msg_b7ba363cae580845819ae3501fb157e9.xml * GIT update --> * repository: git://github.com/tom111/tatt.git * at the commit: d60242a092728032c884e9b5ce57710cb297b761 * branch: master * storage directory: "/usr/portage/distfiles/git-src/tatt" * Syntax errors / warnings in Python modules for CPython 2.4: * Compiling /usr/lib64/python2.4/site-packages/tatt/packageFinder.py ... * File "/usr/lib64/python2.4/site-packages/tatt/packageFinder.py", line 4 * from .gentooPackage import gentooPackage as gP * ^ * SyntaxError: invalid syntax * * Compiling /usr/lib64/python2.4/site-packages/tatt/scriptwriter.py ... * File "/usr/lib64/python2.4/site-packages/tatt/scriptwriter.py", line 6 * from .usecombis import findUseFlagCombis * ^ * SyntaxError: invalid syntax * * Compiling /usr/lib64/python2.4/site-packages/tatt/tinderbox.py ... * File "/usr/lib64/python2.4/site-packages/tatt/tinderbox.py", line 10 * from .gentooPackage import gentooPackage as gP * ^ * SyntaxError: invalid syntax * * Compiling /usr/lib64/python2.4/site-packages/tatt/usecombis.py ... * File "/usr/lib64/python2.4/site-packages/tatt/usecombis.py", line 8 * from .tool import unique * ^ * SyntaxError: invalid syntax * Syntax errors / warnings in Python modules for CPython 2.5: * /usr/lib64/python2.5/site-packages/tatt/tinderbox.py:35: Warning: 'as' will become a reserved keyword in Python 2.6 * Compiling /usr/lib64/python2.5/site-packages/tatt/tinderbox.py ... * File "/usr/lib64/python2.5/site-packages/tatt/tinderbox.py", line 35 * except urllib2.HTTPError as e: * ^ * SyntaxError: invalid syntax
I also suggest migrating to the git-2 eclass, which should simply be a matter of changing "git" to "git-2" in this ebuild.
Done. Thanks Mike! + 13 Sep 2011; Thomas Kahle <tomka@gentoo.org> tatt-9999.ebuild: + Fixing python dependencies and use git-2.eclass (Bug 382767)