It would be very useful to have a working ebuild for PyAmanith. There is currently no ebuild for pyamanith as found here: http://louhi.kempele.fi/~skyostil/projects/pyamanith/. This is required for the game Frets of Fire.
I'm already on it. The ebuild is done but it doesn't compile at the moment. It seems either to be a swig bug or a bug in the amanith header-files.
(In reply to comment #1) > I'm already on it. > The ebuild is done but it doesn't compile at the moment. It seems either to be > a swig bug or a bug in the amanith header-files. > if you post your ebuild, someone another can improve it or make patch ;)
Created attachment 94426 [details] PyAmanith-0.3.1 ebuild Here's an ebuild I've been trying to get to work for this. It gets as far as building it by hand does for me, which is to say it doesn't work :) I get a lot of warnings like: build/amanith/include/amanith/geometry/gaxisangle.swig.h:63: Warning(509): Overloaded Amanith::GAxisAng<(GReal)>(Amanith::GReal const &,Amanith::GReal const &,Amanith::GReal const &,Amanith::GReal const &) is shadowed by Amanith::GAxisAng<(GReal)>() at build/amanith/include/amanith/geometry/gaxisangle.swig.h:56. Followed by: error: command 'swig' failed with exit status 1 I've been trying with swig-1.3.25 and 1.3.21. Perhaps there's some swig magic I'm missing?
Ok, I've put my ebuild plus patches under subversion control. You can get it here: http://gentoo-sunrise.org/svndump/dev-zero/dev-python/ . When it is finished, I'll move it to the gentoo-sunrise overlay as well. Good luck!
Well, it compiles here with an additional patch. You can get it from the location noted in Comment #4. The problem is that I don't have a script to test if it really works, so I first need bug #143388 done to commit it to gentoo-sunrise :-)
(In reply to comment #5) > Well, it compiles here with an additional patch. You can get it from the > location noted in Comment #4. > The problem is that I don't have a script to test if it really works, so I > first need bug #143388 done to commit it to gentoo-sunrise :-) > not works for me :( I try resolv it. user@localhost /usr/local/portage/dev-python/pyamanith $ ebuild pyamanith-0.3.1.ebuild unpack * PyAmanith-0.3.1.tar.gz MD5 ;-) ... [ ok ] * PyAmanith-0.3.1.tar.gz RMD160 ;-) ... [ ok ] * PyAmanith-0.3.1.tar.gz SHA1 ;-) ... [ ok ] * PyAmanith-0.3.1.tar.gz SHA256 ;-) ... [ ok ] * PyAmanith-0.3.1.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking PyAmanith-0.3.1.tar.gz ;-) ... [ ok ]>>> Unpacking source... >>> Unpacking PyAmanith-0.3.1.tar.gz to /tmp/portage/pyamanith-0.3.1/work * Applying pyamanith-0.3.1-setup_py.patch ... [ ok ] * Applying pyamanith-0.3.1-typemaps_i.patch ... [ ok ] * Applying pyamanith-0.3.1-gdrawboard.patch ... [ ok ]>>> Source unpacked. user@localhost /usr/local/portage/dev-python/pyamanith $ ebuild pyamanith-0.3.1.ebuild compile * PyAmanith-0.3.1.tar.gz MD5 ;-) ... [ ok ] * PyAmanith-0.3.1.tar.gz RMD160 ;-) ... [ ok ] * PyAmanith-0.3.1.tar.gz SHA1 ;-) ... [ ok ] * PyAmanith-0.3.1.tar.gz SHA256 ;-) ... [ ok ] * PyAmanith-0.3.1.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking PyAmanith-0.3.1.tar.gz ;-) ... [ ok ]>>> Checking PyAmanith-0.3.1.tar.gz's mtime... >>> WORKDIR is up-to-date, keeping... >>> Compiling source in /tmp/portage/pyamanith-0.3.1/work/PyAmanith-0.3.1 ... running build running build_py creating build creating build/lib.linux-i686-2.4 copying amanith.py -> build/lib.linux-i686-2.4 running build_ext error: /usr/include/amanith: No such file or directory !!! ERROR: dev-python/pyamanith-0.3.1 failed. Call stack: ebuild.sh, line 1543: Called dyn_compile ebuild.sh, line 938: Called src_compile ebuild.sh, line 1252: Called distutils_src_compile distutils.eclass, line 38: Called die !!! compilation failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! This ebuild is from an overlay: '/usr/local/portage' and when I try run python setup.py build it write running build running build_py running build_ext error: build/amanith/include/amanith/1d/gbsplinecurve1d.swig.h: No such file or directory
Well, stupid question, but do you have amanith installed? Did you try a simple "emerge pyamanith"? It is in Gentoo Sunrise now, so no need to download the ebuild from here and manually do 'ebuild pyamanith-0.3.1.ebuild ...' :-)
(In reply to comment #7) > Well, stupid question, but do you have amanith installed? > Did you try a simple "emerge pyamanith"? It is in Gentoo Sunrise now, so no > need to download the ebuild from here and manually do 'ebuild > pyamanith-0.3.1.ebuild ...' :-) > Hmm, I find it really stupid mistake :), I study code and thinking where I get missing headers :) yes I haven`t it. I use ebuild because I like better control over thinks :)
Created attachment 97382 [details] PyAmanith-0.3.34.ebuild
Created attachment 97383 [details, diff] PyAmanith-0.3.34-build.patch
so the latest one fails to build with gcc-4.1.1; perhaps someone feels like fixing that ;)
@SpanKY Well, my ebuild seems to work fine with gcc-4.1.1. I've just committed the version bump to the Gentoo Sunrise Overlay. You can find it here: http://gentoo-sunrise.org/svn/sunrise/dev-python/pyamanith/
in portage, cheers