diff options
| author | Adam Vandenberg | 2012-08-09 22:11:29 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-09 22:11:29 -0700 |
| commit | 107da865cea3ddc4c8bfaee47fadba21b1cb48ad (patch) | |
| tree | 44900d5e5d9b2bd81c6fed05c07d28fa59530061 /Library/Formula/igraph.rb | |
| parent | df1d1f5c036beb5a24f7f5a4b84c32445c964457 (diff) | |
| download | homebrew-107da865cea3ddc4c8bfaee47fadba21b1cb48ad.tar.bz2 | |
igraph: use options dsl
Diffstat (limited to 'Library/Formula/igraph.rb')
| -rw-r--r-- | Library/Formula/igraph.rb | 10 |
1 files changed, 4 insertions, 6 deletions
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", |
