Initial import of cn2jp-1.4b, library for code translation between Chinese
and Japanese including Chinese {GB,Big5,HZ} and Japanese {EUC-Jis,Shift-Jis,Jis}.
This commit is contained in:
parent
3449fcf1fb
commit
38c11ebd97
6 changed files with 181 additions and 0 deletions
9
converters/cn2jp/DESCR
Normal file
9
converters/cn2jp/DESCR
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
cn2jp -- library for code translation between Chinese and Japanese
|
||||||
|
including Chinese {GB,Big5,HZ} and Japanese (EUC-Jis/Shift-Jis/Jis)
|
||||||
|
|
||||||
|
b2j translate Big5 to Jis/EUC-Jis/Shift-Jis/Kuten
|
||||||
|
g2j translate GB to Jis/EUC-Jis/Shift-Jis/Kuten
|
||||||
|
j2b translate any Jis to Big5
|
||||||
|
g2b translate GB to Big5
|
||||||
|
j2g translate any Jis to GB
|
||||||
|
b2g translate Big5 to GB
|
24
converters/cn2jp/Makefile
Normal file
24
converters/cn2jp/Makefile
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# $NetBSD: Makefile,v 1.1.1.1 2002/03/30 06:03:39 uebayasi Exp $
|
||||||
|
|
||||||
|
DISTNAME= cn2jp1.4b
|
||||||
|
PKGNAME= cn2jp-1.4b
|
||||||
|
CATEGORIES= converters
|
||||||
|
MASTER_SITES= http://w3.sys.es.osaka-u.ac.jp/~seke/software/cn2jp/
|
||||||
|
|
||||||
|
MAINTAINER= rxg@netbsd.org
|
||||||
|
HOMEPAGE= http://w3.sys.es.osaka-u.ac.jp/~seke/software/cn2jp/
|
||||||
|
COMMENT= library for code translation between Chinese and Japanese
|
||||||
|
|
||||||
|
USE_LIBTOOL= yes
|
||||||
|
USE_GMAKE= yes
|
||||||
|
|
||||||
|
WRKSRC= ${WRKDIR}/cn2jp
|
||||||
|
NO_CONFIGURE= yes
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cn2jp
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/cn2jp
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/lib/jp-util.h ${PREFIX}/include
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/lib/lang-util.h ${PREFIX}/include
|
||||||
|
|
||||||
|
.include "../../mk/bsd.pkg.mk"
|
16
converters/cn2jp/PLIST
Normal file
16
converters/cn2jp/PLIST
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
@comment $NetBSD: PLIST,v 1.1.1.1 2002/03/30 06:03:39 uebayasi Exp $
|
||||||
|
bin/b2g
|
||||||
|
bin/b2j
|
||||||
|
bin/g2b
|
||||||
|
bin/g2j
|
||||||
|
bin/j2b
|
||||||
|
bin/j2g
|
||||||
|
include/jp-util.h
|
||||||
|
include/lang-util.h
|
||||||
|
lib/libcn2jp.a
|
||||||
|
lib/libcn2jp.la
|
||||||
|
lib/libcn2jp.so
|
||||||
|
lib/libcn2jp.so.0
|
||||||
|
lib/libcn2jp.so.0.0
|
||||||
|
share/doc/cn2jp/README
|
||||||
|
@dirrm share/doc/cn2jp
|
6
converters/cn2jp/distinfo
Normal file
6
converters/cn2jp/distinfo
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
$NetBSD: distinfo,v 1.1.1.1 2002/03/30 06:03:39 uebayasi Exp $
|
||||||
|
|
||||||
|
SHA1 (cn2jp1.4b.tar.gz) = 09cee0b189e5925a5378f1f817cc9593be899518
|
||||||
|
Size (cn2jp1.4b.tar.gz) = 271660 bytes
|
||||||
|
SHA1 (patch-aa) = a1b67afbc36161b2731a938d81e19af2c9fba7dd
|
||||||
|
SHA1 (patch-ab) = a5a43c0dd84515a5c8b7d0cacc9a49b9b378a8e1
|
85
converters/cn2jp/patches/patch-aa
Normal file
85
converters/cn2jp/patches/patch-aa
Normal file
|
@ -0,0 +1,85 @@
|
||||||
|
$NetBSD: patch-aa,v 1.1.1.1 2002/03/30 06:03:39 uebayasi Exp $
|
||||||
|
|
||||||
|
--- Makefile.orig Tue Feb 27 22:35:44 1996
|
||||||
|
+++ Makefile
|
||||||
|
@@ -1,7 +1,5 @@
|
||||||
|
-INCLUDE=
|
||||||
|
|
||||||
|
-CC=cc
|
||||||
|
-CFLAGS= -g -I../lib -I. -L../lib -L.
|
||||||
|
+CFLAGS+= -I./lib
|
||||||
|
|
||||||
|
SRC = README Makefile */*.c */*.h */*.tbl */Makefile */README
|
||||||
|
OBJS = big2jis/b2j-util.o big2jis/b2j_table.o \
|
||||||
|
@@ -12,37 +10,43 @@
|
||||||
|
jis2gb/j2g-util.o jis2gb/j2g_table.o \
|
||||||
|
lib/lang-util.o lib/cn-util.o \
|
||||||
|
lib/py-tbl.o lib/uzpj-tbl.o lib/uzpj-util.o \
|
||||||
|
- hz2gb.o gb2hz.o SINO.o jp-util2.o
|
||||||
|
+ lib/hz2gb.o lib/gb2hz.o lib/SINO.o lib/jp-util.o
|
||||||
|
|
||||||
|
-all: makeall libcn2jp.a
|
||||||
|
+PROG = big2jis/b2j jis2big/j2b \
|
||||||
|
+ big2gb/b2g gb2big/g2b \
|
||||||
|
+ gb2jis/g2j jis2gb/j2g
|
||||||
|
+
|
||||||
|
+LIB = libcn2jp.a
|
||||||
|
+
|
||||||
|
+install:
|
||||||
|
+ $(LIBTOOL) --mode=install $(BSD_INSTALL_DATA) $(LIB:.a=.la) $(PREFIX)/lib
|
||||||
|
+ for i in $(PROG);do \
|
||||||
|
+ $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) $$i $(PREFIX)/bin; \
|
||||||
|
+ done
|
||||||
|
+
|
||||||
|
+all: clean mktable $(LIB) makeall
|
||||||
|
+
|
||||||
|
+mktable:
|
||||||
|
+ cd table;make
|
||||||
|
+ ln -s table/mktable mktable
|
||||||
|
+ ln -s table/mktbl2c mktbl2c
|
||||||
|
+ cd big2jis;../mktable big2jis.tbl;../mktbl2c big2jis.t b2j > b2j_table.c
|
||||||
|
+ cd jis2big;../mktable jis2big.tbl;../mktbl2c jis2big.t j2b > j2b_table.c
|
||||||
|
+ cd big2gb;../mktable big2gb.tbl;../mktbl2c big2gb.t b2g > b2g_table.c
|
||||||
|
+ cd gb2big;../mktable gb2big.tbl;../mktbl2c gb2big.t g2b > g2b_table.c
|
||||||
|
+ cd gb2jis;../mktable gb2jis.tbl;../mktbl2c gb2jis.t g2j > g2j_table.c
|
||||||
|
+ cd jis2gb;../mktable jis2gb.tbl;../mktbl2c jis2gb.t j2g > j2g_table.c
|
||||||
|
+
|
||||||
|
+makeall: big2jis/b2j.o jis2big/j2b.o big2gb/b2g.o gb2big/g2b.o gb2jis/g2j.o jis2gb/j2g.o
|
||||||
|
+ for i in $(PROG);do \
|
||||||
|
+ $(LIBTOOL) --mode=link $(CC) -o $$i $$i.lo $(LIB:.a=.la); \
|
||||||
|
+ done
|
||||||
|
|
||||||
|
+$(LIB): $(OBJS)
|
||||||
|
+ $(LIBTOOL) --mode=link $(CC) -o $(LIB:.a=.la) $(OBJS:.o=.lo) -rpath $(PREFIX)/lib
|
||||||
|
|
||||||
|
-makeall:
|
||||||
|
- cd lib; make; cd ..
|
||||||
|
- cd big2jis; make; cd ..
|
||||||
|
- cd jis2big; make; cd ..
|
||||||
|
- cd big2gb; make; cd ..
|
||||||
|
- cd gb2big; make; cd ..
|
||||||
|
- cd gb2jis; make; cd ..
|
||||||
|
- cd jis2gb; make; cd ..
|
||||||
|
-
|
||||||
|
-libcn2jp.a: $(OBJS)
|
||||||
|
- rm -f libcn2jp.a
|
||||||
|
- ar r libcn2jp.a $(OBJS)
|
||||||
|
- ranlib libcn2jp.a
|
||||||
|
- cp libcn2jp.a ../../../lib/libcn2jp.a
|
||||||
|
-
|
||||||
|
-gb2hz.o: lib/gb2hz.c
|
||||||
|
- $(CC) -c lib/gb2hz.c
|
||||||
|
-
|
||||||
|
-hz2gb.o: lib/hz2gb.c
|
||||||
|
- $(CC) -c lib/hz2gb.c
|
||||||
|
-
|
||||||
|
-SINO.o: lib/SINO.c
|
||||||
|
- $(CC) -c lib/SINO.c
|
||||||
|
-
|
||||||
|
-jp-util2.o: lib/jp-util2.c
|
||||||
|
- $(CC) -c lib/jp-util2.c
|
||||||
|
+%.o: %.c
|
||||||
|
+ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
tar:
|
||||||
|
echo "Produce cn2jp`date '+%m%d'`.tar..."
|
41
converters/cn2jp/patches/patch-ab
Normal file
41
converters/cn2jp/patches/patch-ab
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
$NetBSD: patch-ab,v 1.1.1.1 2002/03/30 06:03:39 uebayasi Exp $
|
||||||
|
|
||||||
|
--- table/Makefile.orig Thu Mar 28 23:47:16 2002
|
||||||
|
+++ table/Makefile
|
||||||
|
@@ -1,7 +1,4 @@
|
||||||
|
-INCLUDE=
|
||||||
|
|
||||||
|
-CC=cc
|
||||||
|
-CFLAGS= -g -I../include -I. -L../lib -L.
|
||||||
|
|
||||||
|
SRC = big5.c gb.c jis.c mktable.c mktbl2c.c
|
||||||
|
OBJS =
|
||||||
|
@@ -11,25 +8,21 @@
|
||||||
|
|
||||||
|
mktable: mktable.o
|
||||||
|
$(CC) $(CFLAGS) -o mktable mktable.o
|
||||||
|
- rm -f /home/sagittar/seke/bin/mktable
|
||||||
|
- ln mktable /home/sagittar/seke/bin/mktable
|
||||||
|
|
||||||
|
mktbl2c: mktbl2c.o
|
||||||
|
$(CC) $(CFLAGS) -o mktbl2c mktbl2c.o
|
||||||
|
- rm -f /home/sagittar/seke/bin/mktbl2c
|
||||||
|
- ln mktbl2c /home/sagittar/seke/bin/mktbl2c
|
||||||
|
|
||||||
|
big5.tbl: big5.o
|
||||||
|
$(CC) $(CFLAGS) -o big5 big5.o
|
||||||
|
- big5 > big5.tbl
|
||||||
|
+ ./big5 > big5.tbl
|
||||||
|
|
||||||
|
gb.tbl: gb.o
|
||||||
|
$(CC) $(CFLAGS) -o gb gb.o
|
||||||
|
- gb > gb.tbl
|
||||||
|
+ ./gb > gb.tbl
|
||||||
|
|
||||||
|
jis.tbl: jis.o
|
||||||
|
$(CC) $(CFLAGS) -o jis jis.o
|
||||||
|
- jis > jis.tbl
|
||||||
|
+ ./jis > jis.tbl
|
||||||
|
|
||||||
|
tar:
|
||||||
|
echo "Produce table`date '+%m%d'`.tar..."
|
Loading…
Reference in a new issue