homebrew-core/Formula/rbenv.rb
Andrew Janke c8d2d41c1d Change github /tarball/ URLs to /archive/ for formulae L-Z
This takes care of a `brew audit` complaint.

Closes Homebrew/homebrew#18828.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-29 14:59:28 -07:00

23 lines
657 B
Ruby

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
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