summaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2003-04-27 00:33:09 +0000
committervanilla <vanilla@FreeBSD.org>2003-04-27 00:33:09 +0000
commit8d0467277c754845021d08116d852e4137b0b989 (patch)
tree5e390ab13bb156a08b60a4724f26c2da5f5e1862 /chinese
parent3947ac545757361839150da8f7cfa7931d83d928 (diff)
downloadFreeBSD-ports-8d0467277c754845021d08116d852e4137b0b989.zip
FreeBSD-ports-8d0467277c754845021d08116d852e4137b0b989.tar.gz
Add cnprint 3.30b,
convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts. PR: 50815 Submitted by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
Diffstat (limited to 'chinese')
-rw-r--r--chinese/Makefile1
-rw-r--r--chinese/cnprint/Makefile61
-rw-r--r--chinese/cnprint/distinfo15
-rw-r--r--chinese/cnprint/files/patch-cnprint330b.c11
-rw-r--r--chinese/cnprint/pkg-descr24
-rw-r--r--chinese/cnprint/pkg-message9
-rw-r--r--chinese/cnprint/pkg-plist20
7 files changed, 141 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile
index 5d0af7f..bc7fd6c 100644
--- a/chinese/Makefile
+++ b/chinese/Makefile
@@ -30,6 +30,7 @@
SUBDIR += cle_base
SUBDIR += cless
SUBDIR += cmexfonts
+ SUBDIR += cnprint
SUBDIR += cwtex
SUBDIR += cwtexttf
SUBDIR += cxterm
diff --git a/chinese/cnprint/Makefile b/chinese/cnprint/Makefile
new file mode 100644
index 0000000..98bbc00
--- /dev/null
+++ b/chinese/cnprint/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: cnprint
+# Date created: 29 Jan 2003
+# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
+#
+# $FreeBSD$
+#
+
+PORTNAME= cnprint
+PORTVERSION= 3.30b
+CATEGORIES= chinese print
+MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/statue/cnprint/ \
+ 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/
+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= statue@freebsd.sinica.edu.tw
+COMMENT= Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts
+
+DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
+
+do-extract:
+ ${MKDIR} ${WRKSRC}
+.for i in ${DISTFILES}
+ ${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC}
+.endfor
+ cd ${WRKSRC} ; \
+ ${TAR} 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:
+ ${MKDIR} ${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 <bsd.port.mk>
diff --git a/chinese/cnprint/distinfo b/chinese/cnprint/distinfo
new file mode 100644
index 0000000..76904ea
--- /dev/null
+++ b/chinese/cnprint/distinfo
@@ -0,0 +1,15 @@
+MD5 (cnprint-3.30b/cnprint330b.c) = 61316049a14d109d97d883e78d850c15
+MD5 (cnprint-3.30b/cnprint330b.readme) = c63f637e93639d573ff1cc182a67b162
+MD5 (cnprint-3.30b/ttfb330b.c) = a2c7c0a6857eed9a130b25cbdb13bb3c
+MD5 (cnprint-3.30b/cnprint330b.hlp) = dc512b19de1970cdfc28f627a04c9a7f
+MD5 (cnprint-3.30b/cnprint33.cmd) = 0661ca6abe143b44923671da6ca22139
+MD5 (cnprint-3.30b/helvet.dat) = b79804066ff09885f303c2c51559b435
+MD5 (cnprint-3.30b/mssong.ttf.gz) = bb50d2149148cce6e1344aecf4fa9e86
+MD5 (cnprint-3.30b/mssong.htf) = a92eba3f7b1b456e6d13081042a36ab2
+MD5 (cnprint-3.30b/mshei.ttf.gz) = fc015548359dd7248c1052c70e9798f6
+MD5 (cnprint-3.30b/mshei.htf) = 9db930523629701d7608c31627495540
+MD5 (cnprint-3.30b/cc48s.hbf) = 3ecd697e6cade9bf7248f0e8f63c863b
+MD5 (cnprint-3.30b/cc48.sym.gz) = 1d9598a4dbe4eef5a1ff8cc309fbc718
+MD5 (cnprint-3.30b/cc48s.1.gz) = 4e384e83cb759aac6bbef5b1e9ad081a
+MD5 (cnprint-3.30b/cc48s.2.gz) = 9196338c8a05eea1e1fef10ba5c52387
+MD5 (cnprint-3.30b/hbf.tar.gz) = 45cfc82fe5d10de6872c602e587da8b5
diff --git a/chinese/cnprint/files/patch-cnprint330b.c b/chinese/cnprint/files/patch-cnprint330b.c
new file mode 100644
index 0000000..2054eb7
--- /dev/null
+++ b/chinese/cnprint/files/patch-cnprint330b.c
@@ -0,0 +1,11 @@
+--- 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;
+ }
diff --git a/chinese/cnprint/pkg-descr b/chinese/cnprint/pkg-descr
new file mode 100644
index 0000000..968f2c7
--- /dev/null
+++ b/chinese/cnprint/pkg-descr
@@ -0,0 +1,24 @@
+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.
+
+WWW: http://www.neurophys.wisc.edu/~cai/software/
diff --git a/chinese/cnprint/pkg-message b/chinese/cnprint/pkg-message
new file mode 100644
index 0000000..3ca8587
--- /dev/null
+++ b/chinese/cnprint/pkg-message
@@ -0,0 +1,9 @@
+--------------------------------------------------------------------
+Please check the following files:
+
+${PREFIX}/etc/bg5ps.conf.sample
+${PREFIX}/etc/gb2312-bg5ps.conf.sample
+
+Copy one of them to ~/.bg5ps.conf(depend on which encoding you use),
+then modify it to suit your needs. Type `bg5ps -h` for help.
+--------------------------------------------------------------------
diff --git a/chinese/cnprint/pkg-plist b/chinese/cnprint/pkg-plist
new file mode 100644
index 0000000..d296a57
--- /dev/null
+++ b/chinese/cnprint/pkg-plist
@@ -0,0 +1,20 @@
+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
OpenPOWER on IntegriCloud