homebrew-core/Formula/cloog.rb
Brett Koonce e74be406f5 cloog 0.18.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-03 14:04:50 -08:00

44 lines
801 B
Ruby

require 'formula'
class Cloog < Formula
homepage 'http://www.cloog.org/'
url 'http://www.bastoul.net/cloog/pages/download/count.php3?url=./cloog-0.18.0.tar.gz'
sha1 '85f620a26aabf6a934c44ca40a9799af0952f863'
depends_on 'pkg-config' => :build
depends_on 'gmp'
depends_on 'isl'
def install
args = [
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-isl-prefix=#{Formula.factory('isl').opt_prefix}"
]
system "./configure", *args
system "make install"
end
def test
cloog_source = <<-EOS.undent
c
0 2
0
1
1
0 2
0 0 0
0
0
EOS
pipe = IO.popen("cloog /dev/stdin", "w+")
pipe.write(cloog_source)
pipe.read =~ /Generated\ from \/dev\/stdin\ by\ CLooG/
end
end