libusb: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
a9ab7f11cd
commit
3b8403dcd7
1 changed files with 5 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue