mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -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
|
||||
PORTVERSION= 3.01
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
||||
.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}
|
||||
.endif
|
||||
|
||||
|
@ -42,7 +44,7 @@ CXXFLAGS+= -fpermissive
|
|||
|
||||
.ifndef NOPORTDATA
|
||||
DATADIR= ${PREFIX}/share/tessdata
|
||||
PORTDATA= eng.traineddata
|
||||
PORTDATA= eng.traineddata osd.traineddata
|
||||
.endif
|
||||
|
||||
.ifndef NOPORTDOCS
|
||||
|
@ -60,20 +62,21 @@ post-patch:
|
|||
|
||||
post-install:
|
||||
.ifndef NOPORTDATA
|
||||
@${INSTALL} -d ${DATADIR}/
|
||||
.for datafile in ${PORTDATA}
|
||||
@${GUNZIP_CMD} -c ${_DISTDIR}/${datafile}.gz > ${DATADIR}/${datafile}
|
||||
@${CHOWN} ${SHAREOWN}:${SHAREGRP} ${DATADIR}/${datafile}
|
||||
@${CHMOD} ${SHAREMODE} ${DATADIR}/${datafile}
|
||||
@${INSTALL_DATA} -d ${DATADIR}
|
||||
.for f in ${PORTDATA:R}
|
||||
@${TAR} --strip-components 2 -C ${DATADIR} \
|
||||
-xf ${_DISTDIR}/tesseract-ocr-3.01.${f}.tar.gz *.traineddata
|
||||
.endfor
|
||||
@cd ${DATADIR}; ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PORTDATA}; \
|
||||
${CHMOD} ${SHAREMODE} ${PORTDATA}
|
||||
.endif
|
||||
.ifndef NOPORTDOCS
|
||||
@${INSTALL} -d ${DOCSDIR}/
|
||||
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
|
||||
@${INSTALL_DATA} -d ${DOCSDIR}
|
||||
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
||||
.endif
|
||||
.ifndef NOPORTEXAMPLES
|
||||
@${INSTALL} -d ${EXAMPLESDIR}/
|
||||
@cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}/
|
||||
@${INSTALL_DATA} -d ${EXAMPLESDIR}
|
||||
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
|
||||
.endif
|
||||
@${ECHO_MSG} ""
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
SHA256 (tesseract/tesseract-3.01.tar.gz) = c24b0bd278291bc93ab242f93841c1d8743689c943bd804afbc5b898dc0a1c9b
|
||||
SIZE (tesseract/tesseract-3.01.tar.gz) = 3287629
|
||||
SHA256 (tesseract/eng.traineddata.gz) = 3ad150c58d59aa7f20e12bed0e15a33c988f5803d6cba8ef366aeec0c18d4e9d
|
||||
SIZE (tesseract/eng.traineddata.gz) = 742852
|
||||
SHA256 (tesseract/tesseract-ocr-3.01.eng.tar.gz) = 89dceb9910dcfc21296645b289834269f9dd5ebeb819fe6b8d2f7fcbafd8c8b1
|
||||
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