Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jul 2004 20:21:10 +0800 (CST)
From:      statue@freebsd.sinica.edu.tw
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/69530: New port: chinese/gcin
Message-ID:  <200407241221.i6OCLA6o027391@statue.netlab.cse.yzu.edu.tw>
Resent-Message-ID: <200407241230.i6OCUSSF080167@freefall.freebsd.org>

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

>Number:         69530
>Category:       ports
>Synopsis:       New port: chinese/gcin
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 24 12:30:27 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        FreeBSD 4.10-RELEASE i386
>Organization:
>Environment:
System: FreeBSD statue.netlab.cse.yzu.edu.tw 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 2004 root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:

gcin is a Gtk Chinese INput application in X, well support in Traditional
Chinese(Big5) charsets.

WWW: http://www.csie.nctu.edu.tw/~cp76/gcin/
	
>How-To-Repeat:
	
>Fix:

# 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:
#
#	gcin/
#	gcin/Makefile
#	gcin/distinfo
#	gcin/files
#	gcin/pkg-descr
#	gcin/pkg-plist
#	gcin/files/extrapatch-IMdkit::lib::Makefile
#	gcin/files/extrapatch-Makefile
#	gcin/files/patch-IMdkit::Makefile
#	gcin/files/patch-Makefile
#	gcin/files/patch-configure
#	gcin/files/patch-tsin-util.c
#	gcin/files/patch-tsin.c
#
echo c - gcin/
mkdir -p gcin/ > /dev/null 2>&1
echo x - gcin/Makefile
sed 's/^X//' >gcin/Makefile << 'END-of-gcin/Makefile'
X# New ports collection makefile for:  gcin
X# Date created:                   Feb 18 2004
X# Whom:                           Shen Chuan-Hsing
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gcin
XPORTVERSION=	0.1.8
XPORTNAME=	gcin
XCATEGORIES=	chinese
XMASTER_SITES=	http://www.csie.nctu.edu.tw/~cp76/gcin/download/
X
XMAINTAINER=	ports@FreeBSD.org
XCOMMENT=	A triditional chinese input utility in X
X
XUSE_BZIP2=	YES
XHAS_CONFIGURE=	YES
XUSE_GNOME=	gtk20
XUSE_GMAKE=	YES
X
X#USE_REINPLACE=	yes
X
X.include <bsd.port.pre.mk>
X
X.if ${OSVERSION} < 500041
XBUILD_DEPENDS=	gcc33:${PORTSDIR}/lang/gcc33
XEXTRA_PATCHES=	${FILESDIR}/extrapatch-Makefile \
X		${FILESDIR}/extrapatch-IMdkit::lib::Makefile
X.endif
X
X.include <bsd.port.post.mk>
END-of-gcin/Makefile
echo x - gcin/distinfo
sed 's/^X//' >gcin/distinfo << 'END-of-gcin/distinfo'
XMD5 (gcin-0.1.8.tar.bz2) = 38c377ec4be9185ba1df9c9a835f850c
XSIZE (gcin-0.1.8.tar.bz2) = 383452
END-of-gcin/distinfo
echo c - gcin/files
mkdir -p gcin/files > /dev/null 2>&1
echo x - gcin/pkg-descr
sed 's/^X//' >gcin/pkg-descr << 'END-of-gcin/pkg-descr'
Xgcin is a Gtk Chinese INput application in X, well support in Traditional
XChinese(Big5) charsets.
X
XWWW: http://www.csie.nctu.edu.tw/~cp76/gcin/
END-of-gcin/pkg-descr
echo x - gcin/pkg-plist
sed 's/^X//' >gcin/pkg-plist << 'END-of-gcin/pkg-plist'
Xbin/gcin
Xlib/menu/gcin
Xlib/menu/gcin-setup
Xshare/gcin/table/pho.tab
Xshare/gcin/table/et.kbm
Xshare/gcin/table/zo.kbm
Xshare/gcin/table/tsin
Xshare/gcin/table/tsin.idx
Xshare/gcin/table/symbol-table
Xshare/icons/gcin.png
Xshare/icons/gcin
Xshare/icons/gcin/pin-fixed24.png
Xshare/icons/gcin/pin-float16.png
X@dirrm lib/menu
X@dirrm share/icons
X@dirrm share/gcin/table
X@dirrm share/gcin
END-of-gcin/pkg-plist
echo x - gcin/files/extrapatch-IMdkit::lib::Makefile
sed 's/^X//' >gcin/files/extrapatch-IMdkit::lib::Makefile << 'END-of-gcin/files/extrapatch-IMdkit::lib::Makefile'
X--- IMdkit/lib/Makefile.orig	Sat Jul 24 19:20:13 2004
X+++ IMdkit/lib/Makefile	Sat Jul 24 19:20:17 2004
X@@ -1,6 +1,6 @@
X include ../../config.mak
X 
X-CC = gcc
X+CC = gcc33
X #CFLAGS =  -c -O2 -fno-strength-reduce -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE   -DFUNCPROTO=15 -DNARROWPROTO   -DUNIXCONN -DTCPCONN -DXIM_t -DTRANS_SERVER
X CFLAGS =  -c $(OPTFLAGS) -fno-strength-reduce -DXIM_t -DTRANS_SERVER
X INC = -I../include -I/usr/X11R6/include
END-of-gcin/files/extrapatch-IMdkit::lib::Makefile
echo x - gcin/files/extrapatch-Makefile
sed 's/^X//' >gcin/files/extrapatch-Makefile << 'END-of-gcin/files/extrapatch-Makefile'
X--- Makefile.orig	Sat Jul 24 19:46:18 2004
X+++ Makefile	Sat Jul 24 19:46:24 2004
X@@ -1,4 +1,5 @@
X OPTFLAGS=-g
X+CC=gcc33
X 
X include config.mak
X 
END-of-gcin/files/extrapatch-Makefile
echo x - gcin/files/patch-IMdkit::Makefile
sed 's/^X//' >gcin/files/patch-IMdkit::Makefile << 'END-of-gcin/files/patch-IMdkit::Makefile'
X--- IMdkit/Makefile.orig	Sat Jul 24 19:18:15 2004
X+++ IMdkit/Makefile	Sat Jul 24 19:18:30 2004
X@@ -2,15 +2,15 @@
X all: libXimd.a Xi18n_sample/sampleIM
X 
X libXimd.a:
X-	make -C lib
X+	gmake -C lib
X 
X Xi18n_sample/sampleIM:
X-	cd Xi18n_sample; make
X+	cd Xi18n_sample; gmake
X 
X clean:
X 	rm -f *.bak *~
X-	make -C lib clean
X-	make -C Xi18n_sample clean
X+	gmake -C lib clean
X+	gmake -C Xi18n_sample clean
X 
X install:
X 	@echo nothing to be installed.
END-of-gcin/files/patch-IMdkit::Makefile
echo x - gcin/files/patch-Makefile
sed 's/^X//' >gcin/files/patch-Makefile << 'END-of-gcin/files/patch-Makefile'
X--- Makefile.orig	Sat Jul 24 19:46:36 2004
X+++ Makefile	Sat Jul 24 19:57:34 2004
X@@ -27,7 +27,7 @@
X PROGS_CV=kbmcv
X 
X all:	$(PROGS) $(DATA) $(PROGS_CV) gcin.spec
X-	make -C data
X+	gmake -C data
X 
X gcin:      $(OBJS) $(IMdkitLIB)
X 	$(CC) -o $@ $(OBJS) $(IMdkitLIB) $(LDFLAGS)
X@@ -35,28 +35,28 @@
X 	ln -sf $@ $@.test
X 
X tslearn:        $(OBJS_TSLEARN)
X-	cc -o $@ $(OBJS_TSLEARN) $(LDFLAGS)
X+	$(CC) -o $@ $(OBJS_TSLEARN) $(LDFLAGS)
X 
X gcin-setup:     $(OBJS_gcin_steup)
X-	cc -o $@ $(OBJS_gcin_steup) $(LDFLAGS)
X+	$(CC) -o $@ $(OBJS_gcin_steup) $(LDFLAGS)
X 
X phoa2d: $(OBJS_phoa2d)
X-	cc -o $@ $(OBJS_phoa2d) $(LDFLAGS)
X+	$(CC) -o $@ $(OBJS_phoa2d) $(LDFLAGS)
X 
X phod2a: $(OBJS_phod2a)
X-	cc -o $@ $(OBJS_phod2a) $(LDFLAGS)
X+	$(CC) -o $@ $(OBJS_phod2a) $(LDFLAGS)
X 
X tsa2d:  $(OBJS_tsa2d)
X-	cc -o $@ $(OBJS_tsa2d) $(LDFLAGS)
X+	$(CC) -o $@ $(OBJS_tsa2d) $(LDFLAGS)
X 
X tsd2a:  $(OBJS_tsd2a)
X-	cc -o $@ $(OBJS_tsd2a) $(LDFLAGS)
X+	$(CC) -o $@ $(OBJS_tsd2a) $(LDFLAGS)
X 
X kbmcv:  $(OBJS_kbmcv)
X 	$(CC) -o $@ $(OBJS_kbmcv)
X 
X $(IMdkitLIB):
X-	make -C IMdkit/lib
X+	gmake -C IMdkit/lib
X 
X install:
X 	install -d $(GCIN_TABLE_DIR)
X@@ -68,8 +68,8 @@
X 	install -s $(PROGS) $(bindir)
X 	install -d $(libdir)/menu
X 	install -m 644 menu/* $(libdir)/menu
X-	make -C data install
X-	if [ $(prefix) = /usr/local ]; then \
X+	gmake -C data install
X+	if [ $(prefix) != /usr/local ]; then \
X 	   install -m 644 menu/* /usr/lib/menu; \
X 	   which update-menus >& /dev/null && update-menus; \
X 	   sh modify-XIM; \
X@@ -79,8 +79,8 @@
X 	   install -m 644 menu/* $(libdir)/menu; \
X 	fi
X clean:
X-	make -C IMdkit clean
X-	make -C data clean
X+	gmake -C IMdkit clean
X+	gmake -C data clean
X 	rm -f *.o *~ *.E config.mak tags core.* $(PROGS) $(PROGS_CV) $(DATA) .depend gcin.spec menu/*~
X 	cd ..; tar cvfj gcin.tbz gcin
X 
END-of-gcin/files/patch-Makefile
echo x - gcin/files/patch-configure
sed 's/^X//' >gcin/files/patch-configure << 'END-of-gcin/files/patch-configure'
X--- configure.ori	Sat Jul 24 18:03:53 2004
X+++ configure	Sat Jul 24 18:06:48 2004
X@@ -55,7 +55,7 @@
X echo "DOC_DIR=$datadir/doc/gcin-$GCIN_VERSION" >> config.mak
X echo "GCIN_ICON_DIR=\$(datadir)/icons/gcin" >> config.mak
X 
X-if [ $bindir == /usr/bin ]; then
X+if [ $bindir = /usr/bin ]; then
X   cd menu
X   for i in *
X   do
END-of-gcin/files/patch-configure
echo x - gcin/files/patch-tsin-util.c
sed 's/^X//' >gcin/files/patch-tsin-util.c << 'END-of-gcin/files/patch-tsin-util.c'
X--- tsin-util.c.orig	Sat Jul 24 19:34:37 2004
X+++ tsin-util.c	Sat Jul 24 19:34:55 2004
X@@ -149,7 +149,7 @@
X   for(;hashno<256;hashno++) hashidx[hashno]++;
X 
X   if ((fw=fopen(tsidxfname,"w"))==NULL) {
X-    error("%s create err", tsidxfname);
X+    p_err("%s create err", tsidxfname);
X     return FALSE;
X   }
X 
END-of-gcin/files/patch-tsin-util.c
echo x - gcin/files/patch-tsin.c
sed 's/^X//' >gcin/files/patch-tsin.c << 'END-of-gcin/files/patch-tsin.c'
X--- tsin.c.orig	Sat Jul 24 19:33:14 2004
X+++ tsin.c	Sat Jul 24 19:34:11 2004
X@@ -722,7 +722,7 @@
X   selidx[0]=tmp;
X 
X   if ((fp=fopen(tsidxfname,"r+"))==NULL) {
X-    error("%s modify err", tsidxfname);
X+    p_err("%s modify err", tsidxfname);
X     return;
X   }
X 
END-of-gcin/files/patch-tsin.c
exit

	


>Release-Note:
>Audit-Trail:
>Unformatted:



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