[Lunar-commits] <moonbase> tesseract: Adding to moonbase.

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Sat Mar 6 17:23:26 CET 2010


commit 2122a86b273069210a8b502a1a248e955b8ff94c
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Sat Mar 6 11:23:26 2010 -0500

    tesseract: Adding to moonbase.
---
 doc-tools/tesseract/BUILD   |   11 +++++++++++
 doc-tools/tesseract/DEPENDS |    1 +
 doc-tools/tesseract/DETAILS |   21 +++++++++++++++++++++
 3 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/doc-tools/tesseract/BUILD b/doc-tools/tesseract/BUILD
new file mode 100644
index 0000000..758b94a
--- /dev/null
+++ b/doc-tools/tesseract/BUILD
@@ -0,0 +1,11 @@
+(
+
+  sed -i "26i #include <stdio.h>:" viewer/svutil.cpp &&
+
+  cd tessdata &&
+  tar zxvf $SOURCE_CACHE/$SOURCE2 &&
+  cd $SOURCE_DIRECTORY &&
+
+  default_build
+
+) > $C_FIFO 2>&1
diff --git a/doc-tools/tesseract/DEPENDS b/doc-tools/tesseract/DEPENDS
new file mode 100644
index 0000000..2abe6ea
--- /dev/null
+++ b/doc-tools/tesseract/DEPENDS
@@ -0,0 +1 @@
+optional_depends tiff      "--with-libtiff" "--without-libtiff" "for tiff graphics support"
diff --git a/doc-tools/tesseract/DETAILS b/doc-tools/tesseract/DETAILS
new file mode 100644
index 0000000..c9f3568
--- /dev/null
+++ b/doc-tools/tesseract/DETAILS
@@ -0,0 +1,21 @@
+          MODULE=tesseract
+         VERSION=2.04
+          SOURCE=$MODULE-$VERSION.tar.gz
+         SOURCE2=tesseract-2.00.eng.tar.gz
+      SOURCE_URL=http://tesseract-ocr.googlecode.com/files/
+     SOURCE2_URL=http://tesseract-ocr.googlecode.com/files/
+      SOURCE_VFY=sha1:850c42c92a4471c5f41d4384c57045e812fde26a
+     SOURCE2_VFY=sha1:40292c8d206090c4ab342f6b7814ea41c075abce
+        WEB_SITE=http://code.google.com/p/tesseract-ocr/
+         ENTERED=20100306
+         UPDATED=20100306
+           SHORT="Optical Character Recognition engine"
+
+cat << EOF
+The Tesseract OCR engine was one of the top 3 engines in the 1995 UNLV Accuracy
+test. Between 1995 and 2006 it had little work done on it, but it is probably 
+one of the most accurate open source OCR engines available. The source code will
+read a binary, grey or color image and output text. A tiff reader is built in that 
+will read uncompressed TIFF images, or libtiff can be added to read compressed 
+images. 
+EOF


More information about the Lunar-commits mailing list