From 5e1ae81c5f53012dcab2b568b3d404d5ba00b13a Mon Sep 17 00:00:00 2001 From: Xiyue Deng Date: Sun, 4 Nov 2012 22:40:05 -0800 Subject: [PATCH] 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 --- Formula/cloog.rb | 32 +++++++++++++++++++------------- Formula/isl.rb | 22 ++++++++++++++++++++++ 2 files changed, 41 insertions(+), 13 deletions(-) create mode 100644 Formula/isl.rb diff --git a/Formula/cloog.rb b/Formula/cloog.rb index 876fb05b30..e3af5d9c8c 100644 --- a/Formula/cloog.rb +++ b/Formula/cloog.rb @@ -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 = <