154.4. tessdata-eng-4.1.0
English and script-detection models for the tesseract OCR engine
4.1.0-1 · Apache-2.0 · 0.1 SBU · 14.0 MiB, 3 files · 41_system, 855 of 1047 · ports/core/printing/tessdata-eng
Homepage: https://github.com/tesseract-ocr/tessdata_fast
tessdata-eng is the trained data tesseract needs to read anything: the English model eng and the orientation and script-detection model osd from the tessdata_fast set, installed under /usr/share/tessdata.
Depends on: nothing a recipe names.
Required by (2): skanpage, tesseract.
Sources: tessdata-eng-4.1.0.traineddata (3.9 MiB), tessdata-osd-4.1.0.traineddata (10.1 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install tessdata-eng'
build.sh:
install -Dm644 tessdata-eng-$version.traineddata "$PKG/usr/share/tessdata/eng.traineddata"
install -Dm644 tessdata-osd-$version.traineddata "$PKG/usr/share/tessdata/osd.traineddata"
install -Dm644 /usr/share/licenses/openssl/LICENSE.txt "$PKG/usr/share/licenses/$name/LICENSE"
Directories: /usr/share/licenses/tessdata-eng.
The two sources are the raw .traineddata files, which carry no licence text. They are published under the Apache-2.0, and that licence asks for its text to travel with the data, so the last line of build.sh installs the Apache-2.0 text from /usr/share/licenses/openssl/LICENSE.txt, which OpenSSL ships verbatim. OpenSSL is in 30_foundation, so every tree that builds this port has that file.