igraph 0.6
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
e765d732ad
commit
6137978f96
1 changed files with 4 additions and 9 deletions
|
@ -2,8 +2,8 @@ require 'formula'
|
||||||
|
|
||||||
class Igraph < Formula
|
class Igraph < Formula
|
||||||
homepage 'http://igraph.sourceforge.net'
|
homepage 'http://igraph.sourceforge.net'
|
||||||
url 'http://downloads.sourceforge.net/sourceforge/igraph/igraph-0.5.4.tar.gz'
|
url 'http://downloads.sourceforge.net/sourceforge/igraph/igraph-0.6.tar.gz'
|
||||||
md5 '47963ece64fe5f793e154e238bc6c3c3'
|
sha1 'd9a6e7c0462b5948ebfbf9f1d2685141f5867fe3'
|
||||||
|
|
||||||
# GMP is optional, and doesn't have a universal build
|
# GMP is optional, and doesn't have a universal build
|
||||||
depends_on 'gmp' => :optional unless ARGV.build_universal?
|
depends_on 'gmp' => :optional unless ARGV.build_universal?
|
||||||
|
@ -12,16 +12,11 @@ class Igraph < Formula
|
||||||
[["--universal", "Build a universal binary."]]
|
[["--universal", "Build a universal binary."]]
|
||||||
end
|
end
|
||||||
|
|
||||||
# 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
|
def install
|
||||||
ENV.universal_binary if ARGV.build_universal?
|
ENV.universal_binary if ARGV.build_universal?
|
||||||
|
|
||||||
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
system "./configure", "--disable-debug",
|
||||||
|
"--disable-dependency-tracking",
|
||||||
"--prefix=#{prefix}"
|
"--prefix=#{prefix}"
|
||||||
system "make install"
|
system "make install"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue