Created attachment 282165 [details]
An ebuild for libspnav. This is just the sdk which is needed for Blender's 3d mouse implementation.
There is a driver available on the website http://spacenav.sourceforge.net/ but I haven't tried to get it working yet. Besides I don't have one of the devices to really try it out.
Created attachment 282167 [details, diff]
I recently bumped into dependency for libspnav while installing blender-2.59 from alice overlay and created a ebuild myself, yours far more better.
I have couple of questions though,
- How do you think is it better to use ESVN_REPO_URI with svn address than just make ebuild for each separate version ?
- I see you had problems with sandbox to :) ? How did you made patch (i.e. with what tool) ?
- Is your ebuild placed somewhere where I can use it with layman or just emerge it ?
It would be great if you would look at my ebuild and give me some advices or critics, I'd really appreciate that. It is in
Thank you for your hard work and contribution to Gentoo :)
(In reply to comment #2)
I don't remember exactly why I choose to use svn for libspnav. I think it was because libspnav had some activity in svn, where the tar balls where a year old.
To make a patch I use: diff -u path1/original path2/fixed > somefile.patch
I then edit the patch so the path starts at the root of the source directory.
I haven't found a better way yet, but I'm just figuring it out as I go.
I have only posted the ebuild in bugzilla. I have been maintaining a local overlay for things that I work on or aren't in Portage otherwise. But I don't have it on-line or anything.
I have only made 2 or 3 ebuilds from scratch. I looked at others and tried to pick the best parts. I also try to make ebuild to share with others. So these are my suggestions for your ebuild:
1) Use the correct license. It says right on their webpage that libspnav uses a modified BSD license.
2) Do not disable sandbox. It is there to protect you. Fix the problem instead. Hence the patch I made.
3) Add the proper dependencies and use flags. X11 is an optional dependency. The Gentoo way is to give the user the choice.
4) Respect the users cflags. Again the Gentoo way is choice. Not always easy but is the right thing to do.
As a minor note, unescape the url. I don't read % codes very well.
Hope this helps. Keep at it.
https://downloads.sourceforge.net/spacenav/libspnav-0.2.3.tar.gz is available