From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Apr 11 06:10:10 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79BB937B401 for ; Fri, 11 Apr 2003 06:10:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B44743FBF for ; Fri, 11 Apr 2003 06:10:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h3BDA9Up001079 for ; Fri, 11 Apr 2003 06:10:09 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h3BDA9ls001078; Fri, 11 Apr 2003 06:10:09 -0700 (PDT) Resent-Date: Fri, 11 Apr 2003 06:10:09 -0700 (PDT) Resent-Message-Id: <200304111310.h3BDA9ls001078@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Statue Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 539A237B401 for ; Fri, 11 Apr 2003 06:09:17 -0700 (PDT) Received: from freebsd.sinica.edu.tw (freebsd.sinica.edu.tw [140.109.13.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86EA643FBD for ; Fri, 11 Apr 2003 06:09:16 -0700 (PDT) (envelope-from statue@freebsd.sinica.edu.tw) Received: by freebsd.sinica.edu.tw (Postfix, from userid 1014) id 538167A9; Fri, 11 Apr 2003 21:09:17 +0800 (CST) Message-Id: <20030411130917.538167A9@freebsd.sinica.edu.tw> Date: Fri, 11 Apr 2003 21:09:17 +0800 (CST) From: Statue To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/50815: New port: chinese/cnprint X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Statue List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2003 13:10:10 -0000 >Number: 50815 >Category: ports >Synopsis: New port: chinese/cnprint >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Apr 11 06:10:08 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Statue >Release: FreeBSD 4.7-PRERELEASE i386 >Organization: >Environment: System: FreeBSD freebsd.sinica.edu.tw 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #2: Mon Sep 9 10:45:46 CST 2002 ycheng@freebsd.sinica.edu.tw:/usr/src/sys/compile/GENERIC i386 >Description: 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/ >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # cnprint/ # cnprint/Makefile # cnprint/distinfo # cnprint/files # cnprint/pkg-descr # cnprint/pkg-message # cnprint/pkg-plist # cnprint/files/patch-cnprint330b.c # echo c - cnprint/ mkdir -p cnprint/ > /dev/null 2>&1 echo x - cnprint/Makefile sed 's/^X//' >cnprint/Makefile << 'END-of-cnprint/Makefile' X# New ports collection makefile for: cnprint X# Date created: 29 Jan 2003 X# Whom: Shen Chuan-Hsing X# X# $FreeBSD$ X# X XPORTNAME= cnprint XPORTVERSION= 3.30b XCATEGORIES= chinese print XMASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/statue/cnprint/ \ X http://nba184.med.uth.tmc.edu:3006/~cai/software/cnp/ \ X http://nba184.med.uth.tmc.edu:3006/~cai/software/cnp/metrics/ \ X http://nba184.med.uth.tmc.edu:3006/~cai/software/cnp/fonts/ \ X ftp://ftp.csc.cuhk.edu.hk/pub/chinese/ifcss/software/fonts/misc/ XDISTFILES= cnprint330b.c \ X cnprint330b.readme \ X ttfb330b.c \ X cnprint330b.hlp \ X cnprint33.cmd \ X helvet.dat \ X mssong.ttf.gz mssong.htf \ X mshei.ttf.gz mshei.htf \ X cc48s.hbf cc48.sym.gz \ X cc48s.1.gz \ X cc48s.2.gz \ X hbf.tar.gz X XMAINTAINER= statue@freebsd.sinica.edu.tw XCOMMENT= Convert Chinese-Big5/GB encoded files to Postscript, using TTF fonts X XDIST_SUBDIR= ${PORTNAME}-${PORTVERSION} X Xdo-extract: X ${MKDIR} ${WRKSRC} X.for i in ${DISTFILES} X ${CP} ${DISTDIR}/${DIST_SUBDIR}/${i} ${WRKSRC} X.endfor X cd ${WRKSRC} ; \ X ${TAR} plzvxf hbf.tar.gz ; ${MV} hbf/* . ; \ X ${RM} -fr hbf ; \ X ${GUNZIP_CMD} *.gz || ${TRUE} X Xdo-build: X cd ${WRKSRC} ; \ X ${CC} cnprint330b.c ttfb330b.c -o cnprint -DPREFIX=\"${PREFIX}\" ; \ X ${SED} \ X -e 's/\(DEFAULT_JIS_FONT\):.*$$/\1: kanji48.hbf/' \ X >cnprint.cmd END-of-cnprint/Makefile echo x - cnprint/distinfo sed 's/^X//' >cnprint/distinfo << 'END-of-cnprint/distinfo' XMD5 (cnprint-3.30b/cnprint330b.c) = 61316049a14d109d97d883e78d850c15 XMD5 (cnprint-3.30b/cnprint330b.readme) = c63f637e93639d573ff1cc182a67b162 XMD5 (cnprint-3.30b/ttfb330b.c) = a2c7c0a6857eed9a130b25cbdb13bb3c XMD5 (cnprint-3.30b/cnprint330b.hlp) = dc512b19de1970cdfc28f627a04c9a7f XMD5 (cnprint-3.30b/cnprint33.cmd) = 0661ca6abe143b44923671da6ca22139 XMD5 (cnprint-3.30b/helvet.dat) = b79804066ff09885f303c2c51559b435 XMD5 (cnprint-3.30b/mssong.ttf.gz) = bb50d2149148cce6e1344aecf4fa9e86 XMD5 (cnprint-3.30b/mssong.htf) = a92eba3f7b1b456e6d13081042a36ab2 XMD5 (cnprint-3.30b/mshei.ttf.gz) = fc015548359dd7248c1052c70e9798f6 XMD5 (cnprint-3.30b/mshei.htf) = 9db930523629701d7608c31627495540 XMD5 (cnprint-3.30b/cc48s.hbf) = 3ecd697e6cade9bf7248f0e8f63c863b XMD5 (cnprint-3.30b/cc48.sym.gz) = 1d9598a4dbe4eef5a1ff8cc309fbc718 XMD5 (cnprint-3.30b/cc48s.1.gz) = 4e384e83cb759aac6bbef5b1e9ad081a XMD5 (cnprint-3.30b/cc48s.2.gz) = 9196338c8a05eea1e1fef10ba5c52387 XMD5 (cnprint-3.30b/hbf.tar.gz) = 45cfc82fe5d10de6872c602e587da8b5 END-of-cnprint/distinfo echo c - cnprint/files mkdir -p cnprint/files > /dev/null 2>&1 echo x - cnprint/pkg-descr sed 's/^X//' >cnprint/pkg-descr << 'END-of-cnprint/pkg-descr' XCNPRINT is a utility to print Chinese/Japanese/Korean (CJK) text X(or convert to PostScript) under DOS, VMS and UNIX systems. It Xworks just as a print command on your system. Currently GB, Hz, XzW, BIG5, CNS, JIS, EUC, Shift-JIS, KSC, UTF8, UTF7 and UTF16 Xformats are supported. X XCNPRINT also has many other features, among them: X X * print all CJK codes using a single Unicode CJK font X * print GB using Big5 fonts or print Big5 using GB fonts X * multiple columns, vertical printing, change font or character X size within document X * phrase-based GB<->BIG5 conversions X * built-in HZ<->GB conversion X * repair/re-format functions for CJK text X * envelope and address label printing X * decode MIME quoted printable (=20=3C=5E like text) X * true type fonts (TTF) support X XWith its full Unicode support, it should be able to print other Xlanguage (e.g. Thai, Vietnames, Arabic as well). For more information, Xplease read the help file. X XWWW: http://www.neurophys.wisc.edu/~cai/software/ END-of-cnprint/pkg-descr echo x - cnprint/pkg-message sed 's/^X//' >cnprint/pkg-message << 'END-of-cnprint/pkg-message' X-------------------------------------------------------------------- XPlease check the following files: X X${PREFIX}/etc/bg5ps.conf.sample X${PREFIX}/etc/gb2312-bg5ps.conf.sample X XCopy one of them to ~/.bg5ps.conf(depend on which encoding you use), Xthen modify it to suit your needs. Type `bg5ps -h` for help. X-------------------------------------------------------------------- END-of-cnprint/pkg-message echo x - cnprint/pkg-plist sed 's/^X//' >cnprint/pkg-plist << 'END-of-cnprint/pkg-plist' Xbin/cnprint Xshare/cnprint/cc48.sym Xshare/cnprint/cc48s.hbf Xshare/cnprint/cnprint.cmd Xshare/cnprint/hanglm24.bin Xshare/cnprint/hanglm24.hbf Xshare/cnprint/hanja65.hbf Xshare/cnprint/jis16.hbf Xshare/cnprint/jiskan24.bin Xshare/cnprint/jiskan24.hbf Xshare/cnprint/kanji48.bin Xshare/cnprint/kanji48.hbf Xshare/cnprint/ksc16.hbf Xshare/cnprint/uwjis-16.hbf Xshare/cnprint/uwksc-16.hbf Xshare/cnprint/mshei.htf Xshare/cnprint/mshei.ttf Xshare/cnprint/mssong.htf Xshare/cnprint/mssong.ttf X@dirrm share/cnprint END-of-cnprint/pkg-plist echo x - cnprint/files/patch-cnprint330b.c sed 's/^X//' >cnprint/files/patch-cnprint330b.c << 'END-of-cnprint/files/patch-cnprint330b.c' X--- cnprint330b.c.orig Tue Jul 2 01:22:08 2002 X+++ cnprint330b.c X@@ -6216,7 +6216,7 @@ X if (s==NULL) { X defpath[0]='\0'; X #ifdef unix X- strcpy(defpath, "/usr/local/src/cnprint"); X+ strcpy(defpath, PREFIX "/share/cnprint"); X #endif X s=defpath; X } END-of-cnprint/files/patch-cnprint330b.c exit >Release-Note: >Audit-Trail: >Unformatted: