aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTamas Nepusz2011-09-11 20:39:30 +0200
committerAdam Vandenberg2012-03-20 20:13:56 -0700
commite503ae9f000c67118ef52e628d36efe06a287236 (patch)
tree7a4dda03dfc4853087636e87dcc30f9af02266eb /Library/Formula
parent69a1b16d2bdaf922d12fd5d2d0dd728adf43a69d (diff)
downloadhomebrew-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/Formula')
-rw-r--r--Library/Formula/igraph.rb21
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