tesseract-ocr: update to 4.1.0
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
9c39f0efbb
commit
3c5e1e9eaf
|
@ -0,0 +1,12 @@
|
||||||
|
--- src/ccutil/ocrclass.h 2019-07-07 14:34:08.000000000 +0200
|
||||||
|
+++ src/ccutil/ocrclass.h 2019-07-08 10:47:15.347415888 +0200
|
||||||
|
@@ -31,6 +31,9 @@
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <winsock2.h> // for timeval
|
||||||
|
#endif
|
||||||
|
+#ifndef __GLIBC__
|
||||||
|
+#include <sys/time.h>
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
/**********************************************************************
|
||||||
|
* EANYCODE_CHAR
|
|
@ -1,22 +1,27 @@
|
||||||
# Template file for 'tesseract-ocr'
|
# Template file for 'tesseract-ocr'
|
||||||
pkgname=tesseract-ocr
|
pkgname=tesseract-ocr
|
||||||
version=4.0.0
|
version=4.1.0
|
||||||
revision=1
|
revision=1
|
||||||
|
_tessdataver=4.0.0
|
||||||
wrksrc="tesseract-${version}"
|
wrksrc="tesseract-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="LIBLEPT_HEADERSDIR=${XBPS_CROSS_BASE}/usr/include"
|
configure_args="LIBLEPT_HEADERSDIR=${XBPS_CROSS_BASE}/usr/include $(vopt_with openmp)"
|
||||||
hostmakedepends="automake libtool pkg-config leptonica libxslt asciidoc"
|
hostmakedepends="automake libtool pkg-config leptonica libxslt asciidoc"
|
||||||
makedepends="cairo-devel pango-devel leptonica-devel icu-devel"
|
makedepends="cairo-devel pango-devel leptonica-devel $(vopt_if openmp libgomp-devel) icu-devel"
|
||||||
short_desc="Tesseract Open Source OCR engine"
|
short_desc="Tesseract Open Source OCR engine"
|
||||||
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
homepage="https://github.com/tesseract-ocr/tesseract"
|
homepage="https://github.com/tesseract-ocr/tesseract"
|
||||||
distfiles="
|
distfiles="
|
||||||
https://github.com/tesseract-ocr/tesseract/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz
|
https://github.com/tesseract-ocr/tesseract/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz
|
||||||
https://github.com/tesseract-ocr/tessdata/archive/${version}.tar.gz>tessdata-${version}.tar.gz"
|
https://github.com/tesseract-ocr/tessdata/archive/${version}.tar.gz>tessdata-${_tessdataver}.tar.gz"
|
||||||
checksum="a1f5422ca49a32e5f35c54dee5112b11b99928fc9f4ee6695cdc6768d69f61dd
|
checksum="5c5ed5f1a76888dc57a83704f24ae02f8319849f5c4cf19d254296978a1a1961
|
||||||
38c637d3a1763f6c3d32e8f1d979f045668676ec5feb8ee1869ee77cedd31b08"
|
38c637d3a1763f6c3d32e8f1d979f045668676ec5feb8ee1869ee77cedd31b08"
|
||||||
|
|
||||||
|
build_options="openmp"
|
||||||
|
build_options_default="openmp"
|
||||||
|
desc_option_openmp="Enable Open MP (gomp)"
|
||||||
|
|
||||||
# Create a package for one specific language $1
|
# Create a package for one specific language $1
|
||||||
pkg_lang() {
|
pkg_lang() {
|
||||||
local f lang=$1
|
local f lang=$1
|
||||||
|
@ -30,8 +35,8 @@ pkg_lang() {
|
||||||
}
|
}
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
mv ${XBPS_BUILDDIR}/tessdata-${version}/* ${wrksrc}/tessdata
|
mv ${XBPS_BUILDDIR}/tessdata-${_tessdataver}/* ${wrksrc}/tessdata
|
||||||
rmdir ${XBPS_BUILDDIR}/tessdata-${version}
|
rmdir ${XBPS_BUILDDIR}/tessdata-${_tessdataver}
|
||||||
}
|
}
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
NOCONFIGURE=1 ./autogen.sh
|
NOCONFIGURE=1 ./autogen.sh
|
||||||
|
|
Loading…
Reference in New Issue