homebrew-core/Formula/igraph.rb

22 lines
595 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Igraph < Formula
homepage 'http://igraph.sourceforge.net'
url 'http://downloads.sourceforge.net/sourceforge/igraph/igraph-0.6.tar.gz'
sha1 'd9a6e7c0462b5948ebfbf9f1d2685141f5867fe3'
2012-08-10 05:11:29 +00:00
option :universal
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?
2011-03-21 21:24:22 +00:00
def install
2012-08-10 05:11:29 +00:00
ENV.universal_binary if build.universal?
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end