homebrew-core/Formula/direnv.rb

31 lines
795 B
Ruby
Raw Normal View History

require 'formula'
class Direnv < Formula
homepage 'http://www.direnv.net'
url 'https://github.com/zimbatm/direnv/archive/v2.5.0.tar.gz'
sha1 '48aa6a9dc5748b8043fb6f8ccdc8f3b538301382'
head 'https://github.com/zimbatm/direnv.git'
2014-11-05 15:40:52 +00:00
bottle do
sha1 "fb5340876bc488bd38aba9e00d52fff0f029f797" => :yosemite
sha1 "fbc2ed0cadad4543df0d09e3afe756866e0e44b3" => :mavericks
sha1 "353d3f25f0b7e3bd57bc91dd855635163bc426e7" => :mountain_lion
end
depends_on "go" => :build
def install
system "make", "install", "DESTDIR=#{prefix}"
end
2012-02-13 06:19:19 +00:00
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