diff options
| author | Tamas Nepusz | 2011-09-11 20:39:30 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-20 20:13:56 -0700 |
| commit | e503ae9f000c67118ef52e628d36efe06a287236 (patch) | |
| tree | 7a4dda03dfc4853087636e87dcc30f9af02266eb /Library | |
| parent | 69a1b16d2bdaf922d12fd5d2d0dd728adf43a69d (diff) | |
| download | homebrew-e503ae9f000c67118ef52e628d36efe06a287236.tar.bz2 | |
igraph: added patch to fix issues with llvm-gcc
* Also added support for --universal
Closes #7570.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/igraph.rb | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/Library/Formula/igraph.rb b/Library/Formula/igraph.rb index 6aadbbcb9..e156cb292 100644 --- a/Library/Formula/igraph.rb +++ b/Library/Formula/igraph.rb @@ -1,17 +1,28 @@ require 'formula' class Igraph < Formula - url 'http://downloads.sourceforge.net/sourceforge/igraph/igraph-0.5.4.tar.gz' homepage 'http://igraph.sourceforge.net' + url 'http://downloads.sourceforge.net/sourceforge/igraph/igraph-0.5.4.tar.gz' md5 '47963ece64fe5f793e154e238bc6c3c3' - depends_on 'glpk' - depends_on 'gmp' + # GMP is optional, and doesn't have a universal build + depends_on 'gmp' => :optional unless ARGV.build_universal? + + def options + [["--universal", "Build a universal binary."]] + end - fails_with_llvm "Segfault while compiling." + # Fix for llvm-gcc. This is already merged in upstream and + # will not be required for igraph >= 0.5.5 + def patches + "https://raw.github.com/gist/1209951/e337ad8c2d8cb613872e5381a99f411d314576a1/igraph-0.5.4_llvm-gcc.patch" + end def install - system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" + ENV.universal_binary if ARGV.build_universal? + + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}" system "make install" end end |
