forked from ethereum/homebrew-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathethereum.rb
More file actions
31 lines (25 loc) · 874 Bytes
/
ethereum.rb
File metadata and controls
31 lines (25 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class Ethereum < Formula
desc "Official Go implementation of the Ethereum protocol"
homepage "https://github.com/ethereum/go-ethereum"
url "https://github.com/ethereum/go-ethereum.git", :tag => "v1.10.21"
head do
url "https://github.com/ethereum/go-ethereum.git", :branch => "master"
end
# Require El Capitan at least
depends_on :macos => :el_capitan
# Is there a better way to ensure that frameworks (IOKit, CoreServices, etc) are installed?
depends_on :xcode => :build
depends_on "go" => :build
def install
ENV["GOROOT"] = "#{HOMEBREW_PREFIX}/opt/go/libexec"
system "go", "env" # Debug env
system "make", "all"
bin.install "build/bin/evm"
bin.install "build/bin/geth"
bin.install "build/bin/rlpdump"
bin.install "build/bin/puppeth"
end
test do
system "#{HOMEBREW_PREFIX}/bin/geth", "--version"
end
end