24 lines
645 B
Ruby
24 lines
645 B
Ruby
|
class Eris < Formula
|
||
|
desc "Blockchain application platform CLI"
|
||
|
homepage "https://erisindustries.com"
|
||
|
url "https://github.com/eris-ltd/eris-cli/archive/v0.11.4.tar.gz"
|
||
|
sha256 "e2eb02d01b76e8be9f28aac31b2e56ebadc4d0decb21fcfefb2f219cb03d1238"
|
||
|
|
||
|
depends_on "go" => :build
|
||
|
depends_on "docker"
|
||
|
depends_on "docker-machine"
|
||
|
|
||
|
def install
|
||
|
ENV["GOPATH"] = buildpath
|
||
|
|
||
|
(buildpath/"src/github.com/eris-ltd").mkpath
|
||
|
ln_sf buildpath, buildpath/"src/github.com/eris-ltd/eris-cli"
|
||
|
|
||
|
system "go", "build", "-o", "#{bin}/eris", "github.com/eris-ltd/eris-cli/cmd/eris"
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
system "#{bin}/eris", "--version"
|
||
|
end
|
||
|
end
|