mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
switch to the 3.01 English language data, and include the orientation
and script detection (OSD) data in the default installation
This commit is contained in:
parent
e3d8bcddb5
commit
a52a438d75
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287827
2 changed files with 18 additions and 13 deletions
|
@ -7,10 +7,12 @@
|
||||||
|
|
||||||
PORTNAME= tesseract
|
PORTNAME= tesseract
|
||||||
PORTVERSION= 3.01
|
PORTVERSION= 3.01
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= graphics
|
CATEGORIES= graphics
|
||||||
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
||||||
.if !defined(NOPORTDATA) || make(makesum)
|
.if !defined(NOPORTDATA) || make(makesum)
|
||||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} eng.traineddata.gz
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
||||||
|
tesseract-ocr-3.01.eng.tar.gz tesseract-ocr-3.01.osd.tar.gz
|
||||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
@ -42,7 +44,7 @@ CXXFLAGS+= -fpermissive
|
||||||
|
|
||||||
.ifndef NOPORTDATA
|
.ifndef NOPORTDATA
|
||||||
DATADIR= ${PREFIX}/share/tessdata
|
DATADIR= ${PREFIX}/share/tessdata
|
||||||
PORTDATA= eng.traineddata
|
PORTDATA= eng.traineddata osd.traineddata
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.ifndef NOPORTDOCS
|
.ifndef NOPORTDOCS
|
||||||
|
@ -60,20 +62,21 @@ post-patch:
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.ifndef NOPORTDATA
|
.ifndef NOPORTDATA
|
||||||
@${INSTALL} -d ${DATADIR}/
|
@${INSTALL_DATA} -d ${DATADIR}
|
||||||
.for datafile in ${PORTDATA}
|
.for f in ${PORTDATA:R}
|
||||||
@${GUNZIP_CMD} -c ${_DISTDIR}/${datafile}.gz > ${DATADIR}/${datafile}
|
@${TAR} --strip-components 2 -C ${DATADIR} \
|
||||||
@${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DATADIR}/${datafile}
|
-xf ${_DISTDIR}/tesseract-ocr-3.01.${f}.tar.gz *.traineddata
|
||||||
@${CHMOD} ${SHAREMODE} ${DATADIR}/${datafile}
|
|
||||||
.endfor
|
.endfor
|
||||||
|
@cd ${DATADIR}; ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PORTDATA}; \
|
||||||
|
${CHMOD} ${SHAREMODE} ${PORTDATA}
|
||||||
.endif
|
.endif
|
||||||
.ifndef NOPORTDOCS
|
.ifndef NOPORTDOCS
|
||||||
@${INSTALL} -d ${DOCSDIR}/
|
@${INSTALL_DATA} -d ${DOCSDIR}
|
||||||
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
||||||
.endif
|
.endif
|
||||||
.ifndef NOPORTEXAMPLES
|
.ifndef NOPORTEXAMPLES
|
||||||
@${INSTALL} -d ${EXAMPLESDIR}/
|
@${INSTALL_DATA} -d ${EXAMPLESDIR}
|
||||||
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}/
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
|
||||||
.endif
|
.endif
|
||||||
@${ECHO_MSG} ""
|
@${ECHO_MSG} ""
|
||||||
@${CAT} ${PKGMESSAGE}
|
@${CAT} ${PKGMESSAGE}
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
SHA256 (tesseract/tesseract-3.01.tar.gz) = c24b0bd278291bc93ab242f93841c1d8743689c943bd804afbc5b898dc0a1c9b
|
SHA256 (tesseract/tesseract-3.01.tar.gz) = c24b0bd278291bc93ab242f93841c1d8743689c943bd804afbc5b898dc0a1c9b
|
||||||
SIZE (tesseract/tesseract-3.01.tar.gz) = 3287629
|
SIZE (tesseract/tesseract-3.01.tar.gz) = 3287629
|
||||||
SHA256 (tesseract/eng.traineddata.gz) = 3ad150c58d59aa7f20e12bed0e15a33c988f5803d6cba8ef366aeec0c18d4e9d
|
SHA256 (tesseract/tesseract-ocr-3.01.eng.tar.gz) = 89dceb9910dcfc21296645b289834269f9dd5ebeb819fe6b8d2f7fcbafd8c8b1
|
||||||
SIZE (tesseract/eng.traineddata.gz) = 742852
|
SIZE (tesseract/tesseract-ocr-3.01.eng.tar.gz) = 4306720
|
||||||
|
SHA256 (tesseract/tesseract-ocr-3.01.osd.tar.gz) = 7861210fd0970ad30503e8c70d7841de6716bd293d8512fd8787a1a07219b7aa
|
||||||
|
SIZE (tesseract/tesseract-ocr-3.01.osd.tar.gz) = 4320544
|
||||||
|
|
Loading…
Add table
Reference in a new issue