From 33ef70c8cc24675f2234c6b0802bf00ff733b167 Mon Sep 17 00:00:00 2001 From: Yurii Kolesnykov Date: Fri, 28 Jul 2017 21:01:28 +0300 Subject: [PATCH] sane-backends: fix USB support Closes #16170. Signed-off-by: FX Coudert --- Formula/sane-backends.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Formula/sane-backends.rb b/Formula/sane-backends.rb index c535ce6fe1..dfa6ce1c0d 100644 --- a/Formula/sane-backends.rb +++ b/Formula/sane-backends.rb @@ -5,6 +5,7 @@ class SaneBackends < Formula mirror "https://mirrors.kernel.org/debian/pool/main/s/sane-backends/sane-backends_1.0.27.orig.tar.gz" mirror "https://fossies.org/linux/misc/sane-backends-1.0.27.tar.gz" sha256 "293747bf37275c424ebb2c833f8588601a60b2f9653945d5a3194875355e36c9" + revision 1 head "https://anonscm.debian.org/cgit/sane/sane-backends.git" bottle do @@ -15,9 +16,10 @@ class SaneBackends < Formula depends_on "jpeg" depends_on "libtiff" - depends_on "libusb-compat" + depends_on "libusb" depends_on "openssl" depends_on "net-snmp" + depends_on "pkg-config" => :build def install system "./configure", "--disable-dependency-tracking", @@ -25,8 +27,7 @@ class SaneBackends < Formula "--localstatedir=#{var}", "--without-gphoto2", "--enable-local-backends", - "--enable-libusb", - "--disable-latex" + "--with-usb=yes" system "make", "install" end