2012-11-05 06:40:05 +00:00
|
|
|
class Isl < Formula
|
2015-01-08 07:13:34 +00:00
|
|
|
homepage "http://freecode.com/projects/isl"
|
2013-09-09 04:41:03 +00:00
|
|
|
# Note: Always use tarball instead of git tag for stable version.
|
|
|
|
#
|
|
|
|
# Currently isl detects its version using source code directory name
|
|
|
|
# and update isl_version() function accordingly. All other names will
|
|
|
|
# result in isl_version() function returning "UNKNOWN" and hence break
|
|
|
|
# package detection.
|
2014-12-07 05:22:31 +00:00
|
|
|
#
|
|
|
|
# 0.13 is out, but we can't upgrade until a compatible version of cloog is
|
|
|
|
# released.
|
2015-01-08 07:13:34 +00:00
|
|
|
url "http://isl.gforge.inria.fr/isl-0.12.2.tar.bz2"
|
|
|
|
sha1 "ca98a91e35fb3ded10d080342065919764d6f928"
|
2012-11-05 06:40:05 +00:00
|
|
|
|
2013-09-24 23:32:59 +00:00
|
|
|
bottle do
|
2013-12-05 07:02:39 +00:00
|
|
|
cellar :any
|
2014-10-23 11:11:40 +00:00
|
|
|
revision 2
|
|
|
|
sha1 "502db664090c83f36515b901e8a066d9ef4f0bb4" => :yosemite
|
|
|
|
sha1 "f669eadf21a26782f4700facbec71f8d3d1dff7d" => :mavericks
|
|
|
|
sha1 "808982b34df706187f041d7b21e644aa3d74b747" => :mountain_lion
|
2013-09-24 23:32:59 +00:00
|
|
|
end
|
|
|
|
|
2013-09-20 15:15:56 +00:00
|
|
|
head do
|
2015-01-08 07:13:34 +00:00
|
|
|
url "http://repo.or.cz/r/isl.git"
|
2012-11-05 06:40:05 +00:00
|
|
|
|
2014-05-23 21:17:35 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2013-09-09 04:41:03 +00:00
|
|
|
end
|
|
|
|
|
2015-01-08 07:13:34 +00:00
|
|
|
depends_on "gmp"
|
2013-09-20 15:15:56 +00:00
|
|
|
|
2012-11-05 06:40:05 +00:00
|
|
|
def install
|
2013-09-09 04:41:03 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2013-09-01 06:34:07 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2013-09-09 04:41:03 +00:00
|
|
|
"--disable-silent-rules",
|
2013-09-01 06:34:07 +00:00
|
|
|
"--prefix=#{prefix}",
|
2013-09-09 04:41:03 +00:00
|
|
|
"--with-gmp=system",
|
2014-02-25 06:59:23 +00:00
|
|
|
"--with-gmp-prefix=#{Formula["gmp"].opt_prefix}"
|
2013-09-01 06:34:07 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
2013-08-21 21:43:42 +00:00
|
|
|
(share/"gdb/auto-load").install Dir["#{lib}/*-gdb.py"]
|
2012-11-05 06:40:05 +00:00
|
|
|
end
|
2015-01-08 07:16:52 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.c").write <<-EOS.undent
|
|
|
|
#include <isl/ctx.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
isl_ctx* ctx = isl_ctx_alloc();
|
|
|
|
isl_ctx_free(ctx);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EOS
|
|
|
|
system ENV.cc, "test.c", "-lisl", "-o", "test"
|
|
|
|
system "./test"
|
|
|
|
end
|
2012-11-05 06:40:05 +00:00
|
|
|
end
|