mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
c2t (chinese2text) translates GB/Big5 encoding to tone pinyin.
This commit is contained in:
parent
f82486aae5
commit
27a94d2f9d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=5560
32
chinese/c2t/Makefile
Normal file
32
chinese/c2t/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# ex:ts=8
|
||||
# Ports collection makefile for: c2t
|
||||
# Version required: 1.0
|
||||
# Date created: Mon Feb 03, 1997
|
||||
# Whom: David O'Brien (obrien@FreeBSD.org)
|
||||
#
|
||||
# $Id: Makefile,v 1.2 1997/01/25 18:08:40 obrien Exp $
|
||||
#
|
||||
|
||||
PKGNAME= 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= obrien@NUXI.com
|
||||
|
||||
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/distinfo
Normal file
2
chinese/c2t/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (c2t.tar.gz) = 47a1b77815cc02d9d667216a48d68931
|
||||
MD5 (TONEPY.tit) = 076b6d78ea67fff505440353abb5d51e
|
8
chinese/c2t/files/patch-01
Normal file
8
chinese/c2t/files/patch-01
Normal 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
|
||||
|
14
chinese/c2t/files/patch-02
Normal file
14
chinese/c2t/files/patch-02
Normal 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
1
chinese/c2t/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
translates GB/Big5 encoding to tone pinyin
|
3
chinese/c2t/pkg-descr
Normal file
3
chinese/c2t/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
c2t (chinese2text) translates GB/Big5 encoding to tone pinyin.
|
||||
|
||||
-- David O'Brien
|
3
chinese/c2t/pkg-plist
Normal file
3
chinese/c2t/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
bin/c2t
|
||||
share/chinese/gb/TONEPY.tit
|
||||
man/man1/c2t.1.gz
|
Loading…
Reference in New Issue
Block a user