From 5056be35f750f3766984e9327c1293d020d0a488 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 6 Dec 2016 09:25:59 +0000 Subject: [PATCH] isl@0.11: import from homebrew/versions. --- Formula/isl@0.11.rb | 38 ++++++++++++++++++++++++++++++++++++++ formula_renames.json | 1 + 2 files changed, 39 insertions(+) create mode 100644 Formula/isl@0.11.rb diff --git a/Formula/isl@0.11.rb b/Formula/isl@0.11.rb new file mode 100644 index 0000000000..33b40cabf1 --- /dev/null +++ b/Formula/isl@0.11.rb @@ -0,0 +1,38 @@ +class IslAT011 < Formula + desc "Integer Set Library for the polyhedral model" + homepage "http://freecode.com/projects/isl" + # Track gcc infrastructure releases. + url "http://isl.gforge.inria.fr/isl-0.11.1.tar.bz2" + mirror "ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.11.1.tar.bz2" + sha256 "095f4b54c88ca13a80d2b025d9c551f89ea7ba6f6201d701960bfe5c1466a98d" + + keg_only "Older version of isl" + + depends_on "gmp@4" + + def install + system "./configure", "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}", + "--with-gmp=system", + "--with-gmp-prefix=#{Formula["gmp@4"].opt_prefix}" + system "make", "install" + (share/"gdb/auto-load").install Dir["#{lib}/*-gdb.py"] + end + + test do + (testpath/"test.c").write <<-EOS.undent + #include + + int main() + { + isl_ctx* ctx = isl_ctx_alloc(); + isl_ctx_free(ctx); + return 0; + } + EOS + system ENV.cc, "test.c", "-L#{lib}", "-lisl", + "-I#{include}", "-I#{Formula["gmp@4"].include}", "-o", "test" + system "./test" + end +end diff --git a/formula_renames.json b/formula_renames.json index 84bb2ed8ee..5246086c07 100644 --- a/formula_renames.json +++ b/formula_renames.json @@ -21,6 +21,7 @@ "google-perftools": "gperftools", "hamsterdb": "upscaledb", "heroku-toolbelt": "heroku", + "isl011": "isl@0.11", "kotlin-compiler": "kotlin", "juju": "juju@1.25", "letsencrypt": "certbot",