homebrew-core/Formula/ruby-build.rb
Mike McQuaid f2afc5aa0e Remove rbenv dependents directory creation.
Was needed to upgrade to the new linked directory
format in the case of a non-upgraded rbenv.
2013-01-11 10:48:36 +00:00

22 lines
600 B
Ruby

require 'formula'
class RubyBuild < Formula
homepage 'https://github.com/sstephenson/ruby-build'
url 'https://github.com/sstephenson/ruby-build/tarball/v20130104'
sha1 '64bac42a7bcb66328c59d14d95401d97b4483b3f'
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"
unless build.include? 'without-rbenv'
ln_sf opt_prefix, "#{HOMEBREW_PREFIX}/var/lib/rbenv/plugins/#{name}"
end
end
end