--- scim-hangul-0.3.1.orig/src/scim_hangul_imengine_setup.cpp +++ scim-hangul-0.3.1/src/scim_hangul_imengine_setup.cpp @@ -28,6 +28,8 @@ #define Uses_SCIM_CONFIG_BASE +#include + #include #ifdef HAVE_CONFIG_H --- scim-hangul-0.3.1.orig/debian/control +++ scim-hangul-0.3.1/debian/control @@ -0,0 +1,24 @@ +Source: scim-hangul +Section: utils +Priority: optional +Maintainer: Ubuntu Core developers +XSBC-Original-Maintainer: Yooseong Yang +Uploaders: Ming Hua +Build-Depends: debhelper (>= 4.0.1), autotools-dev, libgtk2.0-dev, libscim-dev (>= 1.4.6-1), libhangul-dev (>= 0.0.4) +Standards-Version: 3.7.2.2 + +Package: scim-hangul +Architecture: any +Depends: scim, ${shlibs:Depends} +Recommends: im-switch +Suggests: ttf-unfonts, ttf-alee +Description: Hangul Input Method Engine for SCIM + SCIM (Smart Common Input Method) is an input method (IM) platform. + . + Hangul Input Method Engine enables SCIM to input Hangul (Korean) + characters from the keyboard using the plugin modules and the data + files. + . + Homepage: http://www.scim-im.org/ + . + For details about SCIM, please see the description of package scim. --- scim-hangul-0.3.1.orig/debian/copyright +++ scim-hangul-0.3.1/debian/copyright @@ -0,0 +1,43 @@ +This package was debianized by Osamu Aoki on Fri, 22 Oct +2004 01:19:46 +0200. The current Debian maintainers are Yooseong Yang + and Ming Hua . + +Upstream Authors: + + James Su + CHOE Hwanjin + Cougar Liu + and many translators + +Home Page: http://www.scim-im.org/ + +The package was downloaded from http://prdownloads.sourceforge.net/scim/ + +Copyright and license: + + Copyright (C) 2002-2004, James Su + Copyright (C) 2004-2006, CHOE Hwanjin + Copyright (C) 2003-2005, Cougar Liu + + 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 version 2 of GNU General Public +License can be found in `/usr/share/common-licenses/GPL-2'. + +Debian packaging copyright and license: + + The Debian packaging is by Yooseong Yang and Ming Hua + , licensed under the same license + as scim-hangul, i.e., GPL v2 or later. --- scim-hangul-0.3.1.orig/debian/watch +++ scim-hangul-0.3.1/debian/watch @@ -0,0 +1,8 @@ +# debian/watch file for scim-hangul +# written by Ming Hua on 2007.05.27 + +# format version number +version=3 +# special URL parsed as qa.debian.org redirector for sourceforge +http://sf.net/scim/scim-hangul-([\d\.]+)\.tar\.gz debian uupdate + --- scim-hangul-0.3.1.orig/debian/compat +++ scim-hangul-0.3.1/debian/compat @@ -0,0 +1 @@ +4 --- scim-hangul-0.3.1.orig/debian/changelog +++ scim-hangul-0.3.1/debian/changelog @@ -0,0 +1,159 @@ +scim-hangul (0.3.1-1ubuntu1~gutsy1) gutsy-backports; urgency=low + + * Automated backport upload; no source changes. + + -- John Dong Mon, 19 Nov 2007 10:50:43 +0000 + +scim-hangul (0.3.1-1ubuntu1) hardy; urgency=low + + * Merge from Debian unstable. (LP: #155046) + + * Remaning changes: + - Fix build failure with g++-4.3 (in 0.2.2-2ubuntu2, by Matthias Klose). + - Local im-switch support (in 0.2.1-1ubuntu1 and 0.2.1-1ubuntu2, by Ming + Hua and ZhengPeng Hou). + - Set Ubuntu maintainer address and XSBC-Original-Maintainer. + * Dropped changes: + - Use "ln -sf" instead of "ln -s" in the build target of debian/rules (in + 0.2.2-2ubuntu3) -- also fixed in Debian. + + -- Ming Hua Sat, 03 Nov 2007 23:43:35 -0500 + +scim-hangul (0.3.1-1) unstable; urgency=low + + * New upstream release, thanks to Anho Ki's help. (Closes: #432926) + - Add build dependency libhangul-dev (>= 0.0.4). + * Rewrite debian/rules. + - Use the platform detection code recommended by autotools-dev. + - Remove binary-common target and separate binary-arch and binary-indep + targets completely. + - Fix Makefile (about disabling skim support) in config.status target + instead of clean target. + * Remove dpatch build dependency as there is no Debian patches anymore. + Also remove related targets in debian/rules. + * Update debian/copyright. + - Use the correct license notice. It should be GPL v2 or later, not GPL + v2 only. Also refer to the /usr/share/common-licenses/GPL-2 file for + license text instead of the /usr/share/common-licenses/GPL symlink. + - Add note about current Debian maintainers. + - Update dates in the upstream copyright notice. + - Add note about Debian packaging's copyright and license. + * Change co-maintainer Ming Hua's email address. + + -- Yooseong Yang Tue, 11 Sep 2007 11:55:31 -0500 + +scim-hangul (0.2.2-2ubuntu3) gutsy; urgency=low + + * Use "ln -sf" instead of "ln -s" in the build target of debian/rules, so + that we don't rely on clean target being run before building. This fixes + the build failure reported by autopkgtest. (LP: #143955) + + -- Ming Hua Thu, 27 Sep 2007 21:34:08 -0500 + +scim-hangul (0.2.2-2ubuntu2) gutsy; urgency=low + + * Fix build failure with g++-4.3. + + -- Matthias Klose Mon, 10 Sep 2007 16:12:45 +0200 + +scim-hangul (0.2.2-2ubuntu1) gutsy; urgency=low + + * Merge with Debian; remaining changes: + - Check for skim in the im-switch file and sets XIM_PROGRAM=skim if + it is installed (fixes the problem that skim is not started currently + automatically in kubuntu). + - Add im-switch support. (Ubuntu #33763) + - Write two im-switch configuration files (for GTK/Qt IM module and XIM) + and install them into /etc/X11/xinit/xinput.d/. + - Add postinst and prerm scripts to handle the alternatives system + used by im-switch. + - Add im-switch to Recommends. + + -- Matthias Klose Mon, 11 Jun 2007 18:17:30 +0200 + +scim-hangul (0.2.2-2) unstable; urgency=low + + * Adapt to the $(moduledir) change in scim 1.4.6. (Closes: #424012) + - Bump build dependency to libscim-dev (>= 1.4.6). + - Drop 10scim-plugin-module-install-dir dpatch, no longer needed. + - Use wildcard "*" instead of hardcoded "1.4.0" for scim module path in + debian/install and debian/rules, making it possible to binNMU when scim + module ABI changes. + * Add scim to dependency. All IM module packages should depend on scim, + because they would be useless without scim installed. Users only need to + install the IM module package they need and should get scim automatically. + * Update debian/watch to use the qa.debian.org redirect URL for + sourceforge.net. + * Upgarde to policy version 3.7.2.2, no actual changes needed. + + -- Yooseong Yang Sun, 10 Jun 2007 10:53:00 +0900 + +scim-hangul (0.2.2-1ubuntu2) feisty; urgency=low + + * Rebuild for ldbl128 change (powerpc, sparc). + * Set Ubuntu maintainer address. + + -- Matthias Klose Mon, 5 Mar 2007 01:26:27 +0100 + +scim-hangul (0.2.2-1ubuntu1) edgy; urgency=low + + * Merge from debian unstable. + + -- Scott James Remnant Mon, 10 Jul 2006 16:29:30 +0100 + +scim-hangul (0.2.2-1) unstable; urgency=low + + [ Ming Hua ] + * New upstream release. + * Build-depend on autotools-dev and use config.{guess,sub} from + autotools-dev package unconditionally. + + [ Yooseong Yang ] + * skim/admin/CVS removed in source tree. + + -- Yooseong Yang Thu, 1 Jun 2006 15:31:35 +0900 + +scim-hangul (0.2.1-1ubuntu2) dapper; urgency=low + + * check for skim in the im-switch file and sets XIM_PROGRAM=skim if + it is installed (fixes the problem that skim is not started currently + automatically in kubuntu) + + -- Hou ZhengPeng Thu, 13 Apr 2006 10:26:46 +0800 + +scim-hangul (0.2.1-1ubuntu1) dapper; urgency=low + + * Add im-switch support. (Ubuntu #33763) + - Write two im-switch configuration files (for GTK/Qt IM module and XIM) + and install them into /etc/X11/xinit/xinput.d/. + - Add postinst and prerm scripts to handle the alternatives system used by + im-switch. + - Add im-switch to Recommends. + + -- Ming Hua Sun, 5 Mar 2006 23:07:47 -0600 + +scim-hangul (0.2.1-1) unstable; urgency=low + + [ Ming Hua ] + * New upstream release. + * Update upstream homepage information. + * Add myself as an uploader with the maintainer's agreement. + + [ Yooseong Yang ] + * Add another korean truetype font in suggest field of control file. + + -- Yooseong Yang Sat, 31 Dec 2005 11:43:40 +0900 + +scim-hangul (0.1.2-2) unstable; urgency=low + + * Added patch by Ming Hua against SCIM 1.4 ABI + (closes: #336270) + + -- Yooseong Yang Fri, 4 Nov 2005 11:18:22 +0900 + +scim-hangul (0.1.2-1) unstable; urgency=low + + * Initial release, based on upstream version (0.1.2) (closes: #278084) + + -- Yooseong Yang Wed, 10 Nov 2004 09:30:22 +0900 + --- scim-hangul-0.3.1.orig/debian/rules +++ scim-hangul-0.3.1/debian/rules @@ -0,0 +1,101 @@ +#!/usr/bin/make -f +# +# debian/rules for scim-hangul package +# Copyright Ming Hua , 2006,2007 +# +# This file is distributed under the same license as scim-hangul. + +# uncomment this to turn on verbose mode +#export DH_VERBOSE = 1 + +# set the platform for configure script, especially useful for cross-compiling +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifeq ($(DEB_HOST_GNU_TYPE), $(DEB_BUILD_GNU_TYPE)) + CONFFLAGS += --build=$(DEB_BUILD_GNU_TYPE) +else + CONFFLAGS += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) +endif +# for more information, see /usr/share/doc/autotools-dev/README.Debian.gz + +# set compiler flags, enable warning and debug +CFLAGS += -W -g +CXXFLAGS += -W -g +# set optimization level +ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O + CXXFLAGS += -O +else + CFLAGS += -O0 + CXXFLAGS += -O0 +endif + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + # only run "make distclean" if a Makefile exists + [ ! -f Makefile ] || $(MAKE) distclean + # remove existent config.{guess,sub} as we use the ones from + # autotools-dev package + rm -f config.guess config.sub + dh_clean + + +config.status: + dh_testdir + # link config.{guess,sub} from autotools-dev package + ln -sf /usr/share/misc/config.guess config.guess + ln -sf /usr/share/misc/config.sub config.sub + rm -f config.cache + # run configure with all necessary definitions and options + ./configure \ + CFLAGS="$(CFLAGS)" \ + CXXFLAGS="$(CXXFLAGS)" \ + $(CONFFLAGS) \ + --prefix=/usr \ + --disable-static \ + --disable-skim-support + # fix broken Makefile when skim support is disabled + sed -i -e 's/ skim$$//' Makefile + +build: build-stamp +build-stamp: config.status + dh_testdir + dh_clean + $(MAKE) + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + # clean up unnecessary library files for modules + rm debian/tmp/usr/lib/scim-1.0/*/*/*.la + # distribute files to different binary packages + dh_install --sourcedir=debian/tmp --fail-missing + # Install im-switch configuration files + install -m 644 -D debian/im-switch/xim \ + debian/scim-hangul/etc/X11/xinit/xinput.d/scim-hangul_xim + install -m 644 -D debian/im-switch/scim \ + debian/scim-hangul/etc/X11/xinit/xinput.d/scim-hangul + touch $@ + +binary: binary-arch binary-indep + +binary-arch: build + dh_testdir + dh_testroot + dh_installchangelogs -a ChangeLog + dh_installdocs -a + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary-indep: build + # no architecture independent packages + +.SUFFIXES: +.PHONY: clean build binary binary-arch binary-indep + +# vim:textwidth=0: --- scim-hangul-0.3.1.orig/debian/docs +++ scim-hangul-0.3.1/debian/docs @@ -0,0 +1,2 @@ +README +NEWS --- scim-hangul-0.3.1.orig/debian/install +++ scim-hangul-0.3.1/debian/install @@ -0,0 +1,5 @@ +usr/lib/scim-1.0/*/IMEngine/hangul.so +usr/lib/scim-1.0/*/SetupUI/hangul-imengine-setup.so + +usr/share/locale/*/LC_MESSAGES/scim-hangul.mo +usr/share/scim/icons/scim-hangul.png --- scim-hangul-0.3.1.orig/debian/prerm +++ scim-hangul-0.3.1/debian/prerm @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +# Remove im-switch support for ko_KR +IM_SWITCH_SUPPORT_DIR="/etc/X11/xinit/xinput.d" +if [ "$1" = "remove" ] || [ "$1" = "upgrade" ]; then + update-alternatives --remove \ + xinput-ko_KR \ + "$IM_SWITCH_SUPPORT_DIR/scim-hangul" + update-alternatives --remove \ + xinput-ko_KR \ + "$IM_SWITCH_SUPPORT_DIR/scim-hangul_xim" +fi + +# Nothing should be added by debhelper, this is just to satisfy lintian +#DEBHELPER# --- scim-hangul-0.3.1.orig/debian/postinst +++ scim-hangul-0.3.1/debian/postinst @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +# Install im-switch support for ko_KR +IM_SWITCH_SUPPORT_DIR="/etc/X11/xinit/xinput.d" +if [ "$1" = "configure" ]; then + # The configuration using GTK and Qt IM module is installed at + # priority 45, the one using XIM is installed at priority 40. It is + # set below 50 because scim-hangul will be installed by default by + # Korean language pack, therefore it should have lower priority than + # other Korean input methods (such as nabi), which usually set + # priority to 50. + if [ -e "$IM_SWITCH_SUPPORT_DIR/scim-hangul" ]; then + update-alternatives --install \ + "$IM_SWITCH_SUPPORT_DIR/ko_KR" \ + xinput-ko_KR \ + "$IM_SWITCH_SUPPORT_DIR/scim-hangul" \ + 45 + fi + if [ -e "$IM_SWITCH_SUPPORT_DIR/scim-hangul_xim" ]; then + update-alternatives --install \ + "$IM_SWITCH_SUPPORT_DIR/ko_KR" \ + xinput-ko_KR \ + "$IM_SWITCH_SUPPORT_DIR/scim-hangul_xim" \ + 40 + fi +fi + +# Nothing should be added by debhelper, this is just to satisfy lintian +#DEBHELPER# --- scim-hangul-0.3.1.orig/debian/im-switch/scim +++ scim-hangul-0.3.1/debian/im-switch/scim @@ -0,0 +1,17 @@ +# im-switch configuration file for scim-hangul +# should be installed as /etc/X11/xinit/xinput.d/scim-hangul +# this configuration uses GTK IM module and Qt IM module provided by SCIM + +# exported enviroment variables +XMODIFIERS="@im=SCIM" +GTK_IM_MODULE="scim" +QT_IM_MODULE="scim" +# command and arguments to invoke scim +if [ -e /usr/bin/skim ]; then + XIM_PROGRAM=/usr/bin/skim +else + XIM_PROGRAM=/usr/bin/scim +fi +XIM_ARGS="--daemon" +# package dependency +DEPENDS="scim, scim-gtk2-immodule | scim-qtimm" --- scim-hangul-0.3.1.orig/debian/im-switch/xim +++ scim-hangul-0.3.1/debian/im-switch/xim @@ -0,0 +1,17 @@ +# im-switch configuration file for scim-hangul +# should be installed as /etc/X11/xinit/xinput.d/scim-hangul_scim +# this configuration uses XIM + +# exported enviroment variables +XMODIFIERS="@im=SCIM" +GTK_IM_MODULE="xim" +QT_IM_MODULE="xim" +# command and arguments to invoke scim +if [ -e /usr/bin/skim ]; then + XIM_PROGRAM=/usr/bin/skim +else + XIM_PROGRAM=/usr/bin/scim +fi +XIM_ARGS="--daemon" +# package dependency +DEPENDS="scim"