Initial import of libchewing 0.3.1

libchewing is derived from Chewing input method, a xcin module
focusing on intelligent phonetic processing by Lu-chuan Kung
(lckung) and Kang-pen Chen (kpchen).

ok ajacoutot@
This commit is contained in:
kevlo 2008-10-04 08:11:53 +00:00
parent b09a8b9351
commit 4ec438d6a7
109 changed files with 2570 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1 @@
kevlo@kevlo.org

View File

@ -0,0 +1 @@
oset pagesize 0

View File

@ -0,0 +1,9 @@
set path = (/sbin /bin /usr/sbin /usr/local/bin /usr/games /usr/bin \
/usr/local/sbin /usr/X11R6/bin)
set _h=`hostname | tr '[A-Z]' '[a-z]'`
setenv CVSROOT cvs.openbsd.org:/cvs
setenv CVS_RSH ssh
if ($_h == cvs.openbsd.org) then
setenv CVSROOT /cvs
endif

View File

@ -0,0 +1,5 @@
210.241.235.251 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA72dMWXVT9RgdTfQ+xbooFw7dLMRaeS61ITHrI4xB1zndefjOBBc9Usgi4nRBxigL90Soewqj+jrbpmewM6aJYs1NlQ2qlGPoDx5hrHhk0rUhakOJdOVsagzBRfzVlotA9ePOIuPu8rVg6Mxr3eGbpI2B+794Oy0CSkeRm3XTsp8=
210.241.235.254 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA430cGNAI2vNGUY9nUEpjw7DgPDIkK4ysB6Gonn2Qd7AhmHbIKRO18IPPVKjzv+1izgVj5x0rZ0/Dmiup/mi5tMCBvjv803NE6ygUzfKObkzX2pqMAy1uc9k2+g+LOop7iqBbRT8nko/DX30tJVIgfCTnn5ZptpRutOHq0ayO9Us=
cvs.openbsd.org,199.185.137.3 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA1H+xdvjd9MdNRrb6fmol0T/FxO08iRpbW5ftDmLRWOKMfAikjd4LbFZIU84JEfNtsKrB8BguIebUMC4Ubw/F2ngZ/PdGdr1RJWKKFQBLt8JtS0ktB5fTEa21P81rFRn7Bm+jJQGnJskhh5OlgHvSgs7LKDLomduXkRSMllDINzM=
202.168.193.68 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA7jnwmOKC1AO+auZhsjKs/WWFsXngz3JNWkVAwYRRAGchM8zvIMfaMfG1m5SThgppfeoFD2Pvgl8muxsIsxRkZsj8zPeRSbYXnccefKAQIcsbZheRBeipLw/JWLRIgIv+t/gB4ueW88CJ/4bCDMVGpLrrzFYtUHhWPmi1qpNW+QU=
203.74.190.123 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAyGOX8g7XIwFzKwD76aQMZDl673pAhKCJfvVTfTccg+8kA+Ns7RtVzSKGZT1/7DOrlPQKpZuEB4M8hmhmtQuFGXqbn5Sm0uOHHjKOiVXNJVZ+kNQm8hV9yg+rXDeGi4VzS/T9Ly7d1TaO7z2NRfboDWZ9rI23I4JYb/OyQYd6K6c=

View File

@ -0,0 +1 @@
freebsd.cyut.edu.tw,163.17.1.43 ssh-dss AAAAB3NzaC1kc3MAAACBAMl9kXOpaaseZ9S0UApzMABdIAuiQRqEHbs4Xr93HWpvk8ONMd7nGwc9iuE7jQ5hZNnuNr632PgWpOz1zbz5h8Ao8Qa3Vy8nXAI0idMlB8dXttHCH3HVXg/gzQvZHjBUkbWmLcNGGiDs/RUJ3nP3f9WzunOWXY3TR69doqpfXbiPAAAAFQDqYb1o+Xz6f8kohPqzxmw5yrjGHwAAAIEAyAWo92W2T2p3/kTkscLl27dOjlPrYp6/JfNNSejtHgOl8IQZ5B5PlLVRRoeLuwB4bpM6Bk+x5So3Pd8dsfj0gsCC4q0vCx8B6n3iviIggvK+M+JWsl4RDwUuNhSJbBmx0jpqPqZDazJZSCWvGo0rQ2f4IJJu7cqOBiWIXIcTWU4AAACAB1rJe8GW9vrl1BNZxeJf6IIP46s0I117CFBgB7VKaTvKj9E7xgMCLumbRgnWMSDIO+dgYVQip+jK0R+icY3T+JOev6K5uvMqe6IKPkHjFxYiaghd4RbryRm7iIniEQgYfm7iFtJCuvZSPAL552pKPOG/gG47ga1OiLgsWiSJBCI=

View File

@ -0,0 +1,21 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
# $FreeBSD: Makefile,v 1.16 1997/11/17 18:36:43 max Exp $
SUBDIR += arphicttf
SUBDIR += bg5pdf
SUBDIR += bg5ps
SUBDIR += c2t
SUBDIR += cless
SUBDIR += crxvt
SUBDIR += hc
SUBDIR += kcfonts
SUBDIR += libtabe
SUBDIR += lunar
SUBDIR += py-zhCodecs
SUBDIR += rxvt-big5
SUBDIR += taipeifonts
SUBDIR += ttfm
SUBDIR += xcin
SUBDIR += xcin25
.include <bsd.port.subdir.mk>

View File

@ -0,0 +1,32 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
COMMENT= chinese big5/gb truetype fonts
DISTNAME= zh-arphicttf-2.11
PKGNAME= zh-fonts-arphicttf-2.11p1
CATEGORIES= chinese x11
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
MASTER_SITES= ${MASTER_SITE_BACKUP}
NO_BUILD= Yes
NO_REGRESS= Yes
PKG_ARCH= *
WRKDIST= ${WRKDIR}/arphic
FONTDIR= ${PREFIX}/lib/X11/fonts/TrueType
FONTS= bkai00mp.ttf bsmi00lp.ttf gbsn00lp.ttf gkai00mp.ttf
do-install:
${INSTALL_DATA_DIR} ${FONTDIR}
cd ${WRKSRC}/font; ${INSTALL_DATA} ${FONTS} ${FONTDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (zh-arphicttf-2.11.tar.gz) = CdoCrXhZKFn7krlZyMTHPQ==
RMD160 (zh-arphicttf-2.11.tar.gz) = 69U7VvJ7Oqqh3hOG8hOg6h/KiSQ=
SHA1 (zh-arphicttf-2.11.tar.gz) = Sh2UMTVxGNRK7O33p+5rmhsF/WQ=
SHA256 (zh-arphicttf-2.11.tar.gz) = PPbF2Y3twFDHjvlAOUorXcefSOKi2akd2aWfiyc5cmc=
SIZE (zh-arphicttf-2.11.tar.gz) = 16582862

View File

@ -0,0 +1,3 @@
Chinese Big5/GB TrueType fonts, includes Kaiti/Mingti(Big5) and
Kaiti/Sungti(GB). It then can be used along with X Window System
or typesetting software like CJK. Thanks to Arphic Technology.

View File

@ -0,0 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
lib/X11/fonts/
@fontdir lib/X11/fonts/TrueType/
lib/X11/fonts/TrueType/bkai00mp.ttf
lib/X11/fonts/TrueType/bsmi00lp.ttf
lib/X11/fonts/TrueType/gbsn00lp.ttf
lib/X11/fonts/TrueType/gkai00mp.ttf

View File

@ -0,0 +1,38 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
SHARED_ONLY= Yes
COMMENT= convert Big5 encoded files to PDF
DISTNAME= bg5pdf-1.0.0
PKGNAME= zh-${DISTNAME}p2
CATEGORIES= chinese print
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
# GPL + Aladdin license
PERMIT_DISTFILES_CDROM= No
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= No
PERMIT_PACKAGE_FTP= Yes
WANTLIB= z
BUILD_DEPENDS= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
RUN_DEPENDS= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER} \
::chinese/taipeifonts
LIB_DEPENDS= pdf.>=2::print/pdflib
WRKDIST= ${WRKDIR}/bg5pdf
PYTHON_VER= 2.4
SUBST_VARS= PYTHON_VER
MAKE_ENV= PYTHON_VER=${PYTHON_VER}
NO_REGRESS= Yes
pre-configure:
perl -pi -e \
"s|/usr/bin/python|${LOCALBASE}/bin/python${PYTHON_VER}|" \
${WRKSRC}/bg5pdf
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (bg5pdf-1.0.0.tar.gz) = Tzz0G76QrhzQaRKSH65iNA==
RMD160 (bg5pdf-1.0.0.tar.gz) = h1fGr+AA3TD6g9QsXyGZMPsJJCc=
SHA1 (bg5pdf-1.0.0.tar.gz) = 8FChmVwKQPBXjf+wQFW6thlbAy4=
SHA256 (bg5pdf-1.0.0.tar.gz) = YktNv6VK6PQJtYGZFJNHP4RC8UA2AqdDLA20eewaE+4=
SIZE (bg5pdf-1.0.0.tar.gz) = 55208

View File

@ -0,0 +1,21 @@
--- Makefile.orig Fri Dec 14 18:55:38 2001
+++ Makefile Fri Dec 14 18:59:07 2001
@@ -0,0 +1,18 @@
+PYTHON_INCLUDES=-I$(LOCALBASE)/include/python$(PYTHON_VER)
+
+all: bg5pdflib.so
+
+bg5pdflib.so: bg5pdflib.o
+ $(CC) -shared bg5pdflib.o -L$(LOCALBASE)/lib -lpdf -lz -o $@
+
+.c.o:
+ $(CC) $(CFLAGS) -fPIC $(PYTHON_INCLUDES) -I$(LOCALBASE)/include -c $<
+
+install:
+ mkdir -p $(DESTDIR)/$(LOCALBASE)/lib/python$(PYTHON_VER)/site-packages
+ install -m 755 -o root -g bin bg5pdf $(DESTDIR)/$(LOCALBASE)/bin
+ install -m 644 -o root -g bin bg5pdflib.so \
+ $(DESTDIR)/$(LOCALBASE)/lib/python$(PYTHON_VER)/site-packages
+
+clean:
+ rm -f *.o bg5pdflib.so

View File

@ -0,0 +1,7 @@
Bg5pdf is a simple wrapper for wrapping big5 encoding text file into
PDF file by using PDFlib. The output of this program does not contain
embedding fonts. You have to download Acrobat Acroread Asianfont pack
to view and print the output file. This wrapper does not provide any
formatting function except simple line wrapping. If you need
sophisticated formatting, you should try CJK-LaTex or other equivalent
tools.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
bin/bg5pdf
lib/python${PYTHON_VER}/site-packages/bg5pdflib.so

View File

@ -0,0 +1,46 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
COMMENT= convert Big5/GB encoded files to postscript
DISTNAME= bg5ps-1.3.0
PKGNAME= zh-${DISTNAME}p1
CATEGORIES= chinese x11
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
# GPL
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
WANTLIB= c m
MASTER_SITES= ${MASTER_SITE_BACKUP}
PYTHON_VER= 2.4
RUN_DEPENDS= ::chinese/arphicttf \
:python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
LIB_DEPENDS= ttf.>=1::print/freetype
NO_REGRESS= Yes
pre-configure:
perl -pi -e \
"s|/usr/local/bin/python.*|${LOCALBASE}/bin/python${PYTHON_VER}|" \
${WRKSRC}/bg5ps
MAKE_FLAGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/freetype1" \
LDFLAGS=-L${LOCALBASE}/lib \
CC=${CC}
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/bg5ps ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKBUILD}/ttf2psm ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/lib/bg5ps
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bg5ps
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bg5ps
${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${PREFIX}/lib/bg5ps
cp -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/bg5ps
cp -R ${WRKSRC}/examples/* ${PREFIX}/share/examples/bg5ps
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (bg5ps-1.3.0.tar.gz) = so0yoskHKp78buWflEHiKw==
RMD160 (bg5ps-1.3.0.tar.gz) = w1/NF+7fT7hdtLtTtvDqRKGFum0=
SHA1 (bg5ps-1.3.0.tar.gz) = t/xwD/Eza3T+RH/UsTvKftNgSqg=
SHA256 (bg5ps-1.3.0.tar.gz) = j0COTZoKZ4dK+SaWx55T+pFa7xqRhSUV9adqwz6Q/T0=
SIZE (bg5ps-1.3.0.tar.gz) = 120390

View File

@ -0,0 +1,15 @@
--- Makefile.orig Sun Apr 6 16:03:35 2003
+++ Makefile Sun Apr 6 16:04:12 2003
@@ -29,11 +29,8 @@ ETCDIR = /etc/chinese/
all: ttf2psm
-%.o : %.c
- $(CC) -c $(CFLAGS) $(INCLUDEDIR) $< -o $@
-
ttf2psm: $(OBJS)
- $(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBS) -o ttf2psm $(OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o ttf2psm $(OBJS)
install: all bg5ps bg5ps.conf
mkdir -p $(ETCDIR)

View File

@ -0,0 +1,41 @@
--- bg5ps.orig Mon Feb 14 21:46:43 2000
+++ bg5ps Sun Apr 6 15:59:34 2003
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/local/bin/python2.1
################################################################################
# bg5ps.py which use the ttf2ps program to convert the Big5 Coding chinese #
# text into printable postscript file. Since it uses true type font, the #
@@ -11,7 +11,7 @@
#
# Revision 1.5 2000/02/14 20:40:04 platin
#
-# Change default config file to /etc/chinese/bg5ps.conf
+# Change default config file to /usr/local/lib/bg5ps/bg5ps.conf
#
# Revision 1.4 2000/02/14 20:28:35 platin
# Automatic selection of fontName in echo Encoding.
@@ -55,7 +55,7 @@ if wd=="": wd="."
#start default config file segment
#Font and font path
chineseFontPath=wd
-fontName="ntu_kai"
+fontName="bsmi00lp"
#Output only even or odd
oddPages=true
@@ -443,10 +443,10 @@ mpage -2 big5.txt | bg5ps -en big5 -nps
exec l
cf.close()
else:
- sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /etc/chinese/bg5ps.conf.")
- if os.path.isfile("/etc/chinese/bg5ps.conf"):
- sys.stderr.write("\n /etc/chinese/bg5ps.conf found. Use configuration file /etc/chinese/bg5ps.conf")
- cf=open("/etc/chinese/bg5ps.conf","r")
+ sys.stderr.write("\n~/.bg5ps.conf not found.\n Trying /usr/local/lib/bg5ps/bg5ps.conf.")
+ if os.path.isfile("/usr/local/lib/g5ps/bg5ps.conf"):
+ sys.stderr.write("\n /usr/local/lib/bg5ps/bg5ps.conf found. Use configuration file /usr/local/lib/bg5ps/bg5ps.conf")
+ cf=open("/usr/local/lib/bg5ps/bg5ps.conf","r")
for l in cf.readlines():
exec l
cf.close()

View File

@ -0,0 +1,11 @@
--- bg5ps.conf.orig Thu Jan 18 14:15:41 2001
+++ bg5ps.conf Sun Jan 21 20:45:16 2001
@@ -4,7 +4,7 @@
Encoding="big5"
#chineseFontPath: 指定中文字型的路徑(預設值: 與 bg5ps 同)
-chineseFontPath="/usr/share/fonts/ttf/"
+chineseFontPath="/usr/local/lib/X11/fonts/TrueType"
#modify the above line

View File

@ -0,0 +1,9 @@
--- gb2312-bg5ps.conf.orig Thu Jan 18 14:33:33 2001
+++ gb2312-bg5ps.conf Sun Jan 21 20:59:48 2001
@@ -1,5 +1,5 @@
#chineseFontPath: 指定中文字型的路徑(預設值: 與 bg5ps 同)
-chineseFontPath="/usr/share/fonts/ttf/"
+chineseFontPath="/usr/local/lib/X11/fonts/TrueType/"
#modify the above line

View File

@ -0,0 +1,2 @@
bg5ps is a Python script that generates Postscript from Chinese Big5/GB
encoded files, using ttf fonts.

View File

@ -0,0 +1,2 @@
Please copy ${PREFIX}/lib/bg5ps/bg5ps.conf to ~/.bg5ps.conf,
then modify it to suit your needs.

View File

@ -0,0 +1,25 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
bin/bg5ps
bin/ttf2psm
lib/bg5ps/
lib/bg5ps/bg5ps.conf
share/doc/bg5ps/
share/doc/bg5ps/COPYING.txt
share/doc/bg5ps/bg5ps.sgml
share/doc/bg5ps/bg5ps.txt
share/doc/bg5ps/html/
share/doc/bg5ps/html/bg5ps-1.html
share/doc/bg5ps/html/bg5ps-2.html
share/doc/bg5ps/html/bg5ps-3.html
share/doc/bg5ps/html/bg5ps-4.html
share/doc/bg5ps/html/bg5ps-5.html
share/doc/bg5ps/html/bg5ps-6.html
share/doc/bg5ps/html/bg5ps-7.html
share/doc/bg5ps/html/bg5ps.html
share/doc/bg5ps/makeps
share/doc/bg5ps/ttf2ps.doc
share/examples/bg5ps/
share/examples/bg5ps/netscape.ps
share/examples/bg5ps/test.big5
share/examples/bg5ps/test.gb2312
share/examples/bg5ps/test.sh

View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
COMMENT= translate GB/Big5 encoding to tone pinyin
DISTNAME= zh-c2t-1.0
CATEGORIES= chinese
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c
MASTER_SITES= ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/convert/
MASTER_SITES0= ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/x-win/cxterm/dict/gb/
DISTFILES= c2t.tar.gz TONEPY.tit:0
EXTRACT_ONLY= c2t.tar.gz
WRKDIST= ${WRKDIR}
NO_REGRESS= Yes
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/chinese/gb
${INSTALL_PROGRAM} ${WRKSRC}/c2t ${PREFIX}/bin
${INSTALL_DATA} ${FULLDISTDIR}/TONEPY.tit ${PREFIX}/share/chinese/gb
${INSTALL_MAN} ${WRKSRC}/c2t.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
MD5 (TONEPY.tit) = B2tteOpn//UFRANTq7XVHg==
MD5 (c2t.tar.gz) = R6G3eBXMAtnWZyFqSNaJMQ==
RMD160 (TONEPY.tit) = GpbPTQTCjZ6HOGABlDKikaZicKs=
RMD160 (c2t.tar.gz) = Uv7oXnPMl69k8K3WefFDZe3S0DM=
SHA1 (TONEPY.tit) = xjusSfAk/lxRc7Xo016oSon60F8=
SHA1 (c2t.tar.gz) = e/qG7CCtP4x83GJkG/QDSYt4Tgo=
SHA256 (TONEPY.tit) = A1GkYKe9aebNUKn/YeaoXP6LI1k6VsApx12BxtucYZ4=
SHA256 (c2t.tar.gz) = aAsrI1aPpYPrDlD/28wp06rQTHDEm05z3JBP2c+4FPM=
SIZE (TONEPY.tit) = 26299
SIZE (c2t.tar.gz) = 2678

View File

@ -0,0 +1,15 @@
--- Makefile.orig Wed Feb 24 06:21:39 1993
+++ Makefile Thu Mar 1 10:44:58 2001
@@ -1,9 +1,9 @@
-CC=cc
+CC=cc -DCHINDICT=\"$(PREFIX)/share/chinese/gb/TONEPY.tit\"
all: c2t
c2t: c2t.o
- $(CC) -O -o c2t c2t.o
+ $(CC) $(CFLAGS) -o c2t c2t.o
c2t.o: c2t.c
- $(CC) -O -c c2t.c
+ $(CC) $(CFLAGS) -c c2t.c

View File

@ -0,0 +1,49 @@
--- c2t.c.orig Tue Feb 23 22:29:23 1993
+++ c2t.c Mon Mar 2 21:12:22 1998
@@ -22,10 +22,14 @@
int argc;
char **argv;
{
+#ifndef CHINDICT
char *DICT="/home/ftp/software/unix/X-Window/cxterm-dictionary/TONEPY.tit";
+#else
+ char *DICT=CHINDICT;
+#endif
register int eka=0, toka=0, i=0;
register char hz[4], **pipo=0;
- register char **taulu=0, rivi[82];
+ char **taulu=0, rivi[82];
register int rpit=0, tila=0, rraja=0, mulpin=0;
int monitila=0;
FILE *piffi=0;
@@ -57,12 +61,12 @@
i =0;
} /*if argc > 1 */
if ((piffi = fopen (DICT, "r")) == 0) {
- printf (stderr, "Error: unable to open pinyin dictionnary %s\n",
+ fprintf (stderr, "Error: unable to open pinyin dictionnary %s\n",
DICT);
exit (-1);
}
if ((taulu = (char **)malloc (MEMAREA*sizeof(char *))) == 0) {
- printf (stderr, "Error: out of memory when allocating taulu(MEMAREA too large)\n");
+ fprintf (stderr, "Error: out of memory when allocating taulu(MEMAREA too large)\n");
exit (-2);
}
pipo = taulu;
@@ -81,13 +85,13 @@
} else {
if (rivi[0] == '#') continue;
if ((*pipo = (char *)malloc (rpit+8)) == 0) {
- printf (stderr, "Error: out of memory when allocating *pipo\n");
+ fprintf (stderr, "Error: out of memory when allocating *pipo\n");
exit (-3);
}
strcpy (*pipo, rivi);
pipo++;
if (++rraja >= MEMAREA) {
- printf (stderr, "Error: out of memory when allocating *pipo(MEMAREA too small)...\n");
+ fprintf (stderr, "Error: out of memory when allocating *pipo(MEMAREA too small)...\n");
exit (-4);
}
}

View File

@ -0,0 +1,2 @@
c2t (chinese2text) translates GB/Big5 encoding to tone pinyin.

View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
bin/c2t
@man man/man1/c2t.1
share/chinese/
share/chinese/gb/
share/chinese/gb/TONEPY.tit

View File

@ -0,0 +1,30 @@
# New ports collection makefile for: cless
# Version required: 2.90
# Date created: Thu Jan 18, 2000
# Whom: Kevin Lo <kevlo@openbsd.org>
#
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
#
COMMENT= pager utility that speaks Chinese
DISTNAME= cless-290
PKGNAME= zh-${DISTNAME}
CATEGORIES= chinese misc
MASTER_SITES= ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/c-utils/
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c curses termcap
CONFIGURE_STYLE= gnu dest old
CFLAGS+= -DHANZI # LDFLAGS=-s datadir=/usr/local/lib/less
post-install:
${INSTALL_DATA} ${WRKSRC}/README.CLESS ${PREFIX}/share/doc/cless
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (cless-290.tar.gz) = bQvFkV2gjH+Bv2UPWfVGlw==
RMD160 (cless-290.tar.gz) = RqQgb/WVXGz2iOPyZxzr+Sj2DR0=
SHA1 (cless-290.tar.gz) = /ae21Gcz97P9pWK5Y6fqjjEW+iA=
SHA256 (cless-290.tar.gz) = j/GGES9tMmUk8aCNGlSaRXranpZRcqQKKMWkzZCgZEI=
SIZE (cless-290.tar.gz) = 172827

View File

@ -0,0 +1,48 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
--- Makefile.in.orig Tue Apr 25 04:41:39 1995
+++ Makefile.in Fri Oct 26 22:20:02 2007
@@ -25,7 +25,7 @@ bindir = ${exec_prefix}/bin
binprefix =
# Where the help file goes.
-datadir = ${prefix}/share
+datadir = ${prefix}/share/doc/cless
mandir = ${prefix}/man/man${manext}
manext = 1
@@ -73,24 +73,24 @@ lesskey: lesskey.${O} version.${O}
${OBJ}: less.h defines.h funcs.h
filename.${O}: filename.c
- ${CC} -c -DHELPFILE=\"${datadir}/less.hlp\" -I. ${CPPFLAGS} ${CFLAGS} ${srcdir}/filename.c
+ ${CC} -c -DHELPFILE=\"${datadir}/cless.gb\" -I. ${CPPFLAGS} ${CFLAGS} ${srcdir}/filename.c
install: all less.hlp less.bg5 less.gb less.nro installdirs
- ${INSTALL_PROGRAM} less ${bindir}/${binprefix}less
- ${INSTALL_PROGRAM} lesskey ${bindir}/${binprefix}lesskey
- ${INSTALL_DATA} ${srcdir}/less.hlp ${datadir}/less.hlp
- ${INSTALL_DATA} ${srcdir}/less.bg5 ${datadir}/less.bg5
- ${INSTALL_DATA} ${srcdir}/less.gb ${datadir}/less.gb
- ${INSTALL_DATA} ${srcdir}/less.nro ${mandir}/${manprefix}less.${manext}
- ${INSTALL_DATA} ${srcdir}/lesskey.nro ${mandir}/${manprefix}lesskey.${manext}
+ ${INSTALL_PROGRAM} less ${bindir}/${binprefix}cless
+ ${INSTALL_PROGRAM} lesskey ${bindir}/${binprefix}clesskey
+ ${INSTALL_DATA} ${srcdir}/less.hlp ${datadir}/cless.hlp
+ ${INSTALL_DATA} ${srcdir}/less.bg5 ${datadir}/cless.bg5
+ ${INSTALL_DATA} ${srcdir}/less.gb ${datadir}/cless.gb
+ ${INSTALL_DATA} ${srcdir}/less.nro ${mandir}/${manprefix}cless.${manext}
+ ${INSTALL_DATA} ${srcdir}/lesskey.nro ${mandir}/${manprefix}clesskey.${manext}
installdirs: mkinstalldirs
${srcdir}/mkinstalldirs ${bindir} ${datadir} ${mandir}
uninstall:
- rm -f ${bindir}/${binprefix}less ${bindir}/${binprefix}lesskey
- rm -f ${datadir}/less.hlp ${datadir}/less.bg5 ${datadir}/less.gb
- rm -f ${mandir}/less.${manext} ${mandir}/lesskey.${manext}
+ rm -f ${bindir}/${binprefix}cless ${bindir}/${binprefix}clesskey
+ rm -f ${datadir}/cless.hlp ${datadir}/cless.bg5 ${datadir}/cless.gb
+ rm -f ${mandir}/cless.${manext} ${mandir}/clesskey.${manext}
info:
install-info:

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-defines_h_in,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
--- defines.h.in.orig Tue Apr 25 04:33:06 1995
+++ defines.h.in Fri Oct 26 22:20:02 2007
@@ -104,8 +104,8 @@
* DEF_LESSKEYINFILE is the filename of the default lesskey input
* (in the HOME directory).
*/
-#define LESSKEYFILE ".less"
-#define DEF_LESSKEYINFILE ".lesskey"
+#define LESSKEYFILE ".cless"
+#define DEF_LESSKEYINFILE ".clesskey"
/* Settings always true on Unix. */

View File

@ -0,0 +1,434 @@
$OpenBSD: patch-less_nro,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
--- less.nro.orig Thu Mar 2 22:15:01 1995
+++ less.nro Fri Oct 26 22:20:02 2007
@@ -1,12 +1,12 @@
.TH LESS 1
.SH NAME
-less \- opposite of more
+cless \- opposite of more
.SH SYNOPSIS
-.B "less -?"
+.B "cless -?"
.br
-.B "less -V"
+.B "cless -V"
.br
-.B "less [-[+]aBcCdeEfgGiImMnNqQrsSuUVwX]"
+.B "cless [-[+]aBcCdeEfgGiImMnNqQrsSuUVwX]"
.br
.B " [-b \fIbufs\fP] [-h \fIlines\fP] [-j \fIline\fP] [-k \fIkeyfile\fP]"
.br
@@ -23,7 +23,7 @@ is a program similar to
(1), but which allows backward movement
in the file as well as forward movement.
Also,
-.I less
+.I cless
does not have to read the entire input file before starting,
so with large input files it starts up faster than text editors like
.I vi
@@ -114,7 +114,7 @@ standard input, rather than a file, is being read.)
Go to a position N percent into the file.
N should be between 0 and 100.
(This works if standard input is being read, but only if
-.I less
+.I cless
has already read to the end of the file.
It is always fast, but not always useful.)
.PP
@@ -329,18 +329,18 @@ The setting of the option is not changed.
.IP +cmd
Causes the specified cmd to be executed each time a new file is examined.
For example, +G causes
-.I less
+.I cless
to initially display each file starting at the end
rather than the beginning.
.PP
.IP V
Prints the version number of
-.I less
+.I cless
being run.
.PP
.IP "q or :q or :Q or ZZ"
Exits
-.I less.
+.I cless.
.PP
The following
three
@@ -374,13 +374,13 @@ If <m> is . or newline, the current screen is piped.
.SH OPTIONS
Command line options are described below.
Most options may be changed while
-.I less
+.I cless
is running, via the "\-" command.
.PP
Options are also taken from the environment variable "LESS".
For example,
-to avoid typing "less -options ..." each time
-.I less
+to avoid typing "cless -options ..." each time
+.I cless
is invoked, you might tell
.I csh:
.sp
@@ -402,10 +402,10 @@ This is important only for options like -P which take
following string.
.IP -?
This option displays a summary of the commands accepted by
-.I less
+.I cless
(the same as the h command).
If this option is given, all other options are ignored, and
-.I less
+.I cless
exits after the help screen is viewed.
(Depending on how your shell interprets the question mark,
it may be necessary to quote the question mark, thus: "-\\?".)
@@ -417,7 +417,7 @@ By default, searches start at the second line on the s
(or after the last found line; see the -j option).
.IP -b\fIn\fP
Specifies the number of buffers
-.I less
+.I cless
will use for each file.
Buffers are 1K, and by default 10 buffers are used for each file
(except if the file is a pipe; see the -B option).
@@ -444,7 +444,7 @@ normally displayed if the terminal is dumb;
that is, lacks some important capability,
such as the ability to clear the screen or scroll backward.
The -d option does not otherwise change the behavior of
-.I less
+.I cless
on a dumb terminal).
.IP -D\fBx\fP\fIcolor\fP
[MS-DOS only]
@@ -457,31 +457,31 @@ the background color of the text.
A single number \fIN\fP is the same as \fIN.0\fP.
.IP -e
Causes
-.I less
+.I cless
to automatically exit
the second time it reaches end-of-file.
By default, the only way to exit
-.I less
+.I cless
is via the "q" command.
.IP -E
Causes
-.I less
+.I cless
to automatically exit the first time it reaches end-of-file.
.IP -f
Forces non-regular files to be opened.
(A non-regular file is a directory or a device special file.)
Also suppresses the warning message when a binary file is opened.
By default,
-.I less
+.I cless
will refuse to open non-regular files.
.IP -g
Normally,
-.I less
+.I cless
will highlight ALL strings which match the last search command.
The -g flag changes this behavior to highlight only the particular string
which was found by the last search command.
This can cause
-.I less
+.I cless
to run somewhat faster than the default.
.IP -G
The -G flag suppresses all highlighting of strings found by search commands.
@@ -519,32 +519,32 @@ fourth line on the screen, so searches begin at the fi
on the screen.
.IP -k\fIfilename\fP
Causes
-.I less
+.I cless
to open and interpret the named file as a
-.I lesskey
+.I clesskey
(1) file.
Multiple -k options may be specified.
-If a file called .less exists in the user's home directory, this
+If a file called .cless exists in the user's home directory, this
file is also used as a
-.I lesskey
+.I clesskey
file.
.IP -m
Causes
-.I less
+.I cless
to prompt verbosely (like \fImore\fP),
with the percent into the file.
By default,
-.I less
+.I cless
prompts with a colon.
.IP -M
Causes
-.I less
+.I cless
to prompt even more verbosely than
.I more.
.IP -n
Suppresses line numbers.
The default (to use line numbers) may cause
-.I less
+.I cless
to run more slowly in some cases, especially with a very large input file.
Suppressing line numbers with the -n flag will avoid this problem.
Using line numbers means: the line number will be displayed in the verbose
@@ -556,12 +556,12 @@ Causes a line number to be displayed at the beginning
each line in the display.
.IP -o\fIfilename\fP
Causes
-.I less
+.I cless
to copy its input to the named file as it is being viewed.
This applies only when the input file is a pipe,
not an ordinary file.
If the file already exists,
-.I less
+.I cless
will ask for confirmation before overwriting it.
.IP -O\fIfilename\fP
The -O option is like -o, but it will overwrite an existing
@@ -569,23 +569,23 @@ file without asking for confirmation.
.sp
If no log file has been specified,
the -o and -O options can be used from within
-.I less
+.I cless
to specify a log file.
Without a file name, they will simply report the name of the log file.
The "s" command is equivalent to specifying -o from within
-.I less.
+.I cless.
.IP -p\fIpattern\fP
The -p option on the command line is equivalent to
specifying +/\fIpattern\fP;
that is, it tells
-.I less
+.I cless
to start at the first occurrence of \fIpattern\fP in the file.
.IP -P\fIprompt\fP
Provides a way to tailor the three prompt
styles to your own preference.
This option would normally be put in the LESS environment
variable, rather than being typed in with each
-.I less
+.I cless
command.
Such an option must either be the last option in the LESS variable,
or be terminated by a dollar sign.
@@ -613,7 +613,7 @@ Causes "raw" control characters to be displayed.
The default is to display control characters using the caret notation;
for example, a control-A (octal 001) is displayed as "^A".
Warning: when the -r flag is used,
-.I less
+.I cless
cannot keep track of the actual appearance of the screen
(since this depends on how the screen responds to
each type of control character).
@@ -638,10 +638,10 @@ current directory, which was previously built by the
.I ctags
(1) command.
This option may also be specified from within
-.I less
+.I cless
(using the \- command) as a way of examining a new file.
The command ":t" is equivalent to specifying -t from within
-.I less.
+.I cless.
.IP -T\fItagsfile\fP
Specifies a tags file to be used instead of "tags".
.IP -u
@@ -667,7 +667,7 @@ Text which is overstruck or underlined can be searched
if neither -u nor -U is in effect.
.IP -V
Displays the version number of
-.I less.
+.I cless.
.IP -w
Causes blank lines to be used to represent lines
past the end of the file.
@@ -705,9 +705,9 @@ the scrolling window automatically changes to 36 lines
.IP +
If a command line option begins with \fB+\fP,
the remainder of that option is taken to be an initial command to
-.I less.
+.I cless.
For example, +G tells
-.I less
+.I cless
to start at the end of the file rather than the beginning,
and +/xyz tells it to start at the first occurrence of "xyz" in the file.
As a special case, +<number> acts like +<number>g;
@@ -777,25 +777,25 @@ other than ^U, that character is used instead of ^U.
.SH "KEY BINDINGS"
You may define your own
-.I less
+.I cless
commands by using the program
-.I lesskey
+.I clesskey
(1)
-to create a file called ".less" in your home directory.
+to create a file called ".cless" in your home directory.
This file specifies a set of command keys and an action
associated with each key.
You may also use
-.I lesskey
+.I clesskey
to change the line-editing keys (see LINE EDITING).
See the
-.I lesskey
+.I clesskey
manual page for more details.
.SH "INPUT PREPROCESSOR"
You may define an "input preprocessor" for
-.I less.
+.I cless.
Before
-.I less
+.I cless
opens a file, it first gives your input preprocessor a chance to modify the
way the contents of the file are displayed.
An input preprocessor is simply an executable program (or shell script),
@@ -805,7 +805,7 @@ The contents of the replacement file are then displaye
in place of the contents of the original file.
However, it will appear to the user as if the original file is opened;
that is,
-.I less
+.I cless
will display the original filename as the name of the current file.
.PP
An input preprocessor receives one command line argument, the original filename,
@@ -813,7 +813,7 @@ as entered by the user.
It should create the replacement file, and when finished,
print the name of the replacement file to its standard output.
If the input preprocessor does not output a replacement filename,
-.I less
+.I cless
uses the original file, as normal.
The input preprocessor is not called when viewing standard input.
To set up an input preprocessor, set the LESSOPEN environment variable
@@ -823,7 +823,7 @@ which will be replaced by the filename
when the input preprocessor command is invoked.
.PP
When
-.I less
+.I cless
closes a file opened in such a way, it will call another program,
called the input postprocessor,
which may perform any desired clean-up action (such as deleting the
@@ -839,24 +839,24 @@ which was output by LESSOPEN.
.PP
For example, on many Unix systems, these two scripts will allow you
to keep files in compressed format, but still let
-.I less
+.I cless
view them directly:
.PP
-lessopen.sh:
+clessopen.sh:
.br
#! /bin/sh
.br
case "$1" in
.br
- *.Z) uncompress -c $1 >/tmp/less.$$ 2>/dev/null
+ *.Z) uncompress -c $1 >/tmp/cless.$$ 2>/dev/null
.br
- if [ -s /tmp/less.$$ ]; then
+ if [ -s /tmp/cless.$$ ]; then
.br
- echo /tmp/less.$$
+ echo /tmp/cless.$$
.br
else
.br
- rm -f /tmp/less.$$
+ rm -f /tmp/cless.$$
.br
fi
.br
@@ -878,7 +878,7 @@ to accept other types of compressed files, and so on.
.PP
It is also possible to set up an input preprocessor to
pipe the file data directly to
-.I less,
+.I cless,
rather than putting the data into a replacement file.
This avoids the need to decompress the entire file before
starting to view it.
@@ -888,7 +888,7 @@ its standard output,
writes the entire contents of the replacement file on its standard output.
If the input pipe does not write any characters on its standard output,
then there is no replacement file and
-.I less
+.I cless
uses the original file, as normal.
To use an input pipe,
make the first character in the LESSOPEN environment variable a
@@ -950,7 +950,7 @@ Selects a Russian character set.
Selects a character set appropriate for NeXT computers.
.PP
In special cases, it may be desired to tailor
-.I less
+.I cless
to use a character set other than the ones definable by LESSCHARSET.
In this case, the environment variable LESSCHARDEF can be used
to define a character set.
@@ -983,7 +983,7 @@ If neither LESSCHARSET nor LESSCHARDEF is set,
but your system supports the
.I setlocale
interface,
-.I less
+.I cless
will use setlocale to determine the character set.
setlocale is controlled by setting the LANG or LC_CTYPE environment variables.
.PP
@@ -1173,14 +1173,14 @@ LINES and COLUMNS environment variables.)
.IP EDITOR
The name of the editor (used for the v command).
.IP HOME
-Name of the user's home directory (used to find a .less file).
+Name of the user's home directory (used to find a .cless file).
.IP LANG
Language for determining the character set.
.IP LC_CTYPE
Language for determining the character set.
.IP LESS
Flags which are passed to
-.I less
+.I cless
automatically.
.IP LESSBINFMT
Format for displaying non-printable, non-control characters.
@@ -1204,13 +1204,14 @@ Takes precedence over the number of lines specified by
The shell used to execute the ! command, as well as to expand filenames.
.IP TERM
The type of terminal on which
-.I less
+.I cless
is being run.
.IP VISUAL
The name of the editor (used for the v command).
.SH "SEE ALSO"
-lesskey(1)
+clesskey(1)
+less(1)
.SH WARNINGS
The = command and prompts (unless changed by -P)

View File

@ -0,0 +1,104 @@
$OpenBSD: patch-lesskey_nro,v 1.1.1.1 2008/10/04 08:11:53 kevlo Exp $
--- lesskey.nro.orig Wed Feb 1 00:55:56 1995
+++ lesskey.nro Fri Oct 26 22:20:02 2007
@@ -1,22 +1,22 @@
.TH LESSKEY 1
.SH NAME
-lesskey \- specify key bindings for less
+clesskey \- specify key bindings for cless
.SH SYNOPSIS
-.B "lesskey [-o output] [input]"
+.B "clesskey [-o output] [input]"
.br
-.B "lesskey -V"
+.B "clesskey -V"
.SH DESCRIPTION
.I Lesskey
is used to specify a set of key bindings to be used by
-.I less.
+.I cless.
The input file is a text file which describes the key bindings,
If the input file is "-", standard input is read.
-If no input file is specified, $HOME/.lesskey is read.
+If no input file is specified, $HOME/.clesskey is read.
The output file is a binary file which is used by
-.I less.
-If no output file is specified, $HOME/.less is written.
+.I cless.
+If no output file is specified, $HOME/.cless is written.
If the output file already exists,
-.I lesskey
+.I clesskey
will overwrite it.
.PP
The input file consists of lines of the form:
@@ -26,7 +26,7 @@ The input file consists of lines of the form:
Whitespace is any sequence of one or more spaces and/or tabs.
The \fIstring\fP is the command key(s) which invoke the action.
The \fIstring\fP may be a single command key, or a sequence of up to 15 keys.
-The \fIaction\fP is the name of the less action, from the list below.
+The \fIaction\fP is the name of the cless action, from the list below.
The characters in the \fIstring\fP may appear literally, or be
prefixed by a caret to indicate a control key.
A backslash followed by one to three octal digits may be used to
@@ -41,22 +41,22 @@ Blank lines and lines which start with a pound sign (#
.PP
An action may be followed by an "extra" string.
When such a command is entered while running
-.I less,
+.I cless,
the action is performed, and then the extra
string is parsed, just as if it were typed in to
-.I less.
+.I cless.
This feature can be used in certain cases to extend
the functionality of a command.
For example, see the "{" and ":t" commands in the example below.
.PP
The -V flag causes
-.I lesskey
+.I clesskey
to print its version number and immediately exit.
Other flags and arguments are ignored.
.SH EXAMPLE
The following input file describes the set of
-default command keys used by less:
+default command keys used by cless:
.sp
.nf
\er forw-line
@@ -147,14 +147,14 @@ default command keys used by less:
.sp
.SH PRECEDENCE
Commands specified by
-.I lesskey
+.I clesskey
take precedence over the default commands.
A default command key may be disabled by including it in the
input file with the action "invalid".
Alternatively, a key may be defined
to do nothing by using the action "noaction".
"noaction" is similar to "invalid", but
-.I less
+.I cless
will give an error beep for an "invalid" command,
but not for a "noaction" command.
In addition, ALL default commands may be disabled by
@@ -185,7 +185,7 @@ one per line as in the example below.
.SH EXAMPLE
The following input file describes the set of
-default line-editing keys used by less:
+default line-editing keys used by cless:
.sp
.nf
#line-edit
@@ -210,6 +210,7 @@ default line-editing keys used by less:
.sp
.SH "SEE ALSO"
+cless(1)
less(1)
.SH COPYRIGHT

View File

@ -0,0 +1,12 @@
A paginator similar to "more" or "pg", but much more powerful and
speaks Chinese.
Cless is a port of GNU's less version 290 that supports the display of files
written in the Chinese language using the GB (simple) or Big5 (complex)
encodings. You can switch to reading of normal ASCII text by setting the
environment LESSCHARSET to 'ascii'.
Also, the help can be displayed in either Simple Chinese, Complex Chinese,
or English by setting the LESSHELP environmental variable to the correct
helpfile. Cless should be run w/in a CXterm or a similar terminal emulator
supporting Chinese language encodings.

View File

@ -0,0 +1,10 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
bin/cless
bin/clesskey
@man man/man1/cless.1
@man man/man1/clesskey.1
share/doc/cless/
share/doc/cless/README.CLESS
share/doc/cless/cless.bg5
share/doc/cless/cless.gb
share/doc/cless/cless.hlp

View File

@ -0,0 +1,40 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
COMMENT= Chinese(Big5) VT100 terminal emulator for X
DISTNAME= crxvt-2.10-2
PKGNAME= zh-crxvt-2.10.2
CATEGORIES= chinese
MASTER_SITES= ${MASTER_SITES_BACKUP}
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
PERMIT_PACKAGE_CDROM= no license
PERMIT_PACKAGE_FTP= no license
PERMIT_DISTFILES_CDROM= no license
PERMIT_DISTFILES_FTP= no license
WANTLIB= c X11
RUN_DEPENDS= ::chinese/taipeifonts
USE_X11= Yes
CONFIGURE_STYLE= gnu old
CONFIGURE_ARGS= --os=OpenBSD --no-menu
post-configure:
mv ${WRKSRC}/config.status ${WRKSRC}/config.status.orig
sed -e '/OPT_CRXVT_CFONT/s/=.*/=-taipei-ming-medium-r-normal--16-160-75-75-c-160-big5-0/' ${WRKSRC}/config.status.orig > ${WRKSRC}/config.status
post-extract:
mv ${WRKSRC}/script/os_def/FreeBSD ${WRKSRC}/script/os_def/FreeBSD.orig
sed -e '/OS/s/=.*/=OpenBSD/' ${WRKSRC}/script/os_def/FreeBSD.orig > ${WRKSRC}/script/os_def/OpenBSD
NO_REGRESS= Yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/crxvt ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/man/crxvt.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (crxvt-2.10-2.tar.gz) = 9PWLYxq36Rk3CHIa3pgPIw==
RMD160 (crxvt-2.10-2.tar.gz) = M0+rqC+Cl5sTGILIILQsZ6O+gd8=
SHA1 (crxvt-2.10-2.tar.gz) = V2BBwzdpt7HgyFDApBn1Kl6hjR0=
SHA256 (crxvt-2.10-2.tar.gz) = ZmidWy9ketM1YyAlRIymQ0Xst6wlngchDeiOW/epIr4=
SIZE (crxvt-2.10-2.tar.gz) = 84785

View File

@ -0,0 +1,4 @@
Crxvt is a Chinese (Big5) VT100 terminal emulator for X.
It is based on rxvt, which is intended as a replacement
for xterm for users who do not require the more esoteric
features of xterm.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
bin/crxvt
@man man/man1/crxvt.1

View File

@ -0,0 +1,39 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
COMMENT= convert between GB and BIG-5 codes
DISTNAME= zh-hc-3.0
CATEGORIES= chinese
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
# Fairly restrictive licence
PERMIT_PACKAGE_CDROM= No
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= No
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c
MASTER_SITES= ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/convert/
DISTFILES= hc-30.tar.gz hc-supp.tab
EXTRACT_ONLY= hc-30.tar.gz
WRKDIST= ${WRKDIR}/hc3
ALL_TARGET= hc b2g g2b
NO_REGRESS= Yes
pre-patch:
perl -pi -e 's|malloc.h|stdlib.h|' ${WRKSRC}/hclib.c
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/hc
${INSTALL_PROGRAM} ${WRKSRC}/hc ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/b2g ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/g2b ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/hc.tab ${PREFIX}/share/hc
${INSTALL_DATA} ${FULLDISTDIR}/hc-supp.tab ${PREFIX}/share/hc
${INSTALL_MAN} ${WRKSRC}/hc.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
MD5 (hc-30.tar.gz) = 46D61hVOHT9Oiru1Kr8o4Q==
MD5 (hc-supp.tab) = WxLbP751tLJSpPWIodJaWA==
RMD160 (hc-30.tar.gz) = gQn8GBClnn1DDH8WwTsqeh1dBp0=
RMD160 (hc-supp.tab) = pvIGs4jI5PnwLlo/awNXS3asvHA=
SHA1 (hc-30.tar.gz) = hh/KbjeNAKrFioSg6khqhixJtNI=
SHA1 (hc-supp.tab) = qgUpJ/uScBD4uDfQ+7/GcI48FZ4=
SHA256 (hc-30.tar.gz) = XpoPBoe1UhwS+89p3CHeZh1Gd3IBS9AveS9cd7rg9wc=
SHA256 (hc-supp.tab) = GzMMpcLKZYCD+BiuZe5VAVeWek6rfTCdmh9FUIBUhHQ=
SIZE (hc-30.tar.gz) = 35906
SIZE (hc-supp.tab) = 1029

View File

@ -0,0 +1,17 @@
--- Makefile.orig Thu Jan 24 09:08:23 2002
+++ Makefile Thu Jan 24 09:10:05 2002
@@ -5,12 +5,12 @@
b2g:
echo "#! /bin/csh" > b2g
- echo $(PWD)/hc "-m b2g -t" $(PWD)/hc.tab "$$*" >> b2g
+ echo $(PREFIX)/bin/hc "-m b2g -t" $(PREFIX)/share/hc/hc.tab "$$*" >> b2g
chmod a+x b2g
g2b:
echo "#! /bin/csh" > g2b
- echo $(PWD)/hc -m g2b -t $(PWD)/hc.tab "$$*" >> g2b
+ echo $(PREFIX)/bin/hc -m g2b -t $(PREFIX)/share/hc/hc.tab "$$*" >> g2b
chmod a+x g2b
clean:

View File

@ -0,0 +1,5 @@
The program converts a GB file to a BIG-5 file, or a BIG-5 file to a GB file.
GB (GuoBiao) refers to the standard implementation of "GB2312-80" of
Mainland China, in which the two bytes representing a GB code have their
most significant bit set to 1. BIG-5 refers to the Big Five standard
published in 1984 by Taiwan's Institute for Information Industry.

View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
@conflict hc-*
bin/b2g
bin/g2b
bin/hc
@man man/man1/hc.1
share/hc/
share/hc/hc-supp.tab
share/hc/hc.tab

View File

@ -0,0 +1,39 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
COMMENT= extra chinese fonts
DISTNAME= zh-fonts-kc-1.05
CATEGORIES= chinese x11
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
MASTER_SITES= http://cle.linux.org.tw/fonts/bitmap/KCFONTS/
DIST_SUBDIR= zh-kcfonts
DISTFILES= ${FONTS}
CONFIGURE_STYLE= imake
EXTRACT_ONLY=
NO_BUILD= Yes
NO_REGRESS= Yes
USE_X11= Yes
PKG_ARCH= *
FONTS= kc8x15.pcf.gz kc12x24.pcf.gz kc15f.pcf.gz kc24f.pcf.gz
FONTDIR= ${PREFIX}/lib/X11/fonts/chinese
post-extract:
@mkdir -p ${WRKDIST}
@cp ${FILESDIR}/Imakefile ${FILESDIR}/kc.alias ${WRKDIST}
@for i in ${FONTS} ; do cp $(FULLDISTDIR)/$$i ${WRKDIST}; done
post-install:
@cd ${FONTDIR} && mv fonts.alias fonts.alias-kc
.include <bsd.port.mk>

View File

@ -0,0 +1,20 @@
MD5 (zh-kcfonts/kc12x24.pcf.gz) = iUug3JWFY7AmTfG6iMkWbw==
MD5 (zh-kcfonts/kc15f.pcf.gz) = t++xCuOmoEkbZn6rDGBZXA==
MD5 (zh-kcfonts/kc24f.pcf.gz) = PiJXGLxQtFUa+8HZuS8Fpg==
MD5 (zh-kcfonts/kc8x15.pcf.gz) = R9CoNm67XpJszh+rHfVq0Q==
RMD160 (zh-kcfonts/kc12x24.pcf.gz) = fcJ4UrVwQHi+r2HljSDHcfj/dkM=
RMD160 (zh-kcfonts/kc15f.pcf.gz) = o4x+wqFXnIGmZUM+lPwPW1o0NFg=
RMD160 (zh-kcfonts/kc24f.pcf.gz) = YyzO0XEQCy0kcvExlmY8t0p0wk0=
RMD160 (zh-kcfonts/kc8x15.pcf.gz) = TuLPBu1EWuI7AGdNWT+4/sxTz90=
SHA1 (zh-kcfonts/kc12x24.pcf.gz) = ztZ/QiRClNTFYxs7NYpuf3IuGHI=
SHA1 (zh-kcfonts/kc15f.pcf.gz) = POCJmPauHRcQcicL/UZMYLconoA=
SHA1 (zh-kcfonts/kc24f.pcf.gz) = hsxaJg0uI3zh0Ad3gorpzmQ0wD4=
SHA1 (zh-kcfonts/kc8x15.pcf.gz) = V4xenMrFuPAKjdh6e00cbMfMhRE=
SHA256 (zh-kcfonts/kc12x24.pcf.gz) = 91BqdUM6cQYVjerhsDbWwVdqyB+dsoa0DLZGcUFY4wM=
SHA256 (zh-kcfonts/kc15f.pcf.gz) = Yj0Wv4P68U9JzmgE4ONDENopD7SI3jYmLKqL52ud83k=
SHA256 (zh-kcfonts/kc24f.pcf.gz) = q4P8+OeLmmscsoMcBqoytXndl7RLbCj0gV+eoOkmGNE=
SHA256 (zh-kcfonts/kc8x15.pcf.gz) = fu6ZGX/geA6DeWm8HkeTfqaHeCaIpI221VSMeGHLhVE=
SIZE (zh-kcfonts/kc12x24.pcf.gz) = 6353
SIZE (zh-kcfonts/kc15f.pcf.gz) = 452363
SIZE (zh-kcfonts/kc24f.pcf.gz) = 821419
SIZE (zh-kcfonts/kc8x15.pcf.gz) = 5131

View File

@ -0,0 +1,21 @@
# $OpenBSD: Imakefile,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
OBJS = FontBaseObj(kc8x15).gz FontBaseObj(kc12x24).gz \
FontBaseObj(kc15f).gz FontBaseObj(kc24f).gz
ALIASFILE = kc.alias
FONTINSTDIR = $(FONTDIR)/chinese
MakeFonts()
InstallFonts($(FONTINSTDIR))
InstallFontAliases($(FONTINSTDIR))
all:: fonts.alias
fonts.alias: $(ALIASFILE)
cat $(ALIASFILE) > fonts.alias
clean::
$(RM) fonts.alias

View File

@ -0,0 +1,4 @@
-kc-fixed-medium-r-normal--24-170-100-100-c-120-iso8859-1 kc12x24
-kc-fixed-medium-r-normal--16-160-72-72-c-160-big5-0 kc15f
-kc-fixed-medium-r-normal--24-240-100-100-c-240-big5-0 kc24f
-kc-fixed-medium-r-normal--15-170-100-100-c-80-iso8859-1 kc8x15

View File

@ -0,0 +1,3 @@
kcfonts is a suit of chinese Ming Fanti fonts for X Window.
kcfonts' fonts are contributed by Kau Chauo Information Co. to all
TANet users running on PC.

View File

@ -0,0 +1,10 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
lib/X11/fonts/
@fontdir lib/X11/fonts/chinese/
lib/X11/fonts/chinese/fonts.alias-kc
@comment lib/X11/fonts/chinese/fonts.dir
@comment lib/X11/fonts/chinese/fonts.scale
lib/X11/fonts/chinese/kc12x24.pcf.gz
lib/X11/fonts/chinese/kc15f.pcf.gz
lib/X11/fonts/chinese/kc24f.pcf.gz
lib/X11/fonts/chinese/kc8x15.pcf.gz

View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
COMMENT= intelligent phonetic input method library
DISTNAME= libchewing-0.3.1
PKGNAME= zh-${DISTNAME}
SHARED_LIBS= chewing 0.0 # .3.1
CATEGORIES= chinese inputmethods
HOMEPAGE= http://chewing.csie.net/
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://chewing.csie.net/download/libchewing/
EXTRACT_SUFX= .tar.bz2
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (libchewing-0.3.1.tar.bz2) = GHR0ADj6obSF0UhMBUq/Kg==
RMD160 (libchewing-0.3.1.tar.bz2) = kDhpALnxNze0zToHsDsCxt6HnIg=
SHA1 (libchewing-0.3.1.tar.bz2) = AdawiInjKL6s809lXhGkFX0Lg9M=
SHA256 (libchewing-0.3.1.tar.bz2) = jAyKCFmmqbtevGybQQ7ovM/6ffnOQNlUPvcZCBnNHIk=
SIZE (libchewing-0.3.1.tar.bz2) = 1747544

View File

@ -0,0 +1,63 @@
$OpenBSD: patch-configure,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
--- configure.orig Wed Oct 1 16:48:55 2008
+++ configure Fri Oct 3 15:25:55 2008
@@ -12615,48 +12615,8 @@ echo "${ECHO_T}no" >&6; }
fi
pkg_failed=no
-{ echo "$as_me:$LINENO: checking for CHECK" >&5
-echo $ECHO_N "checking for CHECK... $ECHO_C" >&6; }
-if test -n "$PKG_CONFIG"; then
- if test -n "$CHECK_CFLAGS"; then
- pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\"") >&5
- ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
-else
- pkg_failed=untried
-fi
-if test -n "$PKG_CONFIG"; then
- if test -n "$CHECK_LIBS"; then
- pkg_cv_CHECK_LIBS="$CHECK_LIBS"
- else
- if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\"") >&5
- ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
-else
- pkg_failed=yes
-fi
- fi
-else
- pkg_failed=untried
-fi
-
-
if test $pkg_failed = yes; then
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
@@ -12680,9 +12640,7 @@ elif test $pkg_failed = untried; then
else
CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
CHECK_LIBS=$pkg_cv_CHECK_LIBS
- { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
- enable_check=yes
+ enable_check=no
fi
if test $enable_check = "yes"; then
ENABLE_UNIT_TEST_TRUE=

View File

@ -0,0 +1,5 @@
libchewing is derived from Chewing input method, a xcin module
focusing on intelligent phonetic processing by Lu-chuan Kung
(lckung) and Kang-pen Chen (kpchen). However, the original
authors of Chewing dropped its development, and Chewing was
highly bonded with xcin, which prevents from wider applications.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
@lib lib/libchewing.so.${LIBchewing_VERSION}

View File

@ -0,0 +1,27 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
%%SHARED%%
include/chewing/
include/chewing/char.h
include/chewing/chewing-utf8-util.h
include/chewing/chewing.h
include/chewing/chewingio.h
include/chewing/dict.h
include/chewing/global.h
include/chewing/hanyupinyin.h
include/chewing/hash.h
include/chewing/mod_aux.h
include/chewing/userphrase.h
include/chewing/zuin.h
lib/libchewing.a
lib/libchewing.la
lib/pkgconfig/
lib/pkgconfig/chewing.pc
share/chewing/
share/chewing/ch_index.dat
share/chewing/dict.dat
share/chewing/fonetree.dat
share/chewing/ph_index.dat
share/chewing/pinyin.tab
share/chewing/swkb.dat
share/chewing/symbols.dat
share/chewing/us_freq.dat

View File

@ -0,0 +1,37 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
COMMENT= library for Chinese language processing
DISTNAME= libtabe-0.2.6
PKGNAME= zh-${DISTNAME}p0
CATEGORIES= chinese
SHARED_LIBS += tabe 2.1 # .0.0
SHARED_LIBS += bims 2.1 # .0.0
HOMEPAGE= http://libtabe.sourceforge.net/
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c
MASTER_SITES= http://www.kpvs.tp.edu.tw/
LIB_DEPENDS= lib/db/db.=3:db-3.*:databases/db/v3
USE_LIBTOOL= Yes
USE_X11= Yes
CONFIGURE_STYLE= gnu dest
CONFIGURE_ARGS= --with-db-inc=${LOCALBASE}/include/db \
--with-db-lib=${LOCALBASE}/lib/db \
${CONFIGURE_SHARED}
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/script
WRKDIST= ${WRKDIR}/libtabe
NO_REGRESS= Yes
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (libtabe-0.2.6.tar.gz) = kkgU1Zix8C7PWWv1mDY7Gw==
RMD160 (libtabe-0.2.6.tar.gz) = HBgaK8S2lxGJtspByl7csT2eOhg=
SHA1 (libtabe-0.2.6.tar.gz) = rZvKZDEgmEzhmjX9VLfcHJGpjwU=
SHA256 (libtabe-0.2.6.tar.gz) = 29dkuAUAzTtuxiYGEr0qHxWB2EIBQpTUpi73T+t8q5E=
SIZE (libtabe-0.2.6.tar.gz) = 1625381

View File

@ -0,0 +1,81 @@
$OpenBSD: patch-configure,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
--- configure.orig 2004-03-02 12:33:19.000000000 +0000
+++ configure 2004-03-02 12:40:34.000000000 +0000
@@ -2372,7 +2372,14 @@ old_postuninstall_cmds=
if test -n "$RANLIB"; then
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
- old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
+ case "$host_os" in
+ openbsd*)
+ old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
+ ;;
+ *)
+ old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
+ ;;
+ esac
fi
# Allow CC to be a program name with arguments.
@@ -2895,7 +2902,9 @@ cygwin* | mingw* | pw32* )
with_gnu_ld=no
fi
;;
-
+openbsd*)
+ with_gnu_ld=no
+ ;;
esac
ld_shlibs=yes
@@ -3299,10 +3308,21 @@ else
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
+ case "$host_os" in
+ openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ export_dynamic_flag_spec='${wl}-E'
+ fi
+ ;;
+ esac
;;
os2*)
@@ -3791,9 +3811,23 @@ newsos6)
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
+ need_lib_prefix=no
+ need_version=no
+ file_magic_cmd=/usr/bin/file
+ file_magic_test_file=`echo /usr/lib/libc.so.*`
+ if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
+ case "$host_os" in
+ openbsd2.[89] | openbsd2.[89].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ deplibs_check_method='file_magic OpenBSD.* shared library'
+ shlibpath_overrides_runpath=yes
fi
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-script_Makefile_in,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
--- script/Makefile.in.orig Mon Aug 20 05:53:03 2001
+++ script/Makefile.in Fri Dec 28 14:31:40 2007
@@ -7,7 +7,10 @@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
@SET_MAKE@
-all: lib utils data
+all:
+ cd src && ${MAKE}
+ cd util && ${MAKE}
+ cd tsi-src && ${MAKE}
lib:
(cd src; $(MAKE))

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-script_config_sub,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
--- script/config.sub.orig 2001-06-07 13:29:27.000000000 +0000
+++ script/config.sub 2004-03-30 17:17:14.000000000 +0000
@@ -216,7 +216,7 @@ case $basic_machine in
| alphaev6[78]-* \
| we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
| clipper-* | orion-* \
- | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
+ | sparclite-* | pdp11-* | sh-* | macppc-* | powerpc-* | powerpcle-* \
| sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
| mips64el-* | mips64orion-* | mips64orionel-* \
| mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
--- src/Makefile.in.orig Sat Dec 24 14:31:58 2005
+++ src/Makefile.in Sat Dec 24 14:32:11 2005
@@ -55,7 +55,7 @@ all: $(LIBNAME) bims
$(LIBNAME): $(LIBOBJS)
$(LIBTOOL) --mode=link $(CC) -o $@ $(LIBOBJS) -rpath $(libdir) \
- -version-info $(CURRENT_VER):$(REVISION_VER):$(AGE_VER)
+ $(libtabe_la_LDFLAGS)
bims:
(cd supports/bims; $(MAKE))

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_supports_bims_Makefile_in,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
--- src/supports/bims/Makefile.in.orig Sat Dec 24 14:31:08 2005
+++ src/supports/bims/Makefile.in Sat Dec 24 14:31:47 2005
@@ -45,7 +45,7 @@ all: $(LIBNAME)
$(LIBNAME): $(LIBOBJS)
$(LIBTOOL) --mode=link $(CC) -o $@ $(LIBOBJS) -rpath $(libdir) \
- -version-info $(CURRENT_VER):$(REVISION_VER):$(AGE_VER)
+ $(libbims_la_LDFLAGS)
bims.lo: bims.c bims.h
$(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $(DEFS) $(INC) -o $@ bims.c

View File

@ -0,0 +1,9 @@
After its pioneering work on Chinese i18n/l10n issues, TaBE Project extends
extends its goal to more general Chinese language processing issues
on computer systems.
libtabe, the latest work made available by the Project, is a library which
provides useful Chinese functions/routines that deal with many fundamental
elements such as pronunciation(BoPoMoFo), character frequency, word
identification, word frequency. It also comes with a free word database
consists of more than 130,000 words.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
@lib lib/libbims.so.${LIBbims_VERSION}
@lib lib/libtabe.so.${LIBtabe_VERSION}

View File

@ -0,0 +1,17 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
bin/tsiadd
bin/tsidel
bin/tsidump
bin/tsiguess
bin/tsiyincheck
bin/tsiyindump
include/bims.h
include/tabe.h
lib/libbims.a
lib/libbims.la
lib/libtabe.a
lib/libtabe.la
lib/tabe/
lib/tabe/tsi.db
lib/tabe/yin.db
%%SHARED%%

View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
COMMENT= convert solar calendar to lunar calendar
DISTNAME= lunar-2.1
PKGNAME= zh-lunar-2.1
CATEGORIES= chinese
MASTER_SITES= ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/c-utils/
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
PERMIT_PACKAGE_CDROM= non-commercial use only
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= non-commercial use only
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c
ALL_TARGET=
NO_REGRESS= Yes
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/chinese
${INSTALL_PROGRAM} ${WRKSRC}/lunar ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/lunar.bitmap ${PREFIX}/share/chinese
${INSTALL_MAN} ${WRKSRC}/lunar.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (lunar-2.1.tar.gz) = OZaDSYoBYVs6aNzv8JWBsg==
RMD160 (lunar-2.1.tar.gz) = vbQBdsvRVsJgEv3vaz8Rb6T0EV4=
SHA1 (lunar-2.1.tar.gz) = WdH1oGpWN0xGbt2w6uTIq+JYaz4=
SHA256 (lunar-2.1.tar.gz) = 9lH+VWDyBah/2wvmV72YW3qJD8xd7DWnzkW4EXzlB2M=
SIZE (lunar-2.1.tar.gz) = 10152

View File

@ -0,0 +1,16 @@
--- Makefile.orig Tue Aug 11 04:14:48 1992
+++ Makefile Thu Mar 1 10:49:51 2001
@@ -1,9 +1,11 @@
# Makefile of LUNAR
-CFLAGS= -O
+CFLAGS= -O -DBITMAPFILE=\"$(BITMAPFILE)\"
+
+BITMAPFILE= $(PREFIX)/share/chinese/lunar.bitmap
lunar: lunar.o
- cc -o lunar lunar.o
+ cc $(CFLAGS) -o lunar lunar.o
clean:
rm *.o core

View File

@ -0,0 +1,22 @@
--- lunar.c.orig Mon Aug 10 21:14:48 1992
+++ lunar.c Tue Feb 4 01:04:18 1997
@@ -60,6 +60,10 @@
#define GanBM 4
#define ZhiBM 14
+#ifndef BITMAPFILE
+#define BITMAPFILE "lunar.bitmap"
+#endif
+
typedef struct {
int year, month, day, hour, weekday;
int leap; /* the lunar month is a leap month */
@@ -124,7 +128,7 @@
int showHZ = 0; /* output in hanzi */
int showBM = 0; /* output in bitmap */
-char BMfile[] = "lunar.bitmap"; /* bit map file */
+char BMfile[] = BITMAPFILE; /* bit map file */
char GZBM[NBM][BMRow][BMCol]; /* the bitmap array */
char *progname;

View File

@ -0,0 +1,13 @@
The lunar program performs date conversion between the Gregorian Solar
Calendar (SC) and the Chinese Lunar Calendar (LC).
Given a date in either calendar, the program also outputs the corresponding
"shengxiao" (animal of the year) and "ganzhi" characters.
The date range currently covered is from about 1900 A.D. to 2049 A.D.
The standard time of the Lunar Calendar is Beijing (Hong Kong) Standard Time,
not GMT. Be sure to adjust appropriately for other time zones and "Day-light
Saving Time".
-- David O'Brien

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
bin/lunar
@man man/man1/lunar.1
share/chinese/
share/chinese/lunar.bitmap

View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
COMMENT= Python Unicode codecs for Chinese charsets
VERSION= 1.2.0
DISTNAME= ChineseCodecs${VERSION}
PKGNAME= py-zhCodecs-${VERSION}p1
CATEGORIES= chinese devel
HOMEPAGE= http://sourceforge.net/projects/python-codecs/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= lang/python
MODPY_DISTUTILS_INSTALLARGS= -O1
WRKSRC= ${WRKDIST}/Python
NO_REGRESS= Yes
post-extract:
@${CHMOD} 711 ${WRKSRC}/chinesetw
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (ChineseCodecs1.2.0.tar.gz) = mIZRBoup3mLMW25Vjo4hWA==
RMD160 (ChineseCodecs1.2.0.tar.gz) = MnydWw1vSJ62dtwkvmRKDDS4mnw=
SHA1 (ChineseCodecs1.2.0.tar.gz) = JfIM/dGffqQ2hJYDRMNVVpbnXUw=
SHA256 (ChineseCodecs1.2.0.tar.gz) = MWtvoyraiwAAmEdatrbqJ9edhuQzeRMcFF6wBKshXJg=
SIZE (ChineseCodecs1.2.0.tar.gz) = 519525

View File

@ -0,0 +1,2 @@
This package supports Python interfaces for conversions between
Chinese and Unicode.

View File

@ -0,0 +1,33 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
lib/python${MODPY_VERSION}/site-packages/big5_tw.py
lib/python${MODPY_VERSION}/site-packages/big5_tw.pyc
lib/python${MODPY_VERSION}/site-packages/big5_tw.pyo
lib/python${MODPY_VERSION}/site-packages/chinesecn/
lib/python${MODPY_VERSION}/site-packages/chinesecn/__init__.py
lib/python${MODPY_VERSION}/site-packages/chinesecn/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/chinesecn/__init__.pyo
lib/python${MODPY_VERSION}/site-packages/chinesecn/euc_gb23122utf.py
lib/python${MODPY_VERSION}/site-packages/chinesecn/euc_gb23122utf.pyc
lib/python${MODPY_VERSION}/site-packages/chinesecn/euc_gb23122utf.pyo
lib/python${MODPY_VERSION}/site-packages/chinesecn/utf2euc_gb2312.py
lib/python${MODPY_VERSION}/site-packages/chinesecn/utf2euc_gb2312.pyc
lib/python${MODPY_VERSION}/site-packages/chinesecn/utf2euc_gb2312.pyo
lib/python${MODPY_VERSION}/site-packages/chinesetw/
lib/python${MODPY_VERSION}/site-packages/chinesetw/__init__.py
lib/python${MODPY_VERSION}/site-packages/chinesetw/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/chinesetw/__init__.pyo
lib/python${MODPY_VERSION}/site-packages/chinesetw/big52utf1.py
lib/python${MODPY_VERSION}/site-packages/chinesetw/big52utf1.pyc
lib/python${MODPY_VERSION}/site-packages/chinesetw/big52utf1.pyo
lib/python${MODPY_VERSION}/site-packages/chinesetw/big52utf2.py
lib/python${MODPY_VERSION}/site-packages/chinesetw/big52utf2.pyc
lib/python${MODPY_VERSION}/site-packages/chinesetw/big52utf2.pyo
lib/python${MODPY_VERSION}/site-packages/chinesetw/utf2big51.py
lib/python${MODPY_VERSION}/site-packages/chinesetw/utf2big51.pyc
lib/python${MODPY_VERSION}/site-packages/chinesetw/utf2big51.pyo
lib/python${MODPY_VERSION}/site-packages/chinesetw/utf2big52.py
lib/python${MODPY_VERSION}/site-packages/chinesetw/utf2big52.pyc
lib/python${MODPY_VERSION}/site-packages/chinesetw/utf2big52.pyo
lib/python${MODPY_VERSION}/site-packages/eucgb2312_cn.py
lib/python${MODPY_VERSION}/site-packages/eucgb2312_cn.pyc
lib/python${MODPY_VERSION}/site-packages/eucgb2312_cn.pyo

View File

@ -0,0 +1,60 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
ONLY_FOR_ARCHS= i386
COMMENT= color terminal emulator Linux binary
PKGNAME= zh-rxvt-big5-2.7.8p2
CATEGORIES= chinese
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://download.fedoralegacy.org/redhat/8.0/os/i386/
MASTER_SITES0= http://download.fedoralegacy.org/redhat/8.0/updates/i386/
MASTER_SITES1= http://download.fedoralegacy.org/redhat/7.3/updates/i386/
DISTFILES= ${RPMS}
EXTRACT_ONLY=
DIST_SUBDIR= rpm
BUILD_DEPENDS= :rpm->=3.0.6p1:misc/rpm
RUN_DEPENDS= ::emulators/fedora/base \
::chinese/taipeifonts
NO_BUILD= Yes
NO_REGRESS= Yes
PREFIX= ${LOCALBASE}/emul/fedora
RPMDIR= ${FULLDISTDIR}
RPMS= utempter-0.5.2-10.i386.rpm \
shadow-utils-20000902-12.8.i386.rpm:0 \
rxvt-2.7.8-4.i386.rpm:1
REMOVE_DIRS= /usr/doc /usr/man /usr/share/doc
do-install:
@${INSTALL_DATA_DIR} ${PREFIX}
.for rpm in ${RPMS:S/:0//:S/:1//}
@cd ${PREFIX}; ${LOCALBASE}/bin/rpm2cpio ${RPMDIR}/${rpm} | cpio -id
.endfor
# Get rid of some unnecessary files and directories.
.for D in ${REMOVE_DIRS}
@rm -rf ${PREFIX}/${D}
.endfor
post-install:
# remove setuid root bits
@find ${PREFIX} -perm -4000 |xargs -r chmod u-s
# fix ownerships
@find ${PREFIX} \( -user 37 -o -user 5041 -o -group 22 -o -group 37 \) -print|xargs -r chown -h root.wheel
.include <bsd.port.mk>

View File

@ -0,0 +1,15 @@
MD5 (rpm/rxvt-2.7.8-4.i386.rpm) = lKPLvw29hznpsbLMcWoybg==
MD5 (rpm/shadow-utils-20000902-12.8.i386.rpm) = bdYauWivvFN+JfrqkUeIvA==
MD5 (rpm/utempter-0.5.2-10.i386.rpm) = NXVbcvrw0G4TYux0XPvrhQ==
RMD160 (rpm/rxvt-2.7.8-4.i386.rpm) = RLgPfPsNl/0jWUu1Y//KEHunmY4=
RMD160 (rpm/shadow-utils-20000902-12.8.i386.rpm) = uExsTjU/Cu4N6+PSrMACWVEPOPY=
RMD160 (rpm/utempter-0.5.2-10.i386.rpm) = qlI/k9JKOiinbEje4fNnnlAX+KY=
SHA1 (rpm/rxvt-2.7.8-4.i386.rpm) = fJEdG+1I0V1mk+TcHZba3JJ5fwA=
SHA1 (rpm/shadow-utils-20000902-12.8.i386.rpm) = qwXfocfFu9FPokt1VkIR7vm133Q=
SHA1 (rpm/utempter-0.5.2-10.i386.rpm) = fu7BuRTTNfnXVaG1r3LZhFDcOok=
SHA256 (rpm/rxvt-2.7.8-4.i386.rpm) = Uolxurcsi5Rg6zgOwBIeHp0E0RZIwykyY3tS2aVVqYk=
SHA256 (rpm/shadow-utils-20000902-12.8.i386.rpm) = 1e0uA5xx0lAK1eWfyAibKAn2wL/R98y4GeSObjAWr+M=
SHA256 (rpm/utempter-0.5.2-10.i386.rpm) = fulRL2bSaMedlc5pZ5xESM0xynLEPntfg/dlw8xly8E=
SIZE (rpm/rxvt-2.7.8-4.i386.rpm) = 277923
SIZE (rpm/shadow-utils-20000902-12.8.i386.rpm) = 286993
SIZE (rpm/utempter-0.5.2-10.i386.rpm) = 22777

View File

@ -0,0 +1,4 @@
Rxvt is a color VT102 terminal emulator for the X Window System. Rxvt
is intended to be an xterm replacement for users who don't need the
more esoteric features of xterm, like Tektronix 4014 emulation,
session logging and toolkit style configurability.

View File

@ -0,0 +1,85 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
@exec ln -sf %D/usr/X11R6/bin/rxvt /usr/local/bin/rxvt-big5
@unexec rm -rf /usr/local/bin/rxvt-big5
@unexec rm -f %D/usr/lib/libutempter.so.0
etc/X11/
etc/X11/applnk/
etc/X11/applnk/Utilities/
etc/X11/applnk/Utilities/rxvt.desktop
etc/default/useradd
etc/login.defs
usr/X11R6/bin/
usr/X11R6/bin/rclock
usr/X11R6/bin/rxvt
usr/X11R6/lib/X11/ja/
usr/X11R6/lib/X11/ja/app-defaults/
usr/X11R6/lib/X11/ja/app-defaults/Rxvt
usr/X11R6/lib/X11/ko/
usr/X11R6/lib/X11/ko/app-defaults/
usr/X11R6/lib/X11/ko/app-defaults/Rxvt
usr/X11R6/lib/X11/zh_CN/
usr/X11R6/lib/X11/zh_CN/app-defaults/
usr/X11R6/lib/X11/zh_CN/app-defaults/Rxvt
usr/X11R6/lib/X11/zh_CN/rxvt/
usr/X11R6/lib/X11/zh_CN/rxvt/rxvt.menu
usr/X11R6/lib/X11/zh_TW/
usr/X11R6/lib/X11/zh_TW/app-defaults/
usr/X11R6/lib/X11/zh_TW/app-defaults/Rxvt
usr/X11R6/lib/X11/zh_TW/rxvt/
usr/X11R6/lib/X11/zh_TW/rxvt/rxvt.menu
@comment usr/X11R6/man/man1/rclock.1.gz
@comment usr/X11R6/man/man1/rxvt.1.gz
usr/bin/chage
usr/bin/faillog
usr/bin/gpasswd
usr/bin/lastlog
usr/bin/sg
usr/include/utempter.h
usr/lib/librxvt.a
usr/lib/librxvt.la
usr/lib/libutempter.so
usr/lib/libutempter.so.0.5.2
usr/sbin/adduser
usr/sbin/chpasswd
usr/sbin/groupadd
usr/sbin/groupdel
usr/sbin/groupmod
usr/sbin/grpck
usr/sbin/grpconv
usr/sbin/grpunconv
usr/sbin/newusers
usr/sbin/pwck
usr/sbin/pwconv
usr/sbin/pwunconv
usr/sbin/useradd
usr/sbin/userdel
usr/sbin/usermod
usr/sbin/utempter
usr/share/locale/el/LC_MESSAGES/shadow.mo
usr/share/locale/fr/LC_MESSAGES/shadow.mo
usr/share/locale/pl/LC_MESSAGES/shadow.mo
usr/share/locale/sv/LC_MESSAGES/shadow.mo
@comment usr/share/man/man1/chage.1.gz
@comment usr/share/man/man1/gpasswd.1.gz
@comment usr/share/man/man3/shadow.3.gz
@comment usr/share/man/man5/faillog.5.gz
@comment usr/share/man/man5/shadow.5.gz
@comment usr/share/man/man8/adduser.8.gz
@comment usr/share/man/man8/chpasswd.8.gz
@comment usr/share/man/man8/faillog.8.gz
@comment usr/share/man/man8/groupadd.8.gz
@comment usr/share/man/man8/groupdel.8.gz
@comment usr/share/man/man8/groupmod.8.gz
@comment usr/share/man/man8/grpck.8.gz
@comment usr/share/man/man8/grpconv.8.gz
@comment usr/share/man/man8/grpunconv.8.gz
@comment usr/share/man/man8/lastlog.8.gz
@comment usr/share/man/man8/newusers.8.gz
@comment usr/share/man/man8/pwck.8.gz
@comment usr/share/man/man8/pwconv.8.gz
@comment usr/share/man/man8/pwunconv.8.gz
@comment usr/share/man/man8/useradd.8.gz
@comment usr/share/man/man8/userdel.8.gz
@comment usr/share/man/man8/usermod.8.gz
@exec %D/sbin/ldconfig
@unexec %D/sbin/ldconfig

View File

@ -0,0 +1,41 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
COMMENT= extra chinese fonts
DISTNAME= zh-fonts-taipei-1.01
CATEGORIES= chinese x11
DIST_SUBDIR= zh-fonts
MASTER_SITES= http://cle.linux.org.tw/fonts/bitmap/taipeifont/
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
PERMIT_DISTFILES_CDROM= no license
PERMIT_DISTFILES_FTP= no license
PERMIT_PACKAGE_CDROM= no license
PERMIT_PACKAGE_FTP= no license
FONTS= taipei16.pcf.gz taipeik20.pcf.gz taipeim20.pcf.gz \
taipei24.pcf.gz taipeik24.pcf.gz taipeim24.pcf.gz
DISTFILES= ${FONTS}
NO_BUILD= Yes
NO_REGRESS= Yes
USE_X11= Yes
PKG_ARCH= *
EXTRACT_ONLY=
CONFIGURE_STYLE= imake
FONTDIR= ${PREFIX}/lib/X11/fonts/chinese
post-extract:
@mkdir -p ${WRKDIST}
@cp ${FILESDIR}/Imakefile ${FILESDIR}/taipei.alias ${WRKDIST}
@for i in ${FONTS} ; do cp $(FULLDISTDIR)/$$i ${WRKDIST}; done
post-install:
@cd ${FONTDIR} && mv fonts.alias fonts.alias-taipei
.include <bsd.port.mk>

View File

@ -0,0 +1,30 @@
MD5 (zh-fonts/taipei16.pcf.gz) = Yog9iMP3HKWBjZBDRPxMAw==
MD5 (zh-fonts/taipei24.pcf.gz) = Tjtx5xWITuyU1x41LOq/Qw==
MD5 (zh-fonts/taipeik20.pcf.gz) = AD9hm8HzyEbn+m6QcMx0Cw==
MD5 (zh-fonts/taipeik24.pcf.gz) = aQhDOlaxdjZsKz5cnViVKA==
MD5 (zh-fonts/taipeim20.pcf.gz) = hWRr7GFk1yd0ROBig7w4Ug==
MD5 (zh-fonts/taipeim24.pcf.gz) = ybWxl+Z4T1p+vib1+mdW1g==
RMD160 (zh-fonts/taipei16.pcf.gz) = iX+/OvppGYL9DCi0X1CMDinyaHw=
RMD160 (zh-fonts/taipei24.pcf.gz) = mfhLskB0hSh0J+5LoGRT8++8sGI=
RMD160 (zh-fonts/taipeik20.pcf.gz) = zl4/BSSwt4f/C2BnpHakxw4XhgI=
RMD160 (zh-fonts/taipeik24.pcf.gz) = pBqQpmdCH8XtJjRi471eas0XiBc=
RMD160 (zh-fonts/taipeim20.pcf.gz) = hmktgKhST0ku2Px0fZM0Zpvgxr4=
RMD160 (zh-fonts/taipeim24.pcf.gz) = MWzN0eCZ+sfYT+n1oGjcWAEc158=
SHA1 (zh-fonts/taipei16.pcf.gz) = X3Y0h4EkqNIXp+tzMN50i440/Qk=
SHA1 (zh-fonts/taipei24.pcf.gz) = vQe6VWjLTSsanAifLcjtK8NQXvo=
SHA1 (zh-fonts/taipeik20.pcf.gz) = zNHrbQBfkgt81ztrsTF66EG3OX8=
SHA1 (zh-fonts/taipeik24.pcf.gz) = 6GDARKkHYTL2bW54ydhosHYiiIU=
SHA1 (zh-fonts/taipeim20.pcf.gz) = HXkd2x2dLJN83XVvt61Sz5Gr96I=
SHA1 (zh-fonts/taipeim24.pcf.gz) = muO61yWK3x1dlcBEzz7lw7USjcM=
SHA256 (zh-fonts/taipei16.pcf.gz) = TaUD6TJWQO7/AhFZDFPXqnUb4jYy8mt0qs+NovtP5Lc=
SHA256 (zh-fonts/taipei24.pcf.gz) = BkbGPzYDTTgCCP0ZBKaKTnOo1J0659oJStGdxQ0uIpw=
SHA256 (zh-fonts/taipeik20.pcf.gz) = QHR5EUugutEOOptpQoJVZHIfccl2fRPiLrYvxS61Auc=
SHA256 (zh-fonts/taipeik24.pcf.gz) = 10ND5v0cQ/SZVl2mm6Xwqol9m7c8+hqTziKtZdWJblo=
SHA256 (zh-fonts/taipeim20.pcf.gz) = IyWOXIzppbdunHPBIocjxbNMJKZxO9886r/RbkvnyHk=
SHA256 (zh-fonts/taipeim24.pcf.gz) = 47Dq4VGQ51R+ouiM3H90VIqP5KeUaB6t+Cen370E20g=
SIZE (zh-fonts/taipei16.pcf.gz) = 459172
SIZE (zh-fonts/taipei24.pcf.gz) = 816621
SIZE (zh-fonts/taipeik20.pcf.gz) = 714430
SIZE (zh-fonts/taipeik24.pcf.gz) = 880684
SIZE (zh-fonts/taipeim20.pcf.gz) = 680552
SIZE (zh-fonts/taipeim24.pcf.gz) = 812068

View File

@ -0,0 +1,22 @@
# $OpenBSD: Imakefile,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
OBJS = FontBaseObj(taipei16).gz FontBaseObj(taipeik20).gz \
FontBaseObj(taipeim20).gz FontBaseObj(taipei24).gz \
FontBaseObj(taipeik24).gz FontBaseObj(taipeim24).gz
ALIASFILE = taipei.alias
FONTINSTDIR = $(FONTDIR)/chinese
MakeFonts()
InstallFonts($(FONTINSTDIR))
InstallFontAliases($(FONTINSTDIR))
all:: fonts.alias
fonts.alias: $(ALIASFILE)
cat $(ALIASFILE) > fonts.alias
clean::
$(RM) fonts.alias

View File

@ -0,0 +1,8 @@
-taipei-ming-medium-r-normal--16-160-75-75-c-160-big5-0 taipei16
-taipei-fixed-medium-r-normal--20-200-75-75-c-200-big5-0 taipeik20
-taipei-ming-medium-r-normal--20-200-75-75-c-200-big5-0 taipeim20
-taipei-fixed-medium-r-normal--24-240-75-75-c-240-big5-0 taipeik24
-taipei-ming-medium-r-normal--24-240-75-75-c-240-big5-0 taipeim24
-default-fixed-medium-r-normal--16-160-72-72-c-160-big5-0 taipei16
-default-fixed-medium-r-normal--20-200-72-72-c-200-big5-0 taipeim20
-default-fixed-medium-r-normal--24-240-72-72-c-240-big5-0 taipeim24

View File

@ -0,0 +1 @@
Taipeifonts is a suit of Chinese Taipei fonts for X-window.

View File

@ -0,0 +1,12 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
lib/X11/fonts/
@fontdir lib/X11/fonts/chinese/
lib/X11/fonts/chinese/fonts.alias-taipei
@comment lib/X11/fonts/chinese/fonts.dir
@comment lib/X11/fonts/chinese/fonts.scale
lib/X11/fonts/chinese/taipei16.pcf.gz
lib/X11/fonts/chinese/taipei24.pcf.gz
lib/X11/fonts/chinese/taipeik20.pcf.gz
lib/X11/fonts/chinese/taipeik24.pcf.gz
lib/X11/fonts/chinese/taipeim20.pcf.gz
lib/X11/fonts/chinese/taipeim24.pcf.gz

View File

@ -0,0 +1,36 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
COMMENT= big5/gb enhanced truetype font manager
DISTNAME= ttfm-0.9.5
PKGNAME= zh-${DISTNAME}p0
CATEGORIES= chinese
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c freetype z
MASTER_SITES= ${MASTER_SITE_BACKUP}
MAKE_FLAGS= CC="${CC}" CFLAGS='${CFLAGS} `freetype-config --cflags`'
USE_X11= Yes
NO_REGRESS= Yes
DOCS= README USAGE
SCRIPTS= gscjk.ttfm xttfm.ttfm
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ttfm
${INSTALL_DATA_DIR} ${PREFIX}/share/ttfm
${INSTALL_PROGRAM} ${WRKBUILD}/ttfinfo ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKBUILD}/ttfm.sh ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/ttfm.sh.1 ${PREFIX}/man/man1
@cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/ttfm
@cd ${WRKSRC}/modules; ${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/share/ttfm
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (ttfm-0.9.5.tar.gz) = 5owUULcQWxj6ct9W2+TJaw==
RMD160 (ttfm-0.9.5.tar.gz) = Co6zKj72DIzI3HoWHaQmYQsYln8=
SHA1 (ttfm-0.9.5.tar.gz) = vPcfHT1bjWyVupSoYv7zib7HCwA=
SHA256 (ttfm-0.9.5.tar.gz) = 4GzL7C7tirXSAMxAiJ59NwZHHH/8HScrDNdTaxJ3Zig=
SIZE (ttfm-0.9.5.tar.gz) = 54431

View File

@ -0,0 +1,11 @@
--- Makefile.orig Sat Dec 16 18:56:41 2000
+++ Makefile Wed May 30 10:16:06 2001
@@ -20,7 +20,7 @@
-install -m 755 modules/xttfm.ttfm $(prefix)/share/fonts/install/
ttfinfo: ttfinfo.o
- $(CC) -o $@ $< $(LDFALGS) $?
+ $(CC) -o $@ $(LDFALGS) $?
ttfinfo.o: ttfinfo.c panose.h ttos2val.h

View File

@ -0,0 +1,25 @@
--- modules/xttfm.ttfm.orig Mon Dec 4 09:57:57 2000
+++ modules/xttfm.ttfm Sun Jan 21 18:06:01 2001
@@ -29,8 +29,8 @@
export X11BASE; X11BASE=/usr/X11R6
export PATH; PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PREFIX/bin:$PREFIX/sbin:$X11BASE/bin
export TEMPFILE; TEMPFILE="`mktemp /tmp/ttfm.tmpXXX`"
-export DefaultFontPath; DefaultFontPath=$PREFIX/share/fonts/TrueType
-export XTTFFONTPATH; XTTFFONTPATH="${X11BASE}/lib/X11/fonts/TrueType"
+export DefaultFontPath; DefaultFontPath=$PREFIX/lib/X11/fonts/TrueType
+export XTTFFONTPATH; XTTFFONTPATH="${PREFIX}/lib/X11/fonts/TrueType"
export TTFINFOPATH; TTFINFOPATH="${PREFIX}/bin/ttfinfo"
export AlIASPATTERN; ALIASPATTERN="\"added by ttfm - \$targetname - \$fontencoding\""
export DEFAULTMING_NAME; DEFAULTMING_NAME="default_ming"
@@ -107,11 +107,6 @@
sed -e "/$ALIASPATTERN/d" $XTTFFONTPATH/fonts.alias > $TEMPFILE
mv -f $TEMPFILE $XTTFFONTPATH/fonts.alias
- # Remove font files.
- # We only remove those fonts in $DefaultFontPath which are symbolic.
- filetype=`file "$DefaultFontPath/$targetname" |grep -e "^$DefaultFontPath/$targetname: symbolic link to"`
- [ ! "X$filetype" = "X" ] && rm -f "$DefaultFontPath/$targetname"
- rm -f "$XTTFFONTPATH/$targetname"
done
}

View File

@ -0,0 +1,11 @@
--- ttfm.sh.orig Fri Jan 19 13:09:34 2001
+++ ttfm.sh Fri Jan 19 13:14:56 2001
@@ -40,7 +40,7 @@
export PREFIX; PREFIX=/usr/local
export PATH; PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PREFIX/bin:$PREFIX/sbin
-export DefaultFontPath; DefaultFontPath=$PREFIX/share/fonts/TrueType
+export DefaultFontPath; DefaultFontPath=$PREFIX/lib/X11/fonts/TrueType
export ScriptDir; ScriptDir=$PREFIX/share/ttfm
export ScriptSubfix; ScriptSubfix="ttfm"
#KEEP_FONT="yes" # FreeBSD's port/package system will handle this.

View File

@ -0,0 +1,19 @@
A True Type Font Manager that handles true type font
installation, uninstallation, list, and default font
setting. It was originally in the CLE distribution.
The manager doesn't deal with applications using TTF
directly. Instead, it calls modules to handle the
details. There are only several predefined behaviours
of the modules, like add/remove/list. There are four
modules as of version 0.9:
chitex: For ChiTeX, a Chinese TeX/LaTeX
ttf2pk: Generate pk/tfm for CJK
xfreetype: For Xfsft in XFree86 3.3.x and "freetype"
module in 4.x
xttfm: For X-TT in XFree86 3.3.x and "xtt" module in
4.x, available in both tcl and sh versions.
Some modules are Big5/GB enhanced, for better font
detection/generation.

View File

@ -0,0 +1,10 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
bin/ttfinfo
bin/ttfm.sh
@man man/man1/ttfm.sh.1
share/doc/ttfm/
share/doc/ttfm/README
share/doc/ttfm/USAGE
share/ttfm/
share/ttfm/gscjk.ttfm
share/ttfm/xttfm.ttfm

View File

@ -0,0 +1,59 @@
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
COMMENT= chinese input utility for X
DISTNAME= xcin-2.3.04-3
PKGNAME= zh-xcin-2.3.04p0
CATEGORIES= chinese
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 c
RUN_DEPENDS= ::chinese/taipeifonts
USE_X11= Yes
CONFIGURE_STYLE=gnu old dest
CONFIGURE_ARGS= --os=OpenBSD --no-menu
NO_REGRESS= Yes
# gcc 3.3.5 internal compiler error
.if ${MACHINE_ARCH} == "mips64"
EXTRA_CFLAGS= -O0
.endif
MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}" EXTRA_CFLAGS="${EXTRA_CFLAGS}"
CINS= cj.cin cj.tab cj.tab.rev phone.tab phone.cin phone.tab phone.tab.rev \
pinyin.cin pinyin.tab pinyin.tab.rev array30.cin array30.tab \
array30.tab.rev zmdbosh.cin zmdbosh.tab zmdbosh.tab.rev
BINS= cin2tab et.kbm et26.kbm hsu.kbm lphrase phs_out pho.sel1st \
pho.tab pin2tsin sample.phs.out tsa2d tsa2rel tsd2a \
tsin tsin.idx tsin.rel tsin_pin.map tsin.rel.src tsin.src \
voca.box zo.kbm
post-extract:
mv ${WRKSRC}/script/os_def/FreeBSD ${WRKSRC}/script/os_def/FreeBSD.orig
sed -e '/OS/s/=.*/=OpenBSD/' -e '/CFLAGS/s/=.*/=-O2/' ${WRKSRC}/script/os_def/FreeBSD.orig > ${WRKSRC}/script/os_def/OpenBSD
post-configure:
mv ${WRKSRC}/config.status ${WRKSRC}/config.status.orig
sed -e '/OPT_XCIN_CFONT/s/=.*/=-taipei-ming-medium-r-normal--16-160-75-75-c-160-big5-0/' -e '/OPT_XCIN_EFONT/s/=.*/=8x16/' ${WRKSRC}/config.status.orig > ${WRKSRC}/config.status
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/xcin/docs
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/xcin ${PREFIX}/bin
@for i in ${CINS} ; do cp $(WRKSRC)/input_tab/$$i ${PREFIX}/lib/xcin; done
@for i in ${BINS} ; do cp $(WRKSRC)/src/$$i ${PREFIX}/lib/xcin; done
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (xcin-2.3.04-3.tar.gz) = c3puqTI3sSkDwwiKBnMMYw==
RMD160 (xcin-2.3.04-3.tar.gz) = aS69+hHGMkB58sOeAB8pDxrktqs=
SHA1 (xcin-2.3.04-3.tar.gz) = I1o6t4oB1it5vMQeqrCEWAZx4sU=
SHA256 (xcin-2.3.04-3.tar.gz) = C1IJ5Rvm3km/eCVFgCJOJxP2quqltga579RHw+NBXpA=
SIZE (xcin-2.3.04-3.tar.gz) = 1411699

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-input_tab_Makefile_in,v 1.1.1.1 2008/10/04 08:11:54 kevlo Exp $
--- input_tab/Makefile.in.orig 1999-02-24 09:30:34.000000000 +0100
+++ input_tab/Makefile.in 2004-01-06 21:35:17.000000000 +0100
@@ -15,8 +15,23 @@ cin2tab:
(cd ../src; make cin2tab)
ln -s ../src/cin2tab .
-%.tab: %.cin cin2tab
- ./cin2tab $(basename $<)
+phone.tab: cin2tab phone.cin
+ ./cin2tab phone
+
+array30.tab: cin2tab array30.cin
+ ./cin2tab array30
+
+cj.tab: cin2tab cj.cin
+ ./cin2tab cj
+
+cantonese.tab: cin2tab cantonese.cin
+ ./cin2tab cantonese
+
+pinyin.tab: cin2tab pinyin.cin
+ ./cin2tab pinyin
+
+zmdbosh.tab: cin2tab zmdbosh.cin
+ ./cin2tab zmdbosh
install: all
if [ ! -d $(PATH_XCIN_DIR) ]; then $(INSTALL_DIR) $(PATH_XCIN_DIR); fi

Some files were not shown because too many files have changed in this diff Show More