sstephenson/ruby-build — Issue #131: Support extensions
Author: trans
Created: 2012-02-17 13:36:00+00:00
State: open

I previously mentioned inclusion of a build script for Ruby with Tk extensions, at the time it was: `1.9.3-rc1+tk8.5`. So now that newer versions of Ruby are out, I have to look at adding new builds for those too. But it seems like a waste since ruby-build already has all the builds necessary. Really, all I need is an extension script to insert before the actual build script. That being a generic design idea, I imagine others might have use cases for it as well.

So I was thinking, what about adding support for build extensions. To differentiate build extensions from regular build scripts they could be placed in `share/ruby-build` prefixed with an underscore, e.g. in my case

share/
ruby_build/
_tk-8.5.sh

And then specified on the command line using `-x`, e.g.

$ ruby-build -x tk-8.5 ruby-1.9.2-p290