2011-08-14 18:10:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Rbenv < Formula
|
|
|
|
homepage 'https://github.com/sstephenson/rbenv'
|
2013-03-29 20:29:20 +00:00
|
|
|
url 'https://github.com/sstephenson/rbenv/archive/v0.4.0.tar.gz'
|
|
|
|
sha1 '825ceec55805b8bb80a6d6003fd3cef824d7ff14'
|
2011-08-14 18:10:54 +00:00
|
|
|
|
|
|
|
head 'https://github.com/sstephenson/rbenv.git'
|
|
|
|
|
|
|
|
def install
|
2013-02-12 00:30:26 +00:00
|
|
|
inreplace 'libexec/rbenv', '/usr/local', HOMEBREW_PREFIX
|
2011-08-14 18:10:54 +00:00
|
|
|
prefix.install Dir['*']
|
|
|
|
end
|
2012-02-18 22:01:32 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2012-10-30 14:29:21 +00:00
|
|
|
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
|
2013-03-23 17:50:12 +00:00
|
|
|
|
|
|
|
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
|
2011-08-14 18:10:54 +00:00
|
|
|
end
|