mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
- Fix file permission change on xpdfrc
- Use DATADIR - Fix removing of shared dir PR: ports/75176 Submitted by: Dryice Liu <dryice@liu.com.cn> (maintainer)
This commit is contained in:
parent
c13fd51d31
commit
5eb5edcb22
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124392
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= xpdf
|
||||
PORTVERSION= 20040727
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= chinese graphics print
|
||||
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
|
||||
${MASTER_SITE_TEX_CTAN}
|
||||
|
@ -5,6 +5,5 @@ 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/rm -f ${XPDFRC}
|
||||
/bin/cat ${XPDFRC}.nochinese-traditional ${ADDRESOURCE} > ${XPDFRC}
|
||||
/bin/rm -f ${XPDFRC}.nochinese-traditional
|
||||
|
@ -1,15 +1,16 @@
|
||||
share/xpdf/chinese-simplified/Adobe-GB1.cidToUnicode
|
||||
share/xpdf/chinese-simplified/EUC-CN.unicodeMap
|
||||
share/xpdf/chinese-simplified/GBK.unicodeMap
|
||||
share/xpdf/chinese-simplified/ISO-2022-CN.unicodeMap
|
||||
share/xpdf/chinese-simplified/README
|
||||
share/xpdf/chinese-traditional/Adobe-CNS1.cidToUnicode
|
||||
share/xpdf/chinese-traditional/Big5.unicodeMap
|
||||
share/xpdf/chinese-traditional/Big5ascii.unicodeMap
|
||||
share/xpdf/chinese-traditional/README
|
||||
@unexec mv -f %D/etc/xpdfrc %D/etc/xpdfrc.chinese-traditional
|
||||
@unexec grep -F -v --file=%D/share/xpdf/chinese-traditional/dot.xpdfrc %D/etc/xpdfrc.chinese-traditional > %D/etc/xpdfrc
|
||||
share/xpdf/chinese-traditional/dot.xpdfrc
|
||||
%%DATADIR%%/chinese-simplified/Adobe-GB1.cidToUnicode
|
||||
%%DATADIR%%/chinese-simplified/EUC-CN.unicodeMap
|
||||
%%DATADIR%%/chinese-simplified/GBK.unicodeMap
|
||||
%%DATADIR%%/chinese-simplified/ISO-2022-CN.unicodeMap
|
||||
%%DATADIR%%/chinese-simplified/README
|
||||
%%DATADIR%%/chinese-traditional/Adobe-CNS1.cidToUnicode
|
||||
%%DATADIR%%/chinese-traditional/Big5.unicodeMap
|
||||
%%DATADIR%%/chinese-traditional/Big5ascii.unicodeMap
|
||||
%%DATADIR%%/chinese-traditional/README
|
||||
@unexec cp %D/etc/xpdfrc %D/etc/xpdfrc.chinese-traditional
|
||||
@unexec grep -F -v --file=%D/%%DATADIR%%/chinese-traditional/dot.xpdfrc %D/etc/xpdfrc.chinese-traditional > %D/etc/xpdfrc
|
||||
%%DATADIR%%/chinese-traditional/dot.xpdfrc
|
||||
@unexec rm -f %D/etc/xpdfrc.chinese-traditional
|
||||
@dirrm share/xpdf/chinese-simplified
|
||||
@dirrm share/xpdf/chinese-traditional
|
||||
@dirrm %%DATADIR%%/chinese-simplified
|
||||
@dirrm %%DATADIR%%/chinese-traditional
|
||||
@unexec rmdir %D/%%DATADIR%% 2> /dev/null || true
|
||||
|
Loading…
Reference in New Issue
Block a user