2011-10-25 19:17:26 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cloog < Formula
|
|
|
|
homepage 'http://www.cloog.org/'
|
2013-10-19 23:28:49 +00:00
|
|
|
url 'http://www.bastoul.net/cloog/pages/download/count.php3?url=./cloog-0.18.1.tar.gz'
|
2014-03-28 20:27:37 +00:00
|
|
|
mirror 'http://gcc.cybermirror.org/infrastructure/cloog-0.18.1.tar.gz'
|
2013-10-19 23:28:49 +00:00
|
|
|
sha1 '2dc70313e8e2c6610b856d627bce9c9c3f848077'
|
2011-10-25 19:17:26 +00:00
|
|
|
|
2013-09-24 23:40:45 +00:00
|
|
|
bottle do
|
2013-12-05 07:03:21 +00:00
|
|
|
cellar :any
|
2014-10-25 09:31:10 +00:00
|
|
|
revision 2
|
|
|
|
sha1 "65900e9655ab8f444ecf7edf4118caa01ca56ddb" => :yosemite
|
|
|
|
sha1 "851f64756bb082a5a354e0992976acd70cfdacbf" => :mavericks
|
|
|
|
sha1 "06252f0a9c453818c319b21647ebaa9a26c3f4ac" => :mountain_lion
|
2013-09-24 23:40:45 +00:00
|
|
|
end
|
|
|
|
|
2014-06-13 11:48:34 +00:00
|
|
|
head do
|
|
|
|
url 'http://repo.or.cz/r/cloog.git'
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2011-10-25 19:17:26 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'gmp'
|
2012-11-05 06:40:05 +00:00
|
|
|
depends_on 'isl'
|
2011-10-25 19:17:26 +00:00
|
|
|
|
|
|
|
def install
|
2014-06-13 11:48:34 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
|
|
|
|
|
|
|
args = [
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-gmp=system",
|
|
|
|
"--with-gmp-prefix=#{Formula["gmp"].opt_prefix}",
|
|
|
|
"--with-isl=system",
|
|
|
|
"--with-isl-prefix=#{Formula["isl"].opt_prefix}"
|
|
|
|
]
|
|
|
|
|
|
|
|
args << "--with-osl=bundled" if build.head?
|
|
|
|
|
|
|
|
system "./configure", *args
|
2011-10-25 19:17:26 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2013-03-25 04:29:37 +00:00
|
|
|
test do
|
2012-11-05 06:40:05 +00:00
|
|
|
cloog_source = <<-EOS.undent
|
|
|
|
c
|
2011-10-25 19:17:26 +00:00
|
|
|
|
2012-11-05 06:40:05 +00:00
|
|
|
0 2
|
|
|
|
0
|
2011-10-25 19:17:26 +00:00
|
|
|
|
2012-11-05 06:40:05 +00:00
|
|
|
1
|
2011-10-25 19:17:26 +00:00
|
|
|
|
2012-11-05 06:40:05 +00:00
|
|
|
1
|
|
|
|
0 2
|
|
|
|
0 0 0
|
|
|
|
0
|
2011-10-25 19:17:26 +00:00
|
|
|
|
2012-11-05 06:40:05 +00:00
|
|
|
0
|
|
|
|
EOS
|
2011-10-25 19:17:26 +00:00
|
|
|
|
2014-05-04 19:12:41 +00:00
|
|
|
output = pipe_output("#{bin}/cloog /dev/stdin", cloog_source)
|
|
|
|
assert_match /Generated from \/dev\/stdin by CLooG/, output
|
2011-10-25 19:17:26 +00:00
|
|
|
end
|
|
|
|
end
|