git: 14b44a0b226e - main - graphics/tesseract: update to 5.2.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Jul 2022 17:14:31 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=14b44a0b226ed1436dac8acc14034c74e93a0253 commit 14b44a0b226ed1436dac8acc14034c74e93a0253 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-07-07 17:13:11 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-07-07 17:13:49 +0000 graphics/tesseract: update to 5.2.0 Changelog: https://github.com/tesseract-ocr/tesseract/releases/tag/5.2.0 --- graphics/tesseract/Makefile | 3 +- graphics/tesseract/distinfo | 6 ++-- .../tesseract/files/patch-src_arch_simddetect.cpp | 41 ---------------------- graphics/tesseract/pkg-plist | 2 +- 4 files changed, 5 insertions(+), 47 deletions(-) diff --git a/graphics/tesseract/Makefile b/graphics/tesseract/Makefile index e5e8bd3a6da4..fddb204c96f4 100644 --- a/graphics/tesseract/Makefile +++ b/graphics/tesseract/Makefile @@ -1,8 +1,7 @@ # Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org> PORTNAME= tesseract -PORTVERSION= 5.1.0 -PORTREVISION= 1 +PORTVERSION= 5.2.0 CATEGORIES= graphics MAINTAINER= pkubaj@FreeBSD.org diff --git a/graphics/tesseract/distinfo b/graphics/tesseract/distinfo index 2655cb2d42b2..6750f6bda5a2 100644 --- a/graphics/tesseract/distinfo +++ b/graphics/tesseract/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1646157476 -SHA256 (tesseract-ocr-tesseract-5.1.0_GH0.tar.gz) = fdec8528d5a0ecc28ab5fff985e0b8ced60726f6ef33f54126f2868e323d4bd2 -SIZE (tesseract-ocr-tesseract-5.1.0_GH0.tar.gz) = 1910376 +TIMESTAMP = 1657204030 +SHA256 (tesseract-ocr-tesseract-5.2.0_GH0.tar.gz) = eba4deb2f92a3f89a6623812074af8c53b772079525b3c263aa70bbf7b748b3c +SIZE (tesseract-ocr-tesseract-5.2.0_GH0.tar.gz) = 1913462 diff --git a/graphics/tesseract/files/patch-src_arch_simddetect.cpp b/graphics/tesseract/files/patch-src_arch_simddetect.cpp deleted file mode 100644 index 2e645a041b2e..000000000000 --- a/graphics/tesseract/files/patch-src_arch_simddetect.cpp +++ /dev/null @@ -1,41 +0,0 @@ ---- src/arch/simddetect.cpp.orig 2022-04-02 13:06:33 UTC -+++ src/arch/simddetect.cpp -@@ -55,10 +55,12 @@ - #if defined(HAVE_NEON) && !defined(__aarch64__) - # ifdef ANDROID - # include <cpu-features.h> --# else --/* Assume linux */ -+# elif defined(__linux__) - # include <asm/hwcap.h> - # include <sys/auxv.h> -+# elif defined(__FreeBSD__) -+# include <sys/auxv.h> -+# include <sys/elf.h> - # endif - #endif - -@@ -85,7 +87,7 @@ SIMDDetect SIMDDetect::detector; - bool SIMDDetect::neon_available_ = true; - #elif defined(HAVE_NEON) - // If true, then Neon has been detected. --bool SIMDDetect::neon_available_; -+bool SIMDDetect::neon_available_ = false; - #else - // If true, then AVX has been detected. - bool SIMDDetect::avx_available_; -@@ -216,9 +218,12 @@ SIMDDetect::SIMDDetect() { - if (family == ANDROID_CPU_FAMILY_ARM) - neon_available_ = (android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON); - } --# else -- /* Assume linux */ -+# elif defined(__linux__) - neon_available_ = getauxval(AT_HWCAP) & HWCAP_NEON; -+# elif defined(__FreeBSD__) -+ unsigned long hwcap = 0; -+ elf_aux_info(AT_HWCAP, &hwcap, sizeof hwcap); -+ neon_available_ = hwcap & HWCAP_NEON; - # endif - #endif - diff --git a/graphics/tesseract/pkg-plist b/graphics/tesseract/pkg-plist index d29c9dba9737..b30eda70539f 100644 --- a/graphics/tesseract/pkg-plist +++ b/graphics/tesseract/pkg-plist @@ -29,7 +29,7 @@ include/tesseract/version.h lib/libtesseract.a lib/libtesseract.so lib/libtesseract.so.5 -lib/libtesseract.so.5.0.1 +lib/libtesseract.so.5.0.2 libdata/pkgconfig/tesseract.pc man/man1/ambiguous_words.1.gz man/man1/classifier_tester.1.gz