The port adds configuration files necessary to read japanese PDFs by xpdf.
Uses print/adobe-cmaps port. Submitted by: mita [ports-jp 12657]
This commit is contained in:
parent
3a345e0eb9
commit
c522dcb2ee
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=58490
33
japanese/xpdf/Makefile
Normal file
33
japanese/xpdf/Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
# New ports collection makefile for: ja-xpdf
|
||||
# Date created: 21 Avr 2002
|
||||
# Whom: MITA Yoshio <mita@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= xpdf
|
||||
PORTVERSION= 1.00
|
||||
CATEGORIES= japanese
|
||||
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/
|
||||
DISTNAME= xpdf-japanese
|
||||
|
||||
MAINTAINER= mita@FreeBSD.org
|
||||
|
||||
RUN_DEPENDS= xpdf:${PORTSDIR}/graphics/xpdf\
|
||||
${LOCALBASE}/share/ghostscript/Resource/CMap/Adobe-Japan1-0:${PORTSDIR}/print/adobe-cmaps\
|
||||
${PKG_DBDIR}/ja-alias-fonts-1.0:${PORTSDIR}/japanese/alias-fonts
|
||||
|
||||
NO_BUILD= yes
|
||||
USE_X_PREFIX= yes
|
||||
INSTALL_FILES= Adobe-Japan1.cidToUnicode ISO-2022-JP.unicodeMap \
|
||||
EUC-JP.unicodeMap Shift-JIS.unicodeMap \
|
||||
README
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/share/xpdf/japanese
|
||||
.for i in ${INSTALL_FILES}
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/xpdf/japanese
|
||||
.endfor
|
||||
${INSTALL_DATA} ${FILESDIR}/dot.xpdfrc ${PREFIX}/share/xpdf/japanese
|
||||
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
1
japanese/xpdf/distinfo
Normal file
1
japanese/xpdf/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (xpdf-japanese.tar.gz) = 24825e5ee2bed4ce4e116f8bba9d02c8
|
1
japanese/xpdf/pkg-comment
Normal file
1
japanese/xpdf/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Japanese xpdf font support
|
1
japanese/xpdf/pkg-descr
Normal file
1
japanese/xpdf/pkg-descr
Normal file
@ -0,0 +1 @@
|
||||
This ports enables xpdf to read japanese pdf.
|
10
japanese/xpdf/pkg-install
Normal file
10
japanese/xpdf/pkg-install
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
if [ "$2" = "PRE-INSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
XPDFRC=${PKG_PREFIX}/etc/xpdfrc
|
||||
ADDRESOURCE=${PKG_PREFIX}/share/xpdf/japanese/dot.xpdfrc
|
||||
/usr/bin/grep -F -v --file=${ADDRESOURCE} ${XPDFRC} > ${XPDFRC}.nojapan
|
||||
/bin/rm -f ${XPDFRC}
|
||||
/bin/cat ${XPDFRC}.nojapan ${ADDRESOURCE} > ${XPDFRC}
|
||||
/bin/rm -f ${XPDFRC}.nojapan
|
11
japanese/xpdf/pkg-plist
Normal file
11
japanese/xpdf/pkg-plist
Normal file
@ -0,0 +1,11 @@
|
||||
share/xpdf/japanese/Adobe-Japan1.cidToUnicode
|
||||
share/xpdf/japanese/EUC-JP.unicodeMap
|
||||
share/xpdf/japanese/ISO-2022-JP.unicodeMap
|
||||
share/xpdf/japanese/README
|
||||
share/xpdf/japanese/Shift-JIS.unicodeMap
|
||||
@unexec mv -f %D/etc/xpdfrc %D/etc/xpdfrc.japan
|
||||
@unexec grep -F -v --file=%D/share/xpdf/japanese/dot.xpdfrc %D/etc/xpdfrc.japan > %D/etc/xpdfrc
|
||||
share/xpdf/japanese/dot.xpdfrc
|
||||
@unexec rm -f %D/etc/xpdfrc.japan
|
||||
@dirrm share/xpdf/japanese
|
||||
@dirrm share/xpdf
|
Loading…
Reference in New Issue
Block a user