The ebuild can stay pretty much the same, but we need a new setup patch to sort out --prefix properly. I've done this locally. There is a problem, in that when I install rake with rubygems-1.1.0 I'm getting an access violation with the gems installer trying to write to the gem cache outside of $D, so I haven't added these into gentoo-x86 yet.
Created attachment 147612 [details, diff] rubygems-1.0.1-to-1.1.0.diff patch ebuild
Created attachment 147613 [details, diff] rubygems-1.1.0-setup.patch patch setup.rb to respect the prefix
remote_fetcher.rb line 91 in the download method is to blame for writing outside the box, I'll try and look at fixing it later today.
ok, it's in cvs