homebrew-core/Formula/ruby-build.rb
Erik Michaels-Ober 49000ec433 ruby-build 20121110
Added a definition for Ruby 1.9.3-p327

Closes Homebrew/homebrew#15965.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-11-10 13:49:41 -08:00

22 lines
651 B
Ruby

require 'formula'
class RubyBuild < Formula
homepage 'https://github.com/sstephenson/ruby-build'
url 'https://github.com/sstephenson/ruby-build/tarball/v20121110'
sha1 'dcb6d3710a7cc87e534d547fac7513685344f61a'
head 'https://github.com/sstephenson/ruby-build.git'
option "without-rbenv", "Don't install as an rbenv plugin"
depends_on 'rbenv' unless build.include? 'without-rbenv'
def install
ENV['PREFIX'] = prefix
system "./install.sh"
rbenv_plugins = "#{HOMEBREW_PREFIX}/var/lib/rbenv/plugins"
mkdir_p rbenv_plugins
ln_sf opt_prefix, "#{rbenv_plugins}/#{name}" unless build.include? 'without-rbenv'
end
end