Skip to content

Instantly share code, notes, and snippets.

@justinbarry
Created February 7, 2021 06:45
Show Gist options
  • Save justinbarry/46a803ee8bd2fea89fd68eee92f7229a to your computer and use it in GitHub Desktop.
Save justinbarry/46a803ee8bd2fea89fd68eee92f7229a to your computer and use it in GitHub Desktop.
#------------------------------------------------------------------------------
# solidity.rb
#
# Homebrew formula for solidity. Homebrew (http://brew.sh/) is
# the de-facto standard package manager for OS X, and this Ruby script
# contains the metadata used to map command-line user settings used
# with the 'brew' command onto build options.
#
# Our documentation for the solidity Homebrew setup is at:
#
# http://solidity.readthedocs.io/en/latest/installing-solidity.html
#
# (c) 2014-2017 solidity contributors.
#------------------------------------------------------------------------------
class Solidity < Formula
desc "The Solidity Contract-Oriented Programming Language"
homepage "http://solidity.readthedocs.org"
url "https://github.com/ethereum/solidity/releases/download/v0.5.15/solidity_0.5.15.tar.gz"
version "0.5.15"
sha256 "38e3aba8f9950229f0da2d67b8fbfb3b8ec455877109d532230a2b87b296ec96"
depends_on "cmake" => :build
depends_on "boost" => "c++11"
# Note: due to a homebrew limitation, ccache will always be detected and cannot be turned off.
depends_on "ccache" => :build
depends_on "z3"
def install
system "cmake", ".", *std_cmake_args, "-DTESTS=OFF"
system "make", "install"
end
test do
system "#{bin}/solc", "--version"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment