2014-01-12 00:22:03 +00:00
|
|
|
class Gringo < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Grounder to translate user-provided logic programs"
|
2015-06-29 19:25:12 +00:00
|
|
|
homepage "http://potassco.sourceforge.net/"
|
2015-08-11 13:02:15 +00:00
|
|
|
url "https://downloads.sourceforge.net/project/potassco/gringo/4.5.2/gringo-4.5.2-source.tar.gz"
|
|
|
|
sha256 "36d86321c54499cabf498dac0923b39e43c7a248919224a11c2d15e4ecec9d65"
|
2014-03-23 22:45:18 +00:00
|
|
|
|
2014-08-30 15:59:42 +00:00
|
|
|
bottle do
|
2015-09-21 14:19:21 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "36afcdf678bf6acd9f3e74346a020d8e681009e96fedbc743850defe39c28012" => :el_capitan
|
2015-08-11 13:33:14 +00:00
|
|
|
sha256 "af11fe60cfa45810026ba55e5c33cd413610a2473f30dd587e84cab0f8502766" => :yosemite
|
|
|
|
sha256 "010d4f22a7c47424429ef1b7d27d29362d5f1d583588b4232fd761fe8dd16ad3" => :mavericks
|
|
|
|
sha256 "2510f63c6adba3367c596ebd54ba796155d9e1d4a1a37dfc642f444cb51ab7da" => :mountain_lion
|
2014-08-30 15:59:42 +00:00
|
|
|
end
|
|
|
|
|
2015-06-29 19:25:12 +00:00
|
|
|
depends_on "re2c" => :build
|
|
|
|
depends_on "scons" => :build
|
|
|
|
depends_on "bison" => :build
|
2014-03-26 21:42:25 +00:00
|
|
|
|
2014-04-05 04:16:09 +00:00
|
|
|
needs :cxx11
|
2014-01-12 00:22:03 +00:00
|
|
|
|
|
|
|
def install
|
2014-03-26 21:42:25 +00:00
|
|
|
# Allow pre-10.9 clangs to build in C++11 mode
|
|
|
|
ENV.libcxx
|
2015-06-29 19:25:12 +00:00
|
|
|
|
2014-03-26 21:42:25 +00:00
|
|
|
inreplace "SConstruct",
|
|
|
|
"env['CXX'] = 'g++'",
|
2014-12-15 05:29:02 +00:00
|
|
|
"env['CXX'] = '#{ENV.cxx}'"
|
2015-06-29 19:25:12 +00:00
|
|
|
|
2015-06-27 15:13:06 +00:00
|
|
|
scons "--build-dir=release", "gringo", "clingo", "reify"
|
|
|
|
bin.install "build/release/gringo", "build/release/clingo", "build/release/reify"
|
2014-01-12 00:22:03 +00:00
|
|
|
end
|
2015-06-29 19:25:12 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match /#{version}/, shell_output("#{bin}/gringo --version")
|
|
|
|
end
|
2014-01-12 00:22:03 +00:00
|
|
|
end
|