diff options
| author | Jack Nagel | 2014-04-27 16:47:47 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-27 16:48:24 -0500 |
| commit | d8d494f44bf2c330a73775ed06d5e2786e733be9 (patch) | |
| tree | a409ee38a8982f3574ccca9423675fdf57f60a1c /Library | |
| parent | ad844318e139e656a47ac727b990456a441fe3dc (diff) | |
| download | homebrew-d8d494f44bf2c330a73775ed06d5e2786e733be9.tar.bz2 | |
leptonica: explicitly disable deps when requested
cf. #28754.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/leptonica.rb | 12 |
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 |
