Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Due to version 1.12 stopped support for pow & ethash, defining a version for the latest version supporting ethash (1.11.6)

class EthereumAT1116 < 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.11.6"

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"
end

test do
system "#{HOMEBREW_PREFIX}/bin/geth", "--version"
end
end