homebrew-core/Formula/rbenv.rb

24 lines
650 B
Ruby
Raw Normal View History

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
2012-02-18 22:01:32 +00:00
def caveats; <<-EOS.undent
To enable shims and autocompletion add to your profile:
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
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
2012-02-18 22:01:32 +00:00
EOS
end
end