aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorClive Lin <clive@FreeBSD.org>2002-08-03 19:32:55 +0000
committerClive Lin <clive@FreeBSD.org>2002-08-03 19:32:55 +0000
commit96ec4077875468323fe0a0297177eb2686d67e10 (patch)
tree6e8f4a67c331b10ba81359cf02c036c24e04b06a /chinese
parentf2384ad0092621b10855e2f1bc3204d41471acb5 (diff)
downloadports-96ec4077875468323fe0a0297177eb2686d67e10.tar.gz
ports-96ec4077875468323fe0a0297177eb2686d67e10.zip
Notes
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/xpdf/Makefile31
-rw-r--r--chinese/xpdf/distinfo1
-rw-r--r--chinese/xpdf/files/dot.xpdfrc10
-rw-r--r--chinese/xpdf/pkg-comment1
-rw-r--r--chinese/xpdf/pkg-descr1
-rw-r--r--chinese/xpdf/pkg-install10
-rw-r--r--chinese/xpdf/pkg-plist10
8 files changed, 65 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index d2710ecb5e26..b41354eac1ac 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -99,6 +99,7 @@
SUBDIR += xemacs
SUBDIR += xemacs21
SUBDIR += xmms
+ SUBDIR += xpdf
SUBDIR += zhcon
.include <bsd.port.subdir.mk>
diff --git a/chinese/xpdf/Makefile b/chinese/xpdf/Makefile
new file mode 100644
index 000000000000..d76d3f4afe8d
--- /dev/null
+++ b/chinese/xpdf/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: zh-xpdf
+# Date created: 21 Avr 2002
+# Whom: chshen <statue@freebsd.sinica.edu.tw>
+#
+# $FreeBSD$
+#
+
+PORTNAME= xpdf
+PORTVERSION= 1.01
+CATEGORIES= chinese
+MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/
+DISTNAME= xpdf-chinese-traditional
+
+MAINTAINER= statue@freebsd.sinica.edu.tw
+
+RUN_DEPENDS= xpdf:${PORTSDIR}/graphics/xpdf\
+ ${LOCALBASE}/share/ghostscript/Resource/CMap/Adobe-CNS1-0:${PORTSDIR}/print/adobe-cmaps
+
+NO_BUILD= yes
+USE_X_PREFIX= yes
+INSTALL_FILES= Adobe-CNS1.cidToUnicode Big5.unicodeMap \
+ Big5ascii.unicodeMap README
+do-install:
+ ${MKDIR} ${PREFIX}/share/xpdf/chinese-traditional
+.for i in ${INSTALL_FILES}
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/xpdf/chinese-traditional
+.endfor
+ ${INSTALL_DATA} ${FILESDIR}/dot.xpdfrc ${PREFIX}/share/xpdf/chinese-traditional
+ ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>
diff --git a/chinese/xpdf/distinfo b/chinese/xpdf/distinfo
new file mode 100644
index 000000000000..576084f02ce7
--- /dev/null
+++ b/chinese/xpdf/distinfo
@@ -0,0 +1 @@
+MD5 (xpdf-chinese-traditional.tar.gz) = 5be730b859f8b01de569eb1bad188426
diff --git a/chinese/xpdf/files/dot.xpdfrc b/chinese/xpdf/files/dot.xpdfrc
new file mode 100644
index 000000000000..309ac3a48a04
--- /dev/null
+++ b/chinese/xpdf/files/dot.xpdfrc
@@ -0,0 +1,10 @@
+#----- begin Chinese Traditional support package (2002-apr-14)
+cidToUnicode Adobe-CNS1 /usr/X11R6/share/xpdf/chinese-traditional/Adobe-CNS1.cidToUnicode
+unicodeMap Big5 /usr/X11R6/share/xpdf/chinese-traditional/Big5.unicodeMap
+unicodeMap Big5ascii /usr/X11R6/share/xpdf/chinese-traditional/Big5ascii.unicodeMap
+cMapDir Adobe-CNS1 /usr/local/share/ghostscript/Resource/CMap
+toUnicodeDir /usr/local/share/ghostscript/Resource/CMap
+displayCIDFontX Adobe-CNS1 "-*-fixed-medium-r-normal-*-%s-*-*-*-*-*-big5-0" Big5
+# If you have the Arhpic fonts, you may want to use this instead:
+# displayCIDFontX Adobe-CNS1 "-arphic-ar pl kaitim big5-medium-r-normal--%s-*-*-*-c-*-iso10646-1" UCS-2
+#----- end Chinese Traditional support package
diff --git a/chinese/xpdf/pkg-comment b/chinese/xpdf/pkg-comment
new file mode 100644
index 000000000000..b581e4e4785c
--- /dev/null
+++ b/chinese/xpdf/pkg-comment
@@ -0,0 +1 @@
+Chinese-traditional xpdf font support
diff --git a/chinese/xpdf/pkg-descr b/chinese/xpdf/pkg-descr
new file mode 100644
index 000000000000..94074c761543
--- /dev/null
+++ b/chinese/xpdf/pkg-descr
@@ -0,0 +1 @@
+This ports enables xpdf to read chinese-traditional pdf.
diff --git a/chinese/xpdf/pkg-install b/chinese/xpdf/pkg-install
new file mode 100644
index 000000000000..635f01fd9a35
--- /dev/null
+++ b/chinese/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/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
diff --git a/chinese/xpdf/pkg-plist b/chinese/xpdf/pkg-plist
new file mode 100644
index 000000000000..f67f91c0894f
--- /dev/null
+++ b/chinese/xpdf/pkg-plist
@@ -0,0 +1,10 @@
+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
+@unexec rm -f %D/etc/xpdfrc.chinese-traditional
+@dirrm share/xpdf/chinese-traditional
+@dirrm share/xpdf