#------------------------------------------------------------------------------ # 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 lsoidity Homebrew setup is at: # # http://solidity.readthedocs.io/en/latest/installing-solidity.html # # (c) 2014-2017 solidity contributors. #------------------------------------------------------------------------------ require 'formula' class Solidity < Formula desc "The Solidity Contract-Oriented Programming Language" homepage "http://solidity.readthedocs.org" url "https://github.com/ethereum/solidity/releases/download/v0.4.8/solidity_0.4.8.tar.gz" version "0.4.8" sha256 "429c7c46fad256b714a25891dccbbeb90d3dfcdf431706b5816832374c094318" depends_on "cmake" => :build depends_on "boost" => "c++11" depends_on "cryptopp" depends_on "gmp" def install system "cmake", ".", *std_cmake_args system "make", "install" end test do system "#{bin}/solc", "--version" end end