Skip site navigation (1)Skip section navigation (2)
Date:      3 Aug 2001 18:59:36 -0000
From:      Patrick Li <pat@databits.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/29417: Update chinese/autoconvert
Message-ID:  <20010803185936.91928.qmail@cc92687-a.wlgrv1.pa.home.com>

next in thread | raw e-mail | index | archive | help

>Number:         29417
>Category:       ports
>Synopsis:       Update chinese/autoconvert
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 03 12:00:38 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Li
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
N/A
>Environment:
System: FreeBSD bottlenek 4.3-STABLE FreeBSD 4.3-STABLE #0: Wed Aug 1 09:31:37 EDT 2001 root@:/usr/src/sys/compile/BOTTLENEK i386
>Description:
- Update to 0.3.13
- Make docs and examples install to ${DOCSDIR} and
  add NOPORTDOCS support.
- Fix patches to make port CC safe and also tune up
  CFLAGS a bit. 
- Add master site and remove non-working ones.
>How-To-Repeat:
N/A
>Fix:
diff -ruN /usr/ports/chinese/autoconvert/Makefile autoconvert/Makefile
--- /usr/ports/chinese/autoconvert/Makefile	Thu May 10 15:41:41 2001
+++ autoconvert/Makefile	Fri Aug  3 14:32:08 2001
@@ -6,10 +6,9 @@
 #
 
 PORTNAME=	autoconvert
-PORTVERSION=	0.3.12
+PORTVERSION=	0.3.13
 CATEGORIES=	chinese
-MASTER_SITES=	http://www.csie.nctu.edu.tw/~yinjieh/ \
-		ftp://banyan.dlut.edu.cn/pub/PEOPLE/saka/
+MASTER_SITES=	http://people.debian.org/~ygh/
 
 MAINTAINER=	yinjieh@csie.nctu.edu.tw
 
@@ -23,10 +22,12 @@
 	${INSTALL_DATA} ${WRKSRC}/lib/libhz.a ${PREFIX}/lib
 	${INSTALL_DATA} ${WRKSRC}/lib/libhz.so.0.0 ${PREFIX}/lib/libhz.so.0
 	cd ${PREFIX}/lib; ${LN} -sf libhz.so.0 libhz.so
-	${MKDIR} ${PREFIX}/share/autoconvert
-.for i in ChangeLog LICENSE Readme TODO Thanks Version hz.txt procmailrc.example shed.big5 shed.gb shed.uni shed.utf7 shed.utf8
-	${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/autoconvert
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}
+.for i in ChangeLog Readme TODO Thanks Version hz.txt procmailrc.example shed.big5 shed.gb shed.uni shed.utf7 shed.utf8
+	@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
 .endfor
+.endif
 
 .for i in hz.h zhstatis.h
 	${INSTALL_DATA} ${WRKSRC}/include/$i ${PREFIX}/include
diff -ruN /usr/ports/chinese/autoconvert/distinfo autoconvert/distinfo
--- /usr/ports/chinese/autoconvert/distinfo	Thu May 10 15:41:41 2001
+++ autoconvert/distinfo	Fri Aug  3 14:12:23 2001
@@ -1 +1 @@
-MD5 (autoconvert-0.3.12.tar.gz) = ff6022e9946051729b97a3e5f1e700a5
+MD5 (autoconvert-0.3.13.tar.gz) = 43d8d1bb012c72ec7bb7157cec5c63ad
diff -ruN /usr/ports/chinese/autoconvert/files/patch-aa autoconvert/files/patch-aa
--- /usr/ports/chinese/autoconvert/files/patch-aa	Sun Jan 14 09:45:33 2001
+++ autoconvert/files/patch-aa	Fri Aug  3 14:18:29 2001
@@ -1,12 +1,12 @@
---- Makefile.orig	Mon Jan  8 18:05:51 2001
-+++ Makefile	Tue Jan  9 03:03:10 2001
-@@ -1,11 +1,12 @@
- 
- CC=gcc
+--- Makefile.orig	Fri Apr 27 21:45:46 2001
++++ Makefile	Fri Aug  3 14:18:10 2001
+@@ -1,18 +1,17 @@
+-
+-CC=gcc
 -CFLAG=-O2 -g -Wall -Iinclude
 -LIBS= -Llib -lhz
-+CFLAG+=-Iinclude -I/usr/local/include
-+LIBS+=-Llib -lhz -L/usr/local/lib -lgnugetopt
++CFLAGS+=	-Iinclude -I${LOCALBASE}/include
++LIBS+=		-Llib -lhz -L${LOCALBASE}/lib -lgnugetopt
  
  .PHONY: all hzlib clean install-home install
  
@@ -16,3 +16,12 @@
  
  autob5: autogb
  	rm -f autob5;ln -s autogb autob5
+ autogb:autogb.c  hzlib
+-	$(CC) $(CFLAG) $(LIBS) autogb.c -lhz -o autogb
++	$(CC) $(CFLAGS) $(LIBS) autogb.c -lhz -o autogb
+ autogb-static:autogb.c  hzlib
+-	$(CC) $(CFLAG) autogb.c lib/libhz.a -o autogb
++	$(CC) $(CFLAGS) autogb.c lib/libhz.a -o autogb
+ hzlib:
+ 	cd hzconvert;make
+ xchat-plugins: 
diff -ruN /usr/ports/chinese/autoconvert/files/patch-ab autoconvert/files/patch-ab
--- /usr/ports/chinese/autoconvert/files/patch-ab	Sun Jan 14 09:45:33 2001
+++ autoconvert/files/patch-ab	Fri Aug  3 14:28:45 2001
@@ -1,6 +1,11 @@
---- hzconvert/Makefile.orig	Mon Jan  8 18:05:51 2001
-+++ hzconvert/Makefile	Tue Jan  9 02:02:33 2001
-@@ -5,14 +5,14 @@
+--- hzconvert/Makefile.orig	Mon Jan  8 05:03:21 2001
++++ hzconvert/Makefile	Fri Aug  3 14:19:54 2001
+@@ -1,18 +1,17 @@
+-CC=gcc -I../include
+-CFLAGS=-O2 -Wall -g
++CFLAGS+=	-Wall -I../include
+ SHARED_LIB=libhz.so
+ SHARED_LIB_MAJOR=$(SHARED_LIB).0
  SHARED_LIB_MINOR=$(SHARED_LIB_MAJOR).0
  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 
  
@@ -14,7 +19,7 @@
  libhzconvert: $(OBJS)
  	ar rs  ../lib/libhz.a $(OBJS)
 -	gcc -fPIC -shared -Wl,-soname,$(SHARED_LIB_MAJOR) -o ../lib/$(SHARED_LIB_MINOR)  $(OBJS) -ldl
-+	gcc -fPIC -shared -Wl,-soname,$(SHARED_LIB_MAJOR) -o ../lib/$(SHARED_LIB_MINOR)  $(OBJS)
++	$(CC) -fPIC -shared -Wl,-soname,$(SHARED_LIB_MAJOR) -o ../lib/$(SHARED_LIB_MINOR)  $(OBJS)
  	rm -f ../lib/$(SHARED_LIB_MAJOR)
  	rm -f ../lib/$(SHARED_LIB)
  	cd ../lib;ln -s $(SHARED_LIB_MINOR) $(SHARED_LIB_MAJOR)
diff -ruN /usr/ports/chinese/autoconvert/pkg-descr autoconvert/pkg-descr
--- /usr/ports/chinese/autoconvert/pkg-descr	Wed Oct 27 06:53:09 1999
+++ autoconvert/pkg-descr	Fri Aug  3 14:26:15 2001
@@ -1,6 +1,15 @@
+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.
+
 If you use procmail, there will be an example at:
-${PREFIX}/share/autoconvert/procmailrc.example, which helps you to setup
-autoconvert as a filter of procmail.
+${PREFIX}/share/doc/autoconvert/procmailrc.example
+which helps you to setup autoconvert as a filter of
+procmail.
 
 WWW: http://banyan.dlut.edu.cn/~ygh/
 
diff -ruN /usr/ports/chinese/autoconvert/pkg-plist autoconvert/pkg-plist
--- /usr/ports/chinese/autoconvert/pkg-plist	Thu May 10 15:41:41 2001
+++ autoconvert/pkg-plist	Fri Aug  3 14:21:52 2001
@@ -5,17 +5,16 @@
 lib/libhz.a
 lib/libhz.so
 lib/libhz.so.0
-share/autoconvert/ChangeLog
-share/autoconvert/LICENSE
-share/autoconvert/Readme
-share/autoconvert/TODO
-share/autoconvert/Thanks
-share/autoconvert/Version
-share/autoconvert/hz.txt
-share/autoconvert/procmailrc.example
-share/autoconvert/shed.big5
-share/autoconvert/shed.gb
-share/autoconvert/shed.uni
-share/autoconvert/shed.utf7
-share/autoconvert/shed.utf8
-@dirrm share/autoconvert
+%%PORTDOCS%%share/doc/autoconvert/ChangeLog
+%%PORTDOCS%%share/doc/autoconvert/Readme
+%%PORTDOCS%%share/doc/autoconvert/TODO
+%%PORTDOCS%%share/doc/autoconvert/Thanks
+%%PORTDOCS%%share/doc/autoconvert/Version
+%%PORTDOCS%%share/doc/autoconvert/hz.txt
+%%PORTDOCS%%share/doc/autoconvert/procmailrc.example
+%%PORTDOCS%%share/doc/autoconvert/shed.big5
+%%PORTDOCS%%share/doc/autoconvert/shed.gb
+%%PORTDOCS%%share/doc/autoconvert/shed.uni
+%%PORTDOCS%%share/doc/autoconvert/shed.utf7
+%%PORTDOCS%%share/doc/autoconvert/shed.utf8
+%%PORTDOCS%%@dirrm share/doc/autoconvert
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010803185936.91928.qmail>