2011-06-04 19:53:18 +00:00
|
|
|
class Direnv < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Load/unload environment variables based on $PWD"
|
2015-08-15 21:40:19 +00:00
|
|
|
homepage "http://direnv.net"
|
|
|
|
url "https://github.com/zimbatm/direnv/archive/v2.7.0.tar.gz"
|
|
|
|
sha256 "3cfa8f41e740c0dc09d854f3833058caec0ea0d67d19e950f97eee61106b0daf"
|
2011-06-04 19:53:18 +00:00
|
|
|
|
2015-02-17 15:45:05 +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
|
2015-09-22 22:39:02 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "20345349318934e2ba44d5109872a0e51ae69d09306727cfd88a45597eda27c0" => :el_capitan
|
2015-08-15 21:57:56 +00:00
|
|
|
sha256 "13c1d2a2b34eab4f755a47235f85fd02c7cbd65d0bcb5bd01de0e69d1f28cb38" => :yosemite
|
|
|
|
sha256 "8c32edd5768f78b31308f382d07237c17ea9e664da9b2ad5613fd564d271fb28" => :mavericks
|
|
|
|
sha256 "a7fd223871f2e8ddbf4b797e13527400a27207c9c8ace2b5c995c931a0e70a33" => :mountain_lion
|
2014-11-05 15:40:52 +00:00
|
|
|
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
|
|
|
|
2015-02-16 13:55:15 +00:00
|
|
|
def caveats
|
|
|
|
"Finish setup by following: https://github.com/zimbatm/direnv#setup"
|
2011-09-21 16:19:17 +00:00
|
|
|
end
|
2015-02-17 15:45:05 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"direnv", "status"
|
|
|
|
end
|
2011-06-04 19:53:18 +00:00
|
|
|
end
|