Skip to content
Merged
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
31 changes: 20 additions & 11 deletions Formula/e/ethereum.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Ethereum < Formula
desc "Official Go implementation of the Ethereum protocol"
homepage "https://geth.ethereum.org/"
url "https://github.com/ethereum/go-ethereum/archive/refs/tags/v1.15.11.tar.gz"
sha256 "d9f584c7d77e170320c1b374cc4528dc5987f5a88d2ea79f700a254597788e1b"
url "https://github.com/ethereum/go-ethereum/archive/refs/tags/v1.16.2.tar.gz"
sha256 "ab0650551a6f1d5443c6c857338f834c6adb5c96b1b2e4851e4b8cb516758ea2"
license "LGPL-3.0-or-later"
head "https://github.com/ethereum/go-ethereum.git", branch: "master"

Expand All @@ -12,13 +12,13 @@ class Ethereum < Formula
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "13ac7750eb8346e6c4979b4167abe4b88e4c6615f67784c9594c13ec44dcc421"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "332ebe65732fcde8fa528bef05e6bc8603d0c7748bfb1a09c906e59a0d84d4e2"
sha256 cellar: :any_skip_relocation, arm64_ventura: "4d6b751bc5445f3b5f5717a6f9a684c28fa64d1da0ed97b57d6cc8b84fe71029"
sha256 cellar: :any_skip_relocation, sonoma: "442c454605620bc2b2b0469618356c247787feb47e534eb59406f7d8e438d186"
sha256 cellar: :any_skip_relocation, ventura: "ae80fbe50d9762746ba10b098a6aa844373143b34fd433ed36c906e31800c744"
sha256 cellar: :any_skip_relocation, arm64_linux: "3d9bc8814e9b4a56f80993de21355daa836c009470e7b2b136056bdac47328b3"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b351bcb871830ce22904c2ab1e964d777b01404bfcc25ef3136bf5f6f26dd16e"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "a098fc0d22c4ae595f297ee9b885f3123560bdd99cf4dc1ffbe17abb08cd5a8e"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "53c6d76e84aadcd97cb04813752afb3f3dd3e7d7d266975ef4a98d033ec60a16"
sha256 cellar: :any_skip_relocation, arm64_ventura: "75fde0ed00a3f21bd10d1241f59eb93e0f95c2a1acae07e13dce93f8dd1113d7"
sha256 cellar: :any_skip_relocation, sonoma: "0ec9b569c9192e01372adac46e2c780e5267e33973a64d437fa1b1cc0773a70b"
sha256 cellar: :any_skip_relocation, ventura: "f9d2c11ff615c0e6c7bea1eabd02d7a095f39def2db6c69a0c6424e081885000"
sha256 cellar: :any_skip_relocation, arm64_linux: "a787e1180747bb20e733c1d07b0bef2f8511d1738a060b07fad02a9f20d6dcfc"
sha256 cellar: :any_skip_relocation, x86_64_linux: "0c8bbb90be0f69983148366b2727b4fc299e638bd830024b36158eb07fbf559f"
end

depends_on "go" => :build
Expand All @@ -31,8 +31,17 @@ def install
# See discussion in https://github.com/Homebrew/brew/issues/14763.
ENV.O0 if OS.linux?

system "make", "all"
bin.install buildpath.glob("build/bin/*")
ldflags = %W[
-s -w
-X github.com/ethereum/go-ethereum/internal/build/env.GitCommitFlag=#{tap.user}
-X github.com/ethereum/go-ethereum/internal/build/env.GitTagFlag=v#{version}
-X github.com/ethereum/go-ethereum/internal/build/env.BuildnumFlag=#{tap.user}
]
(buildpath/"cmd").each_child(false) do |cmd|
next if cmd.basename.to_s == "utils"

system "go", "build", *std_go_args(ldflags:, output: bin/cmd), "./cmd/#{cmd}"
end
end

test do
Expand Down
Loading