This commit is contained in:
joey 1997-11-26 22:56:45 +00:00
parent 363077d415
commit fad04ebfd8
7 changed files with 62 additions and 0 deletions

31
chinese/c2t/Makefile Normal file
View File

@ -0,0 +1,31 @@
# OpenBSD makefile for: c2t
# Version required: 1.0
# Date created: Nov 26, 1997
# Whom: ejovi
#
# $OpenBSD: Makefile,v 1.1.1.1 1997/11/26 22:56:45 joey Exp $
#
PKGNAME= zh-c2t-1.0
CATEGORIES= chinese
MASTER_SITES= ftp://ftp.ifcss.org/pub/software/unix/convert/ \
ftp://ftp.ifcss.org/pub/software/x-win/cxterm/dict/gb/ \
ftp://ftp.edu.tw/Chinese/ifcss/software/unix/convert/ \
ftp://ftp.edu.tw/Chinese/ifcss/software/x-win/cxterm/dict/gb/ \
ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/convert/ \
ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/x-win/cxterm/dict/gb/
DISTFILES= c2t.tar.gz TONEPY.tit
MAINTAINER= joey@OpenBSD.ORG
NO_WRKSUBDIR= yes
EXTRACT_ONLY= c2t.tar.gz
MAN1= c2t.1
do-install:
@${MKDIR} ${PREFIX}/share/chinese/gb
${INSTALL_PROGRAM} ${WRKSRC}/c2t ${PREFIX}/bin
${INSTALL_DATA} ${DISTDIR}/TONEPY.tit ${PREFIX}/share/chinese/gb
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1
.include <bsd.port.mk>

2
chinese/c2t/files/md5 Normal file
View File

@ -0,0 +1,2 @@
MD5 (c2t.tar.gz) = 47a1b77815cc02d9d667216a48d68931
MD5 (TONEPY.tit) = 076b6d78ea67fff505440353abb5d51e

View File

@ -0,0 +1,8 @@
--- Makefile.orig Tue Feb 23 22:21:39 1993
+++ Makefile Tue Feb 4 02:10:15 1997
@@ -1,4 +1,4 @@
-CC=cc
+CC=cc -DCHINDICT=\"$(PREFIX)/share/chinese/gb/TONEPY.tit\"
all: c2t

View File

@ -0,0 +1,14 @@
--- c2t.c.orig Tue Feb 4 02:10:45 1997
+++ c2t.c Tue Feb 4 02:08:55 1997
@@ -22,7 +22,11 @@
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];

1
chinese/c2t/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
translates GB/Big5 encoding to tone pinyin

3
chinese/c2t/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
c2t (chinese2text) translates GB/Big5 encoding to tone pinyin.
-- David O'Brien

3
chinese/c2t/pkg/PLIST Normal file
View File

@ -0,0 +1,3 @@
bin/c2t
share/chinese/gb/TONEPY.tit
man/man1/c2t.1.gz