diff options
author | fhajny <fhajny@pkgsrc.org> | 2017-02-21 17:51:18 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2017-02-21 17:51:18 +0000 |
commit | 57ccbb913f15701b0d8dec62f7b78991a1638389 (patch) | |
tree | 59016f6836a475e0d9ad77cc2f9cad7e976ac036 /graphics/tesseract/patches/patch-tessdata_Makefile.am | |
parent | 8b616233616884854c9ffcfe094725094ccb36a8 (diff) | |
download | pkgsrc-57ccbb913f15701b0d8dec62f7b78991a1638389.tar.gz |
Update graphics/tesseract to 3.05.00
- Made some fine tuning to the hOCR output.
- Added TSV as another optional output format.
- Fixed ABI break introduced in 3.04.00 with the AnalyseLayout()
method.
- text2image tool - Enable all OpenType ligatures available in a font.
This feature requires Pango 1.38 or newer.
- Training tools - Replaced asserts with tprintf() and exit(1).
- Fixed Cygwin compatibility.
- Improved multipage tiff processing.
- Improved the embedded pdf font (pdf.ttf).
- Enable selection of OCR engine mode from command line.
- Changed tesseract command line parameter '-psm' to '--psm'.
- Added new C API for orientation and script detection, removed the
old one.
- Increased minimum autoconf version to 2.59.
- Removed dead code.
- Fixed many compiler warning.
- Fixed memory and resource leaks.
- Fixed some issues with the 'Cube' OCR engine.
- Fixed some openCL issues.
- Added option to build Tesseract with CMake build system.
- Implemented CPPAN support for easy Windows building.
Diffstat (limited to 'graphics/tesseract/patches/patch-tessdata_Makefile.am')
-rw-r--r-- | graphics/tesseract/patches/patch-tessdata_Makefile.am | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/graphics/tesseract/patches/patch-tessdata_Makefile.am b/graphics/tesseract/patches/patch-tessdata_Makefile.am new file mode 100644 index 00000000000..922206f961d --- /dev/null +++ b/graphics/tesseract/patches/patch-tessdata_Makefile.am @@ -0,0 +1,34 @@ +$NetBSD: patch-tessdata_Makefile.am,v 1.1 2017/02/21 17:51:18 fhajny Exp $ + +Revert a trunk commit that broke install-lang for tesseract<4. + +--- tessdata/Makefile.am.orig 2017-02-16 17:59:48.000000000 +0000 ++++ tessdata/Makefile.am +@@ -44,6 +44,27 @@ langdata = bul.traineddata mlt.trainedda + ita.cube.nn fra.cube.size eng.cube.bigrams ara.cube.lm \ + rus.cube.nn spa.cube.nn hin.cube.bigrams + ++.PHONY: install-langs ++install-langs: ++ @if [ ! -d $(DESTDIR)$(datadir) ]; then mkdir -p $(DESTDIR)$(datadir); fi; ++ @if test "${LANGS}" != ""; then \ ++ for lang_code in ${LANGS}; do \ ++ echo "installing data for $$lang_code"; \ ++ $(INSTALL) -m 644 $(srcdir)/$$lang_code.* $(DESTDIR)$(datadir); \ ++ done; \ ++ else \ ++ for l in ./*.traineddata; do \ ++ filename=`basename $$l`; \ ++ lang_code=$${filename%.*}; \ ++ if test "$$lang_code" == "*"; then \ ++ echo "No lang present."; \ ++ break; \ ++ fi; \ ++ echo "installing data for $$lang_code"; \ ++ $(INSTALL) -m 644 $(srcdir)/$$lang_code.* $(DESTDIR)$(datadir); \ ++ done; \ ++ fi; ++ + uninstall-local: + cd $(DESTDIR)$(datadir); \ + rm -f $(langdata) |