diff options
| author | Benjamin Dobell | 2013-03-13 00:44:04 +1100 |
|---|---|---|
| committer | Jack Nagel | 2013-04-13 20:59:41 -0500 |
| commit | 96e1cd4ee65d93137581a2f17b2e83e9c1079b48 (patch) | |
| tree | 363237ee111591a9cd3a26e727ac2c5dfe0061be /Library/Formula | |
| parent | 028f2b035111cd30a752f3b015b57add82799663 (diff) | |
| download | homebrew-96e1cd4ee65d93137581a2f17b2e83e9c1079b48.tar.bz2 | |
New formula: libusbx 1.0.14
Added homebrew formula for the popular user-space USB library, libusbx 1.0.14
Closes #17186.
Closes #18452.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libusb.rb | 3 | ||||
| -rw-r--r-- | Library/Formula/libusbx.rb | 31 |
2 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/libusb.rb b/Library/Formula/libusb.rb index 0895096d6..b3eccad42 100644 --- a/Library/Formula/libusb.rb +++ b/Library/Formula/libusb.rb @@ -7,6 +7,9 @@ class Libusb < Formula head 'git://git.libusb.org/libusb.git' + conflicts_with 'libusb', + :because => 'both provide libusb compatible libraries' + if build.head? depends_on :automake depends_on :libtool diff --git a/Library/Formula/libusbx.rb b/Library/Formula/libusbx.rb new file mode 100644 index 000000000..ecd111559 --- /dev/null +++ b/Library/Formula/libusbx.rb @@ -0,0 +1,31 @@ +require 'formula' + +class Libusbx < Formula + homepage 'http://libusbx.org' + url 'http://downloads.sourceforge.net/project/libusbx/releases/1.0.14/source/libusbx-1.0.14.tar.bz2' + sha1 '2896201c54a0a9d0aee724925ab58c96956d5251' + + head 'https://github.com/libusbx/libusbx.git' + + conflicts_with 'libusb', + :because => 'both provide libusb compatible libraries' + + if build.head? + depends_on :automake + depends_on :libtool + end + + 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 |
