diff options
author | Clive Lin <clive@FreeBSD.org> | 2002-08-04 07:56:00 +0000 |
---|---|---|
committer | Clive Lin <clive@FreeBSD.org> | 2002-08-04 07:56:00 +0000 |
commit | db85b205d5b3a18bdde651822746a7b8190f4c2f (patch) | |
tree | 300cb08c21c62fe9e347b3396bb559b29b471635 /chinese/xpdf | |
parent | Allow to install on 5-CURRENT (diff) |
Add simplified Chinese support.
PR: ports/41295
Submitted by: Statue <statue@freebsd.sinica.edu.tw>
Notes
Notes:
svn path=/head/; revision=63958
Diffstat (limited to 'chinese/xpdf')
-rw-r--r-- | chinese/xpdf/Makefile | 16 | ||||
-rw-r--r-- | chinese/xpdf/distinfo | 1 | ||||
-rw-r--r-- | chinese/xpdf/files/dot.xpdfrc | 9 | ||||
-rw-r--r-- | chinese/xpdf/pkg-descr | 4 | ||||
-rw-r--r-- | chinese/xpdf/pkg-plist | 5 |
5 files changed, 30 insertions, 5 deletions
diff --git a/chinese/xpdf/Makefile b/chinese/xpdf/Makefile index d76d3f4afe8d..6ff47f349ca5 100644 --- a/chinese/xpdf/Makefile +++ b/chinese/xpdf/Makefile @@ -7,9 +7,10 @@ PORTNAME= xpdf PORTVERSION= 1.01 +PORTREVISION= 1 CATEGORIES= chinese MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ -DISTNAME= xpdf-chinese-traditional +DISTFILES= xpdf-chinese-simplified.tar.gz xpdf-chinese-traditional.tar.gz MAINTAINER= statue@freebsd.sinica.edu.tw @@ -18,12 +19,19 @@ RUN_DEPENDS= xpdf:${PORTSDIR}/graphics/xpdf\ NO_BUILD= yes USE_X_PREFIX= yes -INSTALL_FILES= Adobe-CNS1.cidToUnicode Big5.unicodeMap \ +WRKSRC= ${WRKDIR} +SIMP_FILES= Adobe-GB1.cidToUnicode EUC-CN.unicodeMap GBK.unicodeMap \ + ISO-2022-CN.unicodeMap README +TRAD_FILES= Adobe-CNS1.cidToUnicode Big5.unicodeMap \ Big5ascii.unicodeMap README do-install: + ${MKDIR} ${PREFIX}/share/xpdf/chinese-simplified +.for i in ${SIMP_FILES} + ${INSTALL_DATA} ${WRKSRC}/xpdf-chinese-simplified/${i} ${PREFIX}/share/xpdf/chinese-simplified +.endfor ${MKDIR} ${PREFIX}/share/xpdf/chinese-traditional -.for i in ${INSTALL_FILES} - ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/xpdf/chinese-traditional +.for i in ${TRAD_FILES} + ${INSTALL_DATA} ${WRKSRC}/xpdf-chinese-traditional/${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 diff --git a/chinese/xpdf/distinfo b/chinese/xpdf/distinfo index 576084f02ce7..8e9a9bc2b118 100644 --- a/chinese/xpdf/distinfo +++ b/chinese/xpdf/distinfo @@ -1 +1,2 @@ +MD5 (xpdf-chinese-simplified.tar.gz) = 713659f0282b9e3d169390e246e5eb74 MD5 (xpdf-chinese-traditional.tar.gz) = 5be730b859f8b01de569eb1bad188426 diff --git a/chinese/xpdf/files/dot.xpdfrc b/chinese/xpdf/files/dot.xpdfrc index 309ac3a48a04..e5562364419d 100644 --- a/chinese/xpdf/files/dot.xpdfrc +++ b/chinese/xpdf/files/dot.xpdfrc @@ -8,3 +8,12 @@ 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 +#----- begin Chinese Simplified support package (2002-apr-18) +cidToUnicode Adobe-GB1 /usr/X11R6/share/xpdf/chinese-simplified/Adobe-GB1.cidToUnicode +unicodeMap ISO-2022-CN /usr/X11R6/share/xpdf/chinese-simplified/ISO-2022-CN.unicodeMap +unicodeMap EUC-CN /usr/X11R6/share/xpdf/chinese-simplified/EUC-CN.unicodeMap +unicodeMap GBK /usr/X11R6/share/xpdf/chinese-simplified/GBK.unicodeMap +cMapDir Adobe-GB1 /usr/local/share/ghostscript/Resource/CMap +toUnicodeDir /usr/local/share/ghostscript/Resource/CMap +displayCIDFontX Adobe-GB1 "-*-fangsong ti-medium-r-normal-*-%s-*-*-*-*-*-gb2312.1980-0" ISO-2022-CN +#----- end Chinese Simplified support package diff --git a/chinese/xpdf/pkg-descr b/chinese/xpdf/pkg-descr index 94074c761543..0f75e99a8dce 100644 --- a/chinese/xpdf/pkg-descr +++ b/chinese/xpdf/pkg-descr @@ -1 +1,3 @@ -This ports enables xpdf to read chinese-traditional pdf. +This ports enables xpdf to read chinese (simplified and traditional) pdf. + +WWW: http://www.foolabs.com/xpdf/ diff --git a/chinese/xpdf/pkg-plist b/chinese/xpdf/pkg-plist index f67f91c0894f..f5c3a5523cdf 100644 --- a/chinese/xpdf/pkg-plist +++ b/chinese/xpdf/pkg-plist @@ -1,3 +1,8 @@ +share/xpdf/chinese-simplified/Adobe-GB1.cidToUnicode +share/xpdf/chinese-simplified/EUC-CN.unicodeMap +share/xpdf/chinese-simplified/GBK.unicodeMap +share/xpdf/chinese-simplified/ISO-2022-CN.unicodeMap +share/xpdf/chinese-simplified/README share/xpdf/chinese-traditional/Adobe-CNS1.cidToUnicode share/xpdf/chinese-traditional/Big5.unicodeMap share/xpdf/chinese-traditional/Big5ascii.unicodeMap |