2015-06-26 15:33:14 +00:00
|
|
|
class Ipfs < Formula
|
2016-06-16 13:55:08 +00:00
|
|
|
desc "Peer-to-peer hypermedia protocol"
|
2015-10-16 14:18:09 +00:00
|
|
|
homepage "https://ipfs.io/"
|
2015-06-26 15:33:14 +00:00
|
|
|
url "https://github.com/ipfs/go-ipfs.git",
|
2016-09-24 15:45:48 +00:00
|
|
|
:tag => "v0.4.3",
|
|
|
|
:revision => "189fa76bce0355bb9b84033aaead5768e2334ee6"
|
2015-08-05 18:52:39 +00:00
|
|
|
head "https://github.com/ipfs/go-ipfs.git"
|
2015-06-26 15:33:14 +00:00
|
|
|
|
2015-07-01 23:25:38 +00:00
|
|
|
bottle do
|
2015-11-02 20:39:00 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-09-20 17:38:58 +00:00
|
|
|
sha256 "750a80d616e46581d2c311f98286edaf4edb45f5d68d9814aa82d2c9a6b8e3c8" => :sierra
|
|
|
|
sha256 "f57865fbc7bd2af4cae5583d25e918a08c98b05d6660e3c070b90aebca25de19" => :el_capitan
|
|
|
|
sha256 "d49fc0770cd32ddd9f0ab50d34663134cec30c027cdc1b8312c78c61e344bcb8" => :yosemite
|
2015-07-01 23:25:38 +00:00
|
|
|
end
|
|
|
|
|
2015-06-26 15:33:14 +00:00
|
|
|
depends_on "go" => :build
|
2015-11-14 10:30:49 +00:00
|
|
|
depends_on "godep" => :build
|
2016-04-10 18:33:14 +00:00
|
|
|
depends_on "gx"
|
|
|
|
depends_on "gx-go"
|
2015-06-26 15:33:14 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
2016-06-16 13:55:08 +00:00
|
|
|
(buildpath/"src/github.com/ipfs/go-ipfs").install buildpath.children
|
|
|
|
cd("src/github.com/ipfs/go-ipfs") { system "make", "install" }
|
|
|
|
bin.install "bin/ipfs"
|
2015-06-26 15:33:14 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-06-16 13:55:08 +00:00
|
|
|
system bin/"ipfs", "version"
|
2015-06-26 15:33:14 +00:00
|
|
|
end
|
|
|
|
end
|