diff options
| author | Adam Vandenberg | 2012-08-09 21:49:40 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-09 21:49:40 -0700 |
| commit | 0f227264773fd34259ad92bb360648ed8726eefc (patch) | |
| tree | eee2e94dc15288494e1493f8b80ef6de090c20f2 /Library | |
| parent | 4466cc1811a33d92b001a07e81d90f16355c1854 (diff) | |
| download | homebrew-0f227264773fd34259ad92bb360648ed8726eefc.tar.bz2 | |
udis86: use options dsl
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/udis86.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Library/Formula/udis86.rb b/Library/Formula/udis86.rb index 304821ca5..61d2bf937 100644 --- a/Library/Formula/udis86.rb +++ b/Library/Formula/udis86.rb @@ -1,17 +1,16 @@ require 'formula' class Udis86 < Formula + homepage 'http://udis86.sourceforge.net' url 'http://downloads.sourceforge.net/udis86/udis86-1.7.tar.gz' md5 'e279108e10f774e6c3af83caa18f5dc3' - homepage 'http://udis86.sourceforge.net' - def options - [["--universal", "Build a universal binary."]] - end + option :universal def install - ENV.universal_binary if ARGV.build_universal? - system "./configure", "--enable-shared", "--prefix=#{prefix}" + ENV.universal_binary if build.universal? + system "./configure", "--prefix=#{prefix}", + "--enable-shared" system "make" system "make install" end |
