homebrew-core/Formula/ipfs.rb

32 lines
964 B
Ruby
Raw Normal View History

class Ipfs < Formula
desc "Peer-to-peer hypermedia protocol"
2015-10-16 14:18:09 +00:00
homepage "https://ipfs.io/"
url "https://github.com/ipfs/go-ipfs.git",
:tag => "v0.4.3",
:revision => "189fa76bce0355bb9b84033aaead5768e2334ee6"
head "https://github.com/ipfs/go-ipfs.git"
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
depends_on "go" => :build
2015-11-14 10:30:49 +00:00
depends_on "godep" => :build
depends_on "gx"
depends_on "gx-go"
def install
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/ipfs/go-ipfs").install buildpath.children
cd("src/github.com/ipfs/go-ipfs") { system "make", "install" }
bin.install "bin/ipfs"
end
test do
system bin/"ipfs", "version"
end
end