Uses ruby.eclass, probably needs to be adapted.
Created attachment 227943 [details] Build log
ruby team: is there a migration guide to for maintainers to port ebuilds to ruby1.9?
gorg-0.6.4-r1 is already based on ruby-ng, so there is no work to be done on the ebuild anymore. Can't help you with the ruby 1.9 part of gorg itself, haven't looked at 1.9 at all yet since it's still masked.
I think this is easily fixed. After 3 minutes Google search I found this URL: http://boga.wordpress.com/2008/04/15/ruby-19-porting-notes/ Item 8. should fix Gorg compilation with Ruby 1.9: -------------------------------------- In ruby1.9 for the RString in C extensions was changed because of optimization, you should use the RSTRING_LEN, RSTRING_PTR macros instead of directly accessing the len, ptr members. len = RSTRING(foo)->len ptr = RSTRING(foo)->ptr Should be changed to len = RSTRING_LEN(foo); ptr = RSTRING_PTR(foo); -------------------------------------- Hope that helps.
Created attachment 293133 [details] files/gorg-0.6.4-ruby19.patch ruby19 support. Built both with ruby18 and ruby19.
Created attachment 293135 [details] files/gorg-0.6.4-ruby19-date.patch Ruby19 only patch. Deal with dropped library "parsedate".
Created attachment 293137 [details] gorg-0.6.4.ebuild.patch - Use ruby18 and ruby19. - Rewrite to use ruby-fakegem - Apply above two patch Installed and invoked fine, but whetehr or not it's really serving contens is not yet tested.
(In reply to comment #7) > - Use ruby18 and ruby19. > - Rewrite to use ruby-fakegem gorg is not distributed as a gem, so I'd rather not install it as such. Why did you choose to do this instead of just using ruby-ng.eclass ? > - Apply above two patch I would like to avoid applying patches for specific ruby versions if possible. Isn't it possible to create a solution that works in both cases?
Created attachment 294685 [details] files/gorg-0.6.4-ruby19-date.patch Rewrote the patch to work both with ruby18 and ruby19
Created attachment 294687 [details, diff] gorg-0.6.4.ebuild.patch >> - Rewrite to use ruby-fakegem > gorg is not distributed as a gem, so I'd rather not install it as such. Why did > you choose to do this instead of just using ruby-ng.eclass ? There were no reason to use ruby-fakegem. I've mis-understood that using ruby-fakegem would be good for every place.. I've reverted the ebuild patch to use ruby-ng Changes from current ebuild are - Use ruby18 and ruby19 - Rewrite to use ruby-ng - Apply ruby19 compatible patch
Created attachment 294691 [details] test.rb Simple ruby script to show ${P}-ruby19-date.patch concept $ cd /usr/portage/www-servers/gorg $ ruby18 test.rb Sat Apr 09 18:13:34 UTC 2011 Sat Apr 09 18:13:34 UTC 2011 true $ ruby19 test.rb 2011-04-09 18:13:34 UTC 2011-04-09 18:13:34 UTC true
Created attachment 294693 [details, diff] files/gorg-0.6.4-ruby19-date.patch There was some error about the previous patch...
Thanks for the patches and for testing. I also had an ebuild-in-progress for ruby-ng, so I've mixed our versions and created gorg 0.6.4-r1.