homebrew-core/Formula/rbenv.rb

24 lines
657 B
Ruby
Raw Normal View History

require 'formula'
class Rbenv < Formula
homepage 'https://github.com/sstephenson/rbenv'
url 'https://github.com/sstephenson/rbenv/archive/v0.4.0.tar.gz'
sha1 '825ceec55805b8bb80a6d6003fd3cef824d7ff14'
head 'https://github.com/sstephenson/rbenv.git'
def install
inreplace 'libexec/rbenv', '/usr/local', HOMEBREW_PREFIX
prefix.install Dir['*']
end
2012-02-18 22:01:32 +00:00
def caveats; <<-EOS.undent
To use Homebrew's directories rather than ~/.rbenv add to your profile:
2013-02-13 06:21:27 +00:00
export RBENV_ROOT=#{var}/rbenv
To enable shims and autocompletion add to your profile:
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
2012-02-18 22:01:32 +00:00
EOS
end
end