2011-08-14 18:10:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Rbenv < Formula
|
|
|
|
homepage 'https://github.com/sstephenson/rbenv'
|
2013-01-04 19:32:21 +00:00
|
|
|
url 'https://github.com/sstephenson/rbenv/tarball/v0.4.0'
|
|
|
|
sha1 'a5e80249f985294c1c9f0914f7cbdc85d4cadd74'
|
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 enable shims and autocompletion add to your profile:
|
2012-05-04 20:44:04 +00:00
|
|
|
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
|
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
|
2012-02-18 22:01:32 +00:00
|
|
|
EOS
|
|
|
|
end
|
2011-08-14 18:10:54 +00:00
|
|
|
end
|