5fc7fe6290
Added a definition for Ruby 2.0.0-preview2 Closes Homebrew/homebrew#16343. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
22 lines
651 B
Ruby
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/v20121201'
|
|
sha1 '2376fe7cc68eb6cfdd2cb8b7f9319cb7795a40a0'
|
|
|
|
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
|