jayferd/ry — pull request #21 by zhm (2012-07-16 00:03:30+00:00)
Title: Patch for building MRI trunk and JRuby.

These are a few patches I've made in my fork and I thought
I would submit them back in case anyone else was interested.
Feel free to not accept these changes and/or hack them up.

Here are the commands I'm using to keep the latest versions:
ry install https://github.com/ruby/ruby/tarball/trunk trunk --enable-shared=yes
ry install https://github.com/rubinius/rubinius/tarball/master rbx-trunk --enable-version=1.8,1.9 --default-version=1.9
ry install https://github.com/jruby/jruby/tarball/master jruby-trunk

Note that Rubinius still requires some goofiness to get bundler
to work properly because it's stored in a subdirectory.

I've added this to my shell profile. Any suggestions on a better way?

alias linkbundler='ln -s $RY_PREFIX/lib/ry/rubies/rbx-trunk/gems/1.9/bin/bundle $RY_PREFIX/lib/ry/current/bin/bundle'

This patch will run autoconf if it sees a configure.in file in the
source root but there's no configure script. This allows you to
point ry at the MRI git repo and it will run autoconf first and
then build it as usual. There's also a patch to be able to pass
args to the Rubinius installer script. Also in this patch is new
code path to build JRuby.