Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tesseract] update to 5.2.0 #26114

Merged
merged 17 commits into from
Aug 15, 2022
13 changes: 0 additions & 13 deletions ports/tesseract/fix-tiff-linkage.patch

This file was deleted.

14 changes: 0 additions & 14 deletions ports/tesseract/fix-timeval.patch

This file was deleted.

17 changes: 8 additions & 9 deletions ports/tesseract/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO tesseract-ocr/tesseract
REF 4.1.1
SHA512 017723a2268be789fe98978eed02fd294968cc8050dde376dee026f56f2b99df42db935049ae5e72c4519a920e263b40af1a6a40d9942e66608145b3131a71a2
PATCHES
fix-tiff-linkage.patch
fix-timeval.patch # Remove this patch in the next update
REF 5ad5325a0aa8effc47ca033625b6a51682f82767 #v5.2.0
SHA512 c6ed442c9deb28772aeb918142dab08d5b55eeeeccb0c1d3f13cf51bb72af227afb7f14c19a5c8db40d6a7b8cfeccb3af08a78adfcd7431e4a06f65372709ceb
)

# The built-in cmake FindICU is better
Expand Down Expand Up @@ -34,18 +31,19 @@ vcpkg_cmake_configure(
-DCMAKE_DISABLE_FIND_PACKAGE_OpenCL=ON
-DLeptonica_DIR=YES
-DTARGET_ARCHITECTURE=${TARGET_ARCHITECTURE}
-DSW_BUILD=OFF
)

vcpkg_cmake_install()
vcpkg_copy_pdbs()

vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/tesseract)

vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/tesseract/TesseractConfig.cmake"
"find_package(Leptonica REQUIRED)"
"find_dependency(Leptonica)"
[[
find_package(Leptonica REQUIRED)
find_package(LibArchive REQUIRED)
find_dependency(Leptonica)
find_dependency(LibArchive)
]]
)

Expand All @@ -68,6 +66,7 @@ endif()


file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
4 changes: 2 additions & 2 deletions ports/tesseract/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "tesseract",
"version": "4.1.1",
"port-version": 10,
"version": "5.2.0",
"description": "An OCR Engine that was developed at HP Labs between 1985 and 1995... and now at Google.",
"homepage": "https://github.com/tesseract-ocr/tesseract",
"license": "Apache-2.0",
"supports": "!arm",
"dependencies": [
"leptonica",
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7021,8 +7021,8 @@
"port-version": 0
},
"tesseract": {
"baseline": "4.1.1",
"port-version": 10
"baseline": "5.2.0",
"port-version": 0
},
"tfhe": {
"baseline": "1.0.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/t-/tesseract.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "fa58775d2c0c4b822d628401689b07487b4352e3",
"version": "5.2.0",
"port-version": 0
},
{
"git-tree": "ac84bef93d2709f28bf4ab8341a80dab949a8cf1",
"version": "4.1.1",
Expand Down