homebrew-core/Formula/gringo.rb

36 lines
1.2 KiB
Ruby
Raw Normal View History

class Gringo < Formula
desc "Grounder to translate user-provided logic programs"
2015-06-29 19:25:12 +00:00
homepage "http://potassco.sourceforge.net/"
url "https://downloads.sourceforge.net/project/potassco/gringo/4.5.1/gringo-4.5.1-source.tar.gz"
sha256 "942be5977070859dc164347368248c1d22c451a55c2fd002081fa9abe0b5c50c"
2014-08-30 15:59:42 +00:00
bottle do
cellar :any
2015-07-28 15:03:01 +00:00
sha256 "43fcc7b73c6d854535dda78755a76790ae9410b95aa00d1ed155c8b6610350f2" => :yosemite
sha256 "3aa1597570e03f0dbb4741b6cb4a5834f6799d0e64514baa1cf7de5b5e1f7b07" => :mavericks
sha256 "ec8e660616f582857b9f2943fae273460db3de9d2524eebedc922118fd4fec2e" => :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
needs :cxx11
def install
# Allow pre-10.9 clangs to build in C++11 mode
ENV.libcxx
2015-06-29 19:25:12 +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
scons "--build-dir=release", "gringo", "clingo", "reify"
bin.install "build/release/gringo", "build/release/clingo", "build/release/reify"
end
2015-06-29 19:25:12 +00:00
test do
assert_match /#{version}/, shell_output("#{bin}/gringo --version")
end
end