28 lines
962 B
Ruby
28 lines
962 B
Ruby
class Minizinc < Formula
|
|
desc "Medium-level constraint modeling language"
|
|
homepage "https://www.minizinc.org/"
|
|
url "https://github.com/MiniZinc/libminizinc/archive/2.3.2.tar.gz"
|
|
sha256 "d07ebc1a2214d5fb7de3714e2b0ee7db5e1cb7d155bf88a134d141d1eb4995c2"
|
|
head "https://github.com/MiniZinc/libminizinc.git", :branch => "develop"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "cdcacd5a4ca033867a061448461bc5a740c9f860e6adb16a6b9baa5c1a2f360c" => :catalina
|
|
sha256 "4f879b71bc2a436e141b0391a95c9b59ad0f8b6547e3c22d54095af820cb9c01" => :mojave
|
|
sha256 "2d5e0d69ea0d4622e665a80a2dfa76e8b01903d22bdce2362c6b58eea023c4b3" => :high_sierra
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on :arch => :x86_64
|
|
|
|
def install
|
|
mkdir "build" do
|
|
system "cmake", "..", *std_cmake_args
|
|
system "cmake", "--build", ".", "--target", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
system bin/"mzn2doc", share/"minizinc/std/all_different.mzn"
|
|
end
|
|
end
|