From 22e241b1cfaf1f567f5e63ea6318749d32e44ce3 Mon Sep 17 00:00:00 2001 From: rxg Date: Mon, 16 Jan 2006 13:01:16 +0000 Subject: Initial import gcin-1.1.5. gcin is a Chinese input method server for Big5 Traditional Chinese character sets. It features a GTK user interface. --- inputmethod/gcin/DESCR | 2 + inputmethod/gcin/Makefile | 32 ++++++++++++++++ inputmethod/gcin/PLIST | 64 ++++++++++++++++++++++++++++++++ inputmethod/gcin/distinfo | 12 ++++++ inputmethod/gcin/patches/patch-aa | 77 +++++++++++++++++++++++++++++++++++++++ inputmethod/gcin/patches/patch-ab | 41 +++++++++++++++++++++ inputmethod/gcin/patches/patch-ac | 14 +++++++ inputmethod/gcin/patches/patch-ad | 33 +++++++++++++++++ inputmethod/gcin/patches/patch-ae | 32 ++++++++++++++++ inputmethod/gcin/patches/patch-af | 14 +++++++ inputmethod/gcin/patches/patch-ag | 25 +++++++++++++ 11 files changed, 346 insertions(+) create mode 100644 inputmethod/gcin/DESCR create mode 100644 inputmethod/gcin/Makefile create mode 100644 inputmethod/gcin/PLIST create mode 100644 inputmethod/gcin/distinfo create mode 100644 inputmethod/gcin/patches/patch-aa create mode 100644 inputmethod/gcin/patches/patch-ab create mode 100644 inputmethod/gcin/patches/patch-ac create mode 100644 inputmethod/gcin/patches/patch-ad create mode 100644 inputmethod/gcin/patches/patch-ae create mode 100644 inputmethod/gcin/patches/patch-af create mode 100644 inputmethod/gcin/patches/patch-ag diff --git a/inputmethod/gcin/DESCR b/inputmethod/gcin/DESCR new file mode 100644 index 00000000000..5129dda6b07 --- /dev/null +++ b/inputmethod/gcin/DESCR @@ -0,0 +1,2 @@ +gcin is a Chinese input method server for Big5 Traditional Chinese character +sets. It features a GTK user interface. diff --git a/inputmethod/gcin/Makefile b/inputmethod/gcin/Makefile new file mode 100644 index 00000000000..9c37139284e --- /dev/null +++ b/inputmethod/gcin/Makefile @@ -0,0 +1,32 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/01/16 13:01:16 rxg Exp $ +# + +DISTNAME= gcin-1.1.5 +CATEGORIES= inputmethod +MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= rxg@NetBSD.org +HOMEPAGE= http://www.csie.nctu.edu.tw/~cp76/gcin/ +COMMENT= Gtk Chinese INput application in X + +USE_LIBTOOL= yes +HAS_CONFIGURE= yes +CONFIGURE_ARGS+= --prefix=${PREFIX:Q} +CONFIGURE_ARGS+= --x11base=${X11BASE:Q} +CONFIGURE_ARGS+= --use_xim=Y +CONFIGURE_ARGS+= --new_gtk_im=Y +USE_TOOLS+= gmake +USE_TOOLS+= pkg-config + +REPLACE_INTERPRETER+= sh +_REPLACE.sh.old= /bin/bash +_REPLACE.sh.new= ${SH:Q} +_REPLACE_FILES.sh= configure +_REPLACE_FILES.sh+= scripts/gcin-user-setup +_REPLACE_FILES.sh+= scripts/gcin-utf8-setup +_REPLACE_FILES.sh+= scripts/modify-XIM +_REPLACE_FILES.sh+= scripts/utf8-edit + +.include "../../x11/gtk2/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/inputmethod/gcin/PLIST b/inputmethod/gcin/PLIST new file mode 100644 index 00000000000..46194e8979e --- /dev/null +++ b/inputmethod/gcin/PLIST @@ -0,0 +1,64 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/16 13:01:16 rxg Exp $ +bin/gcin +bin/gcin-setup +bin/gcin2tab +bin/juyin-learn +bin/phoa2d +bin/phod2a +bin/sim2trad +bin/tsa2d +bin/tsd2a +bin/tslearn +include/gcin-im-client.h +lib/gtk-2.0/immodules/im-gcin.la +lib/libgcin-im-client.la +lib/menu/gcin +lib/menu/gcin-setup +man/man1/gcin.1 +man/man1/gcin2tab.1 +share/applications/gcin-setup.desktop +share/control-center-2.0/capplets/gcin-setup.desktop +share/doc/${PKGNAME}/Changelog +share/doc/${PKGNAME}/README +share/gcin/script/gcin-user-setup +share/gcin/script/gcin-utf8-setup +share/gcin/script/modify-XIM +share/gcin/script/utf8-edit +share/gcin/table/ar30.gtab +share/gcin/table/cj-punc.gtab +share/gcin/table/cj.gtab +share/gcin/table/cj5.gtab +share/gcin/table/dayi3.gtab +share/gcin/table/et-asdf.kbm +share/gcin/table/et.kbm +share/gcin/table/et26-asdf.kbm +share/gcin/table/et26.kbm +share/gcin/table/greek.gtab +share/gcin/table/gtab.list +share/gcin/table/hsu.kbm +share/gcin/table/ibm.kbm +share/gcin/table/jyutping.gtab +share/gcin/table/kana-nippon.gtab +share/gcin/table/latin-letters.gtab +share/gcin/table/pho-huge.tab +share/gcin/table/pho.tab +share/gcin/table/phrase.table +share/gcin/table/pinyin.gtab +share/gcin/table/simplex.gtab +share/gcin/table/symbol-table +share/gcin/table/tsin +share/gcin/table/tsin.idx +share/gcin/table/zo-asdf.kbm +share/gcin/table/zo.kbm +share/icons/gcin.png +share/icons/gcin/pin-fixed24.png +share/icons/gcin/pin-float16.png +@dirrm share/icons/gcin +@dirrm share/icons +@dirrm share/gcin/table +@dirrm share/gcin/script +@dirrm share/gcin +@dirrm share/doc/${PKGNAME} +@dirrm share/control-center-2.0/capplets +@dirrm lib/menu +@dirrm lib/gtk-2.0/immodules diff --git a/inputmethod/gcin/distinfo b/inputmethod/gcin/distinfo new file mode 100644 index 00000000000..4623eedf327 --- /dev/null +++ b/inputmethod/gcin/distinfo @@ -0,0 +1,12 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/01/16 13:01:16 rxg Exp $ + +SHA1 (gcin-1.1.5.tar.bz2) = c8a0d306c3865aa139f2450c553d0511c93089be +RMD160 (gcin-1.1.5.tar.bz2) = e611a9986fd6eab945a5763bccb09744db9af1d5 +Size (gcin-1.1.5.tar.bz2) = 1375846 bytes +SHA1 (patch-aa) = ba3cbaad9cd300f5a7dedff7f67e409a7fbcbe28 +SHA1 (patch-ab) = ae3098ed94f821a471161fe0299e0dcc4df0119b +SHA1 (patch-ac) = 45c8bf6d7fe855f92ed7aa15064d0d58070fa588 +SHA1 (patch-ad) = 524d38ae0b6c21f1e934920027051adad0626b1e +SHA1 (patch-ae) = 0c77825091b8895cf535fa26cf3380aafdcd3c4b +SHA1 (patch-af) = e66965a840e67afe007c4ddaa55cba572cf49e6f +SHA1 (patch-ag) = d3e16fd690f132bd687ceda2d13041e447147f6e diff --git a/inputmethod/gcin/patches/patch-aa b/inputmethod/gcin/patches/patch-aa new file mode 100644 index 00000000000..a2d597ba9fc --- /dev/null +++ b/inputmethod/gcin/patches/patch-aa @@ -0,0 +1,77 @@ +$NetBSD: patch-aa,v 1.1.1.1 2006/01/16 13:01:16 rxg Exp $ + +--- configure.orig 2006-01-04 19:37:46.000000000 +0800 ++++ configure +@@ -9,13 +9,13 @@ if [ "$1" = "-h" -o "$1" = "--help" -o " + fi + + MAKE=make +-which gmake >& /dev/null ++which gmake > /dev/null + if [ $? = 0 ]; then + MAKE=gmake + fi + +-uname | grep FreeBSD >& /dev/null +-if [ $? = 0 ]; then ++OS=`uname -s` ++if [ $OS = "FreeBSD" ] || [ $OS = "NetBSD" ]; then + FREEBSD=1 + else + FREEBSD=0 +@@ -23,6 +23,7 @@ fi + + + prefix="/usr/local" ++x11base="/usr/X11R6" + use_xim='Y' + new_gtk_im='N' + +@@ -34,6 +35,8 @@ for opt do + case "$opt" in + --prefix=*) prefix=`echo $opt | cut -d '=' -f 2` + ;; ++ --x11base=*) x11base=`echo $opt | cut -d '=' -f 2` ++ ;; + --use_xim=*) use_xim=`echo $opt | cut -d '=' -f 2` + ;; + --new_gtk_im=*) new_gtk_im=`echo $opt | cut -d '=' -f 2` +@@ -88,7 +91,7 @@ fi + + bindir=$prefix/bin + datadir=$prefix/share +-mandir=$datadir/man ++mandir=$prefix/man + libdir=$prefix/lib + includedir=$prefix/include + optdir=/opt +@@ -111,7 +114,7 @@ if [ $QT_IM = 'N' ]; then + grep -v qt3/plugins/inputmethods gcin.spec.tmp > gcin.spec + fi + +-grep Cooker /etc/mandriva-release 2>&1 | grep 2006 >& /dev/null ++grep Cooker /etc/mandriva-release 2>&1 | grep 2006 > /dev/null + if [ $? = 0 ]; then + new_gtk_im='Y' + echo "!!!! new gtk-im(im-gcin.so) will be enabled because you are using Cooker 2006." +@@ -138,7 +141,7 @@ echo "datadir_r=$datadir" >> config.mak + echo "libdir=\$(DESTDIR)$libdir" >> config.mak + echo "includedir=\$(DESTDIR)$includedir" >> config.mak + +-echo "LDFLAGS=$GTKLDFLAGS" >> config.mak ++echo "LDFLAGS=$GTKLDFLAGS -L$x11base/lib -Wl,-R$x11base/lib" >> config.mak + echo "GCIN_VERSION=$GCIN_VERSION" >> config.mak + echo "GCIN_TABLE_DIR=\$(datadir_r)/gcin/table" >> config.mak + echo "GCIN_TABLE_DIR_i=\$(datadir)/gcin/table" >> config.mak +@@ -164,10 +167,5 @@ cd menu + for i in *.in + do + outf=`echo $i | sed -e "s/\.in//"` +-# echo $outf +- if [ $bindir = /usr/bin ]; then +- sed -e "s~/usr/local/bin~/usr/bin~" < $i > $outf +- else +- cp $i $outf +- fi ++ sed -e "s~/usr/local/bin~$prefix/bin~" < $i > $outf + done diff --git a/inputmethod/gcin/patches/patch-ab b/inputmethod/gcin/patches/patch-ab new file mode 100644 index 00000000000..2c841e4922f --- /dev/null +++ b/inputmethod/gcin/patches/patch-ab @@ -0,0 +1,41 @@ +$NetBSD: patch-ab,v 1.1.1.1 2006/01/16 13:01:16 rxg Exp $ + +--- Makefile.orig 2005-10-16 10:19:45.000000000 +0800 ++++ Makefile +@@ -36,8 +36,8 @@ endif + + im-srv = im-srv/im-srv.a + +-.c.E: +- $(CC) $(CFLAGS) -E -o $@ $< ++.c.o: ++ $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -o $@ $< + + PROGS=gcin tsd2a tsa2d phoa2d phod2a tslearn gcin-setup gcin2tab juyin-learn sim2trad + PROGS_CV=kbmcv +@@ -96,24 +96,16 @@ ibin: + + install: + install -d $(datadir)/icons +- install gcin.png $(datadir)/icons ++ install -m 644 gcin.png $(datadir)/icons + install -d $(GCIN_ICON_DIR_i) + install -m 644 icons/* $(GCIN_ICON_DIR_i) + install -d $(bindir) + $(MAKE) -C data install + $(MAKE) -C im-client install + $(MAKE) -C gtk-im install +- if [ $(QT_IM) = 'Y' ]; then $(MAKE) -C qt-im install; fi +- if [ $(prefix) = /usr/local ]; then \ +- install -m 644 gcin.png /usr/share/icons; \ +- install -d $(DOC_DIR); \ +- install -m 644 README Changelog $(DOC_DIR); \ +- install $(PROGS) $(bindir); \ +- else \ + install -d $(DOC_DIR_i); \ + install -m 644 README Changelog $(DOC_DIR_i); \ + install -s $(PROGS) $(bindir); \ +- fi + $(MAKE) -C scripts install + $(MAKE) -C menu install + $(MAKE) -C man install diff --git a/inputmethod/gcin/patches/patch-ac b/inputmethod/gcin/patches/patch-ac new file mode 100644 index 00000000000..5ec93ada02d --- /dev/null +++ b/inputmethod/gcin/patches/patch-ac @@ -0,0 +1,14 @@ +$NetBSD: patch-ac,v 1.1.1.1 2006/01/16 13:01:16 rxg Exp $ + +--- im-srv/Makefile.orig 2006-01-14 23:40:15.000000000 +0800 ++++ im-srv/Makefile +@@ -5,6 +5,9 @@ WALL=-Wall + CFLAGS= $(WALL) $(OPTFLAGS) -I.. -I../im-client -I../IMdkit/include $(GTKINC) -DDEBUG="0$(GCIN_DEBUG)" + OBJS = im-srv.o im-addr.o im-dispatch.o ../im-client/gcin-crypt.o + ++.c.o: ++ $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -o $@ $< ++ + im-srv.a: $(OBJS) + ar cr $@ $(OBJS) + ranlib $@ diff --git a/inputmethod/gcin/patches/patch-ad b/inputmethod/gcin/patches/patch-ad new file mode 100644 index 00000000000..a274e71e6f5 --- /dev/null +++ b/inputmethod/gcin/patches/patch-ad @@ -0,0 +1,33 @@ +$NetBSD: patch-ad,v 1.1.1.1 2006/01/16 13:01:16 rxg Exp $ + +--- im-client/Makefile.orig 2005-05-09 12:23:22.000000000 +0800 ++++ im-client/Makefile +@@ -6,23 +6,18 @@ CFLAGS= $(WALL) $(OPTFLAGS) -I. -I.. -I. + -DCLIENT_LIB=1 -DGCIN_BIN_DIR=\"$(GCIN_BIN_DIR)\" \ + -DDEBUG="0$(GCIN_DEBUG)" -DGCIN_TABLE_DIR=\"$(GCIN_TABLE_DIR)\" \ + -DFREEBSD=$(FREEBSD) +-OBJS = gcin-im-client.o im-addr.o gcin-conf.o util.o gcin-crypt.o ++OBJS = gcin-im-client.o ../im-srv/im-addr.o ../gcin-conf.o ../util.o gcin-crypt.o + + .c.o: +- $(CC) -c -fpic $(CFLAGS) -o $@ $< ++ $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -o $@ $< + +-libgcin-im-client.so: $(OBJS) +- $(CC) -shared $(OBJS) -o $@ ++libgcin-im-client.la: $(OBJS) ++ $(LIBTOOL) --mode=link $(CC) $(OBJS:.o=.lo) -o $@ -rpath $(libdir) -version-info 1:1 + $(MAKE) -C ../gtk-im + + install: + install -d $(libdir) +- install -m 755 libgcin-im-client.so $(libdir) +- if [ $(prefix) = /usr/local ]; then \ +- grep /usr/local/lib /etc/ld.so.conf > /dev/null 2>&1 || \ +- echo /usr/local/lib >> /etc/ld.so.conf; \ +- PATH=/sbin:/usr/sbin:$(PATH); ldconfig; \ +- fi; \ ++ $(LIBTOOL) --mode=install $(BSD_INSTALL_LIB) libgcin-im-client.la $(libdir) + install -d $(includedir); \ + install -m 444 gcin-im-client.h $(includedir) + diff --git a/inputmethod/gcin/patches/patch-ae b/inputmethod/gcin/patches/patch-ae new file mode 100644 index 00000000000..a16059abde4 --- /dev/null +++ b/inputmethod/gcin/patches/patch-ae @@ -0,0 +1,32 @@ +$NetBSD: patch-ae,v 1.1.1.1 2006/01/16 13:01:16 rxg Exp $ + +--- gtk-im/Makefile.orig 2005-09-14 00:29:56.000000000 +0800 ++++ gtk-im/Makefile +@@ -13,23 +13,18 @@ CFLAGS += -DNEW_GTK_IM=1 + endif + + .c.o: +- $(CC) -c -fpic $(CFLAGS) -o $@ $< ++ $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) -o $@ $< + +-im-gcin.so: $(OBJS) ../im-client/libgcin-im-client.so +- $(CC) -shared $(OBJS) -L../im-client -lgcin-im-client -o $@ $(LDFLAGS) ++im-gcin.la: $(OBJS) ../im-client/libgcin-im-client.la ++ $(LIBTOOL) --mode=link $(CC) $(OBJS:.o=.lo) ../im-client/libgcin-im-client.la -o $@ $(LDFLAGS) -rpath $(IMMODULES) -module -avoid-version + rm -f core.* + + clean: + rm -f *.o *.so *~ core.* .depend + + install: +- if [ $(prefix) = /usr/local ]; then \ +- install -d $(IMMODULES_LOCAL); \ +- install -m 755 im-gcin.so $(IMMODULES_LOCAL); \ +- else \ + install -d $(IMMODULES); \ +- install -m 755 im-gcin.so $(IMMODULES); \ +- fi ++ $(LIBTOOL) --mode=install $(BSD_INSTALL_LIB) im-gcin.la $(IMMODULES) + + .depend: + $(CC) $(CFLAGS) -MM *.c > $@ diff --git a/inputmethod/gcin/patches/patch-af b/inputmethod/gcin/patches/patch-af new file mode 100644 index 00000000000..6238971d6a1 --- /dev/null +++ b/inputmethod/gcin/patches/patch-af @@ -0,0 +1,14 @@ +$NetBSD: patch-af,v 1.1.1.1 2006/01/16 13:01:16 rxg Exp $ + +--- scripts/Makefile.orig 2005-03-06 12:51:03.000000000 +0800 ++++ scripts/Makefile +@@ -5,9 +5,6 @@ SCRIPTS=gcin-user-setup gcin-utf8-setup + all: $(SCRIPTS) + + install: +- if [ $(prefix) = /usr/local ]; then \ +- sh modify-XIM; \ +- fi + install -d $(GCIN_SCRIPT_DIR_i) + install -m 755 $(SCRIPTS) $(GCIN_SCRIPT_DIR_i) + clean: diff --git a/inputmethod/gcin/patches/patch-ag b/inputmethod/gcin/patches/patch-ag new file mode 100644 index 00000000000..8afc6e31b0c --- /dev/null +++ b/inputmethod/gcin/patches/patch-ag @@ -0,0 +1,25 @@ +$NetBSD: patch-ag,v 1.1.1.1 2006/01/16 13:01:16 rxg Exp $ + +--- menu/Makefile.orig 2005-08-29 09:40:32.000000000 +0800 ++++ menu/Makefile +@@ -5,19 +5,11 @@ include ../config.mak + all: + + install: +- if [ $(prefix) = /usr/local ]; then \ +- install gcin-setup.desktop $(GCIN_SETUP_DESKTOP); \ +- install gcin-setup.desktop /usr/share/applications; \ +- install -d /usr/lib/menu; \ +- install -m 644 $(MENUS) /usr/lib/menu; \ +- which update-menus >& /dev/null && update-menus || exit 0; \ +- else \ + install -d $(libdir)/menu; \ + install -m 644 $(MENUS) $(libdir)/menu; \ + install -d $(GCIN_SETUP_DESKTOP_rpm); \ + install -m 644 gcin-setup.desktop $(GCIN_SETUP_DESKTOP_rpm); \ + install -d $(datadir)/applications; \ +- install -m 644 gcin-setup.desktop $(datadir)/applications; \ +- fi ++ install -m 644 gcin-setup.desktop $(datadir)/applications + clean: + rm -f $(MENUS) *~ -- cgit v1.2.3