aboutsummaryrefslogtreecommitdiff
path: root/japanese/xpdf
diff options
context:
space:
mode:
authorYoshio MITA <mita@FreeBSD.org>2002-05-03 09:48:25 +0000
committerYoshio MITA <mita@FreeBSD.org>2002-05-03 09:48:25 +0000
commitc522dcb2eec4186469b6675236dc19a0813481d3 (patch)
tree7436c245df5f1a714a517d3184c4466b4b1e64cd /japanese/xpdf
parent3a345e0eb949f45ac58b39baf3b24fb6ef9cd315 (diff)
downloadports-c522dcb2eec4186469b6675236dc19a0813481d3.tar.gz
ports-c522dcb2eec4186469b6675236dc19a0813481d3.zip
The port adds configuration files necessary to read japanese PDFs by xpdf.
Uses print/adobe-cmaps port. Submitted by: mita [ports-jp 12657]
Notes
Notes: svn path=/head/; revision=58490
Diffstat (limited to 'japanese/xpdf')
-rw-r--r--japanese/xpdf/Makefile33
-rw-r--r--japanese/xpdf/distinfo1
-rw-r--r--japanese/xpdf/pkg-comment1
-rw-r--r--japanese/xpdf/pkg-descr1
-rw-r--r--japanese/xpdf/pkg-install10
-rw-r--r--japanese/xpdf/pkg-plist11
6 files changed, 57 insertions, 0 deletions
diff --git a/japanese/xpdf/Makefile b/japanese/xpdf/Makefile
new file mode 100644
index 000000000000..e4451b2121d1
--- /dev/null
+++ b/japanese/xpdf/Makefile
@@ -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>
diff --git a/japanese/xpdf/distinfo b/japanese/xpdf/distinfo
new file mode 100644
index 000000000000..10fbdd42c37c
--- /dev/null
+++ b/japanese/xpdf/distinfo
@@ -0,0 +1 @@
+MD5 (xpdf-japanese.tar.gz) = 24825e5ee2bed4ce4e116f8bba9d02c8
diff --git a/japanese/xpdf/pkg-comment b/japanese/xpdf/pkg-comment
new file mode 100644
index 000000000000..835fed1ebfc2
--- /dev/null
+++ b/japanese/xpdf/pkg-comment
@@ -0,0 +1 @@
+Japanese xpdf font support
diff --git a/japanese/xpdf/pkg-descr b/japanese/xpdf/pkg-descr
new file mode 100644
index 000000000000..3eb5554abc7c
--- /dev/null
+++ b/japanese/xpdf/pkg-descr
@@ -0,0 +1 @@
+This ports enables xpdf to read japanese pdf.
diff --git a/japanese/xpdf/pkg-install b/japanese/xpdf/pkg-install
new file mode 100644
index 000000000000..31881f15f0c2
--- /dev/null
+++ b/japanese/xpdf/pkg-install
@@ -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
diff --git a/japanese/xpdf/pkg-plist b/japanese/xpdf/pkg-plist
new file mode 100644
index 000000000000..3a8c18949648
--- /dev/null
+++ b/japanese/xpdf/pkg-plist
@@ -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