From 107da865cea3ddc4c8bfaee47fadba21b1cb48ad Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 9 Aug 2012 22:11:29 -0700 Subject: igraph: use options dsl --- Library/Formula/igraph.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/igraph.rb b/Library/Formula/igraph.rb index 16b854d5c..d6a39a570 100644 --- a/Library/Formula/igraph.rb +++ b/Library/Formula/igraph.rb @@ -5,15 +5,13 @@ class Igraph < Formula 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? + option :universal - def options - [["--universal", "Build a universal binary."]] - end + # GMP is optional, and doesn't have a universal build + depends_on 'gmp' => :optional unless build.universal? def install - ENV.universal_binary if ARGV.build_universal? + ENV.universal_binary if build.universal? system "./configure", "--disable-debug", "--disable-dependency-tracking", -- cgit v1.2.3