Working ebuild for rubygems 0.8.1, simpler than the ones in http://bugs.gentoo.org/show_bug.cgi?id=52959 . It requires a simple patch to install.rb to make use of ${D} and avoid sandbox issues. This installs rubygems in the default package location, which seems good (and consistent) to me.
Created attachment 44283 [details] ebuild for dev-ruby/rubygems-0.8.1
Created attachment 44284 [details, diff] patch to fix sandbox issues
*** Bug 52959 has been marked as a duplicate of this bug. ***
The patch does not fix sandbox violation. Does it work on your system?
Created attachment 44290 [details, diff] updated patch - fixes shebang The original patch left the workdir in a shebang, leading to unusable scripts. Updated patch fixes this issue.
Created attachment 44291 [details, diff] patch v3 - fixes remaining sandbox violation There was only one other spot an absolute location was used - replaced this to use ${D}. This should fix any remaining sandbox violations.
v3 patch doesn't even apply to rubygems-0.8.1.
Created attachment 44298 [details, diff] patch v4 - fixes patch v3 was screwed up. v4 fixes the file formatting. In my own defense, I'm doing this from a Windows computer (at work) and it sort of sucks.
No worries, I see :) However, your patch doesn't work if you don't have rubygems installed. ./sources.gemspec:2:in `require': No such file to load -- rubygems (LoadError) The patch in bug #52959 contained a fix for this problem, but your patch doesn't. Will you fix this problem with your patch?
Created attachment 44300 [details, diff] patch v5 - fixes sources.gemspec I had fixed this in my tests last night, but forgot to include the patch. Hopefully this should be everything.
Thanks, works flawlessly - added to CVS :)