Restore R-tesseract_include.patch

This commit is contained in:
Sandro Mani 2022-03-10 13:59:12 +01:00
parent 4c61021912
commit 9a56a7d2f0
2 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,9 @@ License: ASL 2.0
URL: https://CRAN.R-project.org/package=%{packname}
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
# Fix leptonica include
Patch0: R-tesseract_include.patch
# Here's the R view of the dependencies world:
# Depends:
# Imports: R-Rcpp >= 0.12.12, R-pdftools >= 1.5, R-curl, R-rappdirs, R-digest

View File

@ -0,0 +1,7 @@
diff -rupN --no-dereference a/tesseract/tools/test.cpp b/tesseract/tools/test.cpp
--- a/tesseract/tools/test.cpp 2020-03-30 00:30:33.000000000 +0200
+++ b/tesseract/tools/test.cpp 2021-12-11 22:49:04.133669737 +0100
@@ -1,2 +1,2 @@
#include <tesseract/baseapi.h>
-#include <allheaders.h>
+#include <leptonica/allheaders.h>