summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authoragc <agc>2002-06-19 09:25:25 +0000
committeragc <agc>2002-06-19 09:25:25 +0000
commit876baf091b04e87a806fb3028cbe77a3d919ac83 (patch)
treee746d7b90878417ec49acbbddad6d2e2f7665517 /converters
parent236825ddae0f3e93597dc6107c458b2111f181cb (diff)
downloadpkgsrc-876baf091b04e87a806fb3028cbe77a3d919ac83.tar.gz
Initial import of autoconvert-0.3.13, an intelligent Chinese encoding
converter, into the NetBSD packages system. Provided in PR 16087 by Rui-Xiang Guo (rxg@ms25.url.com.tw). AutoConvert is an intelligent Chinese Encoding converter. It uses built-in functions to judge the type of the input file's Chinese Encoding (such as GB/Big5/HZ), then converts the input file to any type of Chinese Encoding you want. You can use autoconvert to automatically convert incoming e-mail messages. It can also optionally handle the UNI/UTF7/UTF8 encoding.
Diffstat (limited to 'converters')
-rw-r--r--converters/autoconvert/DESCR6
-rw-r--r--converters/autoconvert/Makefile20
-rw-r--r--converters/autoconvert/PLIST17
-rw-r--r--converters/autoconvert/distinfo6
-rw-r--r--converters/autoconvert/patches/patch-aa49
-rw-r--r--converters/autoconvert/patches/patch-ab36
6 files changed, 134 insertions, 0 deletions
diff --git a/converters/autoconvert/DESCR b/converters/autoconvert/DESCR
new file mode 100644
index 00000000000..61c2332672e
--- /dev/null
+++ b/converters/autoconvert/DESCR
@@ -0,0 +1,6 @@
+AutoConvert is an intelligent Chinese Encoding converter.
+It uses built-in functions to judge the type of the input file's Chinese
+Encoding (such as GB/Big5/HZ), then converts the input file to any
+type of Chinese Encoding you want. You can use autoconvert to
+automatically convert incoming e-mail messages. It can also optionally
+handle the UNI/UTF7/UTF8 encoding.
diff --git a/converters/autoconvert/Makefile b/converters/autoconvert/Makefile
new file mode 100644
index 00000000000..144e4b7da8a
--- /dev/null
+++ b/converters/autoconvert/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/06/19 09:25:25 agc Exp $
+
+DISTNAME= autoconvert-0.3.13
+CATEGORIES= converters
+MASTER_SITES= http://people.debian.org/~ygh/
+
+MAINTAINER= rxg@netbsd.org
+HOMEPAGE= http://banyan.dlut.edu.cn/~ygh/
+COMMENT= Intelligent Chinese encoding converter
+
+USE_LIBTOOL= yes
+USE_GMAKE= yes
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/autoconvert
+ ${INSTALL_DATA} ${WRKSRC}/procmailrc.example ${WRKSRC}/shed.* \
+ ${PREFIX}/share/examples/autoconvert
+
+.include "../../devel/libgetopt/buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/converters/autoconvert/PLIST b/converters/autoconvert/PLIST
new file mode 100644
index 00000000000..3b78539b3c9
--- /dev/null
+++ b/converters/autoconvert/PLIST
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/06/19 09:25:25 agc Exp $
+bin/autob5
+bin/autogb
+include/hz.h
+include/zhstatis.h
+lib/libhz.a
+lib/libhz.la
+lib/libhz.so
+lib/libhz.so.0
+lib/libhz.so.0.0
+share/examples/autoconvert/procmailrc.example
+share/examples/autoconvert/shed.big5
+share/examples/autoconvert/shed.gb
+share/examples/autoconvert/shed.uni
+share/examples/autoconvert/shed.utf7
+share/examples/autoconvert/shed.utf8
+@dirrm share/examples/autoconvert
diff --git a/converters/autoconvert/distinfo b/converters/autoconvert/distinfo
new file mode 100644
index 00000000000..fe4b48dd57e
--- /dev/null
+++ b/converters/autoconvert/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/06/19 09:25:25 agc Exp $
+
+SHA1 (autoconvert-0.3.13.tar.gz) = cc59899e46ccfaacdb39f7a73767780b721ab75d
+Size (autoconvert-0.3.13.tar.gz) = 464081 bytes
+SHA1 (patch-aa) = 803666f4de76422dec546dc56c643abeda43edb1
+SHA1 (patch-ab) = f2dc6af133d620e67e414b7f0f1543e47ef794db
diff --git a/converters/autoconvert/patches/patch-aa b/converters/autoconvert/patches/patch-aa
new file mode 100644
index 00000000000..d505c7a71c4
--- /dev/null
+++ b/converters/autoconvert/patches/patch-aa
@@ -0,0 +1,49 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/06/19 09:25:25 agc Exp $
+
+--- Makefile.orig Sat Apr 28 09:45:46 2001
++++ Makefile
+@@ -1,22 +1,20 @@
+
+-CC=gcc
+-CFLAG=-O2 -g -Wall -Iinclude
+-LIBS= -Llib -lhz
++CFLAG+=-Wall -Iinclude
+
+ .PHONY: all hzlib clean install-home install
+
+-all: autob5 autogb hzlib xchat-plugins
++all: autob5 autogb hzlib
+
+ autob5: autogb
+ rm -f autob5;ln -s autogb autob5
+ autogb:autogb.c hzlib
+- $(CC) $(CFLAG) $(LIBS) autogb.c -lhz -o autogb
++ $(LIBTOOL) --mode=link $(CC) $(CFLAG) autogb.c -o autogb hzconvert/libhz.la $(LIBGETOPT)
+ autogb-static:autogb.c hzlib
+ $(CC) $(CFLAG) autogb.c lib/libhz.a -o autogb
+ hzlib:
+- cd hzconvert;make
++ cd hzconvert;$(MAKE)
+ xchat-plugins:
+- cd contrib/xchat-plugins;make
++ cd contrib/xchat-plugins;$(MAKE)
+ clean:
+ rm -f autob5 autogb *.o *~
+ rm -f include/*~
+@@ -30,12 +28,7 @@
+ ln -s $(HOME)/bin/autogb $(HOME)/bin/autob5
+ chmod 755 $(HOME)/bin/autogb
+ install:
+- install -m 755 autogb $(DESTDIR)/usr/bin
+- install -m 755 lib/libhz.so.0.0 $(DESTDIR)/usr/lib
+- cd $(DESTDIR)/usr/lib;ln -s libhz.so.0.0 libhz.so.0
+- cd $(DESTDIR)/usr/lib;ln -s libhz.so.0 libhz.so
+- install -m 755 lib/libhz.a $(DESTDIR)/usr/lib
+- install -m 755 contrib/xchat-plugins/xchat-autogb.so $(DESTDIR)/usr/share/zh-autoconvert
+- install -m 755 contrib/xchat-plugins/xchat-autob5.so $(DESTDIR)/usr/share/zh-autoconvert
+- install -m 644 include/*.h $(DESTDIR)/usr/include
+- ln -s autogb $(DESTDIR)/usr/bin/autob5
++ cd hzconvert;$(MAKE) install
++ $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) autogb $(PREFIX)/bin
++ $(BSD_INSTALL_DATA) include/*.h $(PREFIX)/include
++ ln -fs $(PREFIX)/bin/autogb $(PREFIX)/bin/autob5
diff --git a/converters/autoconvert/patches/patch-ab b/converters/autoconvert/patches/patch-ab
new file mode 100644
index 00000000000..68590a83ee1
--- /dev/null
+++ b/converters/autoconvert/patches/patch-ab
@@ -0,0 +1,36 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/06/19 09:25:25 agc Exp $
+
+--- hzconvert/Makefile.orig Mon Jan 8 18:03:21 2001
++++ hzconvert/Makefile
+@@ -1,22 +1,17 @@
+-CC=gcc -I../include
+-CFLAGS=-O2 -Wall -g
+-SHARED_LIB=libhz.so
+-SHARED_LIB_MAJOR=$(SHARED_LIB).0
+-SHARED_LIB_MINOR=$(SHARED_LIB_MAJOR).0
++CFLAGS+=-Wall -I../include
++LIB=libhz.a
+ OBJS=b2g.o b2u.o g2u.o hz2gb.o b2g_tables.o b2u_tables.o g2u_tables.o io.o unicode.o judge.o judge3.o gbpercent.o b5percent.o search.o
+
+ %.o: %.c
+- $(CC) -fPIC $(CFLAGS) -c $<
++ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
+
+-all: libhzconvert
++all: $(LIB)
+
+-libhzconvert: $(OBJS)
+- ar rs ../lib/libhz.a $(OBJS)
+- gcc -fPIC -shared -Wl,-soname,$(SHARED_LIB_MAJOR) -o ../lib/$(SHARED_LIB_MINOR) $(OBJS) -ldl
+- rm -f ../lib/$(SHARED_LIB_MAJOR)
+- rm -f ../lib/$(SHARED_LIB)
+- cd ../lib;ln -s $(SHARED_LIB_MINOR) $(SHARED_LIB_MAJOR)
+- cd ../lib;ln -s $(SHARED_LIB_MAJOR) $(SHARED_LIB)
++$(LIB): $(OBJS)
++ $(LIBTOOL) --mode=link $(CC) -o $(LIB:.a=.la) $(OBJS:.o=.lo) -rpath $(PREFIX)/lib
++
++install: all
++ $(LIBTOOL) --mode=install $(BSD_INSTALL_DATA) $(LIB:.a=.la) $(PREFIX)/lib
+
+ clean:
+ rm -f *.o *~ ../lib/lib*