aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-02-02 14:09:28 -0500
committerJack Nagel2014-02-02 14:11:54 -0500
commitd9c23fbd990ec4e4d6a32c25ed65d4634432f2e6 (patch)
tree05b971d13b4168cf7eb1042bcf183f9bcf9cc88f /Library
parentc3a331dfbfd820dba660f72e6e6a2dff5aba4ba4 (diff)
downloadhomebrew-d9c23fbd990ec4e4d6a32c25ed65d4634432f2e6.tar.bz2
libusb 1.0.18
libusbx was merged back into libusb.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libusb.rb23
-rw-r--r--Library/Formula/libusbx.rb33
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