libusb-compat 0.1.8

Closes #117265.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: FX Coudert <fxcoudert@gmail.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Rui Chen 2022-12-03 18:44:42 -05:00 committed by BrewTestBot
parent 9bd6d0b79b
commit b0c38a2092
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 6 additions and 9 deletions

View File

@ -1,13 +1,12 @@
class LibusbCompat < Formula
desc "Library for USB device access"
homepage "https://libusb.info/"
url "https://downloads.sourceforge.net/project/libusb/libusb-compat-0.1/libusb-compat-0.1.5/libusb-compat-0.1.5.tar.bz2"
sha256 "404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a"
url "https://downloads.sourceforge.net/project/libusb/libusb-compat-0.1/libusb-compat-0.1.8/libusb-compat-0.1.8.tar.bz2"
sha256 "698c76484f3dec1e0175067cbd1556c3021e94e7f2313ae3ea6a66d900e00827"
license all_of: [
"LGPL-2.1-or-later",
any_of: ["LGPL-2.1-or-later", "BSD-3-Clause"], # libusb/usb.h
]
revision 1
livecheck do
url :stable
@ -29,16 +28,14 @@ class LibusbCompat < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "f696d9eaabea3d1a6facc6b259157df62f5c0dae3b523d93c5010bfbe4ba7d81"
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "libusb"
# Fix -flat_namespace being used on Big Sur and later.
patch do
url "https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed58ea04c897d9c4/libtool/configure-pre-0.4.2.418-big_sur.diff"
sha256 "83af02f2aa2b746bb7225872cab29a253264be49db0ecebb12f841562d9a2923"
end
def install
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make", "install"
end