homebrew-core/Formula/direnv.rb
zimbatm 8d1c2e95cb direnv 2.2.1
Closes Homebrew/homebrew#25841.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-12 15:44:09 +00:00

24 lines
575 B
Ruby

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