homebrew-core/Formula/sane-backends.rb
Jack Nagel 7802f7b829 Remove useless instances of skip_clean
No need to skip_clean 'etc' or skip_clean 'var' when using the top-level
var and etc directories.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06 11:46:20 -06:00

27 lines
839 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'
def install
ENV.j1 # Makefile does not seem to be parallel-safe
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--localstatedir=#{var}",
"--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