Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377859 - app-misc/libspnav - A free, compatible alternative for 3Dconnexion's 3D input SDK
Summary: app-misc/libspnav - A free, compatible alternative for 3Dconnexion's 3D input...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL: http://spacenav.sourceforge.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-05 08:00 UTC by Shannon
Modified: 2019-01-03 14:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
libspnav-9999.ebuild (libspnav-9999.ebuild,844 bytes, text/plain)
2011-08-05 08:00 UTC, Shannon
Details
libspnav-makefile.patch (libspnav-makefile.patch,663 bytes, patch)
2011-08-05 08:01 UTC, Shannon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shannon 2011-08-05 08:00:59 UTC
Created attachment 282165 [details]
libspnav-9999.ebuild

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.
Comment 1 Shannon 2011-08-05 08:01:45 UTC
Created attachment 282167 [details, diff]
libspnav-makefile.patch
Comment 2 iegor 2011-09-22 16:26:37 UTC
Hello Shannon,

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
https://github.com/iegor/rainyday/tree/master/app-misc/libspnav

Thank you for your hard work and contribution to Gentoo :)

Cheers,
Iegor
Comment 3 Shannon 2011-09-22 19:29:47 UTC
(In reply to comment #2)

Iegor,

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.
Shannon