Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Oct 1999 09:17:20 +0800 (CST)
From:      Yin-Jieh Chen <yinjieh@Crazyman.Dorm13.NCTU.edu.tw>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/14528: New port: chinese/autoconvert
Message-ID:  <199910260117.JAA01994@Crazyman.Dorm13.NCTU.edu.tw>

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

>Number:         14528
>Category:       ports
>Synopsis:       New port: 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:   Mon Oct 25 18:30:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Yin-Jieh Chen
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
NCTU CSIE FreeBSD Users' Group
>Environment:
FreeBSD Crazyman.Dorm13.NCTU.edu.tw 3.3-STABLE FreeBSD 3.3-STABLE #29: Mon Oct 1
1 13:19:18 CST 1999     root@Crazyman.Dorm13.NCTU.edu.tw:/home2/src/sys/compile/
YINJIEH  i386
>Description:

	New port: chinese/autoconvert
	It's a converter which can convert between three types of chinese
	encoding (BIG5/GB/HZ).

>How-To-Repeat:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	autoconvert
#	autoconvert/Makefile
#	autoconvert/files
#	autoconvert/files/md5
#	autoconvert/patches
#	autoconvert/patches/patch-aa
#	autoconvert/patches/patch-ab
#	autoconvert/pkg
#	autoconvert/pkg/COMMENT
#	autoconvert/pkg/DESCR
#	autoconvert/pkg/PLIST
#
echo c - autoconvert
mkdir -p autoconvert > /dev/null 2>&1
echo x - autoconvert/Makefile
sed 's/^X//' >autoconvert/Makefile << 'END-of-autoconvert/Makefile'
X# New ports collection makefile for:	autoconvert
X# Version required:	0.3.2
X# Date created:		26 Oct 1999
X# Whom:			Yin-Jieh Chen <yinjieh@csie.nctu.edu.tw>
X#
X# $FreeBSD$
X#
X
XDISTNAME=	autoconvert-0.3.2
XCATEGORIES=	chinese
XMASTER_SITES=	http://www.linuxfocus.org/~yu.guanghui/ \
X		ftp://ftp.dlut.edu.cn/pub/PEOPLE/saka/
X
XMAINTAINER=	yinjieh@csie.nctu.edu.tw
X
XWRKSRC=		${WRKDIR}/autoconvert
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/autob5 ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/autogb ${PREFIX}/bin
X	${MKDIR} ${PREFIX}/share/autoconvert
X.for i in ChangeLog LICENSE Readme TODO Version big5.txt gb.txt hz.txt procmailrc.example
X	${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/autoconvert
X.endfor
X
X.include <bsd.port.mk>
END-of-autoconvert/Makefile
echo c - autoconvert/files
mkdir -p autoconvert/files > /dev/null 2>&1
echo x - autoconvert/files/md5
sed 's/^X//' >autoconvert/files/md5 << 'END-of-autoconvert/files/md5'
XMD5 (autoconvert-0.3.2.tar.gz) = a973d8402a011778d53bc9d9c82dbd06
END-of-autoconvert/files/md5
echo c - autoconvert/patches
mkdir -p autoconvert/patches > /dev/null 2>&1
echo x - autoconvert/patches/patch-aa
sed 's/^X//' >autoconvert/patches/patch-aa << 'END-of-autoconvert/patches/patch-aa'
X--- Makefile.orig	Mon Oct 25 19:00:37 1999
X+++ Makefile	Tue Oct 26 08:29:33 1999
X@@ -1,5 +1,5 @@
X CC=gcc
X-CFLAG=-O2 -g
X+CFLAG+=-O2
X 
X 
X all:lib.o autob5 autogb hzlib 
END-of-autoconvert/patches/patch-aa
echo x - autoconvert/patches/patch-ab
sed 's/^X//' >autoconvert/patches/patch-ab << 'END-of-autoconvert/patches/patch-ab'
X--- hzconvert/Makefile.orig	Mon Oct 25 19:02:21 1999
X+++ hzconvert/Makefile	Tue Oct 26 08:29:52 1999
X@@ -1,10 +1,10 @@
X CC=gcc
X-CFLAGS=-O2
X+CFLAGS+=-O2
X OBJS=b2g.o b2u.o g2u.o hztogb.o b2g_tables.o b2u_tables.o g2u_tables.o io.o unicode.o
X-%.o:%c
X+all:libhzconvert.a
X+%.o:%.c
X 	$(CC) $(CFLAGS) -c $<
X 
X-all:libhzconvert.a
X libhzconvert.a:$(OBJS)
X 	ar rs  libhzconvert.a $(OBJS)
X clean:
END-of-autoconvert/patches/patch-ab
echo c - autoconvert/pkg
mkdir -p autoconvert/pkg > /dev/null 2>&1
echo x - autoconvert/pkg/COMMENT
sed 's/^X//' >autoconvert/pkg/COMMENT << 'END-of-autoconvert/pkg/COMMENT'
XAn intelligent Chinese encoding converter.
END-of-autoconvert/pkg/COMMENT
echo x - autoconvert/pkg/DESCR
sed 's/^X//' >autoconvert/pkg/DESCR << 'END-of-autoconvert/pkg/DESCR'
XAutoconvert is an intelligent Chinese encoding converter. It uses builtin
Xfunctions to judge the type of the input file's Chinese Encoding (such as
XGB/Big5/HZ), then converts the input file to any type of Chinese Encoding
Xyou want. You can use autoconvert to handle incoming mail, automatically
Xconverting messages to the Chinese Encoding you want.
X  If you use procmail, there will be an example at:
X${PREFIX}/share/autoconvert/procmailrc.example, which helps you to setup
Xautoconvert as a filter of procmail.
X
XWWW: http://banyan.dlut.edu.cn/~ygh/
X
X- Yin-Jieh Chen
Xyinjieh@csie.nctu.edu.tw
END-of-autoconvert/pkg/DESCR
echo x - autoconvert/pkg/PLIST
sed 's/^X//' >autoconvert/pkg/PLIST << 'END-of-autoconvert/pkg/PLIST'
Xbin/autob5
Xbin/autogb
Xshare/autoconvert/ChangeLog
Xshare/autoconvert/LICENSE
Xshare/autoconvert/Readme
Xshare/autoconvert/TODO
Xshare/autoconvert/Version
Xshare/autoconvert/big5.txt
Xshare/autoconvert/gb.txt
Xshare/autoconvert/hz.txt
Xshare/autoconvert/procmailrc.example
X@dirrm share/autoconvert
END-of-autoconvert/pkg/PLIST
exit

>Fix:
	
	Please, commit this port, thanks.

>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?199910260117.JAA01994>