homebrew-core/Formula/direnv.rb
2015-06-05 14:47:57 +01:00

29 lines
762 B
Ruby

class Direnv < Formula
desc "Load/unload environment variables based on $PWD"
homepage "http://www.direnv.net"
url "https://github.com/zimbatm/direnv/archive/v2.6.0.tar.gz"
sha1 "ebfa8c087aadeffe2c8f84128082d670d22ea541"
head "https://github.com/zimbatm/direnv.git"
bottle do
cellar :any
sha1 "0cee43bd9df0e2f376e6edfaaebb6ca537df0692" => :yosemite
sha1 "9d0cd4d5ec285daba2d2e4237cac58e963fd88fc" => :mavericks
sha1 "26f4abf81efa2bcf23ae58c0a913ac6b93ef3f1d" => :mountain_lion
end
depends_on "go" => :build
def install
system "make", "install", "DESTDIR=#{prefix}"
end
def caveats
"Finish setup by following: https://github.com/zimbatm/direnv#setup"
end
test do
system bin/"direnv", "status"
end
end