Created
June 14, 2021 14:05
-
-
Save nanthanwa/802128dbd3e6883090ed69bc21591ebb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------ | |
# 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 SolidityAT5 < Formula | |
desc "The Solidity Contract-Oriented Programming Language" | |
homepage "http://solidity.readthedocs.org" | |
url "https://github.com/ethereum/solidity/releases/download/v0.5.16/solidity_0.5.16.tar.gz" | |
version "0.5.16" | |
sha256 "9efd81b0f6640dfdff2587374dc0b35679b44388577399067d83f5ff1709f5da" | |
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