diff options
author | clive <clive@FreeBSD.org> | 2002-08-04 03:32:55 +0800 |
---|---|---|
committer | clive <clive@FreeBSD.org> | 2002-08-04 03:32:55 +0800 |
commit | 51269471189c636844a50172845c8a2043d6e9bb (patch) | |
tree | 0a89beeaf65f67acec3d7404a445c5b40b99b44a /chinese/xpdf | |
parent | e774a1ff84e304017cf3a0ed8c348ad9a5c902b5 (diff) | |
download | freebsd-ports-gnome-51269471189c636844a50172845c8a2043d6e9bb.tar.gz freebsd-ports-gnome-51269471189c636844a50172845c8a2043d6e9bb.tar.zst freebsd-ports-gnome-51269471189c636844a50172845c8a2043d6e9bb.zip |
New port: zh-xpdf. This port enables xpdf to read chinese-traditional pdf.
PR: ports/39361
Submitted by: Statue <statue@freebsd.sinica.edu.tw>
Diffstat (limited to 'chinese/xpdf')
-rw-r--r-- | chinese/xpdf/Makefile | 31 | ||||
-rw-r--r-- | chinese/xpdf/distinfo | 1 | ||||
-rw-r--r-- | chinese/xpdf/files/dot.xpdfrc | 10 | ||||
-rw-r--r-- | chinese/xpdf/pkg-comment | 1 | ||||
-rw-r--r-- | chinese/xpdf/pkg-descr | 1 | ||||
-rw-r--r-- | chinese/xpdf/pkg-install | 10 | ||||
-rw-r--r-- | chinese/xpdf/pkg-plist | 10 |
7 files changed, 64 insertions, 0 deletions
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 |