Created attachment 280485 [details]
Experimental svgwrite ebuild
svgwrite is a Python library to create SVG drawings. It is similar to dev-python/pysvg which is already in the tree, but more "pythonic" and better documented. The PyPI site is at http://pypi.python.org/pypi/svgwrite .
I have created a dead simple ebuild which works for me, but surley needs improvement. Though it claims to be compatible to Python 3.x, there is a syntax error when "Compilation and optimization of Python modules for CPython 3.2" which I have reported upstream. Apart from that, it works flawlessly for me on Python 2.6.
CC'ing python if is interested
The error emerging the ebuild is
* Compilation and optimization of Python modules for CPython 3.2 ...
*** Error compiling /usr/lib/python3.2/site-packages/svgwrite/data/pyparsing_py2.py ...
File "/usr/lib/python3.2/site-packages/svgwrite/data/pyparsing_py2.py", line 2538
except ParseException, err:
SyntaxError: invalid syntax
[ !! ]
I have just learned from the author that "pyparsing_py2.py" is not meant to be compiled by Python 3. So the ebuild should somehow exclude it from compiling, but I do not yet know how to achieve this. Any hints would be welcome.
Reopen if you still want this ebuild in the tree.