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" sha256 "b85aac4d6a4ddf2daf193aabb3b2faf89e56507d33d763ab74cc7eb0b524ac03" 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