1ef2f2bf42
The instructions should be in the reverse order. The root path needs to be set before enabling shims. Closes Homebrew/homebrew#18682. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
23 lines
650 B
Ruby
23 lines
650 B
Ruby
require 'formula'
|
|
|
|
class Rbenv < Formula
|
|
homepage 'https://github.com/sstephenson/rbenv'
|
|
url 'https://github.com/sstephenson/rbenv/tarball/v0.4.0'
|
|
sha1 'a5e80249f985294c1c9f0914f7cbdc85d4cadd74'
|
|
|
|
head 'https://github.com/sstephenson/rbenv.git'
|
|
|
|
def install
|
|
inreplace 'libexec/rbenv', '/usr/local', HOMEBREW_PREFIX
|
|
prefix.install Dir['*']
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
To use Homebrew's directories rather than ~/.rbenv add to your profile:
|
|
export RBENV_ROOT=#{var}/rbenv
|
|
|
|
To enable shims and autocompletion add to your profile:
|
|
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
|
|
EOS
|
|
end
|
|
end
|