Cleanup rbenv mess.

master
Mike McQuaid 2013-02-12 22:21:27 -08:00
parent 39de379259
commit 3a4f7bd767
6 changed files with 1 additions and 29 deletions

View File

@ -12,12 +12,5 @@ class RbenvDefaultGems < Formula
def install
prefix.install Dir['*']
ln_sf opt_prefix, "#{HOMEBREW_PREFIX}/var/lib/rbenv/plugins/#{name}"
end
def caveats; <<-EOS.undent
As you are using Homebrew's directories for `rbenv` rather than ~/.rbenv
place the `default-gems` file in #{HOMEBREW_PREFIX}/opt/rbenv.
EOS
end
end

View File

@ -9,8 +9,6 @@ class RbenvGemRehash < Formula
def install
prefix.install Dir['*']
ln_sf opt_prefix, "#{HOMEBREW_PREFIX}/var/lib/rbenv/plugins/#{name}"
end
def caveats; <<-EOS.undent

View File

@ -11,7 +11,5 @@ class RbenvGemset < Formula
def install
prefix.install Dir['*']
ln_sf opt_prefix, "#{HOMEBREW_PREFIX}/var/lib/rbenv/plugins/#{name}"
end
end

View File

@ -11,7 +11,5 @@ class RbenvVars < Formula
def install
prefix.install Dir['*']
ln_sf opt_prefix, "#{HOMEBREW_PREFIX}/var/lib/rbenv/plugins/#{name}"
end
end

View File

@ -10,13 +10,6 @@ class Rbenv < Formula
def install
inreplace 'libexec/rbenv', '/usr/local', HOMEBREW_PREFIX
prefix.install Dir['*']
var_lib = var/'lib/rbenv'
['plugins', 'versions'].each do |dir|
var_dir = var_lib/dir
var_dir.mkpath
ln_sf var_dir, (prefix/dir)
end
end
def caveats; <<-EOS.undent
@ -24,7 +17,7 @@ class Rbenv < Formula
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
To use Homebrew's directories rather than ~/.rbenv add to your profile:
export RBENV_ROOT=#{opt_prefix}
export RBENV_ROOT=#{var}/rbenv
EOS
end
end

View File

@ -7,16 +7,8 @@ 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"
unless build.include? 'without-rbenv'
ln_sf opt_prefix, "#{HOMEBREW_PREFIX}/var/lib/rbenv/plugins/#{name}"
end
end
end