forked from ethereum/homebrew-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathethereum.rb
30 lines (24 loc) · 813 Bytes
/
ethereum.rb
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
class Ethereum < Formula
homepage 'https://github.com/ethereum/go-ethereum'
url 'https://github.com/ethereum/go-ethereum.git', :tag => 'v1.8.17'
devel 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