aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/tesseract-data
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-01-19 23:54:18 +0800
committerbapt <bapt@FreeBSD.org>2014-01-19 23:54:18 +0800
commit2f9c7eae2aab8e199e4f42b7692d34d9699b085d (patch)
tree7dda48349bbd14431f54ae9270d9312203a61e01 /graphics/tesseract-data
parent2b5784d6e1625596873813156d1b4826acc890af (diff)
downloadfreebsd-ports-gnome-2f9c7eae2aab8e199e4f42b7692d34d9699b085d.tar.gz
freebsd-ports-gnome-2f9c7eae2aab8e199e4f42b7692d34d9699b085d.tar.zst
freebsd-ports-gnome-2f9c7eae2aab8e199e4f42b7692d34d9699b085d.zip
Support stage
Get rid of noportdata references
Diffstat (limited to 'graphics/tesseract-data')
-rw-r--r--graphics/tesseract-data/Makefile14
1 files changed, 4 insertions, 10 deletions
diff --git a/graphics/tesseract-data/Makefile b/graphics/tesseract-data/Makefile
index e903c5d19c65..8d1646f44d8d 100644
--- a/graphics/tesseract-data/Makefile
+++ b/graphics/tesseract-data/Makefile
@@ -43,12 +43,9 @@ TESSERACT_LANGS_30${n}+= ${LANGS_30${n}:M${l}}
.endfor
.endfor
-.ifndef NOPORTDATA
DATADIR= ${PREFIX}/share/tessdata
PORTDATA= ${TESSERACT_LANGS:O:u:S|$|.traineddata|}
-.endif
-NO_STAGE= yes
pre-fetch:
@${ECHO_MSG} ""
@${ECHO_MSG} "The choice of language data to be installed may"
@@ -56,19 +53,16 @@ pre-fetch:
@${ECHO_MSG} ""
do-install:
-.ifndef NOPORTDATA
- @${MKDIR} ${DATADIR}
+ @${MKDIR} ${STAGEDIR}${DATADIR}
.for l in ${TESSERACT_LANGS_300:O:u:S|$|.traineddata|}
- @${GUNZIP_CMD} -c ${_DISTDIR}/${l}.gz > ${DATADIR}/${l}
+ @${GUNZIP_CMD} -c ${_DISTDIR}/${l}.gz > ${STAGEDIR}${DATADIR}/${l}
.endfor
.for n in 1 2
.for l in ${TESSERACT_LANGS_30${n}:O:u}
- @${TAR} --strip-components 2 -C ${DATADIR} \
+ @${TAR} --strip-components 2 -C ${STAGEDIR}${DATADIR} \
-xf ${_DISTDIR}/tesseract-ocr-3.0${n}.${l}.tar.gz *.traineddata
.endfor
.endfor
- @cd ${DATADIR} ; ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PORTDATA} ; \
- ${CHMOD} ${BINMODE} ${PORTDATA}
-.endif
+ @cd ${STAGEDIR}${DATADIR} ; ${CHMOD} ${BINMODE} ${PORTDATA}
.include <bsd.port.mk>