2011-06-04 19:53:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Direnv < Formula
|
2011-12-31 21:34:25 +00:00
|
|
|
homepage 'http://www.direnv.net'
|
2014-11-05 15:33:04 +00:00
|
|
|
url 'https://github.com/zimbatm/direnv/archive/v2.5.0.tar.gz'
|
|
|
|
sha1 '48aa6a9dc5748b8043fb6f8ccdc8f3b538301382'
|
2011-06-04 19:53:18 +00:00
|
|
|
|
2011-06-05 00:18:11 +00:00
|
|
|
head 'https://github.com/zimbatm/direnv.git'
|
2011-06-04 19:53:18 +00:00
|
|
|
|
2014-11-05 15:40:52 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "fb5340876bc488bd38aba9e00d52fff0f029f797" => :yosemite
|
|
|
|
sha1 "fbc2ed0cadad4543df0d09e3afe756866e0e44b3" => :mavericks
|
|
|
|
sha1 "353d3f25f0b7e3bd57bc91dd855635163bc426e7" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2013-06-16 12:44:22 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
2011-06-04 19:53:18 +00:00
|
|
|
def install
|
2012-05-15 18:31:21 +00:00
|
|
|
system "make", "install", "DESTDIR=#{prefix}"
|
2011-06-04 19:53:18 +00:00
|
|
|
end
|
2011-09-21 16:19:17 +00:00
|
|
|
|
2012-02-13 06:19:19 +00:00
|
|
|
def caveats; <<-EOS.undent
|
2011-09-21 16:19:17 +00:00
|
|
|
At the END of your ~/.bashrc or ~/.zshrc, add the following line:
|
2013-03-29 18:17:09 +00:00
|
|
|
eval "$(direnv hook $0)"
|
2011-09-21 16:19:17 +00:00
|
|
|
|
|
|
|
See the wiki for docs and examples:
|
|
|
|
https://github.com/zimbatm/direnv/wiki/
|
|
|
|
EOS
|
|
|
|
end
|
2011-06-04 19:53:18 +00:00
|
|
|
end
|