fef84549b3
An application programming interface (API) that provides standardized access to any raster image scanner hardware. SaneBackends provides: - backends (scanner drivers) - command-line-frontend (scanimage) - network scanning daemon (saned) - SANE-API documentation Add configure flag to omit latex use when generating documentation.
26 lines
663 B
Ruby
26 lines
663 B
Ruby
require 'formula'
|
|
|
|
class SaneBackends <Formula
|
|
url 'ftp://ftp.sane-project.org/pub/sane/sane-backends-1.0.20/sane-backends-1.0.20.tar.gz'
|
|
homepage 'http://www.sane-project.org/'
|
|
md5 'a0cfdfdebca2feb4f2ba5d3418b15a42'
|
|
|
|
depends_on 'jpeg'
|
|
depends_on 'libtiff'
|
|
depends_on 'libusb'
|
|
|
|
def install
|
|
configure_args = [
|
|
"--prefix=#{prefix}",
|
|
"--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--without-gphoto2",
|
|
"--enable-local-backends",
|
|
"--enable-libusb",
|
|
"--disable-latex",
|
|
]
|
|
system "./configure", *configure_args
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|