debian/0000755000000000000000000000000012222303147007162 5ustar debian/changelog0000644000000000000000000000151212222303045011030 0ustar ibus-libpinyin (1.6.91-1) unstable; urgency=low * Team upload [ Osamu Aoki ] * Imported Upstream version 1.6.91 [ YunQiang Su ] * Import new commit from upstream 0001-Update-the-symbol-of-the-ibus-indicator.patch 0002-fixes-lua-5.2-compile.patch * Build depends on liblua5.1-dev * Bump build-dep on libpinyin4-dev * Use gnome-common and autogen.sh work with dh-autoreconf -- YunQiang Su Mon, 30 Sep 2013 20:59:24 +0800 ibus-libpinyin (1.4.93-2) experimental; urgency=low * Team upload. * Fix libexecdir to match ibus-setup expectation. Closes: #712578 -- Osamu Aoki Wed, 19 Jun 2013 22:00:14 +0900 ibus-libpinyin (1.4.93-1) experimental; urgency=low * Initial release (Closes: #689963) -- Asias He Sun, 07 Oct 2012 13:47:16 +0800 debian/control0000644000000000000000000000162412222302544010570 0ustar Source: ibus-libpinyin Section: utils Priority: optional Maintainer: IME Packaging Team Uploaders: Asias He Build-Depends: debhelper (>= 8.0.0), dh-autoreconf, hardening-wrapper, libpinyin4-dev (>= 0.9.93), libibus-1.0-dev (>= 1.4.99.20120917), gettext, intltool, libtool, gnome-common, python, sqlite3, libsqlite3-dev, uuid-dev, liblua5.1-dev Standards-Version: 3.9.4 Homepage: https://github.com/libpinyin/ibus-libpinyin Vcs-Git: git://anonscm.debian.org/pkg-ime/ibus-libpinyin.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ime/ibus-libpinyin.git Package: ibus-libpinyin Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} Description: Intelligent Pinyin engine based on libpinyin for IBus It includes a Chinese Pinyin input method and a Chinese ZhuYin (Bopomofo) input method based on libpinyin for IBus. debian/rules0000755000000000000000000000033012222302070010230 0ustar #!/usr/bin/make -f export DEB_BUILD_HARDENING=1 %: dh $@ --with autoreconf,python2 override_dh_autoreconf: dh_autoreconf ./autogen.sh override_dh_auto_configure: dh_auto_configure -- --libexecdir=/usr/lib/ibus debian/patches/0000755000000000000000000000000012222301427010610 5ustar debian/patches/0002-fixes-lua-5.2-compile.patch0000644000000000000000000000224412222275651016050 0ustar From c42d0a870697e95301deabe0bcb770a68649c81d Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 31 Jul 2013 10:53:14 +0800 Subject: [PATCH 2/2] fixes lua 5.2 compile --- lua/lua-plugin-init.c | 8 ++++++++ lua/lua-plugin.c | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/lua/lua-plugin-init.c b/lua/lua-plugin-init.c index b607b2a..8e95286 100644 --- a/lua/lua-plugin-init.c +++ b/lua/lua-plugin-init.c @@ -26,6 +26,14 @@ #include "lua-plugin.h" +#if LUA_VERSION_NUM >= 502 +/* ugly hack for lua 5.2 */ + +#define lua_objlen lua_rawlen + +#endif + + static const luaL_Reg lualibs[] = { {"", luaopen_base}, {LUA_TABLIBNAME, luaopen_table}, diff --git a/lua/lua-plugin.c b/lua/lua-plugin.c index 9fd36fb..5ccb837 100644 --- a/lua/lua-plugin.c +++ b/lua/lua-plugin.c @@ -25,6 +25,15 @@ #include "lua-plugin.h" +#if LUA_VERSION_NUM >= 502 +/* ugly hack for lua 5.2 */ + +#define lua_open luaL_newstate + +#define lua_objlen lua_rawlen + +#endif + #define IBUS_ENGINE_PLUGIN_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), IBUS_TYPE_ENGINE_PLUGIN, IBusEnginePluginPrivate)) struct _IBusEnginePluginPrivate{ -- 1.8.4.rc3 debian/patches/series0000644000000000000000000000012412222301417012021 0ustar 0002-fixes-lua-5.2-compile.patch 0001-Update-the-symbol-of-the-ibus-indicator.patch debian/patches/0001-Update-the-symbol-of-the-ibus-indicator.patch0000644000000000000000000000503612222275644021623 0ustar From 9ef836117508d9c0c938f57a5ffa5ffca7eb2e7b Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 26 Jul 2013 13:03:44 +0800 Subject: [PATCH 1/2] Update the symbol of the ibus indicator --- src/PYPinyinProperties.cc | 14 +++++++++++++- src/PYProperty.h | 10 ++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/PYPinyinProperties.cc b/src/PYPinyinProperties.cc index 0a77163..66205de 100644 --- a/src/PYPinyinProperties.cc +++ b/src/PYPinyinProperties.cc @@ -26,6 +26,7 @@ namespace PY { #define _(text) (dgettext (GETTEXT_PACKAGE, text)) +#define N_(text) text PinyinProperties::PinyinProperties (Config & config) : m_config (config), @@ -33,7 +34,7 @@ PinyinProperties::PinyinProperties (Config & config) m_mode_full (m_config.initFull ()), m_mode_full_punct (m_config.initFullPunct ()), m_mode_simp (m_config.initSimpChinese ()), - m_prop_chinese ("mode.chinese", + m_prop_chinese ("InputMode", PROP_TYPE_NORMAL, StaticText (m_mode_chinese ? _("Chinese") : @@ -83,6 +84,11 @@ PinyinProperties::PinyinProperties (Config & config) "ibus-setup", StaticText (_("Preferences"))) { + if (m_mode_chinese) + m_prop_chinese.setSymbol(N_("中")); + else + m_prop_chinese.setSymbol(N_("英")); + m_props.append (m_prop_chinese); m_props.append (m_prop_full); m_props.append (m_prop_full_punct); @@ -98,6 +104,12 @@ PinyinProperties::toggleModeChinese (void) m_prop_chinese.setLabel (m_mode_chinese ? _("Chinese") : _("English")); + + if (m_mode_chinese) + m_prop_chinese.setSymbol(N_("中")); + else + m_prop_chinese.setSymbol(N_("英")); + m_prop_chinese.setIcon (m_mode_chinese ? PKGDATADIR"/icons/chinese.svg" : PKGDATADIR"/icons/english.svg"); diff --git a/src/PYProperty.h b/src/PYProperty.h index 70c0808..13b9340 100644 --- a/src/PYProperty.h +++ b/src/PYProperty.h @@ -55,6 +55,16 @@ public: ibus_property_set_icon (get (), icon); } + void setSymbol (IBusText *text) + { + ibus_property_set_symbol (get (), text); + } + + void setSymbol (const gchar *text) + { + setSymbol (Text (text)); + } + void setSensitive (gboolean sensitive) { ibus_property_set_sensitive (get (), sensitive); -- 1.8.4.rc3 debian/watch0000644000000000000000000000012512222272314010212 0ustar version=3 http://githubredir.debian.net/github/libpinyin/ibus-libpinyin/ (.*).tar.gz debian/source/0000755000000000000000000000000012222272314010463 5ustar debian/source/format0000644000000000000000000000001412222272314011671 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000001412222272314010031 0ustar NEWS README debian/copyright0000644000000000000000000000246512222272314011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ibus-libpinyin Source: https://github.com/libpinyin/ibus-libpinyin/downloads Files: * Copyright: 2012 Peng Huang 2012 BYVoid 2012 Peng Wu License: GPL-2.0 Files: ru.po Copyright: 2012 koterpillar License: GPL-2.0 Files: fr.po Copyright: 2012 Jiehong Ma License: GPL-2.0 Files: debian/* Copyright: 2012 Asias He License: GPL-2.0 License: GPL-2.0 This package 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 package 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, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/compat0000644000000000000000000000000212222272314010361 0ustar 8