homebrew-core/Formula/minizinc.rb
2017-03-16 14:57:42 +01:00

28 lines
962 B
Ruby

class Minizinc < Formula
desc "Medium-level constraint modeling language"
homepage "http://www.minizinc.org"
url "https://github.com/MiniZinc/libminizinc/archive/2.1.4.tar.gz"
sha256 "bdda52c97060a7e1c200dc46949bb01c7abb8af469639c691601aa97bd9eb717"
head "https://github.com/MiniZinc/libminizinc.git", :branch => "develop"
bottle do
cellar :any_skip_relocation
sha256 "6c16ee4f5ca95bd1d3b12f58435de93217a025c35ad27863ea8b188f7998d1a3" => :sierra
sha256 "2324b9b87ea85f23d090e6cf458ec3514f325679f8fe8cdc404aaabe33ceeaca" => :el_capitan
sha256 "649f7e18aa98307d3f58864f7305e199c3b094c7b8b7d9b44a08c522c26f9647" => :yosemite
end
depends_on :arch => :x86_64
depends_on "cmake" => :build
def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "cmake", "--build", ".", "--target", "install"
end
end
test do
system bin/"mzn2doc", share/"examples/functions/warehouses.mzn"
end
end