2010-07-23 13:53:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Igraph < Formula
|
2010-07-23 13:53:01 +00:00
|
|
|
homepage 'http://igraph.sourceforge.net'
|
2012-06-18 13:58:59 +00:00
|
|
|
url 'http://downloads.sourceforge.net/sourceforge/igraph/igraph-0.6.tar.gz'
|
|
|
|
sha1 'd9a6e7c0462b5948ebfbf9f1d2685141f5867fe3'
|
2010-07-23 13:53:01 +00:00
|
|
|
|
2012-08-10 05:11:29 +00:00
|
|
|
option :universal
|
2011-09-11 18:39:30 +00:00
|
|
|
|
2012-08-10 05:11:29 +00:00
|
|
|
# GMP is optional, and doesn't have a universal build
|
|
|
|
depends_on 'gmp' => :optional unless build.universal?
|
2010-07-23 13:53:01 +00:00
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
def install
|
2012-08-10 05:11:29 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2011-09-11 18:39:30 +00:00
|
|
|
|
2012-06-18 13:58:59 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2011-09-11 18:39:30 +00:00
|
|
|
"--prefix=#{prefix}"
|
2010-07-23 13:53:01 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|