aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-04-27 16:47:47 -0500
committerJack Nagel2014-04-27 16:48:24 -0500
commitd8d494f44bf2c330a73775ed06d5e2786e733be9 (patch)
treea409ee38a8982f3574ccca9423675fdf57f60a1c /Library
parentad844318e139e656a47ac727b990456a441fe3dc (diff)
downloadhomebrew-d8d494f44bf2c330a73775ed06d5e2786e733be9.tar.bz2
leptonica: explicitly disable deps when requested
cf. #28754.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/leptonica.rb12
1 files changed, 10 insertions, 2 deletions
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