1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

This is the Hanzi Converter, which converts between GB and BIG-5 codes.

This commit is contained in:
David E. O'Brien 1997-02-08 00:36:02 +00:00
parent f624f3f408
commit 884bc61307
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=5563
6 changed files with 68 additions and 0 deletions

33
chinese/hc/Makefile Normal file
View File

@ -0,0 +1,33 @@
# ex:ts=8
# Ports collection makefile for: hc
# Version required: 3.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= cn-hc-3.0
CATEGORIES= chinese
MASTER_SITES= ftp://ftp.ifcss.org/pub/software/unix/convert/ \
ftp://ftp.edu.tw/Chinese/ifcss/software/unix/convert/ \
ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/convert/
DISTFILES= hc-30.tar.gz hc-supp.tab
MAINTAINER= obrien@NUXI.com
WRKSRC= ${WRKDIR}/hc3
EXTRACT_ONLY= hc-30.tar.gz
ALL_TARGET= hc b2g g2b
MAN1= hc.1
do-install:
@${MKDIR} ${PREFIX}/share/chinese
${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/chinese
${INSTALL_DATA} ${DISTDIR}/hc-supp.tab ${PREFIX}/share/chinese
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1
.include <bsd.port.mk>

2
chinese/hc/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (hc-30.tar.gz) = e3a0fad6154e1d3f4e8abbb52abf28e1
MD5 (hc-supp.tab) = 5b12db3fbe75b4b252a4f588a1d25a58

17
chinese/hc/files/patch-01 Normal file
View File

@ -0,0 +1,17 @@
--- Makefile.orig Wed Mar 10 23:22:44 1993
+++ Makefile Tue Feb 4 02:48:17 1997
@@ -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/chinese/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/chinese/hc.tab "$$*" >> g2b
chmod a+x g2b
clean:

1
chinese/hc/pkg-comment Normal file
View File

@ -0,0 +1 @@
Hanzi Converter -- converts between GB and BIG-5 codes

9
chinese/hc/pkg-descr Normal file
View File

@ -0,0 +1,9 @@
This is the Hanzi Converter, which converts between GB and BIG-5 codes.
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.
-- David O'Brien

6
chinese/hc/pkg-plist Normal file
View File

@ -0,0 +1,6 @@
bin/hc
bin/b2g
bin/g2b
share/chinese/hc.tab
share/chinese/hc-supp.tab
man/man1/hc.1.gz