diff options
-rw-r--r-- | print/cnprint/DESCR | 22 | ||||
-rw-r--r-- | print/cnprint/Makefile | 57 | ||||
-rw-r--r-- | print/cnprint/PLIST | 21 | ||||
-rw-r--r-- | print/cnprint/distinfo | 33 | ||||
-rw-r--r-- | print/cnprint/patches/patch-aa | 13 |
5 files changed, 146 insertions, 0 deletions
diff --git a/print/cnprint/DESCR b/print/cnprint/DESCR new file mode 100644 index 00000000000..4ac29491d44 --- /dev/null +++ b/print/cnprint/DESCR @@ -0,0 +1,22 @@ +CNPRINT is a utility to print Chinese/Japanese/Korean (CJK) text +(or convert to PostScript) under DOS, VMS and UNIX systems. It +works just as a print command on your system. Currently GB, Hz, +zW, BIG5, CNS, JIS, EUC, Shift-JIS, KSC, UTF8, UTF7 and UTF16 +formats are supported. + +CNPRINT also has many other features, among them: + + * print all CJK codes using a single Unicode CJK font + * print GB using Big5 fonts or print Big5 using GB fonts + * multiple columns, vertical printing, change font or character + size within document + * phrase-based GB<->BIG5 conversions + * built-in HZ<->GB conversion + * repair/re-format functions for CJK text + * envelope and address label printing + * decode MIME quoted printable (=20=3C=5E like text) + * true type fonts (TTF) support + +With its full Unicode support, it should be able to print other +language (e.g. Thai, Vietnames, Arabic as well). For more information, +please read the help file. diff --git a/print/cnprint/Makefile b/print/cnprint/Makefile new file mode 100644 index 00000000000..c816355ae41 --- /dev/null +++ b/print/cnprint/Makefile @@ -0,0 +1,57 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/07/02 00:24:35 hubertf Exp $ + +DISTNAME= # +PKGNAME= cnprint-3.30b +CATEGORIES= print +MASTER_SITES= http://nba184.med.uth.tmc.edu:3006/~cai/software/cnp/ \ + http://nba184.med.uth.tmc.edu:3006/~cai/software/cnp/metrics/ \ + http://nba184.med.uth.tmc.edu:3006/~cai/software/cnp/fonts/ \ + ftp://ftp.csc.cuhk.edu.hk/pub/chinese/ifcss/software/fonts/misc/ +EXTRACT_SUFX= #empty +DISTFILES+= cnprint330b.c \ + cnprint330b.readme \ + ttfb330b.c \ + cnprint330b.hlp \ + cnprint33.cmd \ + helvet.dat \ + mssong.ttf.gz mssong.htf \ + mshei.ttf.gz mshei.htf \ + cc48s.hbf cc48.sym.gz \ + cc48s.1.gz \ + cc48s.2.gz \ + hbf.tar.gz + +MAINTAINER= hubertf@netbsd.org +HOMEPAGE= http://www.neurophys.wisc.edu/~cai/software/index.html +COMMENT= Print & convert CJK style text to PostScript + +DIST_SUBDIR= ${PKGNAME} + +do-extract: + ${MKDIR} ${WRKSRC} +.for i in ${DISTFILES} + ${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC} +.endfor + cd ${WRKSRC} ; \ + ${GTAR} plzvxf hbf.tar.gz ; ${MV} hbf/* . ; \ + ${RM} -fr hbf ; \ + ${GUNZIP_CMD} *.gz || ${TRUE} + +do-build: + cd ${WRKSRC} ; \ + ${CC} cnprint330b.c ttfb330b.c -o cnprint -DPREFIX=\"${PREFIX}\" ; \ + ${SED} \ + -e 's/\(DEFAULT_JIS_FONT\):.*$$/\1: kanji48.hbf/' \ + >cnprint.cmd <cnprint33.cmd + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/cnprint + ${INSTALL_DATA} ${WRKSRC}/cnprint.cmd ${PREFIX}/share/cnprint + ${INSTALL_DATA} ${WRKSRC}/*.sym ${PREFIX}/share/cnprint + ${INSTALL_DATA} ${WRKSRC}/*.htf ${PREFIX}/share/cnprint + ${INSTALL_DATA} ${WRKSRC}/*.hbf ${PREFIX}/share/cnprint + ${INSTALL_DATA} ${WRKSRC}/*.bin ${PREFIX}/share/cnprint + ${INSTALL_DATA} ${WRKSRC}/*.ttf ${PREFIX}/share/cnprint + ${INSTALL_PROGRAM} ${WRKSRC}/cnprint ${PREFIX}/bin + +.include "../../mk/bsd.pkg.mk" diff --git a/print/cnprint/PLIST b/print/cnprint/PLIST new file mode 100644 index 00000000000..1ea4af00c2e --- /dev/null +++ b/print/cnprint/PLIST @@ -0,0 +1,21 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/07/02 00:24:35 hubertf Exp $ +bin/cnprint +share/cnprint/cc48.sym +share/cnprint/cc48s.hbf +share/cnprint/cnprint.cmd +share/cnprint/hanglm24.bin +share/cnprint/hanglm24.hbf +share/cnprint/hanja65.hbf +share/cnprint/jis16.hbf +share/cnprint/jiskan24.bin +share/cnprint/jiskan24.hbf +share/cnprint/kanji48.bin +share/cnprint/kanji48.hbf +share/cnprint/ksc16.hbf +share/cnprint/uwjis-16.hbf +share/cnprint/uwksc-16.hbf +share/cnprint/mshei.htf +share/cnprint/mshei.ttf +share/cnprint/mssong.htf +share/cnprint/mssong.ttf +@dirrm share/cnprint diff --git a/print/cnprint/distinfo b/print/cnprint/distinfo new file mode 100644 index 00000000000..3a735158f96 --- /dev/null +++ b/print/cnprint/distinfo @@ -0,0 +1,33 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/07/02 00:24:35 hubertf Exp $ + +SHA1 (cnprint-3.30b/cnprint330b.c) = a496e1b042c9e02540de517915950b29c1fe332d +Size (cnprint-3.30b/cnprint330b.c) = 176774 bytes +SHA1 (cnprint-3.30b/cnprint330b.readme) = c52839ad23057b5a3d7b0875d23376f1e262bdf8 +Size (cnprint-3.30b/cnprint330b.readme) = 2468 bytes +SHA1 (cnprint-3.30b/ttfb330b.c) = d8b3f27592a319491d792555f8cc20a90bae848a +Size (cnprint-3.30b/ttfb330b.c) = 21477 bytes +SHA1 (cnprint-3.30b/cnprint330b.hlp) = bf03047fed6de6e4252233ae4296fa5da033af7d +Size (cnprint-3.30b/cnprint330b.hlp) = 71980 bytes +SHA1 (cnprint-3.30b/cnprint33.cmd) = 8f61713ed134ba0a1f23cfb31a1155674d3ab16b +Size (cnprint-3.30b/cnprint33.cmd) = 13012 bytes +SHA1 (cnprint-3.30b/helvet.dat) = 4df5e57c38f86a2185e2a3366be9f7612d0fc0ba +Size (cnprint-3.30b/helvet.dat) = 898 bytes +SHA1 (cnprint-3.30b/mssong.ttf.gz) = 4f861e4a12b054e1c18a4fbdf72c144ef3cfcec2 +Size (cnprint-3.30b/mssong.ttf.gz) = 1456613 bytes +SHA1 (cnprint-3.30b/mssong.htf) = d9fcf01a3e463e6a9c1a520aa5f6059e7e8b4f24 +Size (cnprint-3.30b/mssong.htf) = 64 bytes +SHA1 (cnprint-3.30b/mshei.ttf.gz) = cb217fa17a54a2a267ffc24952a06c3d3fca602b +Size (cnprint-3.30b/mshei.ttf.gz) = 1060525 bytes +SHA1 (cnprint-3.30b/mshei.htf) = e4e05af2515e606c2da6e87a8947a74b8899ae49 +Size (cnprint-3.30b/mshei.htf) = 63 bytes +SHA1 (cnprint-3.30b/cc48s.hbf) = 8fc215699e337b59b9ab1ec175bc7d36da56bf45 +Size (cnprint-3.30b/cc48s.hbf) = 1921 bytes +SHA1 (cnprint-3.30b/cc48.sym.gz) = 815219cbe4799091f433389b81ab122727507722 +Size (cnprint-3.30b/cc48.sym.gz) = 66018 bytes +SHA1 (cnprint-3.30b/cc48s.1.gz) = aa979e6b516bdf3e0d5409c4e6b7dc4cfdae3fa6 +Size (cnprint-3.30b/cc48s.1.gz) = 461404 bytes +SHA1 (cnprint-3.30b/cc48s.2.gz) = c0755c8440177a44d1de48e0fcfd1770853f8935 +Size (cnprint-3.30b/cc48s.2.gz) = 391896 bytes +SHA1 (cnprint-3.30b/hbf.tar.gz) = 0ff6238f90f3c390047cde7a694b0a6c948fa75a +Size (cnprint-3.30b/hbf.tar.gz) = 3512320 bytes +SHA1 (patch-aa) = b9ab727c530a197bd7a8de75d57f8f163e886dc1 diff --git a/print/cnprint/patches/patch-aa b/print/cnprint/patches/patch-aa new file mode 100644 index 00000000000..56e5182a7c5 --- /dev/null +++ b/print/cnprint/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/07/02 00:24:35 hubertf Exp $ + +--- cnprint330b.c.orig Tue Jul 2 01:22:08 2002 ++++ cnprint330b.c +@@ -6216,7 +6216,7 @@ + if (s==NULL) { + defpath[0]='\0'; + #ifdef unix +- strcpy(defpath, "/usr/local/src/cnprint"); ++ strcpy(defpath, PREFIX "/share/cnprint"); + #endif + s=defpath; + } |