summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authoruebayasi <uebayasi@pkgsrc.org>2002-03-30 06:03:39 +0000
committeruebayasi <uebayasi@pkgsrc.org>2002-03-30 06:03:39 +0000
commit38c11ebd97d9b2387351bb60ac44861910c6ea05 (patch)
tree74fcdb404e36b4176ed3031801809fe8752fcb50 /converters
parent3449fcf1fb795ebb78548eef3bf2700d9e3539fc (diff)
downloadpkgsrc-38c11ebd97d9b2387351bb60ac44861910c6ea05.tar.gz
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}.
Diffstat (limited to 'converters')
-rw-r--r--converters/cn2jp/DESCR9
-rw-r--r--converters/cn2jp/Makefile24
-rw-r--r--converters/cn2jp/PLIST16
-rw-r--r--converters/cn2jp/distinfo6
-rw-r--r--converters/cn2jp/patches/patch-aa85
-rw-r--r--converters/cn2jp/patches/patch-ab41
6 files changed, 181 insertions, 0 deletions
diff --git a/converters/cn2jp/DESCR b/converters/cn2jp/DESCR
new file mode 100644
index 00000000000..399d1cdada9
--- /dev/null
+++ b/converters/cn2jp/DESCR
@@ -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
diff --git a/converters/cn2jp/Makefile b/converters/cn2jp/Makefile
new file mode 100644
index 00000000000..1d15c8bd58d
--- /dev/null
+++ b/converters/cn2jp/Makefile
@@ -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"
diff --git a/converters/cn2jp/PLIST b/converters/cn2jp/PLIST
new file mode 100644
index 00000000000..1f22caf5317
--- /dev/null
+++ b/converters/cn2jp/PLIST
@@ -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
diff --git a/converters/cn2jp/distinfo b/converters/cn2jp/distinfo
new file mode 100644
index 00000000000..3521f87b4d3
--- /dev/null
+++ b/converters/cn2jp/distinfo
@@ -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
diff --git a/converters/cn2jp/patches/patch-aa b/converters/cn2jp/patches/patch-aa
new file mode 100644
index 00000000000..2381db352ba
--- /dev/null
+++ b/converters/cn2jp/patches/patch-aa
@@ -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..."
diff --git a/converters/cn2jp/patches/patch-ab b/converters/cn2jp/patches/patch-ab
new file mode 100644
index 00000000000..7d792507ea4
--- /dev/null
+++ b/converters/cn2jp/patches/patch-ab
@@ -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..."