forked from lotia/homebrew-versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathppl011.rb
42 lines (36 loc) · 1.7 KB
/
ppl011.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
class Ppl011 < Formula
homepage "http://bugseng.com/products/ppl/"
# Track gcc infrastructure releases.
url "http://bugseng.com/products/ppl/download/ftp/releases/0.11/ppl-0.11.tar.gz"
mirror "ftp://gcc.gnu.org/pub/gcc/infrastructure/ppl-0.11.tar.gz"
sha256 "3453064ac192e095598576c5b59ecd81a26b268c597c53df05f18921a4f21c77"
revision 1
bottle do
sha256 "be178bf8fc11a049a27b83d0b00660a3ee4426845657f3d8279b31e10730a878" => :yosemite
sha256 "f89fff76bdc39bea26763f765188523ba34eb9d07d3834c79a8d50a489a9aabc" => :mavericks
sha256 "f257cca9615ae1fb0a239c1fbf4f505dbcba139744999a9c8d7f512b5dbb7fa4" => :mountain_lion
end
conflicts_with "ppl10", :because => "They install the same binaries"
depends_on "homebrew/dupes/m4" => :build if MacOS.version < :leopard
depends_on "gmp4"
# https://www.cs.unipr.it/mantis/view.php?id=596
# https://github.com/Homebrew/homebrew/issues/27431
# Using different patch from upstream bug report to avoid autoreconf.
patch do
url "https://gist.githubusercontent.com/manphiz/9507743/raw/45081e12c2f1faf81e8536f365af05173c6dab5c/patch-ppl-flexible-array-clang_v2.patch"
sha256 "db8ced5366ec4c3efb6fd20d3b4e440de3f8b9ec1d930a33b6a23d006dc25944"
end
def install
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--disable-ppl_lpsol",
"--disable-ppl_lcdd",
"--disable-ppl_pips",
"--with-gmp-prefix=#{Formula["gmp4"].opt_prefix}"
system "make", "install"
end
test do
system bin/"ppl-config", "--bindir", "--libdir", "--license"
end
end