forked from ethereum/homebrew-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (33 loc) · 1.27 KB
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
31
32
33
34
35
36
37
#------------------------------------------------------------------------------
# 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 SolidityAT4 < Formula
desc "The Solidity Contract-Oriented Programming Language"
homepage "http://solidity.readthedocs.org"
url "https://github.com/ethereum/solidity/releases/download/v0.4.26/solidity_0.4.26.tar.gz"
version "0.4.26"
sha256 "22fd4ce2480df4d55602e50dc1606bd7c4cf5bf4658d49ccf7a4644ca0edd5b3"
depends_on "cmake" => :build
depends_on "boost" => "1.60"
# 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