forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloog018.rb
62 lines (51 loc) · 1.7 KB
/
cloog018.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
class Cloog018 < Formula
homepage "http://www.cloog.org/"
# Track gcc infrastructure releases.
url "http://www.bastoul.net/cloog/pages/download/count.php3?url=./cloog-0.18.0.tar.gz"
mirror "ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-0.18.0.tar.gz"
sha256 "1c4aa8dde7886be9cbe0f9069c334843b21028f61d344a2d685f88cb1dcf2228"
bottle do
cellar :any
sha256 "2a246c9d1cac00f85866d23ac9f4270335fc69131fe1b9fd72c6e756496ed72d" => :yosemite
sha256 "94abba0efbb32299a4a26ea1d961cac7c3fb35a5c26211578b50ef17226207ba" => :mavericks
sha256 "4270983ad42e6446088df5329427fc50a29e59986c07c0b184c9e8217bf31f23" => :mountain_lion
sha1 "cf10ded3221cd5dae2c2980f6635da02716f62f4" => :tiger_g3
sha1 "c8d8b01d1ae10e786b6999720c8054cb5de7a033" => :tiger_altivec
sha1 "b9cbf9174d588eaf1a6020c7ad66398b252c197d" => :leopard_g3
sha1 "2f8758bad04c058f2416d61c9cd87cafe94c27ea" => :leopard_altivec
end
keg_only "Conflicts with cloog in main repository."
depends_on "pkg-config" => :build
depends_on "gmp4"
depends_on "isl011"
def install
args = [
"--prefix=#{prefix}",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--with-gmp-prefix=#{Formula["gmp4"].opt_prefix}",
"--with-isl-prefix=#{Formula["isl011"].opt_prefix}"
]
system "./configure", *args
system "make", "install"
end
test do
cloog_source = <<-EOS.undent
c
0 2
0
1
1
0 2
0 0 0
0
0
EOS
require "open3"
Open3.popen3("#{bin}/cloog", "/dev/stdin") do |stdin, stdout, _|
stdin.write(cloog_source)
stdin.close
assert_match /Generated from \/dev\/stdin by CLooG/, stdout.read
end
end
end