2015-11-14 10:18:27 +00:00
|
|
|
class Godep < Formula
|
|
|
|
desc "dependency tool for go"
|
|
|
|
homepage "https://godoc.org/github.com/tools/godep"
|
2015-12-16 18:14:22 +00:00
|
|
|
url "https://github.com/tools/godep/archive/v41.tar.gz"
|
|
|
|
sha256 "bafc00163710bdf425fc158621a42be06c31e0ccff20b8601beeb07b9897ec17"
|
2015-11-14 10:18:27 +00:00
|
|
|
head "https://github.com/tools/godep.git"
|
|
|
|
|
2015-11-14 11:12:41 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2015-11-22 11:31:28 +00:00
|
|
|
sha256 "0c9d4a7386b86fca27e1762859bdad5e90883ddc038ffd3eb82c631055381f3f" => :el_capitan
|
|
|
|
sha256 "d70a3a2b143f7440f201829562748f976119fc8517859deac109b24739cbf0bc" => :yosemite
|
|
|
|
sha256 "da476787515094caf65b3f13cfc7a3c4058e9291607243c005fce3c6946cd4fc" => :mavericks
|
2015-11-14 11:12:41 +00:00
|
|
|
end
|
|
|
|
|
2015-11-14 11:21:30 +00:00
|
|
|
depends_on "go"
|
2015-11-14 10:18:27 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
mkdir_p buildpath/"src/github.com/tools/"
|
|
|
|
ln_sf buildpath, buildpath/"src/github.com/tools/godep"
|
|
|
|
|
|
|
|
cd "src/github.com/tools/godep" do
|
|
|
|
system "go", "build", "-o", bin/"godep"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
mkdir "Godeps"
|
|
|
|
(testpath/"Godeps/Geodeps.json").write <<-EOS.undent
|
|
|
|
{
|
|
|
|
"ImportPath": "github.com/tools/godep",
|
|
|
|
"GoVersion": "go1.4.2",
|
|
|
|
"Deps": []
|
|
|
|
}
|
|
|
|
EOS
|
|
|
|
system bin/"godep", "path"
|
|
|
|
end
|
|
|
|
end
|