diff options
| author | Adam Vandenberg | 2012-08-09 21:47:59 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-09 21:47:59 -0700 |
| commit | 2716b4cb63d69210089b55a0ef1c493f4cbff8b9 (patch) | |
| tree | 0dafae5ba3f1db51ed956708414b314aa84d9658 /Library/Formula | |
| parent | 3e6533c237372c1bf3c5f1153a53dd074f6e4b9e (diff) | |
| download | homebrew-2716b4cb63d69210089b55a0ef1c493f4cbff8b9.tar.bz2 | |
geoip: use options dsl
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/geoip.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Formula/geoip.rb b/Library/Formula/geoip.rb index b289bcc00..3062072ac 100644 --- a/Library/Formula/geoip.rb +++ b/Library/Formula/geoip.rb @@ -9,12 +9,10 @@ class Geoip < Formula depends_on :automake depends_on :libtool - def options - [["--universal", "Build a universal binary."]] - end + option :universal def install - ENV.universal_binary if ARGV.build_universal? + ENV.universal_binary if build.universal? # Fixes a build error on Lion when configure does a variant of autoreconf # that results in a botched Makefile, causing this error: @@ -22,7 +20,8 @@ class Geoip < Formula # This works on Snow Leopard also when it tries but fails to run autoreconf. system "autoreconf", "-ivf" - system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" system "make install" end end |
