From d8d494f44bf2c330a73775ed06d5e2786e733be9 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 27 Apr 2014 16:47:47 -0500 Subject: leptonica: explicitly disable deps when requested cf. #28754. --- Library/Formula/leptonica.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/leptonica.rb b/Library/Formula/leptonica.rb index a046dd833..2f6f1e7d8 100644 --- a/Library/Formula/leptonica.rb +++ b/Library/Formula/leptonica.rb @@ -14,8 +14,16 @@ class Leptonica < Formula :because => "both leptonica and osxutils ship a `fileinfo` executable." def install - system "./configure", "--disable-dependency-tracking", - "--prefix=#{prefix}" + args = %W[ + --disable-dependency-tracking + --prefix=#{prefix} + ] + + %w[libpng jpeg libtiff].each do |dep| + args << "--without-#{dep}" if build.without?(dep) + end + + system "./configure", *args system "make install" end -- cgit v1.2.3