summaryrefslogtreecommitdiff
path: root/app-text/tesseract
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-02 09:07:02 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-02 09:07:02 +0000
commit68f980204de6c2d69eed8748edc90282879326a6 (patch)
treeeb74f0bcca207f547c8ababe0f82e65e16b30ce1 /app-text/tesseract
parentc8273339188289fe8571e5a8cb9e00e59a46aaaf (diff)
gentoo auto-resync : 02:02:2023 - 09:07:02
Diffstat (limited to 'app-text/tesseract')
-rw-r--r--app-text/tesseract/Manifest3
-rw-r--r--app-text/tesseract/files/tesseract-5.3.0-gcc-13.patch25
-rw-r--r--app-text/tesseract/tesseract-5.3.0.ebuild4
3 files changed, 31 insertions, 1 deletions
diff --git a/app-text/tesseract/Manifest b/app-text/tesseract/Manifest
index 8c6e412b05e9..dc8d83bcb7c0 100644
--- a/app-text/tesseract/Manifest
+++ b/app-text/tesseract/Manifest
@@ -1,8 +1,9 @@
+AUX tesseract-5.3.0-gcc-13.patch 748 BLAKE2B de4ce0e2a312497621f1e037aa0e61b1b0b41b23aaca52ba23f331ee415b6f150ca1487806be5373ed68c46265c74137f5b6e5db9eab8940927d5b05eec89c4b SHA512 4bd7db8ade5f40e92f48f0e4771d9f55c738cb74becaa22c823cb03123ef6d56662e59829015aa5c326e790c5d45d9f6ad7d8be253f9d9f08eebb228a54ee6b9
DIST tesseract-4.1.1.tar.gz 1974988 BLAKE2B f729beb017ec81704b84f5e6539706ff0cd6a51a4d1b7b730c394af58ce2ea2a659203bf239417e8d500cfbde845a73d6e6e181ca946257c2f22525820899602 SHA512 017723a2268be789fe98978eed02fd294968cc8050dde376dee026f56f2b99df42db935049ae5e72c4519a920e263b40af1a6a40d9942e66608145b3131a71a2
DIST tesseract-5.2.0.tar.gz 1913462 BLAKE2B 6b80e5bb71543cf971683f66b87fd45a971a6f337ca53567d134c3bdc227f1338a3340f5bb5c2f183288135acd6521031b0f6de6e96e333fed4dc10e93b7319e SHA512 23ed931495e4ea793904f99a06a95a47873b923c4e5d8f3fc8f9203cac86b0e0013c416ab4d8d4a863a081eea00a196a0198c6fb17a39917a1baea2280d84794
DIST tesseract-5.3.0.tar.gz 1913678 BLAKE2B 975b3a50dc2c9ec7ded82caaa068d2d9d362ee0bc6d51b41a52c692ac7f51231d4c64a9dda9e7b850297d4c1f13eb40a709e59eebe143df4f5e2a060cfbbfd3a SHA512 fc0cfda980059390b7d6d3d8e475b4ecc9dcfee1abc3b16fc9ffc8904db0a0847a5f6f1b32bd2e1f6f5a714a8c4df0fb3dc7c6aa25ece6162bf52fe86b4d0f34
EBUILD tesseract-4.1.1-r1.ebuild 2058 BLAKE2B c6dc012b5c08976caf609ef582abbf448b1600ad2662ed2e9a8b392b9023ca60cc0e38a4865a2eb0e2865720432fea77797d285ad8d7456db655853ab75cbdca SHA512 aa34edc5c33973df0933752b182a70c76e037b2a9540c1a7bbccda9201ea775f245e25f38ef2b8c976649e4fcf6bbec8c31b3b0958c09eb86fc2d3b3550b86e9
EBUILD tesseract-5.2.0-r1.ebuild 2098 BLAKE2B c5af7218c00662fca7f198e564e54d5c6afd6816e1bb26ffb49c29c90247db484130ddff9d19e3fef817fc8c70a0b698b4ef0719ba391efd48b615f329a2aab4 SHA512 608fb9c3af3c41ff6c6ea3a99e91b126b755ca85964f77602f0f7cb11ecd4bcd22a11c927bb331c068087caddab7338d1d6931963fc76be0db15907e3b4c5a51
-EBUILD tesseract-5.3.0.ebuild 2098 BLAKE2B 517ed23465a89a00cd11b2a03e680848663ec0fa40f6cd887b8ce624c4f0da614f99695000d797f9f21f134d973cd3d15a1d0faee973ce54d85114c3b215bd48 SHA512 b814b322e31bfd27db6645232aa4ee1a716fae33c185ba3f7303c23aa05d48d78cbaa22ded42ca6153de55333f3d5581a56178666cb0c7cfff57195393237a52
+EBUILD tesseract-5.3.0.ebuild 2144 BLAKE2B 0e38991dec34a572003bde0a71296865c191e3630292df5aa8ff3f6d3b5f8a046e8e8641520be2cf8dad31fb1117a093ad1aae58e0cad39a747b8104dd8fdfa6 SHA512 7ee159cac432d98edaaadf9790443023ad9372ce902d26083efc7b50b110396c5761a508f54759e06231561dcc554a182dff40cd813f7096bbd0923b65711aa1
EBUILD tesseract-9999.ebuild 2015 BLAKE2B 66bf7e18c2028ea2e219119394a5d0d22d2080533c25f108074b47958acbcbce43824f7d7e718a558d9ded2b12a35b348872d0c161620c315b25c8c1266ddbcf SHA512 9711dbbfe399b7d80343778461632fe9ba1907475ba78ef7df6142b2e308f46b332f7c8f32c31ff8f58c65509851929a4bf4e5547c8564af87109cf6b16ed6bc
MISC metadata.xml 1020 BLAKE2B 77f6c8f3962e00b65495fff0176e7765a9583de651db12b0e532ad5ff4b8005ede93d42d58093ae3b397c40d085963f47ef0e41cfed609b581c1a2f8231ccc72 SHA512 d9ea277a6ad9ec5178252863d60bac1244e372ab6c4f4ce3fe4f7220492e78dec2349742699031ed727251f87173e821c64dec44fb9787c08aad216cad64fa05
diff --git a/app-text/tesseract/files/tesseract-5.3.0-gcc-13.patch b/app-text/tesseract/files/tesseract-5.3.0-gcc-13.patch
new file mode 100644
index 000000000000..959948aa677c
--- /dev/null
+++ b/app-text/tesseract/files/tesseract-5.3.0-gcc-13.patch
@@ -0,0 +1,25 @@
+https://github.com/tesseract-ocr/tesseract/commit/2025b53de6b3d97285d7c5f80497493007c586c3
+
+From 2025b53de6b3d97285d7c5f80497493007c586c3 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Mon, 30 Jan 2023 11:27:07 -0800
+Subject: [PATCH] Fix build with gcc 13 by including <cstdint>
+
+gcc 13 moved some includes around and as a result <cstdint> is
+no longer transitively included [1]. Explicitly include it for
+int32_t.
+
+[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+--- a/src/ccutil/params.h
++++ b/src/ccutil/params.h
+@@ -21,6 +21,7 @@
+
+ #include <tesseract/export.h> // for TESS_API
+
++#include <cstdint>
+ #include <cstdio>
+ #include <cstring>
+ #include <string>
+
diff --git a/app-text/tesseract/tesseract-5.3.0.ebuild b/app-text/tesseract/tesseract-5.3.0.ebuild
index 7c7753b1ecf2..cb7040d39bc6 100644
--- a/app-text/tesseract/tesseract-5.3.0.ebuild
+++ b/app-text/tesseract/tesseract-5.3.0.ebuild
@@ -37,6 +37,10 @@ DEPEND="${COMMON_DEPEND}
dev-libs/libxslt
doc? ( app-doc/doxygen )"
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc-13.patch
+)
+
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}