homebrew-core/Formula/direnv.rb
Jonas Pfenniger b2171dcb0b direnv v2.0.1
Closes Homebrew/homebrew#20689.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-06-22 10:34:54 -05:00

24 lines
575 B
Ruby

require 'formula'
class Direnv < Formula
homepage 'http://www.direnv.net'
url 'https://github.com/zimbatm/direnv/archive/v2.0.1.tar.gz'
sha1 '9942d40f96778f44c370c854360faca05d9a91af'
head 'https://github.com/zimbatm/direnv.git'
depends_on "go" => :build
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