homebrew-core/Formula/direnv.rb
2012-09-03 11:36:42 -07:00

22 lines
538 B
Ruby

require 'formula'
class Direnv < Formula
homepage 'http://www.direnv.net'
url 'https://github.com/zimbatm/direnv/tarball/v0.1.127'
sha1 '5d22c070ad949999ddea5e0d52d4bde809ce28a1'
head 'https://github.com/zimbatm/direnv.git'
def install
system "make", "install", "DESTDIR=#{prefix}"
end
def caveats; <<-EOS.undent
At the END of your ~/.bashrc or ~/.zshrc, add the following line:
eval `direnv hook $0`
See the wiki for docs and examples:
https://github.com/zimbatm/direnv/wiki/
EOS
end
end