New formula: isl
* Make cloog build using external isl. - Needed by newer GCC for which the bundled isl in cloog 0.17.0 is too old. * Improve cloog test case indentation. Closes Homebrew/homebrew#15862. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
c1d5a15ea1
commit
5e1ae81c5f
2 changed files with 41 additions and 13 deletions
|
@ -7,29 +7,35 @@ class Cloog < Formula
|
|||
|
||||
depends_on 'pkg-config' => :build
|
||||
depends_on 'gmp'
|
||||
depends_on 'isl'
|
||||
|
||||
def install
|
||||
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}"
|
||||
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 = <<END
|
||||
c
|
||||
cloog_source = <<-EOS.undent
|
||||
c
|
||||
|
||||
0 2
|
||||
0
|
||||
0 2
|
||||
0
|
||||
|
||||
1
|
||||
1
|
||||
|
||||
1
|
||||
0 2
|
||||
0 0 0
|
||||
0
|
||||
1
|
||||
0 2
|
||||
0 0 0
|
||||
0
|
||||
|
||||
0
|
||||
END
|
||||
0
|
||||
EOS
|
||||
|
||||
pipe = IO.popen("cloog /dev/stdin", "w+")
|
||||
pipe.write(cloog_source)
|
||||
|
|
22
Formula/isl.rb
Normal file
22
Formula/isl.rb
Normal file
|
@ -0,0 +1,22 @@
|
|||
require 'formula'
|
||||
|
||||
class Isl < Formula
|
||||
homepage 'http://www.kotnet.org/~skimo/isl/'
|
||||
url 'http://www.kotnet.org/~skimo/isl/isl-0.10.tar.bz2'
|
||||
mirror 'ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.10.tar.bz2'
|
||||
sha1 '91db73f10075a67039c38abfcd5b1bd64581a6e3'
|
||||
|
||||
head 'http://repo.or.cz/w/isl.git'
|
||||
|
||||
depends_on 'gmp'
|
||||
|
||||
def install
|
||||
args = [
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
]
|
||||
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue