pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/inputmethod/gcin Initial import gcin-1.1.5.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/837257dd40e1
branches:  trunk
changeset: 506449:837257dd40e1
user:      rxg <rxg%pkgsrc.org@localhost>
date:      Mon Jan 16 13:01:16 2006 +0000

description:
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.

diffstat:

 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(+), 0 deletions(-)

diffs (truncated from 390 to 300 lines):

diff -r 81503b823c0b -r 837257dd40e1 inputmethod/gcin/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/gcin/DESCR    Mon Jan 16 13:01:16 2006 +0000
@@ -0,0 +1,2 @@
+gcin is a Chinese input method server for Big5 Traditional Chinese character
+sets. It features a GTK user interface.
diff -r 81503b823c0b -r 837257dd40e1 inputmethod/gcin/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/gcin/Makefile Mon Jan 16 13:01:16 2006 +0000
@@ -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@localhost
+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 -r 81503b823c0b -r 837257dd40e1 inputmethod/gcin/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/gcin/PLIST    Mon Jan 16 13:01:16 2006 +0000
@@ -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 -r 81503b823c0b -r 837257dd40e1 inputmethod/gcin/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/gcin/distinfo Mon Jan 16 13:01:16 2006 +0000
@@ -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 -r 81503b823c0b -r 837257dd40e1 inputmethod/gcin/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/gcin/patches/patch-aa Mon Jan 16 13:01:16 2006 +0000
@@ -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 -r 81503b823c0b -r 837257dd40e1 inputmethod/gcin/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/gcin/patches/patch-ab Mon Jan 16 13:01:16 2006 +0000
@@ -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 -r 81503b823c0b -r 837257dd40e1 inputmethod/gcin/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/gcin/patches/patch-ac Mon Jan 16 13:01:16 2006 +0000
@@ -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 -r 81503b823c0b -r 837257dd40e1 inputmethod/gcin/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/inputmethod/gcin/patches/patch-ad Mon Jan 16 13:01:16 2006 +0000
@@ -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 || \



Home | Main Index | Thread Index | Old Index