diff options
| author | Mike McQuaid | 2012-10-30 14:29:21 +0000 | 
|---|---|---|
| committer | Mike McQuaid | 2012-10-31 22:33:16 +0000 | 
| commit | dd00d56d6933e4990420170b33cfff3146752919 (patch) | |
| tree | 65ded0cdf412c0aeba1732d9770deee1b157e3f9 /Library/Formula/ruby-build.rb | |
| parent | c0a9e479325de1ff4cd872331d3ccb431a7506bb (diff) | |
| download | homebrew-dd00d56d6933e4990420170b33cfff3146752919.tar.bz2 | |
Fix rbenv to install versions and plugins globally.
Closes #15750.
Diffstat (limited to 'Library/Formula/ruby-build.rb')
| -rw-r--r-- | Library/Formula/ruby-build.rb | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/ruby-build.rb b/Library/Formula/ruby-build.rb index c787cbf9d..e7fb264a7 100644 --- a/Library/Formula/ruby-build.rb +++ b/Library/Formula/ruby-build.rb @@ -7,8 +7,15 @@ class RubyBuild < Formula    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" + +    ln_sf opt_prefix, "#{HOMEBREW_PREFIX}/var/lib/rbenv/plugins/ruby-build" \ +      unless build.include? 'without-rbenv'    end  end  | 
