summaryrefslogtreecommitdiffstats
path: root/chinese/hztty
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-10-07 07:03:43 +0000
committerobrien <obrien@FreeBSD.org>1997-10-07 07:03:43 +0000
commit44f5c4ce5f4e144c12732ad0666c77b422443698 (patch)
tree98224be28948d8468dde9c85ad25b1268b9611c3 /chinese/hztty
parent3c0102e62cfc218f16a9f8a70950568f3c2bc3ad (diff)
downloadFreeBSD-ports-44f5c4ce5f4e144c12732ad0666c77b422443698.zip
FreeBSD-ports-44f5c4ce5f4e144c12732ad0666c77b422443698.tar.gz
translator between GuoBiao / Big5 and HZ
PR: ports/4622 Submitted by: Ada T Lim <ada@not-enough.bandwidth.org>
Diffstat (limited to 'chinese/hztty')
-rw-r--r--chinese/hztty/Makefile26
-rw-r--r--chinese/hztty/distinfo1
-rw-r--r--chinese/hztty/files/patch-aa20
-rw-r--r--chinese/hztty/files/patch-ab11
-rw-r--r--chinese/hztty/pkg-comment1
-rw-r--r--chinese/hztty/pkg-descr17
-rw-r--r--chinese/hztty/pkg-plist2
7 files changed, 78 insertions, 0 deletions
diff --git a/chinese/hztty/Makefile b/chinese/hztty/Makefile
new file mode 100644
index 0000000..43ae0b5
--- /dev/null
+++ b/chinese/hztty/Makefile
@@ -0,0 +1,26 @@
+# Ports collection makefile for: hztty
+# Version required: 2.0
+# Date created: Wed Sep 24, 1997
+# Whom: Ada T Lim <ada@not-enough.bandwidth.org>
+#
+# $Id$
+#
+
+DISTNAME= hztty-2.0
+PKGNAME= zh-hztty-2.0
+CATEGORIES= chinese
+MASTER_SITES= ftp://ftp.ifcss.org/pub/software/convert/ \
+ ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/convert/ \
+ ftp://ftp.edu.tw/Chinese/ifcss/software/convert/ \
+ ftp://ftp.mpi-sb.mpg.de/pub/chinese/mirror/ftp.ifcss.org/software/convert/
+
+MAINTAINER= ada@bsd.org
+
+ALL_TARGET= bsd
+MAN1= hztty.1
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/hztty ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/hztty.1 ${PREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/chinese/hztty/distinfo b/chinese/hztty/distinfo
new file mode 100644
index 0000000..8b1860f
--- /dev/null
+++ b/chinese/hztty/distinfo
@@ -0,0 +1 @@
+MD5 (hztty-2.0.tar.gz) = 7ec5907ad55825780274b8a77b217e21
diff --git a/chinese/hztty/files/patch-aa b/chinese/hztty/files/patch-aa
new file mode 100644
index 0000000..896d198
--- /dev/null
+++ b/chinese/hztty/files/patch-aa
@@ -0,0 +1,20 @@
+*** Makefile.dist Thu Sep 25 00:26:00 1997
+--- Makefile Thu Sep 25 00:47:01 1997
+***************
+*** 132,138 ****
+
+
+ bsd:
+! miniconf.sh $(CPP)
+ ${MAKE} ${MFLAGS} DEFINES='-DBSD' ${PROG}
+
+ posix:
+--- 134,140 ----
+
+
+ bsd:
+! ./miniconf.sh $(CPP)
+ ${MAKE} ${MFLAGS} DEFINES='-DBSD' ${PROG}
+
+ posix:
+
diff --git a/chinese/hztty/files/patch-ab b/chinese/hztty/files/patch-ab
new file mode 100644
index 0000000..6499d92
--- /dev/null
+++ b/chinese/hztty/files/patch-ab
@@ -0,0 +1,11 @@
+--- tty.c.orig Sun Jan 29 12:24:55 1995
++++ tty.c Mon Oct 6 23:56:32 1997
+@@ -26,7 +26,7 @@
+ # define TTYDEV "/dev/pty/ttyxx"
+ #else /* !hpux */
+ # define PTYCHAR1 "pqrstuvwxyzPQRSTUVWXYZ"
+-# define PTYCHAR2 "0123456789abcdef"
++# define PTYCHAR2 "0123456789abcdefghijklmnopqrstuv"
+ # define PTYDEV "/dev/ptyxx"
+ # define TTYDEV "/dev/ttyxx"
+ #endif /* !hpux */
diff --git a/chinese/hztty/pkg-comment b/chinese/hztty/pkg-comment
new file mode 100644
index 0000000..f97d4a6
--- /dev/null
+++ b/chinese/hztty/pkg-comment
@@ -0,0 +1 @@
+a translator between GuoBiao / Big5 and HZ
diff --git a/chinese/hztty/pkg-descr b/chinese/hztty/pkg-descr
new file mode 100644
index 0000000..bde75d6
--- /dev/null
+++ b/chinese/hztty/pkg-descr
@@ -0,0 +1,17 @@
+ hztty
+
+ This program turns a tty session from one encoding to another.
+ For example, running hztty on cxterm can allow you to read/write
+ Chinese in HZ format, which was not supported by cxterm.
+ If you have many applications in different encodings but your
+ favor terminal program only supports one, hztty can make life easy.
+ For example, hztty can your GB cxterm into a HZ terminal, a
+ Unicode (16bit, or UTF8, or UTF7) terminal, or a Big5 terminal.
+
+ The idea is to open a new shell session on top of the current one
+ and to translate the encoding between the new tty and the orignal.
+ For example, if your application uses encoding A and your terminal
+ supports encoding B. Hztty catches the output of the application
+ and converts them from A to B before sending to the terminal.
+ Similarly, hztty converts all the terminal input from B to A before
+ sending to the application.
diff --git a/chinese/hztty/pkg-plist b/chinese/hztty/pkg-plist
new file mode 100644
index 0000000..c599ca2
--- /dev/null
+++ b/chinese/hztty/pkg-plist
@@ -0,0 +1,2 @@
+bin/hztty
+man/man1/hztty.1.gz
OpenPOWER on IntegriCloud