From d5ced2ea39d4623455f9c76a97d25e0d6e816fc7 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 12 Aug 2012 12:56:43 -0500 Subject: libusb: use options DSL Signed-off-by: Jack Nagel --- Library/Formula/libusb.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/libusb.rb b/Library/Formula/libusb.rb index 3fbce1a43..48d3abf7b 100644 --- a/Library/Formula/libusb.rb +++ b/Library/Formula/libusb.rb @@ -7,18 +7,16 @@ class Libusb < Formula head 'git://git.libusb.org/libusb.git' - def options - [["--universal", "Build a universal binary."]] - end - - if ARGV.build_head? + if build.head? depends_on :automake depends_on :libtool end + option :universal + def install - ENV.universal_binary if ARGV.build_universal? - system "./autogen.sh" if ARGV.build_head? + ENV.universal_binary if build.universal? + system "./autogen.sh" if build.head? system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" system "make install" end -- cgit v1.2.3