aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorElliot Saba2012-03-13 19:40:19 -0700
committerAdam Vandenberg2012-03-15 19:41:28 -0700
commit6731e5101b0cce017d8d92214e3f4dcdf5e0a7da (patch)
tree5bcfac126e052477a2399c860d508240851ad236 /Library/Formula
parent4866f53d6959db17eb241b1cf07a19c8a704c29d (diff)
downloadhomebrew-6731e5101b0cce017d8d92214e3f4dcdf5e0a7da.tar.bz2
Tesseract: add explicit leptonica include path
Fixes compilation for non-/usr/local/ HOMEBREW installs. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/tesseract.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/Library/Formula/tesseract.rb b/Library/Formula/tesseract.rb
index f1814ae7a..524a4d2ce 100644
--- a/Library/Formula/tesseract.rb
+++ b/Library/Formula/tesseract.rb
@@ -102,19 +102,23 @@ class Tesseract < Formula
depends_on "libtool" => :build
end
- fails_with_llvm "Executable 'tesseract' segfaults on 10.6 when compiled with llvm-gcc", :build => "2206"
+ fails_with_llvm "Executable 'tesseract' segfaults on 10.6 when compiled with llvm-gcc",
+ :build => "2206"
# mftraining has a missing symbols error when cleaned
skip_clean 'bin'
def options
- [
- ["--all-languages", "Install recognition data for all languages"]
- ]
+ [["--all-languages", "Install recognition data for all languages"]]
end
def install
system "/bin/sh autogen.sh"
+
+ # explicitly state leptonica header location, as the makefile defaults to /usr/local/include,
+ # which doesn't work for non-default homebrew location
+ ENV['LIBLEPT_HEADERSDIR'] = "#{HOMEBREW_PREFIX}/include"
+
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
if ARGV.include? "--all-languages"