blob: 16b854d5ca040ab5f7eb1835dd1c82f92ce61ad1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
require 'formula'
class Igraph < Formula
homepage 'http://igraph.sourceforge.net'
url 'http://downloads.sourceforge.net/sourceforge/igraph/igraph-0.6.tar.gz'
sha1 'd9a6e7c0462b5948ebfbf9f1d2685141f5867fe3'
# 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
def install
ENV.universal_binary if ARGV.build_universal?
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
|