Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

libusbx 1.0.14 #18429

Closed
wants to merge 3 commits into from

2 participants

@Benjamin-Dobell

There is already a pull request for libusbx 1.0.14:
#17186

However, the existing pull request has not been merged as it does not meet the homebrew standards for options. In addition to this "do test" seems incorrect as libusbx does not have libusb-config binary.

My pull request addresses the issues mentioned above.

@Benjamin-Dobell

@adamv Many apologies. I thought I had them all, clearly a case of selective eye-sight!

@adamv
Owner

No worries; I've been staring at formulae for a LONG time.

@Benjamin-Dobell

Closed in favour of #18452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 30 additions and 0 deletions.
  1. +30 −0 Library/Formula/libusbx.rb
View
30 Library/Formula/libusbx.rb
@@ -0,0 +1,30 @@
+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'
+
+ conflicts_with 'libusb',
+ :because => 'libusb and libusbx both install libusb-1.0.so'
+
+ 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 = ["--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
Something went wrong with that request. Please try again.