homebrew-core/Formula/sane-backends.rb
Sebastian Kusnier 42a2fee9c0 sane-backends: use secondary ftp server
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-22 21:00:09 -07:00

28 lines
817 B
Ruby

require 'formula'
class SaneBackends < Formula
url 'ftp://ftp2.sane-project.org/pub/sane/sane-backends-1.0.22/sane-backends-1.0.22.tar.gz'
homepage 'http://www.sane-project.org/'
md5 'fadf56a60f4776bfb24491f66b617cf5'
depends_on 'jpeg'
depends_on 'libtiff'
depends_on 'libusb-compat'
skip_clean "var/lock/sane"
def install
ENV.j1 # Makefile does not seem to be parallel-safe
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--without-gphoto2",
"--enable-local-backends",
"--enable-libusb",
"--disable-latex"
system "make"
system "make install"
# Some drivers require a lockfile
(var+"lock/sane").mkpath
end
end