class Ipfs < Formula desc "Peer-to-peer hypermedia protocol" homepage "https://ipfs.io/" url "https://github.com/ipfs/go-ipfs.git", :tag => "v0.4.9", :revision => "7ea34c6c6ed18e886f869a1fbe725a848d13695c" head "https://github.com/ipfs/go-ipfs.git" bottle do cellar :any_skip_relocation sha256 "c84486e1b6b73cd71555cbb7b068c00ae1c6a269b5724917e6515106247af7b8" => :sierra sha256 "f1c0aa48b9140d408a89a48375255c85af150e457ed99c797229fe2802c2747e" => :el_capitan sha256 "17a9a3ab32e70311f13e74d9f737aad86ccaba0f700ee290535d5298e30dc946" => :yosemite end depends_on "go" => :build 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 plist_options :manual => "ipfs" def plist; <<-EOS.undent Label #{plist_name} ProgramArguments #{opt_bin}/ipfs daemon RunAtLoad EOS end test do system bin/"ipfs", "version" end end