[36334] trunk/dports/textproc

ryandesign at macports.org ryandesign at macports.org
Sun Apr 27 06:04:03 PDT 2008


Revision: 36334
          http://trac.macosforge.org/projects/macports/changeset/36334
Author:   ryandesign at macports.org
Date:     2008-04-27 06:04:02 -0700 (Sun, 27 Apr 2008)

Log Message:
-----------
tesseract: new port, version 2.01, closes #14887

Added Paths:
-----------
    trunk/dports/textproc/tesseract/
    trunk/dports/textproc/tesseract/Portfile

Added: trunk/dports/textproc/tesseract/Portfile
===================================================================
--- trunk/dports/textproc/tesseract/Portfile	                        (rev 0)
+++ trunk/dports/textproc/tesseract/Portfile	2008-04-27 13:04:02 UTC (rev 36334)
@@ -0,0 +1,47 @@
+# $Id$
+
+PortSystem          1.0
+
+name                tesseract
+version             2.01
+categories          textproc graphics pdf
+maintainers         emer at emer.net
+description         Open source OCR engine
+long_description    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.
+
+platforms           darwin
+homepage            http://code.google.com/p/tesseract-ocr/
+master_sites        http://tesseract-ocr.googlecode.com/files:src \
+                    http://tesseract-ocr.googlecode.com/files:langdata
+
+set lang_data       ${name}-2.00.eng${extract.suffix}
+
+distfiles \
+    ${distname}${extract.suffix}:src \
+    ${lang_data}:langdata
+
+checksums\
+    ${distname}${extract.suffix} \
+        md5 fb0e6e7652b985049c11a4bc8e593885 \
+        sha1 c35f3448e97d61e00980abba6b2e9cb6e151c366 \
+        rmd160 e28bb1d60baf73c8eaa646b32825d9931116851e \
+    ${lang_data} \
+        md5 b8291d6b3a63ce7879d688e845e341a9 \
+        sha1 40292c8d206090c4ab342f6b7814ea41c075abce \
+        rmd160 4a8090729504c216b3988f189ea79a5a5e223173
+
+post-extract {
+    foreach f [exec ls ${workpath}/tessdata/] {
+        copy ${workpath}/tessdata/${f} ${worksrcpath}/tessdata
+    }
+    delete ${workpath}/tessdata
+}
+
+depends_lib         port:tiff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080427/a3736153/attachment.html


More information about the macports-changes mailing list