2016-05-15 16:15:22 +00:00
|
|
|
class Eris < Formula
|
|
|
|
desc "Blockchain application platform CLI"
|
|
|
|
homepage "https://erisindustries.com"
|
2016-11-04 05:17:36 +00:00
|
|
|
url "https://github.com/eris-ltd/eris-cli/archive/v0.12.0.tar.gz"
|
|
|
|
sha256 "54f00db6cd9b817dd7aa473194aa54ea1fdda7921ac4796f2bd7df4943beb2e1"
|
2016-11-01 10:55:32 +00:00
|
|
|
version_scheme 1
|
2016-05-15 16:15:22 +00:00
|
|
|
|
2016-05-16 07:44:28 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-11-04 06:17:25 +00:00
|
|
|
sha256 "9542a6efef2e45633ca7607f4d4b70362a98ddb8ef7038a830a45c1da623caf6" => :sierra
|
|
|
|
sha256 "ae31e13e58224e20c669a49bb9939aa00f5fd3dbf245449e077cefdff16fd00e" => :el_capitan
|
|
|
|
sha256 "da8d00b5d246007abcb16715da89ed5cb46eb6742cb553dc35e23f8ee053c949" => :yosemite
|
2016-05-16 07:44:28 +00:00
|
|
|
end
|
|
|
|
|
2016-05-15 16:15:22 +00:00
|
|
|
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
|
2016-11-04 05:17:36 +00:00
|
|
|
system "#{bin}/eris", "version"
|
2016-05-15 16:15:22 +00:00
|
|
|
end
|
|
|
|
end
|