2017-11-26 20:36:31 +00:00
|
|
|
class Clingo < Formula
|
|
|
|
desc "ASP system to ground and solve logic programs"
|
|
|
|
homepage "https://potassco.org/"
|
|
|
|
url "https://github.com/potassco/clingo/archive/v5.2.2.tar.gz"
|
|
|
|
sha256 "da1ef8142e75c5a6f23c9403b90d4f40b9f862969ba71e2aaee9a257d058bfcf"
|
|
|
|
|
2017-11-26 21:08:33 +00:00
|
|
|
bottle do
|
2017-11-27 02:54:40 +00:00
|
|
|
rebuild 1
|
|
|
|
sha256 "c6d1544f386880a1c16c81f56fddc3bef9efccda62d624dc646e6e785a236301" => :high_sierra
|
|
|
|
sha256 "69df2be35e41efc97550deef3f12a66210a77838b4238e9046edf2aab9a38a25" => :sierra
|
|
|
|
sha256 "7c9b87455116a0538ff4e8de9a2366a7ae7cb0020ef9c8a38450a72efd4903ce" => :el_capitan
|
2017-11-26 21:08:33 +00:00
|
|
|
end
|
|
|
|
|
2017-11-26 20:36:31 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "doxygen" => :build
|
2018-01-01 19:42:25 +00:00
|
|
|
depends_on "python" if MacOS.version <= :snow_leopard
|
2017-11-26 20:36:31 +00:00
|
|
|
|
|
|
|
needs :cxx14
|
|
|
|
|
2017-11-27 02:48:59 +00:00
|
|
|
# This formula replaced the clasp & gringo formulae.
|
|
|
|
# https://github.com/Homebrew/homebrew-core/pull/20281
|
|
|
|
link_overwrite "bin/clasp"
|
|
|
|
link_overwrite "bin/clingo"
|
|
|
|
link_overwrite "bin/gringo"
|
|
|
|
link_overwrite "bin/lpconvert"
|
|
|
|
link_overwrite "bin/reify"
|
|
|
|
|
2017-11-26 20:36:31 +00:00
|
|
|
def install
|
|
|
|
system "cmake", ".", "-DCLINGO_BUILD_WITH_PYTHON=ON",
|
|
|
|
"-DCLINGO_BUILD_PY_SHARED=ON",
|
|
|
|
"-DPYCLINGO_USE_INSTALL_PREFIX=ON",
|
|
|
|
"-DCLINGO_BUILD_WITH_LUA=OFF",
|
|
|
|
*std_cmake_args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match version.to_s, shell_output("#{bin}/clingo --version")
|
|
|
|
end
|
|
|
|
end
|