aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/c2t
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-02-08 08:02:30 +0800
committerobrien <obrien@FreeBSD.org>1997-02-08 08:02:30 +0800
commitde420a437b0247b0f4b44c935acf85d01229cbb1 (patch)
tree896641904167841d40bfc908d56a4825dcc282e0 /chinese/c2t
parentcfe255407b428a242baf7e5bb2459a536b8e21c0 (diff)
downloadfreebsd-ports-gnome-de420a437b0247b0f4b44c935acf85d01229cbb1.tar.gz
freebsd-ports-gnome-de420a437b0247b0f4b44c935acf85d01229cbb1.tar.zst
freebsd-ports-gnome-de420a437b0247b0f4b44c935acf85d01229cbb1.zip
c2t (chinese2text) translates GB/Big5 encoding to tone pinyin.
Diffstat (limited to 'chinese/c2t')
-rw-r--r--chinese/c2t/Makefile32
-rw-r--r--chinese/c2t/distinfo2
-rw-r--r--chinese/c2t/files/patch-018
-rw-r--r--chinese/c2t/files/patch-0214
-rw-r--r--chinese/c2t/pkg-comment1
-rw-r--r--chinese/c2t/pkg-descr3
-rw-r--r--chinese/c2t/pkg-plist3
7 files changed, 63 insertions, 0 deletions
diff --git a/chinese/c2t/Makefile b/chinese/c2t/Makefile
new file mode 100644
index 000000000000..b183e83d140e
--- /dev/null
+++ b/chinese/c2t/Makefile
@@ -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>
diff --git a/chinese/c2t/distinfo b/chinese/c2t/distinfo
new file mode 100644
index 000000000000..e884c5a6bf41
--- /dev/null
+++ b/chinese/c2t/distinfo
@@ -0,0 +1,2 @@
+MD5 (c2t.tar.gz) = 47a1b77815cc02d9d667216a48d68931
+MD5 (TONEPY.tit) = 076b6d78ea67fff505440353abb5d51e
diff --git a/chinese/c2t/files/patch-01 b/chinese/c2t/files/patch-01
new file mode 100644
index 000000000000..c8dcd37d894e
--- /dev/null
+++ b/chinese/c2t/files/patch-01
@@ -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
+
diff --git a/chinese/c2t/files/patch-02 b/chinese/c2t/files/patch-02
new file mode 100644
index 000000000000..ecd6452765f8
--- /dev/null
+++ b/chinese/c2t/files/patch-02
@@ -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];
diff --git a/chinese/c2t/pkg-comment b/chinese/c2t/pkg-comment
new file mode 100644
index 000000000000..430617658076
--- /dev/null
+++ b/chinese/c2t/pkg-comment
@@ -0,0 +1 @@
+translates GB/Big5 encoding to tone pinyin
diff --git a/chinese/c2t/pkg-descr b/chinese/c2t/pkg-descr
new file mode 100644
index 000000000000..9eb3d7fa915d
--- /dev/null
+++ b/chinese/c2t/pkg-descr
@@ -0,0 +1,3 @@
+c2t (chinese2text) translates GB/Big5 encoding to tone pinyin.
+
+-- David O'Brien
diff --git a/chinese/c2t/pkg-plist b/chinese/c2t/pkg-plist
new file mode 100644
index 000000000000..65216467bd45
--- /dev/null
+++ b/chinese/c2t/pkg-plist
@@ -0,0 +1,3 @@
+bin/c2t
+share/chinese/gb/TONEPY.tit
+man/man1/c2t.1.gz