- update chinese/arphicttf path in RUN_DEPENDS

- some minor cosmetic fixes

Noticed by:	kris
This commit is contained in:
Yen-Ming Lee 2005-02-20 04:22:48 +00:00
parent 3e878728b6
commit 19ad364ff3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129329
2 changed files with 10 additions and 10 deletions

View file

@ -21,7 +21,7 @@ COMMENT= Chinese xpdf font support
RUN_DEPENDS= xpdf:${PORTSDIR}/graphics/xpdf\
${LOCALBASE}/share/ghostscript/Resource/CMap/Adobe-CNS1-0:${PORTSDIR}/print/adobe-cmaps \
${LOCALBASE}/share/fonts/TrueType/arphic/logo.gif:${PORTSDIR}/chinese/arphicttf
${LOCALBASE}/share/arphicttf/logo.gif:${PORTSDIR}/chinese/arphicttf
NO_BUILD= yes
USE_X_PREFIX= yes
@ -31,15 +31,15 @@ SIMP_FILES= Adobe-GB1.cidToUnicode EUC-CN.unicodeMap GBK.unicodeMap \
TRAD_FILES= Adobe-CNS1.cidToUnicode Big5.unicodeMap \
Big5ascii.unicodeMap README
do-install:
${MKDIR} ${PREFIX}/share/xpdf/chinese-simplified
@${MKDIR} ${DATADIR}/chinese-simplified
.for i in ${SIMP_FILES}
${INSTALL_DATA} ${WRKSRC}/xpdf-chinese-simplified/${i} ${PREFIX}/share/xpdf/chinese-simplified
${INSTALL_DATA} ${WRKSRC}/xpdf-chinese-simplified/${i} ${DATADIR}/chinese-simplified
.endfor
${MKDIR} ${PREFIX}/share/xpdf/chinese-traditional
@${MKDIR} ${DATADIR}/chinese-traditional
.for i in ${TRAD_FILES}
${INSTALL_DATA} ${WRKSRC}/xpdf-chinese-traditional/${i} ${PREFIX}/share/xpdf/chinese-traditional
${INSTALL_DATA} ${WRKSRC}/xpdf-chinese-traditional/${i} ${DATADIR}/chinese-traditional
.endfor
${INSTALL_DATA} ${FILESDIR}/dot.xpdfrc ${PREFIX}/share/xpdf/chinese-traditional
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
${INSTALL_DATA} ${FILESDIR}/dot.xpdfrc ${DATADIR}/chinese-traditional
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>

View file

@ -4,6 +4,6 @@ if [ "$2" = "PRE-INSTALL" ]; then
fi
XPDFRC=${PKG_PREFIX}/etc/xpdfrc
ADDRESOURCE=${PKG_PREFIX}/share/xpdf/chinese-traditional/dot.xpdfrc
/usr/bin/grep -F -v --file=${ADDRESOURCE} ${XPDFRC} > ${XPDFRC}.nochinese-traditional
/bin/cat ${XPDFRC}.nochinese-traditional ${ADDRESOURCE} > ${XPDFRC}
/bin/rm -f ${XPDFRC}.nochinese-traditional
grep -F -v --file=${ADDRESOURCE} ${XPDFRC} > ${XPDFRC}.nochinese-traditional
cat ${XPDFRC}.nochinese-traditional ${ADDRESOURCE} > ${XPDFRC}
rm -f ${XPDFRC}.nochinese-traditional