diff options
| author | Jack Nagel | 2012-08-12 12:56:43 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-12 13:00:54 -0500 |
| commit | d5ced2ea39d4623455f9c76a97d25e0d6e816fc7 (patch) | |
| tree | 6c7da4b21492b19d4b8a7ff0415fe23d2198a345 /Library/Formula/libusb.rb | |
| parent | 21cc182c2aac12cf0e00a2a4c518357f760033c7 (diff) | |
| download | homebrew-d5ced2ea39d4623455f9c76a97d25e0d6e816fc7.tar.bz2 | |
libusb: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/libusb.rb')
| -rw-r--r-- | Library/Formula/libusb.rb | 12 |
1 files changed, 5 insertions, 7 deletions
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 |
