Skip to content

Commit

Permalink
nasm: use options DSL
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
jacknagel committed Aug 12, 2012
1 parent 6f44174 commit 0c18b97
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Library/Formula/nasm.rb
Expand Up @@ -5,12 +5,10 @@ class Nasm < Formula
url 'http://www.nasm.us/pub/nasm/releasebuilds/2.10.03/nasm-2.10.03.tar.bz2'
sha256 '3babec15086fed1d00495e7c412848fd135cad70faa811738cb35da46d98974c'

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", "--prefix=#{prefix}"
system "make everything"
system "make install_everything"
Expand Down

0 comments on commit 0c18b97

Please sign in to comment.