mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 21:19:58 -05:00
tesseract 3.01
Closes #8769. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
This commit is contained in:
1 parent
54cd7004b9
commit
64bb607d1d
1 file changed
+8
-7
@@ -1,18 +1,18 @@
|
|||||||
require 'formula'
|
require 'formula'
|
||||||
|
|
||||||
class TesseractEnglishData < Formula
|
class TesseractEnglishData < Formula
|
||||||
url 'http://tesseract-ocr.googlecode.com/files/eng.traineddata.gz',
|
url 'http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.01.eng.tar.gz'
|
||||||
:using => GzipOnlyDownloadStrategy
|
version '3.01'
|
||||||
md5 'd91041ad156cf2db36664e91ef799451'
|
md5 '89c139a73e0e7b1225809fc7b226b6c9'
|
||||||
version '3.00'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class Tesseract < Formula
|
class Tesseract < Formula
|
||||||
url 'http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gz'
|
url 'http://tesseract-ocr.googlecode.com/files/tesseract-3.01.tar.gz'
|
||||||
homepage 'http://code.google.com/p/tesseract-ocr/'
|
homepage 'http://code.google.com/p/tesseract-ocr/'
|
||||||
md5 'cc812a261088ea0c3d2da735be35d09f'
|
md5 '1ba496e51a42358fb9d3ffe781b2d20a'
|
||||||
|
|
||||||
depends_on 'libtiff'
|
depends_on 'libtiff'
|
||||||
|
depends_on 'leptonica'
|
||||||
|
|
||||||
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"
|
||||||
|
|
||||||
@@ -20,9 +20,10 @@ class Tesseract < Formula
|
|||||||
skip_clean 'bin'
|
skip_clean 'bin'
|
||||||
|
|
||||||
def install
|
def install
|
||||||
|
system "/bin/sh autogen.sh"
|
||||||
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
||||||
system "make install"
|
system "make install"
|
||||||
TesseractEnglishData.new.brew { mv "eng.traineddata", "#{share}/tessdata/" }
|
TesseractEnglishData.new.brew { mv Dir['tessdata/*'], "#{share}/tessdata/" }
|
||||||
end
|
end
|
||||||
|
|
||||||
def caveats; <<-EOF.undent
|
def caveats; <<-EOF.undent
|
||||||
|
|||||||
Reference in new issue
Block a user