From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- app-i18n/ibus-pinyin/Manifest | 3 + .../ibus-pinyin-1.5.0-content-type-method.patch | 227 +++++++++++++++++++++ app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild | 68 ++++++ app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild | 65 ++++++ app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild | 61 ++++++ app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r2.ebuild | 51 +++++ app-i18n/ibus-pinyin/ibus-pinyin-1.5.0.ebuild | 58 ++++++ app-i18n/ibus-pinyin/metadata.xml | 17 ++ 8 files changed, 550 insertions(+) create mode 100644 app-i18n/ibus-pinyin/Manifest create mode 100644 app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch create mode 100644 app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild create mode 100644 app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild create mode 100644 app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild create mode 100644 app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r2.ebuild create mode 100644 app-i18n/ibus-pinyin/ibus-pinyin-1.5.0.ebuild create mode 100644 app-i18n/ibus-pinyin/metadata.xml (limited to 'app-i18n/ibus-pinyin') diff --git a/app-i18n/ibus-pinyin/Manifest b/app-i18n/ibus-pinyin/Manifest new file mode 100644 index 000000000000..a1252d28495d --- /dev/null +++ b/app-i18n/ibus-pinyin/Manifest @@ -0,0 +1,3 @@ +DIST ibus-pinyin-1.4.0.tar.gz 1813003 SHA256 4fcaef6ac0533945c7feb4cb36fc72c102aae63b3fb4cbf338cdcc816182c24a SHA512 3aecac95d5ccdc494b885901780ceb72353350ed6d317e8ac9f34251e7a9354c63ebc5666af46f2fc47b4c7adf69950cb0ddee0cbd32a3e2194910b4974591e4 WHIRLPOOL 6591943f83cec6442196a4007e231711ba2a3121757f7a50381e2278ea8b3b0cda39fac10c0d761addb7235fa6eba0c7bdb8769dea4bb64498e03517482468f1 +DIST ibus-pinyin-1.5.0.tar.gz 692516 SHA256 a85d458dcc51ea9fd65849e63002428b3fcb3b39adcbea9214b5cb4a4cbdbc96 SHA512 b0cd849ee3154543747dde8994eec9aed01d67e0d9be308a2f0230cf22f0281cd8fcabd9763b24238547a37e54400bcd8e541937767b93f005d04302f0c00241 WHIRLPOOL 80fd0ec7306d857870a0ceecce67166dd4d03529d5bdc404347dea6568c9b7271dbeb6feeebd8587bb5ab6856cec7f269fe5be9dbad5eb1b4297054eb9cb5ab2 +DIST pinyin-database-1.2.99.tar.bz2 9977983 SHA256 32c7d07b9f41e1dfc0f9008f54eca8e6cb367e7f2b19ac94c49754442694c321 SHA512 5a7248870407f7f92c418ada49a275062325f2eb33a7eb4b91492e4b706ae70ba931b04377a758ce429fa64cd22e8bee2ac4279d4f205bbce406248eda1decf7 WHIRLPOOL 07043adf9d83eb40b1a53409a31b3711f041e2b4dd5cf3f8c2034c129c31270fd37f2e53ecf2da5503562cf103ccb0a4487fa606928ac38a8775e90ff376ce3a diff --git a/app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch b/app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch new file mode 100644 index 000000000000..b7be95d9c89f --- /dev/null +++ b/app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch @@ -0,0 +1,227 @@ +From f1accaa9a18bd4a1c7234b40e16ad9889c25a461 Mon Sep 17 00:00:00 2001 +From: Peng Wu +Date: Wed, 6 Nov 2013 13:16:14 +0800 +Subject: [PATCH] support setContentType method + +--- + src/PYBopomofoEngine.cc | 22 ++++++++++++++++++++++ + src/PYBopomofoEngine.h | 7 +++++++ + src/PYEngine.cc | 21 +++++++++++++++++++++ + src/PYEngine.h | 3 +++ + src/PYPinyinEngine.cc | 22 ++++++++++++++++++++++ + src/PYPinyinEngine.h | 7 +++++++ + 6 files changed, 82 insertions(+) + +diff --git a/src/PYBopomofoEngine.cc b/src/PYBopomofoEngine.cc +index 581c4cf..4dfbc2c 100644 +--- a/src/PYBopomofoEngine.cc ++++ b/src/PYBopomofoEngine.cc +@@ -42,6 +42,10 @@ BopomofoEngine::BopomofoEngine (IBusEngine *engine) + { + gint i; + ++#if IBUS_CHECK_VERSION (1, 5, 4) ++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM; ++#endif ++ + /* create editors */ + m_editors[MODE_INIT].reset (new BopomofoEditor (m_props, BopomofoConfig::instance ())); + m_editors[MODE_PUNCT].reset (new PunctEditor (m_props, BopomofoConfig::instance ())); +@@ -72,6 +76,11 @@ BopomofoEngine::processKeyEvent (guint keyval, guint keycode, guint modifiers) + { + gboolean retval = FALSE; + ++#if IBUS_CHECK_VERSION (1, 5, 4) ++ if (IBUS_INPUT_PURPOSE_PASSWORD == m_input_purpose) ++ return retval; ++#endif ++ + /* check Shift + Release hotkey, + * and then ignore other Release key event */ + if (modifiers & IBUS_RELEASE_MASK) { +@@ -139,9 +148,22 @@ BopomofoEngine::focusIn (void) + void + BopomofoEngine::focusOut (void) + { ++ ++#if IBUS_CHECK_VERSION (1, 5, 4) ++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM; ++#endif ++ + reset (); + } + ++#if IBUS_CHECK_VERSION(1, 5, 4) ++void ++BopomofoEngine::setContentType (guint purpose, guint hints) ++{ ++ m_input_purpose = (IBusInputPurpose) purpose; ++} ++#endif ++ + void + BopomofoEngine::reset (void) + { +diff --git a/src/PYBopomofoEngine.h b/src/PYBopomofoEngine.h +index ce41ce8..14b6780 100644 +--- a/src/PYBopomofoEngine.h ++++ b/src/PYBopomofoEngine.h +@@ -36,6 +36,9 @@ public: + gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers); + void focusIn (void); + void focusOut (void); ++#if IBUS_CHECK_VERSION (1, 5, 4) ++ void setContentType (guint purpose, guint hints); ++#endif + void reset (void); + void enable (void); + void disable (void); +@@ -59,6 +62,10 @@ private: + private: + PinyinProperties m_props; + ++#if IBUS_CHECK_VERSION (1, 5, 4) ++ IBusInputPurpose m_input_purpose; ++#endif ++ + guint m_prev_pressed_key; + + enum { +diff --git a/src/PYEngine.cc b/src/PYEngine.cc +index d9fa04a..da047b2 100644 +--- a/src/PYEngine.cc ++++ b/src/PYEngine.cc +@@ -67,6 +67,12 @@ static gboolean ibus_pinyin_engine_process_key_event + guint modifiers); + static void ibus_pinyin_engine_focus_in (IBusEngine *engine); + static void ibus_pinyin_engine_focus_out (IBusEngine *engine); ++#if IBUS_CHECK_VERSION (1, 5, 4) ++static void ibus_pinyin_engine_set_content_type ++ (IBusEngine *engine, ++ guint purpose, ++ guint hints); ++#endif + static void ibus_pinyin_engine_reset (IBusEngine *engine); + static void ibus_pinyin_engine_enable (IBusEngine *engine); + static void ibus_pinyin_engine_disable (IBusEngine *engine); +@@ -123,6 +129,10 @@ ibus_pinyin_engine_class_init (IBusPinyinEngineClass *klass) + engine_class->focus_in = ibus_pinyin_engine_focus_in; + engine_class->focus_out = ibus_pinyin_engine_focus_out; + ++#if IBUS_CHECK_VERSION (1, 5, 4) ++ engine_class->set_content_type = ibus_pinyin_engine_set_content_type; ++#endif ++ + engine_class->page_up = ibus_pinyin_engine_page_up; + engine_class->page_down = ibus_pinyin_engine_page_down; + +@@ -182,6 +192,17 @@ ibus_pinyin_engine_process_key_event (IBusEngine *engine, + return pinyin->engine->processKeyEvent (keyval, keycode, modifiers); + } + ++#if IBUS_CHECK_VERSION (1, 5, 4) ++static void ++ibus_pinyin_engine_set_content_type (IBusEngine *engine, ++ guint purpose, ++ guint hints) ++{ ++ IBusPinyinEngine *pinyin = (IBusPinyinEngine *) engine; ++ return pinyin->engine->setContentType (purpose, hints); ++} ++#endif ++ + static void + ibus_pinyin_engine_property_activate (IBusEngine *engine, + const gchar *prop_name, +diff --git a/src/PYEngine.h b/src/PYEngine.h +index b74e6e8..22e1b79 100644 +--- a/src/PYEngine.h ++++ b/src/PYEngine.h +@@ -44,6 +44,9 @@ public: + virtual gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers) = 0; + virtual void focusIn (void) = 0; + virtual void focusOut (void) = 0; ++#if IBUS_CHECK_VERSION (1, 5, 4) ++ virtual void setContentType (guint purpose, guint hints) = 0; ++#endif + virtual void reset (void) = 0; + virtual void enable (void) = 0; + virtual void disable (void) = 0; +diff --git a/src/PYPinyinEngine.cc b/src/PYPinyinEngine.cc +index 7aea261..570187b 100644 +--- a/src/PYPinyinEngine.cc ++++ b/src/PYPinyinEngine.cc +@@ -45,6 +45,10 @@ PinyinEngine::PinyinEngine (IBusEngine *engine) + { + gint i; + ++#if IBUS_CHECK_VERSION (1, 5, 4) ++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM; ++#endif ++ + if (PinyinConfig::instance ().doublePinyin ()) + m_editors[MODE_INIT].reset (new DoublePinyinEditor (m_props, PinyinConfig::instance ())); + else +@@ -82,6 +86,11 @@ PinyinEngine::processKeyEvent (guint keyval, guint keycode, guint modifiers) + { + gboolean retval = FALSE; + ++#if IBUS_CHECK_VERSION (1, 5, 4) ++ if (IBUS_INPUT_PURPOSE_PASSWORD == m_input_purpose) ++ return retval; ++#endif ++ + /* check Shift + Release hotkey, + * and then ignore other Release key event */ + if (modifiers & IBUS_RELEASE_MASK) { +@@ -195,9 +204,22 @@ PinyinEngine::focusIn (void) + void + PinyinEngine::focusOut (void) + { ++ ++#if IBUS_CHECK_VERSION (1, 5, 4) ++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM; ++#endif ++ + reset (); + } + ++#if IBUS_CHECK_VERSION(1, 5, 4) ++void ++PinyinEngine::setContentType (guint purpose, guint hints) ++{ ++ m_input_purpose = (IBusInputPurpose) purpose; ++} ++#endif ++ + void + PinyinEngine::reset (void) + { +diff --git a/src/PYPinyinEngine.h b/src/PYPinyinEngine.h +index fcce73e..de50269 100644 +--- a/src/PYPinyinEngine.h ++++ b/src/PYPinyinEngine.h +@@ -35,6 +35,9 @@ public: + gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers); + void focusIn (void); + void focusOut (void); ++#if IBUS_CHECK_VERSION (1, 5, 4) ++ void setContentType (guint purpose, guint hints); ++#endif + void reset (void); + void enable (void); + void disable (void); +@@ -58,6 +61,10 @@ private: + private: + PinyinProperties m_props; + ++#if IBUS_CHECK_VERSION (1, 5, 4) ++ IBusInputPurpose m_input_purpose; ++#endif ++ + guint m_prev_pressed_key; + + enum { +-- +1.8.3.1 + diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild new file mode 100644 index 000000000000..20a62d50e183 --- /dev/null +++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +PYTHON_DEPEND="2:2.5" +PYTHON_USE_WITH="sqlite" + +inherit python + +PYDB_TAR="pinyin-database-1.2.99.tar.bz2" +DESCRIPTION="Chinese PinYin IMEngine for IBus Framework" +HOMEPAGE="http://code.google.com/p/ibus/" +SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz + http://ibus.googlecode.com/files/${PYDB_TAR}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="boost lua nls opencc" + +RDEPEND=">=app-i18n/ibus-1.4 + dev-python/pygtk + sys-apps/util-linux + boost? ( >=dev-libs/boost-1.39 ) + lua? ( + >=dev-lang/lua-5.1 + py-compile +} + +src_configure() { + econf \ + $(use_enable boost) \ + $(use_enable lua lua-extension) \ + $(use_enable nls) \ + $(use_enable opencc) \ + --enable-db-open-phrase + #--disable-db-android \ + #--disable-english-input-mode \ +} + +pkg_postinst() { + python_mod_optimize /usr/share/${PN} +} + +pkg_postrm() { + python_mod_cleanup /usr/share/${PN} +} diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild new file mode 100644 index 000000000000..ed1645f20f60 --- /dev/null +++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +PYTHON_DEPEND="2:2.5" +PYTHON_USE_WITH="sqlite" + +inherit python + +PYDB_TAR="pinyin-database-1.2.99.tar.bz2" +DESCRIPTION="Chinese PinYin IMEngine for IBus Framework" +HOMEPAGE="http://code.google.com/p/ibus/" +SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz + http://ibus.googlecode.com/files/${PYDB_TAR}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="boost lua nls opencc" + +RDEPEND=">=app-i18n/ibus-1.4 + sys-apps/util-linux + boost? ( >=dev-libs/boost-1.39 ) + lua? ( + >=dev-lang/lua-5.1 + py-compile +} + +src_configure() { + econf \ + $(use_enable boost) \ + $(use_enable lua lua-extension) \ + $(use_enable nls) \ + $(use_enable opencc) \ + --enable-db-open-phrase + #--disable-db-android \ + #--disable-english-input-mode \ +} + +pkg_postinst() { + python_mod_optimize /usr/share/${PN} +} + +pkg_postrm() { + python_mod_cleanup /usr/share/${PN} +} diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild new file mode 100644 index 000000000000..7df7141428c5 --- /dev/null +++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_DEPEND="2:2.5" +PYTHON_USE_WITH="sqlite" + +inherit python eutils + +DESCRIPTION="Chinese PinYin IMEngine for IBus Framework" +HOMEPAGE="http://code.google.com/p/ibus/" +SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="boost lua nls" + +RDEPEND=">=app-i18n/ibus-1.4 + dev-python/pygtk + app-i18n/pyzy + boost? ( >=dev-libs/boost-1.39 ) + lua? ( + >=dev-lang/lua-5.1 + + + + cjk + + dlan@gentoo.org + Yixun Lan + + +PinYin engine for IBus platform. It provides a Chinese PinYin input method. + + + Compile against dev-libs/boost libraries + Enable support for app-i18n/opencc + + + -- cgit v1.2.3-65-gdbad