<pre style='margin:0'>
Mark Anderson (markemer) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/88318302beb86ae50fda126b2c4294a45fac719f">https://github.com/macports/macports-ports/commit/88318302beb86ae50fda126b2c4294a45fac719f</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 88318302beb tesseract: Update to version 4.1.3 (#12988)
</span>88318302beb is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 88318302beb86ae50fda126b2c4294a45fac719f
</span>Author: Mark Anderson <mark@macports.org>
AuthorDate: Fri Nov 19 21:24:26 2021 -0500
<span style='display:block; white-space:pre;color:#404040;'> tesseract: Update to version 4.1.3 (#12988)
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * Update to version 4.1.3
</span><span style='display:block; white-space:pre;color:#404040;'> * Fix compilation bug on macOS 11 and 12 due to version.txt
</span><span style='display:block; white-space:pre;color:#404040;'> * Add notes for tesseract build
</span><span style='display:block; white-space:pre;color:#404040;'> * Add variants for the 3 types of training data available
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/41821
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/63923
</span>---
textproc/tesseract/Portfile | 62 ++++++++++++++++++++++++++++-----------------
1 file changed, 39 insertions(+), 23 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/tesseract/Portfile b/textproc/tesseract/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b96778f81df..be1f426fead 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/textproc/tesseract/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/tesseract/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,20 +3,30 @@
</span> PortSystem 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+name tesseract
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> if {${subport} in [list tesseract tesseract-training]} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- github.setup tesseract-ocr tesseract 4.1.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- checksums rmd160 2dd932d66b7271443ecce27359459f319a1af1a8 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 5e477a1219c8a7e0dde16d2452edcd978525bea7b9cb9e1a9b3cc78e603c454b \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 1975412
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup tesseract-ocr tesseract 4.1.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 e2037d64e5549ed0de715ef2d2b082149f3f9232 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 26ea123135c3e0b4f204cd097a9d43ab4293f23425e96128df48e6da1960b40f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1975794
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {[variant_isset best]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup tesseract-ocr tessdata_best 4.1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 753e227df9393d064a78d3243a5bc6fdce20f73c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 61e07fc0d2e52f0d1a41dc92a1542725f68ed3110f1df3bae715973cd8042851 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1387835400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {[variant_isset fast]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup tesseract-ocr tessdata_fast 4.1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 8163a934780db1b80edb94e5e1df45427aa4ff23 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 54d80714745d79955e7997fa0df6d3c43b1b1989179d5e64a67290a2eea8be64 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 352218148
</span> } else {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- github.setup tesseract-ocr tessdata 4.0.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- checksums rmd160 037e33f19787c2f08544bcde213eb202f73d9546 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 1c36d1e521e6420ea9c8bf13d8a45f67d54fdcf6a132fa72370ae85464118b96 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 669255785
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- name tesseract
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup tesseract-ocr tessdata 4.1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 f314b4fa97b64c5bc1c8318bbfce0484d63823d2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 251c890578e37f6d829c706b7e3728c751e2b061ac57b549b14f8769137dcf0e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 668512655
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> categories textproc graphics pdf
platforms darwin
license Apache-2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,26 +35,32 @@ maintainers {mark @markemer} openmaintainer
</span>
description Open source OCR engine
<span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description The Tesseract OCR engine was one of the top 3 engines in \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- the 1995 UNLV Accuracy test. Between 1995 and 2006 it had \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- little work done on it, but it is probably one of the \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- most accurate open source OCR engines available. The \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- source code will read a binary, grey or color image and \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- output text. A tiff reader is built in that will read \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- uncompressed TIFF images, or libtiff can be added to read \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- compressed images.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description This package contains an OCR engine - libtesseract and a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ command line program - tesseract. Tesseract 4 adds a new \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ neural net (LSTM) based OCR engine which is focused on line \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ recognition, but also still supports the legacy Tesseract \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OCR engine of Tesseract 3 which works by recognizing \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ character patterns.
</span>
if {${subport} eq ${name}} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> github.livecheck.regex {(\d\.\d+(\.\d+)?(?!-rc))}
} else {
livecheck.type none
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-subport ${name}-training {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${subport} in [list tesseract tesseract-training]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes "To use tesseract you must also install one of its language data subports. (ex tesseract-eng)"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant best conflicts fast description {Use best training data} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes-append "Legacy OCR Engine mode (--oem 0) is not supported by this variant"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+variant fast conflicts best description {Use fast training data} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes-append "Legacy OCR Engine mode (--oem 0) is not supported by this variant"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+subport ${name}-training {
</span> depends_lib-append path:lib/pkgconfig/cairo.pc:cairo \
port:icu \
path:lib/pkgconfig/pango.pc:pango
</pre><pre style='margin:0'>
</pre>