summaryrefslogtreecommitdiff
path: root/print/xpdf-chinese-simplified
diff options
context:
space:
mode:
authorwiz <wiz>2002-08-06 14:04:34 +0000
committerwiz <wiz>2002-08-06 14:04:34 +0000
commit3a1b215e7d71667f721cdf42b772a747894affc3 (patch)
tree504ac74e084d0125548ebb0a87a57e8c67594e6d /print/xpdf-chinese-simplified
parent48a9410d3ff85733767c0324aac772fd283d0264 (diff)
downloadpkgsrc-3a1b215e7d71667f721cdf42b772a747894affc3.tar.gz
Initial import of language support packages for xpdf.
Most of them provided by Rui-Xiang Guo in pkg/16258-16264. I updated them to the current versions and did some cleanup (e.g., adding DIST_SUBDIR).
Diffstat (limited to 'print/xpdf-chinese-simplified')
-rw-r--r--print/xpdf-chinese-simplified/DEINSTALL25
-rw-r--r--print/xpdf-chinese-simplified/DESCR12
-rw-r--r--print/xpdf-chinese-simplified/Makefile40
-rw-r--r--print/xpdf-chinese-simplified/PLIST38
-rw-r--r--print/xpdf-chinese-simplified/distinfo4
5 files changed, 119 insertions, 0 deletions
diff --git a/print/xpdf-chinese-simplified/DEINSTALL b/print/xpdf-chinese-simplified/DEINSTALL
new file mode 100644
index 00000000000..fdc8132b009
--- /dev/null
+++ b/print/xpdf-chinese-simplified/DEINSTALL
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2002/08/06 14:04:34 wiz Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+XPDFRC=${PKG_PREFIX}/etc/xpdfrc
+
+case ${STAGE} in
+DEINSTALL)
+ ;;
+
+POST-DEINSTALL)
+ sed -e "/implified/d" ${XPDFRC} > ${XPDFRC}.tmp
+ sed -e "/gb2312/d" ${XPDFRC}.tmp > ${XPDFRC}
+ rm -f ${XPDFRC}.tmp
+ ;;
+
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/print/xpdf-chinese-simplified/DESCR b/print/xpdf-chinese-simplified/DESCR
new file mode 100644
index 00000000000..ab50785e044
--- /dev/null
+++ b/print/xpdf-chinese-simplified/DESCR
@@ -0,0 +1,12 @@
+If this package includes CMap files, they contain their own copyright
+notices and distribution conditions. All other files in the package
+are Copyright 2002 Derek B. Noonburg, and are licensed under the GNU
+General Public License (GPL), version 2.
+
+This package provides support files needed to use the Xpdf tools with
+Chinese (Simplified) PDF files.
+
+Contents:
+- Adobe-GB1 character collection support
+- ISO-2022-CN encoding
+- EUC-CN encoding
diff --git a/print/xpdf-chinese-simplified/Makefile b/print/xpdf-chinese-simplified/Makefile
new file mode 100644
index 00000000000..392b86c01d0
--- /dev/null
+++ b/print/xpdf-chinese-simplified/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/08/06 14:04:34 wiz Exp $
+#
+
+DISTNAME= xpdf-chinese-simplified
+PKGNAME= ${DISTNAME}-20020521
+CATEGORIES= print
+MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/
+
+MAINTAINER= rxg@netbsd.org
+HOMEPAGE= http://www.foolabs.com/xpdf/
+COMMENT= xpdf support files for Chinese (Simplified)
+
+DEPENDS+= xpdf>=1.00:../../print/xpdf
+
+USE_X11BASE= yes
+
+DIST_SUBDIR= ${PKGNAME}
+WRKSRC= ${WRKDIR}/${DISTNAME}
+NO_CONFIGURE= yes
+NO_BUILD= yes
+
+post-patch:
+ ${MV} ${WRKSRC}/add-to-xpdfrc ${WRKSRC}/add-to-xpdfrc.orig
+ ${SED} -e 's:/usr/local:'${X11PREFIX}':g' < ${WRKSRC}/add-to-xpdfrc.orig > ${WRKSRC}/add-to-xpdfrc
+
+do-install:
+ ${INSTALL_DATA_DIR} ${X11PREFIX}/share/xpdf/chinese-simplified
+ ${INSTALL_DATA} ${WRKSRC}/Adobe-GB1.cidToUnicode \
+ ${X11PREFIX}/share/xpdf/chinese-simplified
+ ${INSTALL_DATA} ${WRKSRC}/EUC-CN.unicodeMap \
+ ${X11PREFIX}/share/xpdf/chinese-simplified
+ ${INSTALL_DATA} ${WRKSRC}/ISO-2022-CN.unicodeMap \
+ ${X11PREFIX}/share/xpdf/chinese-simplified
+ ${INSTALL_DATA_DIR} ${X11PREFIX}/share/xpdf/chinese-simplified/CMap
+ ${INSTALL_DATA} ${WRKSRC}/CMap/* ${X11PREFIX}/share/xpdf/chinese-simplified/CMap
+
+post-install:
+ ${CAT} ${WRKSRC}/add-to-xpdfrc >> ${X11PREFIX}/etc/xpdfrc
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/xpdf-chinese-simplified/PLIST b/print/xpdf-chinese-simplified/PLIST
new file mode 100644
index 00000000000..5c14895df6b
--- /dev/null
+++ b/print/xpdf-chinese-simplified/PLIST
@@ -0,0 +1,38 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/08/06 14:04:34 wiz Exp $
+share/xpdf/chinese-simplified/Adobe-GB1.cidToUnicode
+share/xpdf/chinese-simplified/CMap/Adobe-GB1-0
+share/xpdf/chinese-simplified/CMap/Adobe-GB1-1
+share/xpdf/chinese-simplified/CMap/Adobe-GB1-2
+share/xpdf/chinese-simplified/CMap/Adobe-GB1-3
+share/xpdf/chinese-simplified/CMap/Adobe-GB1-4
+share/xpdf/chinese-simplified/CMap/Adobe-GB1-UCS2
+share/xpdf/chinese-simplified/CMap/GB-EUC-H
+share/xpdf/chinese-simplified/CMap/GB-EUC-V
+share/xpdf/chinese-simplified/CMap/GB-H
+share/xpdf/chinese-simplified/CMap/GB-V
+share/xpdf/chinese-simplified/CMap/GBK-EUC-H
+share/xpdf/chinese-simplified/CMap/GBK-EUC-UCS2
+share/xpdf/chinese-simplified/CMap/GBK-EUC-V
+share/xpdf/chinese-simplified/CMap/GBK2K-H
+share/xpdf/chinese-simplified/CMap/GBK2K-V
+share/xpdf/chinese-simplified/CMap/GBKp-EUC-H
+share/xpdf/chinese-simplified/CMap/GBKp-EUC-V
+share/xpdf/chinese-simplified/CMap/GBT-EUC-H
+share/xpdf/chinese-simplified/CMap/GBT-EUC-V
+share/xpdf/chinese-simplified/CMap/GBT-H
+share/xpdf/chinese-simplified/CMap/GBT-V
+share/xpdf/chinese-simplified/CMap/GBTpc-EUC-H
+share/xpdf/chinese-simplified/CMap/GBTpc-EUC-V
+share/xpdf/chinese-simplified/CMap/GBpc-EUC-H
+share/xpdf/chinese-simplified/CMap/GBpc-EUC-UCS2
+share/xpdf/chinese-simplified/CMap/GBpc-EUC-UCS2C
+share/xpdf/chinese-simplified/CMap/GBpc-EUC-V
+share/xpdf/chinese-simplified/CMap/UniGB-UCS2-H
+share/xpdf/chinese-simplified/CMap/UniGB-UCS2-V
+share/xpdf/chinese-simplified/CMap/UniGB-UTF8-H
+share/xpdf/chinese-simplified/CMap/UniGB-UTF8-V
+share/xpdf/chinese-simplified/EUC-CN.unicodeMap
+share/xpdf/chinese-simplified/ISO-2022-CN.unicodeMap
+@dirrm share/xpdf/chinese-simplified/CMap
+@dirrm share/xpdf/chinese-simplified
+@unexec ${RMDIR} %D/share/xpdf 2> /dev/null || true
diff --git a/print/xpdf-chinese-simplified/distinfo b/print/xpdf-chinese-simplified/distinfo
new file mode 100644
index 00000000000..2db9415a2ab
--- /dev/null
+++ b/print/xpdf-chinese-simplified/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/08/06 14:04:34 wiz Exp $
+
+SHA1 (xpdf-chinese-simplified-20020521/xpdf-chinese-simplified.tar.gz) = bc0b28010ba539b00a0cce724f827cea25d28971
+Size (xpdf-chinese-simplified-20020521/xpdf-chinese-simplified.tar.gz) = 756127 bytes