From 8939844e43d1f5748a04eac404bfc95b74c33a07 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 9 Aug 2012 22:12:57 -0700 Subject: lame: use options dsl --- Library/Formula/lame.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Library') diff --git a/Library/Formula/lame.rb b/Library/Formula/lame.rb index 25ce5020f..6f2bd96b8 100644 --- a/Library/Formula/lame.rb +++ b/Library/Formula/lame.rb @@ -5,14 +5,14 @@ class Lame < Formula url 'http://downloads.sourceforge.net/sourceforge/lame/lame-3.99.5.tar.gz' md5 '84835b313d4a8b68f5349816d33e07ce' - 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? - system "./configure", "--disable-debug", "--prefix=#{prefix}", "--enable-nasm" + system "./configure", "--disable-debug", + "--prefix=#{prefix}", + "--enable-nasm" system "make install" end end -- cgit v1.2.3