Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jan 2014 15:54:19 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340319 - head/graphics/tesseract-data
Message-ID:  <201401191554.s0JFsJ5D080227@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun Jan 19 15:54:18 2014
New Revision: 340319
URL: http://svnweb.freebsd.org/changeset/ports/340319
QAT: https://qat.redports.org/buildarchive/r340319/

Log:
  Support stage
  Get rid of noportdata references

Modified:
  head/graphics/tesseract-data/Makefile

Modified: head/graphics/tesseract-data/Makefile
==============================================================================
--- head/graphics/tesseract-data/Makefile	Sun Jan 19 15:52:11 2014	(r340318)
+++ head/graphics/tesseract-data/Makefile	Sun Jan 19 15:54:18 2014	(r340319)
@@ -43,12 +43,9 @@ TESSERACT_LANGS_30${n}+= ${LANGS_30${n}:
 .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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401191554.s0JFsJ5D080227>