diff options
| author | Jack Nagel | 2014-02-02 14:09:28 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-02-02 14:11:54 -0500 |
| commit | d9c23fbd990ec4e4d6a32c25ed65d4634432f2e6 (patch) | |
| tree | 05b971d13b4168cf7eb1042bcf183f9bcf9cc88f /Library/Formula | |
| parent | c3a331dfbfd820dba660f72e6e6a2dff5aba4ba4 (diff) | |
| download | homebrew-d9c23fbd990ec4e4d6a32c25ed65d4634432f2e6.tar.bz2 | |
libusb 1.0.18
libusbx was merged back into libusb.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libusb.rb | 23 | ||||
| -rw-r--r-- | Library/Formula/libusbx.rb | 33 |
2 files changed, 11 insertions, 45 deletions
diff --git a/Library/Formula/libusb.rb b/Library/Formula/libusb.rb index e039ae794..2a090e3b6 100644 --- a/Library/Formula/libusb.rb +++ b/Library/Formula/libusb.rb @@ -1,12 +1,12 @@ require 'formula' class Libusb < Formula - homepage 'http://www.libusb.org/' - url 'http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.9/libusb-1.0.9.tar.bz2' - sha256 'e920eedc2d06b09606611c99ec7304413c6784cba6e33928e78243d323195f9b' + homepage 'http://libusb.info' + url 'http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-1.0.18/libusb-1.0.18.tar.bz2' + sha256 'c73f5cec45a5de94418da4e151b7232958571926984acfb9bce02b9424e83720' head do - url 'git://git.libusb.org/libusb.git' + url 'https://github.com/libusb/libusb.git' depends_on :autoconf depends_on :automake @@ -14,19 +14,18 @@ class Libusb < Formula end option :universal - - conflicts_with 'libusbx', - :because => 'both provide libusb compatible libraries' + option 'no-runtime-logging', 'Build without runtime logging functionality' + option 'with-default-log-level-debug', 'Build with default runtime log level of debug (instead of none)' def install ENV.universal_binary if build.universal? - if build.head? - inreplace "configure.ac", "AM_CONFIG_HEADER", "AC_CONFIG_HEADERS" - system "./autogen.sh" - end + args = %W[--disable-dependency-tracking --prefix=#{prefix}] + args << "--disable-log" if build.include? 'no-runtime-logging' + args << "--enable-debug-log" if build.include? 'with-default-log-level-debug' - system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" + system "./autogen.sh" if build.head? + system "./configure", *args system "make install" end end diff --git a/Library/Formula/libusbx.rb b/Library/Formula/libusbx.rb deleted file mode 100644 index f852b57ef..000000000 --- a/Library/Formula/libusbx.rb +++ /dev/null @@ -1,33 +0,0 @@ -require 'formula' - -class Libusbx < Formula - homepage 'http://libusbx.org' - url 'http://downloads.sourceforge.net/project/libusbx/releases/1.0.17/source/libusbx-1.0.17.tar.bz2' - sha1 'a491054e7f4f3f52b12bd567335180586a54ae16' - - head do - url 'https://github.com/libusbx/libusbx.git' - - depends_on :autoconf - depends_on :automake - depends_on :libtool - end - - - conflicts_with 'libusb', - :because => 'both provide libusb compatible libraries' - - option :universal - option 'no-runtime-logging', 'Build without runtime logging functionality' - option 'with-default-log-level-debug' 'Build with default runtime log level of debug (instead of none)' - - def install - ENV.universal_binary if build.universal? - system "./autogen.sh" if build.head? - args = %W[--disable-dependency-tracking --prefix=#{prefix}] - args << "--disable-log" if build.include? 'no-runtime-logging' - args << "--enable-debug-log" if build.include? 'with-default-log-level-debug' - system "./configure", *args - system "make install" - end -end |
