From 1e5473508af6296dffc79300ba10e594522fb9e9 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 18 Oct 2022 09:09:44 +0800 Subject: tesseract: upgrade 4.1.3 -> 5.2.0 0001-include-sys-time.h.patch removed since it's not available in new version. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../tesseract/0001-include-sys-time.h.patch | 34 ---------------------- .../recipes-graphics/tesseract/tesseract_4.1.3.bb | 24 --------------- .../recipes-graphics/tesseract/tesseract_5.2.0.bb | 22 ++++++++++++++ 3 files changed, 22 insertions(+), 58 deletions(-) delete mode 100644 meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch delete mode 100644 meta-oe/recipes-graphics/tesseract/tesseract_4.1.3.bb create mode 100644 meta-oe/recipes-graphics/tesseract/tesseract_5.2.0.bb (limited to 'meta-oe') diff --git a/meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch b/meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch deleted file mode 100644 index de1fa75b7c..0000000000 --- a/meta-oe/recipes-graphics/tesseract/tesseract/0001-include-sys-time.h.patch +++ /dev/null @@ -1,34 +0,0 @@ -From b47fa9532a7090d76521603dbc818bdec100085f Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Tue, 15 Sep 2020 17:04:27 -0700 -Subject: [PATCH] include sys/time.h - -This provides missing definitions of timeval stuct - -Fixes -| ../../../git/src/ccutil/ocrclass.h:154:7: error: member access into -incomplete type 'struct timeval' -| tv->tv_usec = (millisecs.count() % 1000) * 1000; - -Upstream-Status: Pending -Signed-off-by: Khem Raj ---- - src/ccutil/ocrclass.h | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/src/ccutil/ocrclass.h b/src/ccutil/ocrclass.h -index d39a6dd6..96395c9b 100644 ---- a/src/ccutil/ocrclass.h -+++ b/src/ccutil/ocrclass.h -@@ -28,6 +28,8 @@ - - #include - #include -+#include -+ - #ifdef _WIN32 - #include // for timeval - #endif --- -2.28.0 - diff --git a/meta-oe/recipes-graphics/tesseract/tesseract_4.1.3.bb b/meta-oe/recipes-graphics/tesseract/tesseract_4.1.3.bb deleted file mode 100644 index 6f92679682..0000000000 --- a/meta-oe/recipes-graphics/tesseract/tesseract_4.1.3.bb +++ /dev/null @@ -1,24 +0,0 @@ -SUMMARY = "A commercial quality OCR engine " -HOMEPAGE = "https://github.com/tesseract-ocr/tesseract" -BUGTRACKER = "https://github.com/tesseract-ocr/tesseract/issues" - -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" - -BRANCH = "4.1" -SRCREV = "f38e7a7ba850b668d4505dd4c712238d7ec63ca8" -SRC_URI = "git://github.com/${BPN}-ocr/${BPN}.git;branch=${BRANCH};protocol=https \ - file://0001-include-sys-time.h.patch \ - " - -S = "${WORKDIR}/git" - -DEPENDS = "leptonica" - -EXTRA_OECONF += "LIBLEPT_HEADERSDIR=${STAGING_INCDIR}/leptonica" - -inherit autotools pkgconfig - -FILES:${PN} += "${datadir}/tessdata" - -RRECOMMENDS:${PN} += "tesseract-lang-eng" diff --git a/meta-oe/recipes-graphics/tesseract/tesseract_5.2.0.bb b/meta-oe/recipes-graphics/tesseract/tesseract_5.2.0.bb new file mode 100644 index 0000000000..8eb2073563 --- /dev/null +++ b/meta-oe/recipes-graphics/tesseract/tesseract_5.2.0.bb @@ -0,0 +1,22 @@ +SUMMARY = "A commercial quality OCR engine " +HOMEPAGE = "https://github.com/tesseract-ocr/tesseract" +BUGTRACKER = "https://github.com/tesseract-ocr/tesseract/issues" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" + +SRCREV = "5ad5325a0aa8effc47ca033625b6a51682f82767" +SRC_URI = "git://github.com/${BPN}-ocr/${BPN}.git;branch=main;protocol=https \ + " + +S = "${WORKDIR}/git" + +DEPENDS = "leptonica" + +EXTRA_OECONF += "LIBLEPT_HEADERSDIR=${STAGING_INCDIR}/leptonica" + +inherit autotools pkgconfig + +FILES:${PN} += "${datadir}/tessdata" + +RRECOMMENDS:${PN} += "tesseract-lang-eng" -- cgit v1.2.3-54-g00ecf