These are the ebuild files for moonlight3d 0.5.5. Moonlight3d is a 3D modelling program for Linux. These should probably go in media-gfx. It requires OpenGL, X, libtiff, libgltt.
Created attachment 4743 [details] The moonlight3d ebuild files
I can't believe I missed this .... I've been working on an ebuild for a few hours now .. hehe .. anyway ... did you fix the Makefile stuff ? Henti
>>> Install moonlight3d-0.5.5 into /var/tmp/portage/moonlight3d-0.5.5/image/ category media-gfx /bin/sh: -c: line 1: syntax error near unexpected token `8470(D' /bin/sh: -c: line 1: `mkdir -p 8470(DESTDIR)/usr/local/lib/moonlight' make: *** [/usr/local/lib/moonlight] Error 2 !!! ERROR: media-gfx/moonlight3d-0.5.5 failed. !!! Function src_install, Line 1, Exitcode 2 !!! make install failed Didn't think so ... .this is the output of your ebuild install I have a working Makefile is you want it .. also .. the makefile for install is "make installdata" not "make install" Henti Smith
Created attachment 6611 [details, diff] A patch to fix installation problems
I found the same problem, but it was fixed by using make installdata - thanks for pointing this out. I added a patch for the ebuild.
hi there :) got the patch :) applying it now. It will solve the make working as per normal .. but the Makefile is still broken and doens't install everything as it should. At current Make file with the current config installs to /usr/local/ which is not what we want. here is a diff of the Makefile I used to install where I wanted it to be : P.S. I'm veryly new to patching and diffs .. how do I create a .patch file ? and how do I apply it to a source tree ? Henti
Created attachment 6617 [details, diff] Makefile diif file Diff for Makefile to fix missing installation and varios other things
make install is the correct way to install it; I added a patch that fixes this to the ebuild and I'll notify the authors about the problem I changed the configure command in the ebuild to make it install to /usr The moonlightrc has to go in /usr/etc; it could be moved to /etc, but that would require modifying the source (src/kernel/MLKernelConfig.C:68,125) I modified configure to use CXXFLAGS instead of hardcoding -O2 into the Makefile I'll attach the new ebuild files. Patches are created with diff -u and applied with patch - check the manpages for options.
Created attachment 6715 [details] New ebuild files This obsoletes all previous attachments.
db fix
Hi all New ebuild with new patch additions. moonlight3d-0.5.5.Makefile.in.patch fixes Makefile.in to install moonlightrc into /etc/moonlight3d instead of /usr/etc/ moonlight3d-0.5.5.MLKernelConfig.C.patch fixes MLKernelConfig.C to check for moonlightrc in /etc/moonlight3d instead of /usr/etc everything compiles my side and when executing moonlight I don't get the error usually generated by MLKernelConfig.C when chekcing for moonlightrc which I hope means it's looking in the right place and finding it. I cannot test the acuall application tho since my brother nicked my gfx card and I don't have OpenGL working on this machine. please test if you can will test as soon as I get a chance. Henti
Created attachment 10185 [details] tarball containing current portage moonlight directory with new ebuild and new patches This is the latest update from me with lots of work from Richard incorporated. this new ebuild will install moonlight correctly on gentoo with /usr as $DESTDIR and configs in /etc/moonlight3d please test and report Henti Smith