aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-09 21:39:38 -0700
committerAdam Vandenberg2012-08-09 21:39:45 -0700
commitcaae81d9cbda9c3b0aea2428553f8fedd2ba2cf1 (patch)
treebb6d62556b7d3ff5115bcfbc21e2bfa5ba625eaf /Library
parent55fb38b6c409e59a7101595ac05eab001ab2693f (diff)
downloadhomebrew-caae81d9cbda9c3b0aea2428553f8fedd2ba2cf1.tar.bz2
xz: use options dsl
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/xz.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/xz.rb b/Library/Formula/xz.rb
index 53f14a8dc..0cff0057d 100644
--- a/Library/Formula/xz.rb
+++ b/Library/Formula/xz.rb
@@ -5,12 +5,10 @@ class Xz < Formula
url 'http://tukaani.org/xz/xz-5.0.4.tar.bz2'
sha256 '5cd9b060d3a1ad396b3be52c9b9311046a1c369e6062aea752658c435629ce92'
- 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", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"