--- gcin-1.3.4.orig/debian/gcin.prerm +++ gcin-1.3.4/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.3.4.orig/debian/gcin.install +++ gcin-1.3.4/debian/gcin.install @@ -0,0 +1,2 @@ +debian/im-switch/gcin etc/X11/xinit/xinput.d +debian/gcin.xpm usr/share/pixmaps --- gcin-1.3.4.orig/debian/gcin.postinst +++ gcin-1.3.4/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.3.4.orig/debian/copyright +++ gcin-1.3.4/debian/copyright @@ -0,0 +1,58 @@ +This package was debianized by Wen-Yen Chuang on +Sat, 15 Apr 2006 21:35:29 +0800. + +It was downloaded from http://cle.linux.org.tw/gcin/download/ + +Upstream Author: Edward Der-Hua Liu + +Copyright: + Copyright (C) 1994 Digital Equipment Corporation, Maynard, Massachusetts + Copyright (C) 1994 FUJITSU LIMITED + Copyright (C) 1994 Hewlett-Packard Company + Copyright (C) 1994 NCR Corporation - Dayton, Ohio, USA + Copyright (C) 1994 Philip Homburg + Copyright (C) 1994 Vrije Universiteit Amsterdam, Netherlands + Copyright (C) 1994 X Consortium + Copyright (C) 1995 Sun Microsystems, Inc. + Copyright (C) 1996 Holger Veit + Copyright (C) 1996 Sebastien Marineau + Copyright (C) 2000 Red Hat, Inc. + Copyright (C) 2002 Anders Carlsson + Copyright (C) 2002 Trolltech AS. + Copyright (C) 2004 immodule for Qt Project. + +License of gcin's major part: + 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.1 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 St, 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.1'. + +License of gcin's QT immodule: + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + 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.3.4.orig/debian/gcin-qt3-immodule.install +++ gcin-1.3.4/debian/gcin-qt3-immodule.install @@ -0,0 +1 @@ +qt-im/libqgcin.so usr/lib/qt3/plugins/inputmethods --- gcin-1.3.4.orig/debian/gcin.postrm +++ gcin-1.3.4/debian/gcin.postrm @@ -0,0 +1,8 @@ +#!/bin/sh +# postrm script for gcin + +set -e + +#DEBHELPER# + +exit 0 --- gcin-1.3.4.orig/debian/changelog +++ gcin-1.3.4/debian/changelog @@ -0,0 +1,196 @@ +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.3.4.orig/debian/im-switch/gcin +++ gcin-1.3.4/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.3.4.orig/debian/rules +++ gcin-1.3.4/debian/rules @@ -0,0 +1,119 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + + GTKVER = 2.10.0 + +configure: patch +config.status: configure + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --new_gtk_im=Y + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/gcin.sgml > gcin.1 + + touch build-stamp + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp + -$(MAKE) clean + rm -f .depend + dh_clean --exclude ./IMdkit/Xi18n_sample/README.orig \ + --exclude ./IMdkit/lib/IMConn.c~ \ + --exclude ./IMdkit/lib/Makefile~ \ + --exclude ./IMdkit/lib/i18nClbk.c~ + +patch: patch-stamp +patch-stamp: + dpatch apply-all + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + + +install: build + dh_testdir + dh_testroot + dh_clean -k --exclude ./IMdkit/Xi18n_sample/README.orig \ + --exclude ./IMdkit/lib/IMConn.c~ \ + --exclude ./IMdkit/lib/Makefile~ \ + --exclude ./IMdkit/lib/i18nClbk.c~ + dh_installdirs + + # Add here commands to install the package into debian/gcin. + $(MAKE) install DESTDIR=$(CURDIR)/debian/gcin + rm -rf debian/gcin/usr/lib/qt3 + rm -rf debian/gcin/usr/lib/menu + rm -rf debian/gcin/usr/share/doc/gcin/Changelog + rm -rf debian/gcin/usr/share/control-center-2.0 + mkdir -p debian/gcin/usr/lib/gtk-2.0/$(GTKVER)/immodules + mv debian/gcin/usr/lib/gtk-2.0/immodules/* debian/gcin/usr/lib/gtk-2.0/$(GTKVER)/immodules/ + rmdir debian/gcin/usr/lib/gtk-2.0/immodules + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs Changelog + dh_installdocs + dh_install + LD_LIBRARY_PATH=debian/gcin/usr/lib:$(LD_LIBRARY_PATH) dh_gtkmodules + dh_installmenu + dh_link usr/share/man/man1/gcin.1.gz usr/share/man/man1/gcin-setup.1.gz \ + usr/share/man/man1/gcin2tab.1.gz usr/share/man/man1/phoa2d.1.gz \ + usr/share/man/man1/gcin2tab.1.gz usr/share/man/man1/phod2a.1.gz \ + usr/share/man/man1/gcin2tab.1.gz usr/share/man/man1/tsd2a32.1.gz \ + usr/share/man/man1/gcin2tab.1.gz usr/share/man/man1/tsa2d32.1.gz \ + usr/share/man/man1/gcin2tab.1.gz usr/share/man/man1/tsd2a.1.gz \ + usr/share/man/man1/gcin2tab.1.gz usr/share/man/man1/tslearn.1.gz \ + usr/share/man/man1/gcin2tab.1.gz usr/share/man/man1/juyin-learn.1.gz \ + usr/share/man/man1/gcin2tab.1.gz usr/share/man/man1/sim2trad.1.gz \ + usr/share/man/man1/gcin2tab.1.gz usr/share/man/man1/trad2sim.1.gz \ + usr/share/man/man1/gcin2tab.1.gz usr/share/man/man1/gcin-gb-toggle.1.gz \ + usr/share/man/man1/gcin2tab.1.gz usr/share/man/man1/gcin-message.1.gz \ + usr/share/man/man1/gcin2tab.1.gz usr/share/man/man1/gtab-merge.1.gz + dh_strip + dh_compress + + # /usr/bin/gcin-setup needs README.zh_TW uncompressed. + gunzip debian/gcin/usr/share/doc/gcin/README.gz + mv debian/gcin/usr/share/doc/gcin/README debian/gcin/usr/share/doc/gcin/README.zh_TW + + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- gcin-1.3.4.orig/debian/gcin.menu +++ gcin-1.3.4/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="Apps/System" \ + 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="Apps/System" \ + command="/usr/bin/gcin-setup" --- gcin-1.3.4.orig/debian/compat +++ gcin-1.3.4/debian/compat @@ -0,0 +1 @@ +5 --- gcin-1.3.4.orig/debian/watch +++ gcin-1.3.4/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://cle.linux.org.tw/gcin/download/gcin-(.*)\.tar\.bz2 --- gcin-1.3.4.orig/debian/control +++ gcin-1.3.4/debian/control @@ -0,0 +1,32 @@ +Source: gcin +Section: utils +Priority: optional +Maintainer: Wen-Yen Chuang +Build-Depends: debhelper (>= 5), libgtk2.0-dev (>= 2.10.1-1), libxtst-dev, libqt3-mt-dev, dpatch +Standards-Version: 3.7.2 + +Package: gcin +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: gcin-qt3-immodule, im-switch +Description: a GTK+ based input method platform for Chinese users + Gcin is a 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 GTK immodules. If you want to use QT immodule, please + install gcin-qt3-immodule package. + . + Homepage: http://www.csie.nctu.edu.tw/~cp76/gcin/ + +Package: gcin-qt3-immodule +Architecture: any +Depends: ${shlibs:Depends} +Description: a QT input method module with gcin as backend + Gcin is a input method platform, which supports GTK/QT immodule and XIM. + . + This package is the QT 3.x native input method module for gcin. + . + For more information about gcin, please check the description of gcin package. --- gcin-1.3.4.orig/debian/patches/00list +++ gcin-1.3.4/debian/patches/00list @@ -0,0 +1,3 @@ +10_fix-directory-structure.dpatch +20_fix_installation_path_for_im-client.dpatch +30_disable_rpath_for_gtk-im.dpatch --- gcin-1.3.4.orig/debian/patches/10_fix-directory-structure.dpatch +++ gcin-1.3.4/debian/patches/10_fix-directory-structure.dpatch @@ -0,0 +1,133 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 10_fix-directory-structure.dpatch by Wen-Yen Chuang +##DP +##DP Makefile: Fix icon installation path, +##DP from /usr/share/icons into /usr/share/pixmaps. +##DP Disable rpath. +##DP +##DP configure: Fix paths in configuration script, includes +##DP QT3, documents, and icons. +##DP Fix FTBFS on 64-bit architectures. +##DP +##DP gcin-setup.c: Binary gcin-setup reads README file. +##DP However, this file is written in Traditional Chinese. +##DP Rename README into README.zh_TW to meet Debian style. +##DP +##DP qt-im/Makefile: Fix paths for QT3 headers and /usr/bin/moc-qt3. +##DP Disable rpath. +##DP + +@DPATCH@ +--- gcin-1.3.4.orig/Makefile ++++ gcin-1.3.4/Makefile +@@ -11,7 +11,8 @@ + GCIN_SO= gcin1.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) \ ++ gcin-switch.o gcin-exec-script.o win-sym.o intcode.o win-int.o \ ++ phrase.o win-inmd-switch.o win-message.o pinyin.o win-pho-near.o \ + $(gcin_tsin_o) $(gcin_pho_o) $(gcin_gtab_o) + + OBJS_TSLEARN=tslearn.o util.o gcin-conf.o pho-util.o tsin-util.o gcin-send.o pho-sym.o \ +@@ -82,7 +83,6 @@ + if [ $(QT_IM) = 'Y' ]; then $(MAKE) -C qt-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 +@@ -167,14 +167,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 +--- gcin-1.3.4.orig/configure ++++ gcin-1.3.4/configure +@@ -1,4 +1,4 @@ +-##!/bin/bash ++#!/bin/bash + + if [ "$1" = "-h" -o "$1" = "--help" -o "$1" = "-help" ]; then + echo "** valid options:" +@@ -103,14 +103,11 @@ + fi + + LIB='lib' +-if [ -d /lib64 ]; then +-LIB='lib64' +-fi + + QT_IM='N' + for i in qt3 qt4 + do +- QT_IM_DIR=/usr/lib/$i/plugins/$LIB/inputmethods ++ QT_IM_DIR=/usr/lib/$i/plugins/inputmethods + echo "testing if you have QT_IM_MODULE dir:$QT_IM_DIR support" + if [ -d $QT_IM_DIR ]; then + QT_IM='Y' +@@ -179,11 +176,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.3.4.orig/gcin-setup.c ++++ gcin-1.3.4/gcin-setup.c +@@ -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.2.8.orig/qt-im/Makefile ++++ gcin-1.2.8/qt-im/Makefile +@@ -6,7 +6,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 +@@ -18,11 +18,10 @@ + .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) +- export LD_RUN_PATH=$(gcinlibdir) ;\ + $(CXX) -fno-exceptions -shared -o $@ $(OBJS) $(LDFLAGS) + rm -f core.* + install: --- gcin-1.3.4.orig/debian/patches/20_fix_installation_path_for_im-client.dpatch +++ gcin-1.3.4/debian/patches/20_fix_installation_path_for_im-client.dpatch @@ -0,0 +1,23 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 20_fix_installation_path_for_im-client.dpatch +## by Wen-Yen Chuang +##DP +##DP im-client/Makefile: Fixed installation path. +##DP + +@DPATCH@ +--- gcin-1.2.9.orig/im-client/Makefile ++++ gcin-1.2.9/im-client/Makefile +@@ -27,9 +27,9 @@ + LOCALLIB=/usr/local/$(LIB) + + install: +- install -d $(gcinlibdir) +- install -m 755 $(SOFILEVER) $(gcinlibdir) +- cd $(gcinlibdir); rm -f $(SOFILE); ln -s $(SOFILEVER) $(SOFILE); \ ++ install -d $(libdir) ++ install -m 755 $(SOFILEVER) $(libdir) ++ cd $(libdir); rm -f $(SOFILE); ln -s $(SOFILEVER) $(SOFILE); \ + ln -sf $(SOFILEVER) $(SOFILE).1 + install -d $(includedir) + install -m 444 gcin-im-client.h $(includedir) --- gcin-1.3.4.orig/debian/patches/30_disable_rpath_for_gtk-im.dpatch +++ gcin-1.3.4/debian/patches/30_disable_rpath_for_gtk-im.dpatch @@ -0,0 +1,17 @@ +#!/bin/sh /usr/share/dpatch/dpatch-run +## 30_disable_rpath_for_gtk-im.dpatch by Wen-Yen Chuang +##DP +##DP gtk-im/Makefile: Disable rpath. +##DP + +@DPATCH@ +--- gcin-1.3.4.orig/gtk-im/Makefile ++++ gcin-1.3.4/gtk-im/Makefile +@@ -25,7 +25,6 @@ + $(CC) -E $(CFLAGS) -o $@ $< + + im-gcin.so: $(OBJS) ../im-client/libgcin-im-client.so +- export LD_RUN_PATH=$(gcinlibdir) ;\ + $(CC) $(SO_FLAGS) $(OBJS) -L../im-client -lgcin-im-client -o $@ $(LDFLAGS) + rm -f core.* + --- gcin-1.3.4.orig/debian/gcin.xpm +++ gcin-1.3.4/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." +};