--- skim-1.4.3.orig/SConstruct +++ skim-1.4.3/SConstruct @@ -118,9 +118,9 @@ env.AppendUnique(CCFLAGS = '-DNO_CONFIG_H') -env.KDEuse("environ rpath thread") +#env.KDEuse("environ rpath thread") -#env.KDEuse("environ rpath lang_qt thread nohelp") +env.KDEuse("environ lang_qt thread nohelp") ################################################################### # SCRIPTS FOR BUILDING THE TARGETS --- skim-1.4.3.orig/Makefile +++ skim-1.4.3/Makefile @@ -0,0 +1,21 @@ +all: + @./scons -Q + +# it is also possible to use +# @./scons -Q -j4 + +install: + @./scons -Q install + +clean: + @./scons -Q -c + +uninstall: + @./scons -Q -c install + +dist: + @./scons -Q dist + +distclean: + @./scons -Q -c + rm -rf cache/ --- skim-1.4.3.orig/scons +++ skim-1.4.3/scons @@ -0,0 +1,50 @@ +#! /usr/bin/env python +__version__="0.96.1" +__build__="D001" +__buildsys__="casablanca" +__date__="2004/08/23 09:55:29" +__developer__="knight" +import os +import os.path +import sys +script_dir=sys.path[0] +if script_dir in sys.path: + sys.path.remove(script_dir) +libs=[] +if os.environ.has_key("SCONS_LIB_DIR"): + libs.append(os.environ["SCONS_LIB_DIR"]) +local='scons-local-' + __version__ +if script_dir: + local=os.path.join(script_dir, local) +libs.append(local) +scons_version='scons-%s' % __version__ +prefs=[] +if script_dir=='bin': + prefs.append(os.getcwd()) +else: + if script_dir=='.' or script_dir=='': + script_dir=os.getcwd() + head, tail=os.path.split(script_dir) + if tail=="bin": + prefs.append(head) +head, tail=os.path.split(sys.prefix) +if tail=="usr": + prefs.append(sys.prefix) + prefs.append(os.path.join(sys.prefix, "local")) +elif tail=="local": + h, t=os.path.split(head) + if t=="usr": + prefs.append(sys.prefix) + prefs.append(head) + else: + prefs.append(sys.prefix) +else: + prefs.append(sys.prefix) +temp=map(lambda x: os.path.join(x, 'lib'), prefs) +temp.extend(map(lambda x: os.path.join(x, 'lib', 'python' + sys.version[:3], 'site-packages'), prefs)) +prefs=temp +libs.extend(map(lambda x: os.path.join(x, scons_version), prefs)) +libs.extend(map(lambda x: os.path.join(x, 'scons'), prefs)) +sys.path=libs + sys.path +import SCons.Script +SCons.Script.main() --- skim-1.4.3.orig/sconsign +++ skim-1.4.3/sconsign @@ -0,0 +1,223 @@ +#! /usr/bin/env python +__version__="0.96.1" +__build__="D001" +__buildsys__="casablanca" +__date__="2004/08/23 09:55:29" +__developer__="knight" +import os +import os.path +import sys +import time +script_dir=sys.path[0] +if script_dir in sys.path: + sys.path.remove(script_dir) +libs=[] +if os.environ.has_key("SCONS_LIB_DIR"): + libs.append(os.environ["SCONS_LIB_DIR"]) +local='scons-local-' + __version__ +if script_dir: + local=os.path.join(script_dir, local) +libs.append(local) +scons_version='scons-%s' % __version__ +prefs=[] +if sys.platform=='win32': + prefs.append(sys.prefix) + prefs.append(os.path.join(sys.prefix, 'Lib', 'site-packages')) +else: + if script_dir=='bin': + prefs.append(os.getcwd()) + else: + if script_dir=='.' or script_dir=='': + script_dir=os.getcwd() + head, tail=os.path.split(script_dir) + if tail=="bin": + prefs.append(head) + head, tail=os.path.split(sys.prefix) + if tail=="usr": + prefs.append(sys.prefix) + prefs.append(os.path.join(sys.prefix, "local")) + elif tail=="local": + h, t=os.path.split(head) + if t=="usr": + prefs.append(sys.prefix) + prefs.append(head) + else: + prefs.append(sys.prefix) + else: + prefs.append(sys.prefix) + temp=map(lambda x: os.path.join(x, 'lib'), prefs) + temp.extend(map(lambda x: os.path.join(x, + 'lib', + 'python' + sys.version[:3], + 'site-packages'), + prefs)) + prefs=temp +libs.extend(map(lambda x: os.path.join(x, scons_version), prefs)) +libs.extend(map(lambda x: os.path.join(x, 'scons'), prefs)) +sys.path=libs + sys.path +import cPickle +import imp +import string +import whichdb +import SCons.SConsign +def my_whichdb(filename): + try: + f=open(filename + ".dblite", "rb") + f.close() + return "SCons.dblite" + except IOError: + pass + return _orig_whichdb(filename) +_orig_whichdb=whichdb.whichdb +whichdb.whichdb=my_whichdb +def my_import(mname): + if '.' in mname: + i=string.rfind(mname, '.') + parent=my_import(mname[:i]) + fp, pathname, description=imp.find_module(mname[i+1:], + parent.__path__) + else: + fp, pathname, description=imp.find_module(mname) + return imp.load_module(mname, fp, pathname, description) +class Flagger: + default_value=1 + def __setitem__(self, item, value): + self.__dict__[item]=value + self.default_value=0 + def __getitem__(self, item): + return self.__dict__.get(item, self.default_value) +Do_Call=None +Print_Directories=[] +Print_Entries=[] +Print_Flags=Flagger() +Verbose=0 +Readable=0 +def default_mapper(entry, name): + try: + val=eval("entry."+name) + except: + val=None + return str(val) +def map_timestamp(entry, name): + try: + timestamp=entry.timestamp + except AttributeError: + timestamp=None + if Readable and timestamp: + return "'" + time.ctime(timestamp) + "'" + else: + return str(timestamp) +def map_bkids(entry, name): + try: + bkids=entry.bsources + entry.bdepends + entry.bimplicit + bkidsigs=entry.bsourcesigs + entry.bdependsigs + entry.bimplicitsigs + except AttributeError: + return None + result=[] + for i in xrange(len(bkids)): + result.append("%s: %s" % (bkids[i], bkidsigs[i])) + if result==[]: + return None + return string.join(result, "\n ") +map_field={ + 'timestamp' : map_timestamp, + 'bkids' : map_bkids, +} +map_name={ + 'implicit' : 'bkids', +} +def printfield(name, entry): + def field(name, verbose=Verbose, entry=entry): + if not Print_Flags[name]: + return None + fieldname=map_name.get(name, name) + mapper=map_field.get(fieldname, default_mapper) + val=mapper(entry, name) + if verbose: + val=name + ": " + val + return val + fieldlist=["timestamp", "bsig", "csig"] + outlist=[name+":"] + filter(None, map(field, fieldlist)) + sep=Verbose and "\n " or " " + print string.join(outlist, sep) + outlist=field("implicit", 0) + if outlist: + if Verbose: + print " implicit:" + print " " + outlist +def printentries(entries): + if Print_Entries: + for name in Print_Entries: + try: + entry=entries[name] + except KeyError: + sys.stderr.write("sconsign: no entry `%s' in `%s'\n" % (name, args[0])) + else: + printfield(name, entry) + else: + for name, e in entries.items(): + printfield(name, e) +class Do_SConsignDB: + def __init__(self, dbm_name, dbm): + self.dbm_name=dbm_name + self.dbm=dbm + def __call__(self, fname): + try: + db=self.dbm.open(fname, "r") + except (IOError, OSError), e: + print_e=e + try: + db=self.dbm.open(os.path.splitext(fname)[0], "r") + except (IOError, OSError): + try: + open(fname, "r") + except (IOError, OSError), e: + print_e=e + sys.stderr.write("sconsign: %s\n" % (print_e)) + return + except: + sys.stderr.write("sconsign: ignoring invalid `%s' file `%s'\n" % (self.dbm_name, fname)) + return + if Print_Directories: + for dir in Print_Directories: + try: + val=db[dir] + except KeyError: + sys.stderr.write("sconsign: no dir `%s' in `%s'\n" % (dir, args[0])) + else: + self.printentries(dir, val) + else: + keys=db.keys() + keys.sort() + for dir in keys: + self.printentries(dir, db[dir]) + def printentries(self, dir, val): + print '=== ' + dir + ':' + printentries(cPickle.loads(val)) +def Do_SConsignDir(name): + try: + fp=open(name, 'rb') + except (IOError, OSError), e: + sys.stderr.write("sconsign: %s\n" % (e)) + return + try: + sconsign=SCons.SConsign.Dir(fp) + except: + sys.stderr.write("sconsign: ignoring invalid .sconsign file `%s'\n" % name) + return + printentries(sconsign.entries) +import getopt +helpstr="""\ +Usage: sconsign [OPTIONS] FILE [...] +Options: + -b, --bsig Print build signature information. + -c, --csig Print content signature information. + -d DIR, --dir=DIR Print only info about DIR. + -e ENTRY, --entry=ENTRY Print only info about ENTRY. + -f FORMAT, --format=FORMAT FILE is in the specified FORMAT. + -h, --help Print this message and exit. + -i, --implicit Print implicit dependency information. + -r, --readable Print timestamps in human-readable form. + -t, --timestamp Print timestamp information. + -v, --verbose Verbose, describe each field. +""" --- skim-1.4.3.orig/debian/control +++ skim-1.4.3/debian/control @@ -0,0 +1,33 @@ +Source: skim +Section: utils +Priority: optional +Maintainer: William J Beksi +Build-Depends: debhelper (>= 4.0.0), scons (>= 0.96), dpatch, libscim-dev, kdelibs4-dev, libqt3-mt-dev, libart-2.0-dev, libidn11-dev +Standards-Version: 3.6.1 + +Package: skim +Architecture: any +Depends: ${shlibs:Depends}, im-switch +Suggests: scim-chewing, scim-chinese, scim-hangul, scim-m17n, + scim-tables-additional, scim-tables-ja, scim-tables-ko, + scim-tables-zh, scim-uim +Description: smart common input method platform for KDE + skim is KDE frontend for the SCIM input method platform. + It provides a GUI panel and a KConfig module. It has it's + own plugin system that supports on demand loadable actions. + +Package: libskim0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: skim runtime library + This package provides the necessary runtime libraries for skim. + For more details about skim, please see the skim package. + +Package: libskim-dev +Section: libdevel +Architecture: any +Depends: libskim0 (= ${Source-Version}) +Description: skim development library + This package provides the development library for skim. + It includes header files and static libraries. --- skim-1.4.3.orig/debian/rules +++ skim-1.4.3/debian/rules @@ -0,0 +1,85 @@ +#!/usr/bin/make -f + + +SCONS=scons --no-cache -Q + +# This is the debhelper compatibility version to use. +export DH_COMPAT=4 + +config.status: patch configure + dh_testdir + $(SCONS) configure prefix=$(DEB_DESTDIR)/usr + +build: build-stamp +build-stamp: config.status + $(SCONS) + touch build-stamp + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + + $(SCONS) -c && rm cache -fr + rm -rf scons-local-0.96.1 + rm -f bksys/*.pyc + rm -f po/*.gmo + rm config.log + rm -rf .sconf_temp + dh_clean + +patch: patch-stamp +patch-stamp: + dpatch apply-all + dpatch call-all -a=pkg-info >patch-stamp + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +install: install-stamp +install-stamp: build-stamp + $(SCONS) install DESTDIR=$(CURDIR)/debian/tmp + + # Prepare files for different packages to seperate directories. + dh_install --sourcedir=debian/tmp --fail-missing + chmod 644 $(CURDIR)/debian/skim/usr/share/servicetypes/* + chmod 644 $(CURDIR)/debian/skim/usr/share/services/skimconfiguredialog/* + chmod 644 $(CURDIR)/debian/skim/usr/share/icons/crystalsvg/32x32/apps/skim.png + touch install-stamp + +binary-common: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs ABOUT-NLS AUTHORS NEWS README TODO + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python + dh_makeshlibs -X usr/lib/kde3 -X usr/lib/scim-1.0/1.4.0 + dh_installdeb + dh_shlibdeps -L libskim0 -l debian/libskim0/usr/lib + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-common + +binary-arch: binary-common + --- skim-1.4.3.orig/debian/watch +++ skim-1.4.3/debian/watch @@ -0,0 +1,10 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +# Sourceforge respository +http://prdownloads.sourceforge.net/scim/skim-(.*)\.tar\.bz2 debian uupdate --- skim-1.4.3.orig/debian/changelog +++ skim-1.4.3/debian/changelog @@ -0,0 +1,31 @@ +skim (1.4.3-0ubuntu4) dapper; urgency=low + + * Make binary-arch rule depend on binary-common + + -- Jonathan Riddell Sun, 18 Dec 2005 01:04:49 +0000 + +skim (1.4.3-0ubuntu3) dapper; urgency=low + + * Add fake rule in debian/rules on binary-arch + + -- Jonathan Riddell Sat, 17 Dec 2005 22:21:10 +0000 + +skim (1.4.3-0ubuntu2) dapper; urgency=low + + * Fix the lintian warning message :executable-not-elf-or-script + + -- Hou ZhengPeng Mon, 21 Nov 2005 13:19:42 +0000 + +skim (1.4.3-0ubuntu1) breezy; urgency=low + + * New upstream released + * Change the package libskim1 to libskim0 + * Disable rpath in SConstruct + + -- Hou ZhengPeng Tue, 1 Nov 2005 13:39:03 +0000 + +skim (1.4.2-1) unstable; urgency=low + + * Initial release + + -- William J Beksi Sun, 5 June 2005 14:17:59 +0800 --- skim-1.4.3.orig/debian/libskim0.install +++ skim-1.4.3/debian/libskim0.install @@ -0,0 +1,3 @@ +usr/lib/libscim-kdeutils.so.* +usr/lib/libskim.so.* + --- skim-1.4.3.orig/debian/skim.manpages +++ skim-1.4.3/debian/skim.manpages @@ -0,0 +1 @@ +debian/skim.1 --- skim-1.4.3.orig/debian/skim.1 +++ skim-1.4.3/debian/skim.1 @@ -0,0 +1,96 @@ +.\"Generated by db2man.xsl. Don't modify this, modify the source. +.de Sh \" Subsection +.br +.if t .Sp +.ne 5 +.PP +\fB\\$1\fR +.PP +.. +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Ip \" List item +.br +.ie \\n(.$>=3 .ne \\$3 +.el .ne 3 +.IP "\\$1" \\$2 +.. +.TH "SKIM" 1 "June 5, 2005" "" "" +.SH NAME +skim \- smart common input method platform for KDE +.SH "SYNOPSIS" +.ad l +.hy 0 +.HP 5 +\fBskim\fR [\fB\fIoptions\fR\fR] [\fB\fIoption\-arguments\fR\fR] +.ad +.hy + +.SH "DESCRIPTION" + +.PP +\fBskim\fR is a KDE frontend for the SCIM input method platform\&. It provides a GUI panel and a KConfig module\&. It has it's own plugin system that supports on demand loadable actions\&. + +.SH "OPTIONS" + +.PP +The following options are provided by \fBskim\fR: + +.TP +\fB\-d \fR +Start as a daemon + +.TP +\fB\-l \fR +List all available \fBskim\fR plugins + +.TP +\fB\-c name \fR +name = the specified Config module + +.TP +\fB\-p enabled plugins\fR +enabled plugins = plugin1, plugin2, \&.\&.\&. + +.TP +\fB\-np disabled plugins\fR +disabled plugins = plugin1, plugin2, \&.\&.\&. + +.TP +\fB\-no\-stay\fR +Quit if there is no connected client + +.TP +\fB\-verbose level\fR +If level > 0, enable debug information + +.TP +\fB\-V\fR +Print out the current version of \fBskim\fR + +.TP +\fB\-o file\fR +file = name of debug output file + +.TP +\fB\-f\fR +Force start even if the scim panel socket cannot be established + +.SH "SEE ALSO" + +.PP +scim (1)\&. + +.SH "AUTHOR" + +.PP +\fBskim\fR was written by liucougar (liuspider) + +.PP +This manual page was written by William J Beksi for the Debian system (but may be used by others)\&. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation\&. + +.PP +On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL\&. + --- skim-1.4.3.orig/debian/copyright +++ skim-1.4.3/debian/copyright @@ -0,0 +1,16 @@ +This package was debianized by William J Beksi on +Sun, 5 Jun 2005 14:17:59 +0800. + +It was downloaded from http://prdownloads.sourceforge.net/scim + +Copyright Holder: liucougar (liuspider) + +License: + +This software is copyright (c) 2003-2005 by liucougar (liuspider), +liuspider@users.sourceforge.net + +You are free to distribute this software under the terms of the GNU +General Public License. +On Debian systems, the complete text of the GNU General Public License +can be found in the file '/usr/share/common-licenses/GPL'. --- skim-1.4.3.orig/debian/skim.install +++ skim-1.4.3/debian/skim.install @@ -0,0 +1,40 @@ +usr/bin/skim +usr/bin/scim-panel-kde + +usr/lib/kde3/*.so +usr/lib/scim-1.0/*/Config/*.so + +usr/share/applnk/Utilities/*.desktop + +usr/share/apps/skim/mainwindowui.rc +usr/share/apps/skim/pics/*.png +usr/share/apps/kicker/applets/*.desktop + +usr/share/autostart/*.desktop + +usr/share/config.kcfg/*.kcfg + +usr/share/doc/kde/HTML/de/skim/index.cache.bz2 +usr/share/doc/kde/HTML/de/skim/*.docbook +usr/share/doc/kde/HTML/de/skim/*.png +usr/share/doc/kde/HTML/en/skim/index.cache.bz2 +usr/share/doc/kde/HTML/en/skim/*.docbook +usr/share/doc/kde/HTML/en/skim/*.png + +usr/share/icons/crystalsvg/32x32/apps/*.png +usr/share/icons/crystalsvg/scalable/apps/*.svgz + +usr/share/locale/*/LC_MESSAGES/*.mo + +usr/share/services/skimconfiguredialog/*.desktop +usr/share/services/skimplugin_compmgrclient.desktop +usr/share/services/skimplugin_inputwindow.desktop +usr/share/services/skimplugin_mainwindow.desktop +usr/share/services/skimplugin_scim.desktop +usr/share/services/skimplugin_setupwindow.desktop +usr/share/services/skimplugin_systemtray.desktop +usr/share/services/skimsetupdir_frontend.desktop +usr/share/services/skimsetupdir_imengines.desktop +usr/share/services/skimsetupdir_panel.desktop + +usr/share/servicetypes/*.desktop --- skim-1.4.3.orig/debian/libskim-dev.install +++ skim-1.4.3/debian/libskim-dev.install @@ -0,0 +1,11 @@ +usr/lib/*.la +usr/lib/*.so + +usr/lib/kde3/*.la + +usr/lib/pkgconfig/*.pc + +usr/lib/scim-1.0/*/Config/kconfig.la + +usr/include/skim/*.h +usr/include/kde/skim/utils/*.h