homebrew-core/Formula/ruby-build.rb
Erik Michaels-Ober 3d37d518b6 ruby-build 20121227
* Added a definition for Ruby 1.9.3-p362
* Added a definition for Ruby 1.8.7-p371
* Moved the default ruby-build mirror from GitHub Downloads to Amazon
  CloudFront.

Closes Homebrew/homebrew#16765.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-12-27 14:11:21 -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/v20121227'
sha1 'db33874fdb2f260fcbcc2202364e5d3cfc261fe6'
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