homebrew-core/Formula/direnv.rb
Jonas Pfenniger f6bf309af2 direnv 2.1.0
Closes Homebrew/homebrew#24159.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-11-10 13:37:30 -08:00

24 lines
575 B
Ruby

require 'formula'
class Direnv < Formula
homepage 'http://www.direnv.net'
url 'https://github.com/zimbatm/direnv/archive/v2.1.0.tar.gz'
sha1 'e2f88d6fc9f6a55bd0b377f6dd46c1d2278fffe0'
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