2014-01-12 00:22:03 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gringo < Formula
|
|
|
|
homepage 'http://potassco.sourceforge.net/'
|
2014-08-28 13:52:53 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/potassco/gringo/4.4.0/gringo-4.4.0-source.tar.gz'
|
|
|
|
sha1 'c39a1c3cfe64b62e39e6abcc8f813e2d1d17251e'
|
2014-03-23 22:45:18 +00:00
|
|
|
|
2014-08-30 15:59:42 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "aec4b6d3102b348eea454358687dae450314d07e" => :mavericks
|
|
|
|
sha1 "65977cfd320b3092dc64ea94a43d7da678777f86" => :mountain_lion
|
|
|
|
sha1 "1aae13a3eff4fa7fab14dc3e4749ad7afce3dcf1" => :lion
|
|
|
|
end
|
|
|
|
|
2014-01-12 00:22:03 +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
|
|
|
|
inreplace "SConstruct",
|
|
|
|
"env['CXX'] = 'g++'",
|
|
|
|
"env['CXX'] = '#{ENV['CXX']}'"
|
2014-02-25 15:39:31 +00:00
|
|
|
scons "--build-dir=release", "gringo", "clingo"
|
2014-01-12 00:22:03 +00:00
|
|
|
bin.install "build/release/gringo", "build/release/clingo"
|
|
|
|
end
|
|
|
|
end
|