sane-backends: fix USB support

Closes #16170.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Yurii Kolesnykov 2017-07-28 21:01:28 +03:00 committed by FX Coudert
parent d9cd9969b6
commit 33ef70c8cc

View file

@ -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