homebrew-core/Formula/sane-backends.rb

29 lines
816 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class SaneBackends < Formula
url 'ftp://ftp.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