--- gcin-1.4.5.orig/qt4-im/gcin-imcontext-qt.cpp +++ gcin-1.4.5/qt4-im/gcin-imcontext-qt.cpp @@ -3,6 +3,7 @@ #include #include #include +#include #include "gcin-im-client.h" #include #include --- gcin-1.4.5.orig/debian/gcin.prerm +++ gcin-1.4.5/debian/gcin.prerm @@ -0,0 +1,28 @@ +#!/bin/sh +# prerm script for gcin + +set -e + +ua_remove () { + update-alternatives \ + --remove xinput-$1 \ + /etc/X11/xinit/xinput.d/$2 ; +} + +case "$1" in + remove|upgrade|deconfigure) + ua_remove all_ALL gcin + ua_remove zh_CN gcin + ua_remove zh_TW gcin + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- gcin-1.4.5.orig/debian/gcin.postinst +++ gcin-1.4.5/debian/gcin.postinst @@ -0,0 +1,32 @@ +#!/bin/sh +# postinst script for gcin + +set -e + +ua_inst () { + update-alternatives \ + --install /etc/X11/xinit/xinput.d/$1 xinput-$1 \ + /etc/X11/xinit/xinput.d/$2 $3 ; +} + +case "$1" in + configure) + # Set up default + ua_inst all_ALL gcin 0 + ua_inst zh_CN gcin 30 + ua_inst zh_TW gcin 50 + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- gcin-1.4.5.orig/debian/gcin-qt3-immodule.install +++ gcin-1.4.5/debian/gcin-qt3-immodule.install @@ -0,0 +1 @@ +qt-im/libqgcin.so usr/lib/qt3/plugins/inputmethods --- gcin-1.4.5.orig/debian/gcin-qt4-immodule.install +++ gcin-1.4.5/debian/gcin-qt4-immodule.install @@ -0,0 +1 @@ +qt4-im/im-gcin.so usr/lib/qt4/plugins/inputmethods --- gcin-1.4.5.orig/debian/changelog +++ gcin-1.4.5/debian/changelog @@ -0,0 +1,296 @@ +gcin (1.4.5-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Add missing #include to fix FTBFS with gcc 4.4, patch by Martin + Michlmayr. (Closes: #531715) + * gcin-qt{3,4}-immodule: add lintian overrides for shlib-defines-rpath, + this is needed to get the package pass through auto-REJECT. Rationale: + rpath is appropriate here, the packages use private shlibs. + + -- Stefano Zacchiroli Sat, 26 Dec 2009 10:13:19 +0100 + +gcin (1.4.5-1) unstable; urgency=low + + * New Upstream Version + * Wrokaround dh_gtkmodules bug. + * Bump Standards-Versions to 3.8.1, no changes needed. + + -- Kanru Chen Tue, 12 May 2009 11:35:18 +0800 + +gcin (1.4.5~pre2-1) unstable; urgency=low + + * [811fc3b] New Upstream version 1.4.5.pre2 + * [86b0996] Update patches. + - fix_gdm_crash_498619.diff: Dropped, fixed up stream. + - fix_QT_detection.diff: Split into two patches. + - fix_anthy_error_message.diff: Added. + * [dfa7a85] Enable anthy. + + -- Kanru Chen Tue, 03 Mar 2009 14:33:40 +0800 + +gcin (1.4.2-2) unstable; urgency=low + + * Upload to unstable + * [ef36b0e] New maintainer (Closes: #505501) + * [4861a1e] Replace dh_clean -k with dh_prep. + * [5b60cca] Add Vcs-Git and Vcs-Browser field. + * [5dafdd8] Add README.source + * [63892e6] Add patch ld_only_link_needed.diff + * [a848d1e] Fix the bug causing gdm crashes. (Closes: #498619) + * [326815b] Update patch descriptions. + + -- Kanru Chen Sat, 06 Dec 2008 14:58:33 +0800 + +gcin (1.4.2-1) experimental; urgency=low + + * New upstream release + * New package gcin-dev + * Make gcin-qt3-immodule a versionised dependency on gcin + * Drop fix_desktop_file_categories.diff because upstream has merged it + * Bump Standards-Versions to 3.8.0 + + -- Wen-Yen Chuang Thu, 1 Aug 2008 18:45:44 +0800 + +gcin (1.4.0-1) unstable; urgency=low + + * New upstream release + This release fixes FTBFS on ia64 architecture. (Closes: #480520) + * Update copyright information + * Migrate from dpatch to quilt + Drop 20_fix-manpages.dpatch and 40_fix_FTBFS_on_sparc_hppa_ia64.dpatch + because upstream has merged them. + * Install AUTHORS file to /usr/share/doc/gcin + + -- Wen-Yen Chuang Tue, 20 May 2008 14:57:12 +0800 + +gcin (1.3.9-1) unstable; urgency=low + + * New upstream release + * Update symlinks for new manpages + * Enable i18n + * Refresh 10_fix-directory-structure.dpatch + * Add 20_fix-manpages.dpatch to prevent lintian warnings + * Include /usr/share/dpatch/dpatch.make to make debian/rules simpler + * Add Depends ${misc:Depends} for gcin-qt3-immodule + + -- Wen-Yen Chuang Wed, 7 May 2008 21:39:20 +0800 + +gcin (1.3.4-3) unstable; urgency=low + + * Fix FTBFS on hppa, ia64, and sparc architectures (Closes: #406036) + * Disable binary stripping in upstream's Makefile (Closes: #436914) + * Auto-detect GTK+ module ABI version (Closes: #419366, #420504) + * Update debian/copyright to machine-readable format + * Make libgcin-im-client.so a private library + * Bump Standards-Version to 3.7.3 + * Fix typos in package description + * Clean up debian/rules + * Make lintian quiet + - set Build-Depends libgtk2.0-dev >= 2.10.1 + - move Homepage in package description to source stanza + - replace all "GTK" with "GTK+" in package descriptions + - replace all "##DP" with "## DP:" in debian/patches/* + - update debian/gcin.menu + - add 50_fix-desktop-file-categories.dpatch to match latest .desktop file + policy + - do not use -$(MAKE) in debian/rules so that other error messages from the + clean rule will still be caught + + -- Wen-Yen Chuang Sun, 27 Apr 2008 15:32:36 +0800 + +gcin (1.3.4-2) unstable; urgency=low + + The "Nobuta power! Cyuunyuu!" Release. + + * Update for GTK+ 2.10. (Closes: #419293) + * debian/control: + - bump up the libgtk2.0-dev build-dep to >= 2.10.1-1. + - remove dependency for libgtk2.0-bin + * debian/gcin.postinst: + debian/gcin.postrm: + - remove update-gtk-immodules + * debian/rules: + - call dh_gtkmodules with LD_LIBRARY_PATH. + - remove scripts for GTK+ version detection. + + -- Wen-Yen Chuang Sun, 15 Apr 2007 00:42:03 +0800 + +gcin (1.3.4-1) unstable; urgency=low + + The "Maki Horikita" Release. + + * New upstream release. + * debian/patches: + - modify 10_fix-directory-structure.dpatch to cope with upstream's + changes. + - modify 30_disable_rpath_for_gtk-im.dpatch to prevent fuzz during patching. + + -- Wen-Yen Chuang Tue, 10 Apr 2007 21:42:40 +0800 + +gcin (1.3.3-2) unstable; urgency=low + + * Move from experimental to unstable. + This version(1.3.3) has fixed FTBFS on GNU/kFreeBSD. (Closes: #414406) + + -- Wen-Yen Chuang Mon, 9 Apr 2007 01:44:27 +0800 + +gcin (1.3.3-1) experimental; urgency=low + + * New upstream release. + * debian/patches: + - modify 10_fix-directory-structure.dpatch to cope with upstream's + changes. + - remove 40_fix_build_failure_in_big-endian_arch.dpatch because upstream + had fixed this bug. + - merge 50_fix-FTBFS-on-systems-with-lib64-directory.dpatch into + 10_fix-directory-structure.dpatch. + + -- Wen-Yen Chuang Sun, 28 Jan 2007 22:51:32 +0800 + +gcin (1.3.1-1) unstable; urgency=low + + * New upstream release. + * Set fallback option for im-switch. (Closes: #400374) + * Fix gcin's postrm script so that it can be removed cleanly when + libgtk2.0-bin is already removed. (This is scim's Ubuntu bug #52087) + * debian/patches: + - remove 20_fix-glibc2.4-with-amd64.dpatch because upstream had fixed this + bug. + - add 20_fix_installation_path_for_im-client.dpatch and + 40_fix_build_failure_in_big-endian_arch.dpatch. + + -- Wen-Yen Chuang Mon, 4 Dec 2006 20:28:58 +0800 + +gcin (1.3.0.1-1) unstable; urgency=low + + * New upstream release. + * debian/patches: + - apply 50_fix-FTBFS-on-systems-with-lib64-directory.dpatch written by + Ming Hua . (Closes: #399800) + - remove 40_make_noseeing-inst_a_shell_script.dpatch because upstream had + fixed this bug. + - modify 10_fix-directory-structure.dpatch to cope with upstream's + changes. + + -- Wen-Yen Chuang Wed, 22 Nov 2006 20:09:43 +0800 + +gcin (1.2.9-1) unstable; urgency=low + + * First upload to Debian (Closes: #355849) + * debian/control: + - gcin have to depend on libgtk2.0-bin, to be compatible with Debian's new + GTK+2 packages. + - moved im-switch from Depends to Recommends for gcin + + -- Wen-Yen Chuang Sat, 18 Nov 2006 22:43:12 +0800 + +gcin (1.2.9-0ubuntu1) feisty; urgency=low + + * New upstream release. + * debian/control: + - let dh_makeshlibs process gcin-qt3-immodule's dependency. + * debian/copyright: + - Qt immodule's license is GPL version 2, not LGPL. + * debian/patches + - fixed built problem with glibc 2.4 under AMD64/EM64T architecture. + - disabled rpath + - modify 10_fix-directory-structure.dpatch to cope with upstream's + change. + * debian/rules: + - configured with --new_gtk_im=Y. This option supports Mozilla 1.8.0 and + newer releases' OverTheSpot for inputmethods. + - remove /usr/share/control-center-2.0. It is nonsense for Ubuntu. + - enabled dh_makeshlibs since upstream supports library soname. + * debian/watch: + - updated upstream's download page. + * Bumped Standards-Version to 3.7.2 + + -- Wen-Yen Chuang Sat, 18 Nov 2006 20:15:42 +0800 + +gcin (1.2.5-0ubuntu1) edgy; urgency=low + + * New upstream release. + * Removed 20_fix-gcin-setup-parsing-error.dpatch, because upstream have + fixed this bug. + * debian/install: + - removed lines about manpages, because upstream have fixed this problem. + + -- Wen-Yen Chuang Sat, 9 Sep 2006 23:02:35 +0800 + +gcin (1.2.3-0ubuntu1) edgy; urgency=low + + * New upstream release + * Fixed gcin-setup's parsing error. This patch was released by upstream. + * Modified 10_fix-directory-structure.dpatch to prevent Hunk during patching. + * Installed new version manpages. Upstream misplaced those two files in + wrong directory. + + -- Wen-Yen Chuang Sat, 2 Sep 2006 04:50:52 +0800 + +gcin (1.2.2-0ubuntu1) edgy; urgency=low + + * New upstream release + * debian/patches/10_fix-directory-structure.dpatch: + - modify 10_fix-directory-structure.dpatch to cope with upstream's + change. + + -- Wen-Yen Chuang Thu, 17 Aug 2006 20:25:12 +0800 + +gcin (1.2.1-0ubuntu1) edgy; urgency=low + + * New upstream release + * debian/control: + - remove GTK 2.10 specific dependency for backporting edgy to dapper + * debian/rules: + - check GTK version and install the GTK immodule into correct path + * debian/patches/10_fix-directory-structure.dpatch: + - remove fixes for GTK installation path since it was done within + debian/rules + + -- Wen-Yen Chuang Thu, 10 Aug 2006 19:27:33 +0800 + +gcin (1.2.0-0ubuntu4) edgy; urgency=low + + * debian/control: + - require GTK 2.10 since 10_fix-directory-structure.dpatch for the path + + -- Sebastien Bacher Thu, 3 Aug 2006 14:31:54 +0200 + +gcin (1.2.0-0ubuntu3) edgy; urgency=low + + * debian/patches/10_fix-directory-structure.dpatch: + - updated for GTK 2.10 + + -- Sebastien Bacher Wed, 2 Aug 2006 22:49:05 +0200 + +gcin (1.2.0-0ubuntu2) edgy; urgency=low + + * Rebuild for GTK 2.10 + + -- Sebastien Bacher Wed, 2 Aug 2006 22:27:56 +0200 + +gcin (1.2.0-0ubuntu1) edgy; urgency=low + + * New upstream release + * Modify 10_fix-directory-structure.dpatch to prevent Hunk during patching. + * Modify im-switch script, enable QT3 immodule automatically. + * Remove m17n-env script, because dapper and later releases no longer needs + it. + + -- Wen-Yen Chuang Fri, 2 Jun 2006 19:13:54 +0800 + +gcin (1.1.9-0ubuntu1) dapper; urgency=low + + * New upstream release + * Modify 10_fix-directory-structure.dpatch to prevent Hunk during patching. + * Modify descriptions in control file. + + -- Wen-Yen Chuang Mon, 1 May 2006 16:01:52 +0800 + +gcin (1.1.8-0ubuntu1) dapper; urgency=low + + * Initial release + * Applied 10_fix-directory-structure.dpatch to fix configuration and + installation paths. + + -- Wen-Yen Chuang Sat, 15 Apr 2006 21:35:29 +0800 --- gcin-1.4.5.orig/debian/gcin.menu +++ gcin-1.4.5/debian/gcin.menu @@ -0,0 +1,15 @@ +?package(gcin): \ + icon="/usr/share/pixmaps/gcin.xpm" \ + title="gcin" \ + longtitle="gcin common input method" \ + needs="x11" \ + section="Applications/System/Language Environment" \ + command="/usr/bin/gcin" + +?package(gcin): \ + icon="/usr/share/pixmaps/gcin.xpm" \ + title="gcin-setup" \ + longtitle="gcin-setup, for gcin input method platform" \ + needs="x11" \ + section="Applications/System/Language Environment" \ + command="/usr/bin/gcin-setup" --- gcin-1.4.5.orig/debian/gcin.install +++ gcin-1.4.5/debian/gcin.install @@ -0,0 +1,5 @@ +debian/tmp/usr/bin usr +debian/tmp/usr/lib/gcin usr/lib +debian/tmp/usr/share/[aglmp]* usr/share +debian/im-switch/gcin etc/X11/xinit/xinput.d +debian/gcin.xpm usr/share/pixmaps \ No newline at end of file --- gcin-1.4.5.orig/debian/compat +++ gcin-1.4.5/debian/compat @@ -0,0 +1 @@ +7 --- gcin-1.4.5.orig/debian/gcin.docs +++ gcin-1.4.5/debian/gcin.docs @@ -0,0 +1 @@ +AUTHORS --- gcin-1.4.5.orig/debian/README.source +++ gcin-1.4.5/debian/README.source @@ -0,0 +1,4 @@ +This package uses quilt as patch system, you can find some information +about it at: + + /usr/share/doc/quilt/README.source --- gcin-1.4.5.orig/debian/rules +++ gcin-1.4.5/debian/rules @@ -0,0 +1,70 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +GTKVER = $(shell pkg-config --variable=gtk_binary_version gtk+-2.0) + +config.status: configure patch + dh_testdir + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" \ + --new_gtk_im=Y \ + --use_i18n=Y + +build: build-stamp + +build-stamp: config.status + dh_testdir + $(MAKE) + + touch $@ + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + rm -fr build-stamp debian/tmp + touch .depend + [ ! -f Makefile ] || $(MAKE) clean + rm -f .depend + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + mkdir -p debian/gcin/usr/lib/gtk-2.0/$(GTKVER)/immodules + mv debian/tmp/usr/lib/gtk-2.0/immodules/* debian/gcin/usr/lib/gtk-2.0/$(GTKVER)/immodules/ + mkdir -p debian/gcin/usr/lib/gtk-2.0/$(GTKVER)/immodule-files.d + sed -e s,@GTKVER@,$(GTKVER), debian/gcin.immodules.in > debian/gcin/usr/lib/gtk-2.0/$(GTKVER)/immodule-files.d/gcin.immodules + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs Changelog.html + dh_installdocs + dh_install +# dh_gtkmodules + dh_installmenu + dh_lintian + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs -n + dh_installdeb + LD_LIBRARY_PATH=debian/gcin/usr/lib/gcin:$(LD_LIBRARY_PATH) dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install patch unpatch clean-patched --- gcin-1.4.5.orig/debian/gcin.xpm +++ gcin-1.4.5/debian/gcin.xpm @@ -0,0 +1,188 @@ +/* XPM */ +static char *gcin[] = { +/* columns rows colors chars-per-pixel */ +"32 26 156 2", +" c #000000", +". c #0A0000", +"X c #0C0C00", +"o c #130000", +"O c #1B0000", +"+ c #171700", +"@ c #1D1600", +"# c #1D1D00", +"$ c #2F0000", +"% c #370000", +"& c #3E0000", +"* c #262600", +"= c #2D2D00", +"- c #303000", +"; c #3B3400", +": c #393900", +"> c #440000", +", c #4C0400", +"< c #530000", +"1 c #5A1100", +"2 c #630000", +"3 c #690000", +"4 c #760000", +"5 c #790000", +"6 c #742C00", +"7 c #444400", +"8 c #4D4D00", +"9 c #544E00", +"0 c #535300", +"q c #5C5C00", +"w c #616100", +"e c #6C6C00", +"r c #706A00", +"t c #727200", +"y c #787200", +"u c #820000", +"i c #920000", +"p c #9D0000", +"a c #A60000", +"s c #AA0000", +"d c #B70000", +"f c #BF0000", +"g c #B42B00", +"h c #8E6B00", +"j c #C20000", +"k c #CB0000", +"l c #D20000", +"z c #DD0000", +"x c #DD0B00", +"c c #DD1402", +"v c #DE1B04", +"b c #DE2207", +"n c #DE2408", +"m c #DE2A07", +"M c #DE2B0A", +"N c #DF340E", +"B c #DF3A0F", +"V c #DF3B11", +"C c #E00000", +"Z c #E21500", +"A c #E01D00", +"S c #E32C00", +"D c #E73500", +"F c #E0360E", +"G c #E53D00", +"H c #E03D12", +"J c #E94C00", +"K c #E04214", +"L c #E04518", +"P c #E04A16", +"I c #E14B1A", +"U c #E1521E", +"Y c #E25722", +"T c #E25C25", +"R c #EA6400", +"E c #E16327", +"W c #E36A2E", +"Q c #E36C32", +"! c #E47233", +"~ c #E57438", +"^ c #E27A36", +"/ c #E57C3C", +"( c #E67E40", +") c #838300", +"_ c #8A8A00", +"` c #959400", +"' c #9B9B00", +"] c #AE8300", +"[ c #A3A500", +"{ c #A4A900", +"} c #ADB100", +"| c #B2B200", +" . c #BABA00", +".. c #CABE00", +"X. c #F08400", +"o. c #E5803D", +"O. c #E2BD00", +"+. c #E58342", +"@. c #E68B44", +"#. c #E58B4B", +"$. c #E88F4A", +"%. c #E4944D", +"&. c #E8914D", +"*. c #E79652", +"=. c #E49952", +"-. c #E89352", +";. c #E99E54", +":. c #E99C5A", +">. c #E6A45D", +",. c #E9A25C", +"<. c #E4AD64", +"1. c #EAA964", +"2. c #ECAE6C", +"3. c #EBB26F", +"4. c #E3B270", +"5. c #E4B977", +"6. c #EDB674", +"7. c #EBBA76", +"8. c #EDBC7B", +"9. c #C5C500", +"0. c #CBCB00", +"q. c #D2CB00", +"w. c #D0D000", +"e. c #DDDD00", +"r. c #E5D400", +"t. c #F2CA00", +"y. c #E2E200", +"u. c #E6EA00", +"i. c #E9E900", +"p. c #F4F400", +"a. c yellow", +"s. c #EEC27C", +"d. c #EDC483", +"f. c #EEC68B", +"g. c #EEC987", +"h. c #EECB8D", +"j. c #EFCE90", +"k. c #E5D295", +"l. c #EFD594", +"z. c #EDDA9E", +"x. c #F0C98E", +"c. c #F0CC91", +"v. c #F0D093", +"b. c #F1D59C", +"n. c #F1D89D", +"m. c #EFDDA2", +"M. c #EFDEA8", +"N. c #F2DBA1", +"B. c #F4DEAA", +"V. c #F2E0A5", +"C. c #F3E1AC", +"Z. c #F4E5B2", +"A. c #F5E9BB", +"S. c #F6EEC4", +"D. c #F7EEC9", +"F. c None", +/* pixels */ +"F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.a z z z z l < F.F.F.F.F.F.F.F.F.", +"F.F.F.F.o o o F.F.F.F.F.F.o O 3 l z v F v z k > F.o o F.F.F.F.F.", +"F.o 2 d j j j j j i 2 i j j j z z v ^ <.E x z k f j f j i % F.F.", +"> d z z z z z z z z z z z z z z z v =.k./ x z z z z z z C j & F.", +"s z z c F I F b n c z z v B P V b c E %.I x b n M V V v C z j > ", +"z z v ! 7.x.7.;.>.Y x N +.8.h.d.-.N W >.U m #.=.,.d.g.-.H z z u ", +"z x T v.Z.g.g.Z.A./ m -.C.N.d.h.4.U =.M.~ K f.S.l.d.N.Z.+.c z k ", +"z v :.A.,.K U x.D.+.U b.n.! V I I N :.Z.~ V j.S.@.B / Z.6.S z z ", +"z M 6.Z.W x v :.A.( ~ Z.2.S z z z v :.C.~ V c.v.L z Y n.8.N z z ", +"z N 8.B.T z c -.Z.( ( A.>.c z z z v :.Z.~ V x.j.K z I n.d.N z z ", +"z n 2.A./ c S 3.S.( ! Z.6.N z z x v :.Z.~ K j.j.K z Y b.d.N z z ", +"z c +.Z.x.o.&.V.D./ P x.V.&.E W Q V :.Z.~ K j.k.K z U n.d.N z z ", +"z z V 1.C.C.m.V.A./ v ( b.C.n.z.5.U =.z.! K d.d.K z U h.8.V z z ", +"z z x I / %.o.s.C.Q z S W >.6.1.^ M Y @.L n ^ o.n z N @.^ v z j ", +"z z M +.=.@.>.C.x.I z z x v S n c z x v x z c c x z z v c z z 2 ", +"z z V <.m.B.B.j.~ Z c R c z C C z z z z z J m z z z l z z z 4 F.", +"p z c U / @./ Y v z v t.g s s s s 5 F.F.F.h O.1 F., 6 , > > F.F.", +"3 z z C x x x G G D J r.0 ; y r F.` { { [ | i.} { | u.q F.F.F.F.", +"F.5 k z z z z X.r...q.p.0.9.y.0.F.0 w y e.t q | e.e w - F.F.F.F.", +"F.F.% < < < F.] _ F.* 9.* F._ ) F.F.F.+ .= F.` _ F.F.F.F.F.F.F.", +"F.F.F.F.F.F.F.) ' * 7 w.7 * ' ) F.F.F.F._ _ + e.t F.F.F.F.F.F.F.", +"F.F.F.F.F.F.F.) y.0.0.p.0.0.i.) F.F.F.F.7 w.) 0.# F.F.F.F.F.F.F.", +"F.F.F.F.F.F.F.: 7 F.= 0.= F.7 : F.F.F.F.F.[ a.) F.F.F.F.F.F.F.F.", +"F.F.F.F.F.F.F.F.F.F.# 0.# F.F.F.F.F.F.F.0 9.p.9.0 F.F.F.F.F.F.F.", +"F.F.F.F.F.F.F.F.F.F.# 9.# F.F.F.F.X 0 ` y.[ 8 | i.` 0 X F.F.F.F.", +"F.F.F.F.F.F.F.F.F.F.# 0.# F.F.F.F.' p.0.0 X F.+ _ p.p.t F.F.F.F." +}; --- gcin-1.4.5.orig/debian/gcin.dirs +++ gcin-1.4.5/debian/gcin.dirs @@ -0,0 +1 @@ +usr/share/doc/gcin --- gcin-1.4.5.orig/debian/copyright +++ gcin-1.4.5/debian/copyright @@ -0,0 +1,337 @@ +Debianized-By: Wen-Yen Chuang +Debianized-Date: Sat, 15 Apr 2006 21:35:29 +0800. +Source-Downloaded-From: http://cle.linux.org.tw/gcin/download/ +Upstream-Author: Edward Der-Hua Liu + +Files: eggtrayicon.[ch] +Copyright: 2002 Anders Carlsson +Licence: LGPL-2 or any later version + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston MA 02110-1301 USA. + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in '/usr/share/common-licenses/LGPL-2' + +Files: gcin2tab.c, gtab-merge.c, gtab.c, intcode.c, kbmcv.c, pho.[ch], + phod2a.c, phrase.c, tsa2d32.c, tsd2a.c, tsin-util.c, tsin.c +Copyright: 1994-2008 Edward Der-Hua Liu, Hsin-Chu, Taiwan +Licence: LGPL-2 or any later version + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston MA 02110-1301 USA + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in '/usr/share/common-licenses/LGPL-2' + +Files: data/jyutping.cin +Copyright: Linguistic Society of Hong Kong +Licence: other + This cin file is originally converted from the "phrase box" file + available on the Linguistic Society of Hong Kong's website: + + http://www.hku.hk/linguist/lshk/ + + You are free to use and redistribute this file; the author only + wishes you keep the following notice intact: + + "The copyright of the Jyutping phrase box belongs to the Linguistic + Society of Hong Kong. We would like to thank the Jyutping Group of + the Linguistic Society of Hong Kong for permission to use the + electronic file in our research and/or product development." + + For more information about the Jyutping system, visit the above + website. The romanisation system is a little bit different from + common Hong Kong usage, but this system is a lot more systematic. + +Files: gtk-im/gtkimcontextgcin.[ch], gtk-im/imgcin.c +Copyright: 2000 Red Hat, Inc. +Licence: LGPL-2 or any later version + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston MA 02110-1301 USA. + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in '/usr/share/common-licenses/LGPL-2' + +Files: qt-im/qgcininputcontextplugin_my.cpp, qt-im/qgcininputcontextplugin.h +Copyright: 2004 immodule for Qt Project. +Licence: GPL-2 + This file is written to contribute to Trolltech AS under their own + licence. You may use this file under your Qt license. Following + description is copied from their original file headers. Contact + immodule-qt@freedesktop.org if any conditions of this licensing are + not clear to you. + + This file is part of the input method module of the Qt GUI Toolkit. + + This file may be distributed under the terms of the Q Public License + as defined by Trolltech AS of Norway and appearing in the file + LICENSE.QPL included in the packaging of this file. + + This file may be distributed and/or modified under the terms of the + GNU General Public License version 2 as published by the Free Software + Foundation and appearing in the file LICENSE.GPL included in the + packaging of this file. + + Licensees holding valid Qt Enterprise Edition or Qt Professional Edition + licenses may use this file in accordance with the Qt Commercial License + Agreement provided with the Software. + + This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + See http://www.trolltech.com/pricing.html or email sales@trolltech.com for + information about Qt Commercial License Agreements. + See http://www.trolltech.com/qpl/ for QPL licensing information. + See http://www.trolltech.com/gpl/ for GPL licensing information. + + Contact info@trolltech.com if any conditions of this licensing are + not clear to you. + +On Debian systems, the complete text of the GNU General +Public License can be found in '/usr/share/common-licenses/GPL-2' + +Files: qt-im/qgcininputcontext.h +Copyright: 1992-2002 Trolltech AS. +Licence: GPL-2 + This file is part of the input method module of the Qt GUI Toolkit. + + This file may be distributed under the terms of the Q Public License + as defined by Trolltech AS of Norway and appearing in the file + LICENSE.QPL included in the packaging of this file. + + This file may be distributed and/or modified under the terms of the + GNU General Public License version 2 as published by the Free Software + Foundation and appearing in the file LICENSE.GPL included in the + packaging of this file. + + Licensees holding valid Qt Enterprise Edition or Qt Professional Edition + licenses may use this file in accordance with the Qt Commercial License + Agreement provided with the Software. + + This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + See http://www.trolltech.com/pricing.html or email sales@trolltech.com for + information about Qt Commercial License Agreements. + See http://www.trolltech.com/qpl/ for QPL licensing information. + See http://www.trolltech.com/gpl/ for GPL licensing information. + + Contact info@trolltech.com if any conditions of this licensing are + not clear to you. + +On Debian systems, the complete text of the GNU General +Public License can be found in '/usr/share/common-licenses/GPL-2' + +Files: IC.[ch], IMdkit/include/IMdkit.h, IMdkit/include/Xi18n.h, + IMdkit/lib/IMConn.c, IMdkit/lib/IMMethod.c, IMdkit/lib/IMValues.c, + IMdkit/lib/Xi18n.h, IMdkit/lib/Xi18nX.h, IMdkit/lib/XimFunc.h, + IMdkit/lib/i18nAttr.c, IMdkit/lib/i18nClbk.c, IMdkit/lib/i18nIc.c, + IMdkit/lib/i18nMethod.c, IMdkit/lib/i18nPtHdr.c, IMdkit/lib/i18nUtil.c, + IMdkit/lib/i18nX.c +Copyright: 1993-1994 Hewlett-Packard Company + 1994-1995 Sun Microsystems, Inc. +Licence: other-BSD + Permission to use, copy, modify, distribute, and sell this software + and its documentation for any purpose is hereby granted without fee, + provided that the above copyright notice appear in all copies and + that both that copyright notice and this permission notice appear + in supporting documentation, and that the name of Sun Microsystems, Inc. + and Hewlett-Packard not be used in advertising or publicity pertaining to + distribution of the software without specific, written prior permission. + Sun Microsystems, Inc. and Hewlett-Packard make no representations about + the suitability of this software for any purpose. It is provided "as is" + without express or implied warranty. + + SUN MICROSYSTEMS INC. AND HEWLETT-PACKARD COMPANY DISCLAIMS ALL + WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL + SUN MICROSYSTEMS, INC. AND HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY + SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER + RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF + CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR + IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + Author: Hidetoshi Tajima(tajima@Eng.Sun.COM) Sun Microsystems, Inc. + +Files: IMdkit/lib/FrameMgr.[ch] +Copyright: 1993-1994 Digital Equipment Corporation, Maynard, Massachusetts, +Licence: other-BSD + All Rights Reserved + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and that + both that copyright notice and this permission notice appear in + supporting documentation, and that the names of Digital or MIT not be + used in advertising or publicity pertaining to distribution of the + software without specific, written prior permission. + + DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING + ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL + DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR + ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, + ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + SOFTWARE. + + Author: Hiroyuki Miyamoto Digital Equipment Corporation + miyamoto@jrd.dec.com + + This version tidied and debugged by Steve Underwood May 1999 + +Files: IMdkit/include/XimProto.h +Copyright: 1992-1994 FUJITSU LIMITED +Licence: other-BSD + Permission to use, copy, modify, distribute, and sell this software + and its documentation for any purpose is hereby granted without fee, + provided that the above copyright notice appear in all copies and + that both that copyright notice and this permission notice appear + in supporting documentation, and that the name of FUJITSU LIMITED + not be used in advertising or publicity pertaining to distribution + of the software without specific, written prior permission. + FUJITSU LIMITED makes no representations about the suitability of + this software for any purpose. + It is provided "as is" without express or implied warranty. + + FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + EVENT SHALL FUJITSU LIMITED BE LIABLE FOR ANY SPECIAL, INDIRECT OR + CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF + USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + Author: Takashi Fujiwara FUJITSU LIMITED + fujiwara@a80.tech.yk.fujitsu.co.jp + + This version tidied and debugged by Steve Underwood May 1999 + +Files: IMdkit/lib/Xtrans.h +Copyright: 1993-1994 X Consortium + 1993-1994 NCR Corporation - Dayton, Ohio, USA +Licence: other-BSD + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + Except as contained in this notice, the name of the X Consortium shall + not be used in advertising or otherwise to promote the sale, use or + other dealings in this Software without prior written authorization + from the X Consortium. + + All Rights Reserved + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, provided + that the above copyright notice appear in all copies and that both that + copyright notice and this permission notice appear in supporting + documentation, and that the name NCR not be used in advertising + or publicity pertaining to distribution of the software without specific, + written prior permission. NCR makes no representations about the + suitability of this software for any purpose. It is provided "as is" + without express or implied warranty. + + NCR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN + NO EVENT SHALL NCR BE LIABLE FOR ANY SPECIAL, INDIRECT OR + CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS + OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, + NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +Files: IMdkit/lib/i18nIMProto.c +Copyright: 1993-1994 Digital Equipment Corporation, Maynard, Massachusetts, + 1993-1994 Hewlett-Packard Company + 1994-1995 Sun Microsystems, Inc. +Licence: other-BSD + All Rights Reserved + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and that + both that copyright notice and this permission notice appear in + supporting documentation, and that the names of Digital or MIT not be + used in advertising or publicity pertaining to distribution of the + software without specific, written prior permission. + + DIGITAL AND HEWLETT-PACKARD COMPANY DISCLAIMS ALL WARRANTIES WITH REGARD + TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS, IN NO EVENT SHALL DIGITAL AND HEWLETT-PACKARD COMPANY BE LIABLE + FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER + RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF + CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + Author: Hiroyuki Miyamoto Digital Equipment Corporation + miyamoto@jrd.dec.com + Hidetoshi Tajima(tajima@Eng.Sun.COM) Sun Microsystems, Inc. + + This version tidied and debugged by Steve Underwood May 1999 + +Files: debian/* +Copyright: 2008 Wen-Yen Chuang +Licence: GPL-2 + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +On Debian systems, the complete text of the GNU General +Public License can be found in '/usr/share/common-licenses/GPL-2' --- gcin-1.4.5.orig/debian/gcin-dev.install +++ gcin-1.4.5/debian/gcin-dev.install @@ -0,0 +1 @@ +debian/tmp/usr/include/gcin-im-client.h usr/include --- gcin-1.4.5.orig/debian/watch +++ gcin-1.4.5/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://cle.linux.org.tw/gcin/download/gcin-(.*)\.tar\.bz2 --- gcin-1.4.5.orig/debian/gcin.links +++ gcin-1.4.5/debian/gcin.links @@ -0,0 +1,5 @@ +usr/share/man/man1/gcin-setup.1.gz usr/share/man/man1/gcin-setup-tab.1.gz +usr/share/man/man1/phoa2d.1.gz usr/share/man/man1/phod2a.1.gz +usr/share/man/man1/sim2trad.1.gz usr/share/man/man1/trad2sim.1.gz +usr/share/man/man1/tsa2d32.1.gz usr/share/man/man1/tsd2a.1.gz +usr/share/man/man1/tsa2d32.1.gz usr/share/man/man1/tsd2a32.1.gz --- gcin-1.4.5.orig/debian/gcin.postrm +++ gcin-1.4.5/debian/gcin.postrm @@ -0,0 +1,8 @@ +#!/bin/sh +# postrm script for gcin + +set -e + +#DEBHELPER# + +exit 0 --- gcin-1.4.5.orig/debian/gcin-qt3-immodule.lintian-overrides +++ gcin-1.4.5/debian/gcin-qt3-immodule.lintian-overrides @@ -0,0 +1 @@ +gcin-qt3-immodule binary: binary-or-shlib-defines-rpath --- gcin-1.4.5.orig/debian/gcin.immodules.in +++ gcin-1.4.5/debian/gcin.immodules.in @@ -0,0 +1,4 @@ +# automatically generated by dh_gtkmodules, do not edit +"/usr/lib/gtk-2.0/@GTKVER@/immodules/im-gcin.so" +"gcin" "gcin Input Method" "gcin" "/usr/share/locale" "*" + --- gcin-1.4.5.orig/debian/control +++ gcin-1.4.5/debian/control @@ -0,0 +1,55 @@ +Source: gcin +Section: utils +Priority: optional +Maintainer: Kanru Chen +Homepage: http://www.csie.nctu.edu.tw/~cp76/gcin/ +Vcs-Git: git://git.debian.org/git/users/kanru-guest/gcin.git +Vcs-Browser: http://git.debian.org/?p=users/kanru-guest/gcin.git;a=summary +Build-Depends: debhelper (>= 7), libgtk2.0-dev (>= 2.10.1), libxtst-dev, libqt3-mt-dev, libqt4-dev, libanthy-dev, quilt +Standards-Version: 3.8.1 + +Package: gcin +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: gcin-qt3-immodule, im-switch, anthy +Description: an GTK+ based input method platform for Chinese users + Gcin is an input method platform, which supports GTK+/QT immodule and XIM. + Gcin is focused mainly on Traditional Chinese. However, it is also very useful + for Simplified Chinese, Japanese, and many other languages. + . + Input method table format of gcin is almost as same as those of xcin and scim. + . + This package contains an GTK+ immodule. If you want to use QT immodule, please + install gcin-qt3-immodule package. + +Package: gcin-dev +Section: devel +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, gcin (>= ${source:Version}) +Conflicts: gcin (<< 1.4.2) +Description: an GTK+ based input method platform - development files + Gcin is an input method platform, which supports GTK+/QT immodule and XIM. + Gcin is focused mainly on Traditional Chinese. However, it is also very useful + for Simplified Chinese, Japanese, and many other languages. + . + This package provides header files of gcin. + +Package: gcin-qt3-immodule +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, gcin (>= ${source:Version}) +Description: an QT3 input method module with gcin as backend + Gcin is an input method platform, which supports GTK+/QT immodule and XIM. + Gcin is focused mainly on Traditional Chinese. However, it is also very useful + for Simplified Chinese, Japanese, and many other languages. + . + This package is the QT 3.x native input method module for gcin. + +Package: gcin-qt4-immodule +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, gcin (>= ${source:Version}) +Description: an QT4 input method module with gcin as backend + Gcin is an input method platform, which supports GTK+/QT immodule and XIM. + Gcin is focused mainly on Traditional Chinese. However, it is also very useful + for Simplified Chinese, Japanese, and many other languages. + . + This package is the QT 4.x native input method module for gcin. --- gcin-1.4.5.orig/debian/gcin-qt4-immodule.lintian-overrides +++ gcin-1.4.5/debian/gcin-qt4-immodule.lintian-overrides @@ -0,0 +1 @@ +gcin-qt4-immodule binary: binary-or-shlib-defines-rpath --- gcin-1.4.5.orig/debian/im-switch/gcin +++ gcin-1.4.5/debian/im-switch/gcin @@ -0,0 +1,10 @@ +XIM=gcin +XIM_PROGRAM=/usr/bin/gcin +XIM_ARGS= +GTK_IM_MODULE=gcin +if [ -e /usr/lib/qt3/plugins/inputmethods/libqgcin.so ]; then + QT_IM_MODULE=gcin +else + QT_IM_MODULE=xim +fi +DEPENDS= --- gcin-1.4.5.orig/debian/patches/ld_only_link_needed.diff +++ gcin-1.4.5/debian/patches/ld_only_link_needed.diff @@ -0,0 +1,56 @@ +Add -Wl,--as-needed +--- + configure | 5 +++-- + qt-im/Makefile | 2 +- + 2 files changed, 4 insertions(+), 3 deletions(-) + +Index: gcin/configure +=================================================================== +--- gcin.orig/configure 2009-05-12 12:24:37.841283205 +0800 ++++ gcin/configure 2009-05-12 12:24:43.341283484 +0800 +@@ -186,10 +186,9 @@ + + OPTFLAGS="-g" + if [ $prefix = /usr ]; then +- OPTFLAGS="-O" ++ OPTFLAGS="-g -O2" + fi + +- + echo "CC=gcc" > config.mak + echo "MAKE=$MAKE" >> config.mak + echo "GTKINC=$GTKINC" >> config.mak +@@ -204,6 +203,7 @@ + echo "gcinlibdir=\$(libdir)/gcin" >> config.mak + echo "includedir=\$(DESTDIR)$includedir" >> config.mak + ++echo "LDFLAGS=-Wl,--as-needed -lX11" >> config.mak + echo "LDFLAGS+=$GTKLDFLAGS" >> config.mak + echo "GCIN_VERSION=$GCIN_VERSION" >> config.mak + echo "GCIN_TABLE_DIR=\$(datadir_r)/gcin/table" >> config.mak +Index: gcin/qt-im/Makefile +=================================================================== +--- gcin.orig/qt-im/Makefile 2009-05-12 12:24:37.093283328 +0800 ++++ gcin/qt-im/Makefile 2009-05-12 12:24:43.341283484 +0800 +@@ -11,7 +11,7 @@ + CXXFLAGS=$(OPTFLAGS) $(INCS) -Wall -D_REENTRANT -fPIC -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_NO_DEBUG + OBJS=qgcininputcontextplugin.o qgcininputcontextplugin_my.o qgcininputcontext.o qgcininputcontext_x11.o + .SUFFIXES: .c .cpp .a .so .E .h +-LDFLAGS=-L/usr/lib/$(QT)/$(LIB) -L/usr/X11R6/$(LIB) -L../im-client -lqt-mt -lmng -ljpeg -lpng -lz \ ++LDFLAGS=-Wl,--as-needed -L/usr/lib/$(QT)/$(LIB) -L/usr/X11R6/$(LIB) -L../im-client -lqt-mt -lmng -ljpeg -lpng -lz \ + -lXrender -lXrandr -lXft -lfontconfig -lgcin-im-client \ + -lXext -lX11 -lm -lSM -lICE -ldl -lpthread + all: libqgcin.so +Index: gcin/qt4-im/Makefile +=================================================================== +--- gcin.orig/qt4-im/Makefile 2009-05-12 12:24:35.789283581 +0800 ++++ gcin/qt4-im/Makefile 2009-05-12 12:24:43.341283484 +0800 +@@ -14,7 +14,7 @@ + -DQT_IMMODULE -DPIC + OBJS= moc_gcin-qt.o gcin-qt.o im-gcin-qt.o gcin-imcontext-qt.o + .SUFFIXES: .c .cpp .a .so .E .h +-LDFLAGS=-L/usr/lib/$(QT)/$(LIB) -L/usr/X11R6/$(LIB) -L../im-client -lQtGui -lQtCore -lmng -ljpeg -lpng -lz \ ++LDFLAGS=-Wl,--as-need -L/usr/lib/$(QT)/$(LIB) -L/usr/X11R6/$(LIB) -L../im-client -lQtGui -lQtCore -lmng -ljpeg -lpng -lz \ + -lXrender -lXrandr -lXft -lfontconfig -lgcin-im-client \ + -lXext -lX11 -lm -lSM -lICE -ldl -lpthread + all: im-gcin.so --- gcin-1.4.5.orig/debian/patches/rename_README_for_Chinese.diff +++ gcin-1.4.5/debian/patches/rename_README_for_Chinese.diff @@ -0,0 +1,32 @@ +Rename README file. +--- + gcin-setup-tab.c | 2 +- + gcin-setup.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +Index: gcin/gcin-setup-tab.c +=================================================================== +--- gcin.orig/gcin-setup-tab.c 2008-12-08 16:53:10.334679146 +0800 ++++ gcin/gcin-setup-tab.c 2008-12-08 16:53:52.532679087 +0800 +@@ -934,7 +934,7 @@ + + static void cb_help() + { +- utf8_editor(DOC_DIR"/README"); ++ utf8_editor(DOC_DIR"/README.zh_TW"); + } + + +Index: gcin/gcin-setup.c +=================================================================== +--- gcin.orig/gcin-setup.c 2008-12-08 16:53:10.329679417 +0800 ++++ gcin/gcin-setup.c 2008-12-08 16:53:52.532679087 +0800 +@@ -207,7 +207,7 @@ + + static void cb_help() + { +- utf8_editor(DOC_DIR"/README"); ++ utf8_editor(DOC_DIR"/README.zh_TW"); + } + + static GtkWidget *spinner_gcin_font_size, *spinner_gcin_font_size_tsin_presel, --- gcin-1.4.5.orig/debian/patches/fix_rpath_and_icon_path.diff +++ gcin-1.4.5/debian/patches/fix_rpath_and_icon_path.diff @@ -0,0 +1,66 @@ +Fix rpath and icon path issue +Index: gcin/Makefile.gcin +=================================================================== +--- gcin.orig/Makefile.gcin 2009-05-12 12:30:11.217283791 +0800 ++++ gcin/Makefile.gcin 2009-05-12 12:31:28.005283581 +0800 +@@ -11,14 +11,16 @@ + GCIN_SO= gcin1.so gcin2.so gtk_bug_fix.so + + OBJS=gcin.o eve.o util.o gcin-conf.o gcin-settings.o locale.o gcin-icon.o \ +- gcin-switch.o gcin-exec-script.o $(GCIN_SO) pho-play.o cache.o \ ++ gcin-switch.o gcin-exec-script.o pho-play.o cache.o win-sym.o intcode.o \ ++ win-int.o win-inmd-switch.o win-message.o pinyin.o gtk_bug_fix.o \ ++ win-pho-near.o win-kbm.o tsin-char.o t2s-lookup.o anthy.o \ + $(gcin_pho_o) $(gcin_gtab_o) gcin-common.o phrase.o + + OBJS_TSLEARN=tslearn.o util.o gcin-conf.o pho-util.o tsin-util.o gcin-send.o pho-sym.o \ + table-update.o locale.o gcin-settings.o gcin-common.o + OBJS_JUYIN_LEARN=juyin-learn.o locale.o util.o pho-util.o pho-sym.o \ + gcin-settings.o gcin-conf.o table-update.o pinyin.o +-OBJS_sim2trad=sim2trad.o util.o gcin2.so locale.o gcin-conf.o ++OBJS_sim2trad=sim2trad.o util.o locale.o gcin-conf.o t2s-lookup.o + OBJS_phod2a=phod2a.o pho-util.o gcin-conf.o pho-sym.o table-update.o pho-dbg.o locale.o \ + gcin-settings.o util.o + OBJS_tsa2d32=tsa2d32.o gcin-send.o util.o pho-sym.o gcin-conf.o locale.o pho-lookup.o +@@ -105,7 +107,6 @@ + if [ $(QT4_IM) = 'Y' ]; then $(MAKE) -C qt4-im; fi + + gcin: $(OBJS) $(IMdkitLIB) $(im-srv) +- LD_RUN_PATH=.:$(gcinlibdir) \ + $(CC) $(EXTRA_LDFLAGS) -o $@ $(OBJS) $(IMdkitLIB) $(im-srv) -lXtst $(LDFLAGS) -L/usr/X11R6/lib + rm -f core.* + ln -sf $@ $@.test +@@ -117,7 +118,6 @@ + $(CC) -o $@ $(OBJS_JUYIN_LEARN) $(LDFLAGS) + rm -f core.* + sim2trad: $(OBJS_sim2trad) +- LD_RUN_PATH=.:$(gcinlibdir) \ + $(CC) -o $@ $(OBJS_sim2trad) $(LDFLAGS) + rm -f core.* + trad2sim: sim2trad +@@ -215,14 +215,11 @@ + ibin: + install $(PROGS) $(bindir); \ + rm -f $(bindir)/trad2sim; ln -sf sim2trad $(bindir)/trad2sim +- install $(GCIN_SO) $(gcinlibdir) + + install: +- install -d $(datadir)/icons +- install gcin.png $(datadir)/icons ++ install -d $(datadir)/pixmaps ++ install -m 644 gcin.png $(datadir)/pixmaps + $(MAKE) -C icons install +- install -d $(gcinlibdir) +- install $(GCIN_SO) $(gcinlibdir) + install -d $(bindir) + $(MAKE) -C data install + $(MAKE) -C im-client install +@@ -238,7 +235,7 @@ + else \ + install -d $(DOC_DIR_i); \ + install -m 644 README.html Changelog.html $(DOC_DIR_i); \ +- install -s $(PROGS) $(bindir); \ ++ install $(PROGS) $(bindir); \ + rm -f $(bindir)/trad2sim; ln -sf sim2trad $(bindir)/trad2sim; \ + fi + $(MAKE) -C scripts install --- gcin-1.4.5.orig/debian/patches/fix_Qt3_detection.diff +++ gcin-1.4.5/debian/patches/fix_Qt3_detection.diff @@ -0,0 +1,21 @@ +Fix Qt3 path +--- gcin-1.4.3.orig/qt-im/Makefile ++++ gcin-1.4.3/qt-im/Makefile +@@ -7,7 +7,7 @@ + else + IMMODULES_LOCAL=/usr/$(LIB)/$(QTIM) + endif +-INCS=-I../im-client -I/usr/lib/$(QT)/include -I/usr/include/Xft2/X11/Xft -I/usr/include/fontconfig -I/usr/include/freetype2 ++INCS=-I../im-client -I/usr/include/$(QT) -I/usr/include/Xft2/X11/Xft -I/usr/include/fontconfig -I/usr/include/freetype2 + CXXFLAGS=$(OPTFLAGS) $(INCS) -Wall -D_REENTRANT -fPIC -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_NO_DEBUG + OBJS=qgcininputcontextplugin.o qgcininputcontextplugin_my.o qgcininputcontext.o qgcininputcontext_x11.o + .SUFFIXES: .c .cpp .a .so .E .h +@@ -19,7 +19,7 @@ + .cpp.E: + $(CXX) -E $(CFLAGS) $(INCS) $< > $@ + .h.o: +- /usr/lib/$(QT)/bin/moc $< -o $<_moc.cpp ++ /usr/bin/moc-$(QT) $< -o $<_moc.cpp + $(CXX) -c -pipe $(CXXFLAGS) $(INCS) $<_moc.cpp -o $@ + + libqgcin.so: $(OBJS) --- gcin-1.4.5.orig/debian/patches/fix_anthy_error_message.diff +++ gcin-1.4.5/debian/patches/fix_anthy_error_message.diff @@ -0,0 +1,23 @@ +Fix anthy error message +Index: gcin/anthy.c +=================================================================== +--- gcin.orig/anthy.c 2009-05-12 11:35:17.957281412 +0800 ++++ gcin/anthy.c 2009-05-12 12:24:46.613282588 +0800 +@@ -893,7 +893,7 @@ + GtkWidget *dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_CLOSE, +- "Error loading %s %s. Please install anthy", so[0], dlerror()); ++ "Error loading %s %s. Incompatible anthy.so ?", so[0], dlerror()); + gtk_dialog_run (GTK_DIALOG (dialog)); + gtk_widget_destroy (dialog); + return FALSE; +@@ -912,7 +912,7 @@ + GtkWidget *dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_CLOSE, +- "Cannot init anthy. incompatible anthy.so ?"); ++ "Cannot init anthy. Please install anthy."); + gtk_dialog_run (GTK_DIALOG (dialog)); + gtk_widget_destroy (dialog); + return FALSE; --- gcin-1.4.5.orig/debian/patches/fix_FTBFS_on_64_bit_and_paths.diff +++ gcin-1.4.5/debian/patches/fix_FTBFS_on_64_bit_and_paths.diff @@ -0,0 +1,49 @@ +Fix 64bit builds +--- + configure | 15 ++++++--------- + 1 file changed, 6 insertions(+), 9 deletions(-) + +Index: gcin/configure +=================================================================== +--- gcin.orig/configure 2009-05-12 11:35:17.957281412 +0800 ++++ gcin/configure 2009-05-12 12:24:37.841283205 +0800 +@@ -123,12 +123,9 @@ + fi + + LIB='lib' +-if [ -d /lib64 ]; then +-LIB='lib64' +-fi + + QT_IM='N' +-QT_IM_DIR=/usr/lib/qt3/plugins/lib/inputmethods ++QT_IM_DIR=/usr/lib/qt3/plugins/inputmethods + echo "testing if you have qt3 support" + if [ -d $QT_IM_DIR ]; then + QT_IM='Y' +@@ -142,7 +139,7 @@ + + + QT4_IM='N' +-QT4_IM_DIR=/usr/lib/qt4/plugins/lib/inputmethods ++QT4_IM_DIR=/usr/lib/qt4/plugins/inputmethods + echo "testing if you have qt4 support" + if [ -d $QT4_IM_DIR ]; then + QT4_IM='Y' +@@ -215,11 +212,11 @@ + echo "GCIN_SCRIPT_DIR=\$(datadir_r)/gcin/script" >> config.mak + echo "GCIN_SCRIPT_DIR_i=\$(datadir)/gcin/script" >> config.mak + echo "OPTFLAGS=$OPTFLAGS" >> config.mak +-echo "DOC_DIR=\$(datadir_r)/doc/gcin-$GCIN_VERSION" >> config.mak +-echo "DOC_DIR_i=\$(datadir)/doc/gcin-$GCIN_VERSION" >> config.mak +-echo "GCIN_ICON_DIR=\$(datadir_r)/icons/gcin" >> config.mak +-echo "SYS_ICON_DIR=\$(datadir_r)/icons" >> config.mak +-echo "GCIN_ICON_DIR_i=\$(datadir)/icons/gcin" >> config.mak ++echo "DOC_DIR=\$(datadir_r)/doc/gcin" >> config.mak ++echo "DOC_DIR_i=\$(datadir)/doc/gcin" >> config.mak ++echo "GCIN_ICON_DIR=\$(datadir_r)/pixmaps/gcin" >> config.mak ++echo "SYS_ICON_DIR=\$(datadir_r)/pixmaps" >> config.mak ++echo "GCIN_ICON_DIR_i=\$(datadir)/pixmaps/gcin" >> config.mak + echo "GCIN_BIN_DIR=\$(bindir_r)" >> config.mak + echo "FREEBSD=$FREEBSD" >> config.mak + echo "QT_IM=$QT_IM" >> config.mak --- gcin-1.4.5.orig/debian/patches/series +++ gcin-1.4.5/debian/patches/series @@ -0,0 +1,6 @@ +fix_rpath_and_icon_path.diff +fix_Qt4_detection.diff +fix_Qt3_detection.diff +fix_FTBFS_on_64_bit_and_paths.diff +ld_only_link_needed.diff +fix_anthy_error_message.diff --- gcin-1.4.5.orig/debian/patches/fix_Qt4_detection.diff +++ gcin-1.4.5/debian/patches/fix_Qt4_detection.diff @@ -0,0 +1,28 @@ +Fix Qt4 path +--- gcin-1.4.3.orig/qt4-im/Makefile ++++ gcin-1.4.3/qt4-im/Makefile +@@ -1,13 +1,13 @@ + include ../config.mak + QT=qt4 +-QTIM=$(QT)/plugins/lib/inputmethods ++QTIM=$(QT)/plugins/inputmethods + IMMODULES=$(libdir)/$(QTIM) + ifeq ($(LIB), lib64) + IMMODULES_LOCAL=/usr/$(LIB)/qt4/plugins/lib64/inputmethods + else + IMMODULES_LOCAL=/usr/$(LIB)/$(QTIM) + endif +-QTINC=/usr/lib/$(QT)/include ++QTINC=/usr/include/$(QT) + + INCS=-I../im-client -I$(QTINC) -I/usr/include/X11 -I$(QTINC)/QtGui -I$(QTINC)/QtCore + CXXFLAGS=$(OPTFLAGS) $(INCS) -Wall -D_REENTRANT -fPIC -DQT4 -DQT_SHARED \ +@@ -23,7 +23,7 @@ + $(CXX) -E $(CFLAGS) $(INCS) $< > $@ + + moc_gcin-qt.cpp: gcin-qt.h +- /usr/lib/$(QT)/bin/moc $< -o moc_gcin-qt.cpp ++ /usr/bin/moc-$(QT) $< -o moc_gcin-qt.cpp + + im-gcin.so: $(OBJS) + export LD_RUN_PATH=$(gcinlibdir) ;\