summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2012-07-23 03:50:47 +0000
committerNaohiro Aota <naota@gentoo.org>2012-07-23 03:50:47 +0000
commite769027fa5d2e04f09bfd940496120a0da41468d (patch)
treed4ea62b39bab9248951ed4deb3aacbae6e332073 /app-i18n/mozc
parentBlock grub-0.9x versions only #398451 by Duncan. (diff)
downloadgentoo-2-e769027fa5d2e04f09bfd940496120a0da41468d.tar.gz
gentoo-2-e769027fa5d2e04f09bfd940496120a0da41468d.tar.bz2
gentoo-2-e769027fa5d2e04f09bfd940496120a0da41468d.zip
Rename app-i18n/ibus-mozc to app-i18n/mozc. #411689
(Portage version: 2.2.0_alpha116/cvs/Linux x86_64)
Diffstat (limited to 'app-i18n/mozc')
-rw-r--r--app-i18n/mozc/ChangeLog185
-rw-r--r--app-i18n/mozc/Manifest10
-rw-r--r--app-i18n/mozc/files/50mozc-gentoo.el4
-rw-r--r--app-i18n/mozc/files/mozc-1.2.809.102-gentoo.patch14
-rw-r--r--app-i18n/mozc/files/mozc-1.3.975.102-ibus-1.4.patch54
-rw-r--r--app-i18n/mozc/metadata.xml13
-rw-r--r--app-i18n/mozc/mozc-1.3.975.102.ebuild159
-rw-r--r--app-i18n/mozc/mozc-1.5.1090.102.ebuild176
8 files changed, 615 insertions, 0 deletions
diff --git a/app-i18n/mozc/ChangeLog b/app-i18n/mozc/ChangeLog
new file mode 100644
index 000000000000..d8cedecef48e
--- /dev/null
+++ b/app-i18n/mozc/ChangeLog
@@ -0,0 +1,185 @@
+# ChangeLog for app-i18n/ibus-mozc
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/mozc/ChangeLog,v 1.1 2012/07/23 03:50:46 naota Exp $
+
+ 10 Jul 2012; Naohiro Aota <naota@gentoo.org> ibus-mozc-1.5.1090.102.ebuild:
+ Support MAKEOPTS=-j (without a number) #425144 Suggested-By: Tomoh K.
+
+*ibus-mozc-1.5.1090.102 (13 Jun 2012)
+
+ 13 Jun 2012; Naohiro Aota <naota@gentoo.org> +ibus-mozc-1.5.1090.102.ebuild,
+ metadata.xml:
+ Version bump. Patch by Jack Chen. #407581
+
+ 03 May 2012; Jeff Horelick <jdhore@gentoo.org> ibus-mozc-1.3.975.102.ebuild:
+ dev-util/pkgconfig -> virtual/pkgconfig
+
+ 19 Apr 2012; Naohiro Aota <naota@gentoo.org> ibus-mozc-1.3.975.102.ebuild:
+ Fix LICENSE. #411593
+
+ 12 Apr 2012; Naohiro Aota <naota@gentoo.org> ibus-mozc-1.3.975.102.ebuild:
+ Fix LICENSE specification. #411593
+
+ 09 Mar 2012; Samuli Suominen <ssuominen@gentoo.org>
+ ibus-mozc-1.3.975.102.ebuild, +files/ibus-mozc-1.3.975.102-ibus-1.4.patch:
+ Fix building with app-i18n/ibus >= 1.4.0 wrt #402397 by Tomoh K.
+
+ 09 Mar 2012; Samuli Suominen <ssuominen@gentoo.org>
+ -files/ibus-mozc-0.11.365.102-gentoo.patch, -ibus-mozc-1.0.558.102.ebuild,
+ -files/ibus-mozc-1.1.717.102-gcc46.patch,
+ -files/ibus-mozc-1.1.758.102-gentoo.patch, -ibus-mozc-1.1.773.102.ebuild,
+ -ibus-mozc-1.2.855.102.ebuild, -ibus-mozc-1.3.911.102.ebuild,
+ -ibus-mozc-1.3.931.102.ebuild:
+ old
+
+*ibus-mozc-1.3.975.102 (28 Jan 2012)
+
+ 28 Jan 2012; MATSUU Takuto <matsuu@gentoo.org> +ibus-mozc-1.3.975.102.ebuild:
+ Version bumped.
+
+*ibus-mozc-1.3.931.102 (23 Dec 2011)
+
+ 23 Dec 2011; MATSUU Takuto <matsuu@gentoo.org> +ibus-mozc-1.3.931.102.ebuild:
+ Version bumped.
+
+*ibus-mozc-1.3.911.102 (04 Dec 2011)
+
+ 04 Dec 2011; MATSUU Takuto <matsuu@gentoo.org> -ibus-mozc-1.2.809.102.ebuild,
+ -ibus-mozc-1.2.831.102.ebuild, +ibus-mozc-1.3.911.102.ebuild:
+ Version bumped. Removed old versions.
+
+ 12 Nov 2011; Naohiro Aota <naota@gentoo.org> ibus-mozc-1.0.558.102.ebuild,
+ ibus-mozc-1.1.773.102.ebuild, ibus-mozc-1.2.809.102.ebuild,
+ ibus-mozc-1.2.831.102.ebuild, ibus-mozc-1.2.855.102.ebuild:
+ Make USE=qt4 default
+
+ 11 Nov 2011; Mike Frysinger <vapier@gentoo.org> ibus-mozc-1.0.558.102.ebuild,
+ ibus-mozc-1.1.773.102.ebuild, ibus-mozc-1.2.809.102.ebuild,
+ ibus-mozc-1.2.831.102.ebuild, ibus-mozc-1.2.855.102.ebuild:
+ Update gtest depend after category migration #387155.
+
+*ibus-mozc-1.2.855.102 (03 Oct 2011)
+
+ 03 Oct 2011; MATSUU Takuto <matsuu@gentoo.org> +ibus-mozc-1.2.855.102.ebuild:
+ Version bumped.
+
+*ibus-mozc-1.2.831.102 (06 Sep 2011)
+
+ 06 Sep 2011; MATSUU Takuto <matsuu@gentoo.org> -ibus-mozc-1.1.626.102.ebuild,
+ -ibus-mozc-1.1.690.102.ebuild, -ibus-mozc-1.1.717.102.ebuild,
+ -ibus-mozc-1.1.717.102-r1.ebuild, -ibus-mozc-1.1.758.102.ebuild,
+ +ibus-mozc-1.2.831.102.ebuild:
+ Version bumped. Removed old versions.
+
+*ibus-mozc-1.2.809.102 (18 Aug 2011)
+
+ 18 Aug 2011; MATSUU Takuto <matsuu@gentoo.org> +ibus-mozc-1.2.809.102.ebuild,
+ +files/ibus-mozc-1.2.809.102-gentoo.patch:
+ Version bumped.
+
+*ibus-mozc-1.1.773.102 (20 Jul 2011)
+*ibus-mozc-1.1.758.102 (20 Jul 2011)
+
+ 20 Jul 2011; MATSUU Takuto <matsuu@gentoo.org> +ibus-mozc-1.1.758.102.ebuild,
+ +files/ibus-mozc-1.1.758.102-gentoo.patch, +ibus-mozc-1.1.773.102.ebuild:
+ Version bumped.
+
+*ibus-mozc-1.1.717.102-r1 (01 Jun 2011)
+
+ 01 Jun 2011; MATSUU Takuto <matsuu@gentoo.org>
+ +ibus-mozc-1.1.717.102-r1.ebuild, +files/ibus-mozc-1.1.717.102-gcc46.patch:
+ Fixed compile issue with gcc-4.6, bug #368713.
+
+*ibus-mozc-1.1.717.102 (24 May 2011)
+
+ 24 May 2011; MATSUU Takuto <matsuu@gentoo.org>
+ -ibus-mozc-0.13.523.102.ebuild, +ibus-mozc-1.1.717.102.ebuild:
+ Version bumped. Fixed dependency. Removed old version.
+
+*ibus-mozc-1.1.690.102 (17 May 2011)
+
+ 17 May 2011; MATSUU Takuto <matsuu@gentoo.org> +ibus-mozc-1.1.690.102.ebuild:
+ Version bumped. Add app-i18n/zinnia to dependency.
+
+ 21 Apr 2011; Thomas Kahle <tomka@gentoo.org> ibus-mozc-1.0.558.102.ebuild:
+ x86 stable per bug 360951
+
+ 28 Mar 2011; Christoph Mende <angelos@gentoo.org>
+ ibus-mozc-1.0.558.102.ebuild:
+ Stable on amd64 wrt bug #360951
+
+*ibus-mozc-1.1.626.102 (28 Mar 2011)
+
+ 28 Mar 2011; MATSUU Takuto <matsuu@gentoo.org> +ibus-mozc-1.1.626.102.ebuild:
+ Version bumped.
+
+*ibus-mozc-1.0.558.102 (31 Dec 2010)
+
+ 31 Dec 2010; MATSUU Takuto <matsuu@gentoo.org>
+ -ibus-mozc-0.12.434.102.ebuild, -ibus-mozc-0.13.464.102.ebuild,
+ -ibus-mozc-0.13.481.102.ebuild, -ibus-mozc-0.13.492.102.ebuild,
+ +ibus-mozc-1.0.558.102.ebuild:
+ Version bumped. Removed old versions.
+
+*ibus-mozc-0.13.523.102 (11 Nov 2010)
+
+ 11 Nov 2010; MATSUU Takuto <matsuu@gentoo.org>
+ +files/50ibus-mozc-gentoo.el, +ibus-mozc-0.13.523.102.ebuild:
+ Version bumped. Added emacs USE flag.
+
+*ibus-mozc-0.13.492.102 (29 Sep 2010)
+
+ 29 Sep 2010; MATSUU Takuto <matsuu@gentoo.org>
+ +ibus-mozc-0.13.492.102.ebuild:
+ Version bumped.
+
+*ibus-mozc-0.13.481.102 (27 Sep 2010)
+
+ 27 Sep 2010; MATSUU Takuto <matsuu@gentoo.org>
+ -ibus-mozc-0.11.365.102.ebuild, -ibus-mozc-0.11.383.102.ebuild,
+ -ibus-mozc-0.12.402.102.ebuild, -ibus-mozc-0.12.410.102.ebuild,
+ -ibus-mozc-0.12.422.102.ebuild, +ibus-mozc-0.13.481.102.ebuild:
+ Version bumped. Removed old versions.
+
+*ibus-mozc-0.13.464.102 (14 Sep 2010)
+
+ 14 Sep 2010; MATSUU Takuto <matsuu@gentoo.org>
+ +ibus-mozc-0.13.464.102.ebuild:
+ Version bumped.
+
+*ibus-mozc-0.12.434.102 (19 Aug 2010)
+
+ 19 Aug 2010; MATSUU Takuto <matsuu@gentoo.org>
+ +ibus-mozc-0.12.434.102.ebuild:
+ Version bumped.
+
+*ibus-mozc-0.12.422.102 (29 Jul 2010)
+
+ 29 Jul 2010; MATSUU Takuto <matsuu@gentoo.org>
+ +ibus-mozc-0.12.422.102.ebuild:
+ Version bumped.
+
+*ibus-mozc-0.12.410.102 (13 Jul 2010)
+
+ 13 Jul 2010; MATSUU Takuto <matsuu@gentoo.org>
+ +ibus-mozc-0.12.410.102.ebuild:
+ Version bumped.
+
+*ibus-mozc-0.12.402.102 (01 Jul 2010)
+
+ 01 Jul 2010; MATSUU Takuto <matsuu@gentoo.org>
+ +ibus-mozc-0.12.402.102.ebuild:
+ Version bumped.
+
+*ibus-mozc-0.11.383.102 (17 Jun 2010)
+
+ 17 Jun 2010; MATSUU Takuto <matsuu@gentoo.org>
+ +ibus-mozc-0.11.383.102.ebuild, metadata.xml:
+ Version bumped. Added scim USE flag.
+
+*ibus-mozc-0.11.365.102 (11 Jun 2010)
+
+ 11 Jun 2010; MATSUU Takuto <matsuu@gentoo.org>
+ +ibus-mozc-0.11.365.102.ebuild,
+ +files/ibus-mozc-0.11.365.102-gentoo.patch, +metadata.xml:
+ Initial import.
diff --git a/app-i18n/mozc/Manifest b/app-i18n/mozc/Manifest
new file mode 100644
index 000000000000..17e7fe5dd08b
--- /dev/null
+++ b/app-i18n/mozc/Manifest
@@ -0,0 +1,10 @@
+AUX 50mozc-gentoo.el 121 SHA256 833039439dea484a430e832df869b3af0b8d42bae63c4d6999e72c97d55d897b SHA512 2d67a6723374872717ab7132f02f4030f00ddecabb8a1fc20c9d69d64406dc2ba2a1109734378fae7b4718a8ae9601beff4b6f27cb43a280fa2e0f946da70685 WHIRLPOOL b9e5235177ee432509c9428b632a1148e8788c1bf9b6fe57bbc4f3f747a038008ef4752a1dfacb86a5be9a018504405e6a68053dd54d381af1fd9170ba9c6ed7
+AUX mozc-1.2.809.102-gentoo.patch 652 SHA256 2a06a2f9430a1e1407288d535c41b54b6cef1e9488b92e484f8d4cb86eeb0494 SHA512 2289f38bf9790b5c3cb9396a284afb31f8b1d083148cf2bbfdfc23897033acf4445b4e421161d412a89a58e031f39cdb6fa141b3dc5c8eb9cc68e56a4d19f179 WHIRLPOOL e0e9fccc93af82683c8285cf0d9d2495a9273c4b8a2dbf41bd0ca6eaf7ccd1a470a6c507cf1134d689808a48596c23f51ed9cfdecb3d13ddcb9921e1f3cdc33e
+AUX mozc-1.3.975.102-ibus-1.4.patch 2048 SHA256 4f205c990e2f447bf1bdea8a820f90361a69cf9883d1ea902d6ae097a18fb291 SHA512 8fea1256155f99ab31f7ab6e29e9244c4e112710c52c73fc78c48aa622dbca36906916ff877d3c9416ee4e2d5d8d33ca9be1af1430217599696efa18c3e63001 WHIRLPOOL 89c7b02a692b500ea31b79c34e2d3b403b315d0c9ac13fd73eaf1eb7ecb12a728e40574f3c6efc69fd86afbda3ba664c3a8eb2ec3f2305d2afb370d9a13de548
+DIST mozc-1.3.975.102.tar.bz2 55961505 SHA256 1ee57425c159bc0066645f086472f72aa16567fe5be272f35339c41e9a52d27a SHA512 dd26382f69820fd7a662c02a157dfcb382020cf15d0bcd613e9015d6142241c46c73755f28cdd23e2c07740dbddad65714474e84759c1313d6a1ffe84f3dc176 WHIRLPOOL b786924fa2c7ad5381ce35f565b320fb63cda4d03f35ce5b6878a4193adf52c22aebe06c953de8ba8f281a08ec2bf7583c26a684f94fa5c4ba73b5bec3a7f577
+DIST mozc-1.5.1090.102.tar.bz2 54911799 SHA256 b52c1879c4749041032578ec6c591d9741f521d54993070c050d09ae35bd2107 SHA512 9901e58af10c67025dd030bd70c3b7d6be34b1e868aefcc0705a18f1b3e76394e4a4b36811df2e598ee1647ecd1f24ddcfe87db889863a5095c31a5680833fec WHIRLPOOL d503fd0c7c2871288d887d834996a53952591eb25ed57a5ef789347a8bf8e39ecc54fb408d53daa3a9018848d52b28bc77c964e202a3479d582529ffc021b598
+DIST protobuf-2.4.1.tar.bz2 1440188 SHA256 cf8452347330834bbf9c65c2e68b5562ba10c95fa40d4f7ec0d2cb332674b0bf SHA512 52b0208c685e44126cb3915a74bde692ef91430f0407144b6c30b72a9f143b1ee4f1eea47a550184c689a1758b92582e7f26f0683c2d387205b957a69830f2f3 WHIRLPOOL e5462ff35f63413aff58640c24b9b561ac55749c489803ae009de21bf5d954a77516714361353ef02cfeb3c2d762620c89dc08a5fdee571e3a33b6f5c20edf6e
+EBUILD mozc-1.3.975.102.ebuild 4439 SHA256 c3642b9dfaff5f9245877c2d0d79c8009d8f3721cb1c25dc209b7c0e805f1b11 SHA512 e5a531d39068553432df749173c2ecea470d1e75e7639cf2b500553f43100a07acd11e585ad36b7f44e3b870c7e708f7d4fc3c3723771e501d1804dba961e7a0 WHIRLPOOL 18b9b7d11ff14daab5baed613da3e7af1e6b5994f563abef436b55c03cc289cdffc91119ddd6a9d02bdc13f845e3ac447db679ac55d167fbcdf595bf1c31579a
+EBUILD mozc-1.5.1090.102.ebuild 4867 SHA256 a3ce5ebc08a1d7a74a3eda241d1690da3fcbf510e9243539d654c1f4d5dda4eb SHA512 1ef0e9d58f5a4f3b3abd03d4c83bd5bb13f1eb9684b6383283b272c7db8e6accd93d9c7d659d8c1085ddd7c30408febe4549cddc5c950e84e9ed9105f328957f WHIRLPOOL b948a257ea3f99a8fa908b663f7b65c684e9ef54dc231aa283caa4d0964d93dc96a905f13624d9f1836c0c716dbc7b8ac3e4f694a8c140bd9866b165c4276e74
+MISC ChangeLog 6304 SHA256 8e12db508fc98e751705be24e6c9b5a55107b58d1cd2e79af67a98435ddc946b SHA512 7a6bb25aec13e4978a2975682fc1e6ea76c326717138f7914e51e652c29cd8eebac05f8fe9142b8ae34a7a82607f4594003d60dcc6a7487c7bf34c93e29e1f36 WHIRLPOOL 8226aa61fdec102c7b9ed5ffa4060ee9b080fd8bf461a54af198ded4863bdc3e9daab2c56fa3878c19789f6ad10ca23a348f2b85c7261cfe2364678bc560e6c1
+MISC metadata.xml 603 SHA256 e77d3254c53a7546df4dcde995975b713e7b7c1819e6361a98b8e0d1be183190 SHA512 5890a0bfd8e9a8584468a7bd8cd162e2135a6ca2f3c39a9a2da7bb3b1c64f77f18578241c4013da83dddf6af68817ebb02438d317996f8e712f4b6a17bf07c93 WHIRLPOOL 438f87eb3a1d199d931e0fadfad91e847f3f8e6f376e7b3d317ef2c77f278006078addee4162fd7816c81b75ca8a378bcec84e0f441c3bf73b89e95b6a38bcc3
diff --git a/app-i18n/mozc/files/50mozc-gentoo.el b/app-i18n/mozc/files/50mozc-gentoo.el
new file mode 100644
index 000000000000..121c62249eb7
--- /dev/null
+++ b/app-i18n/mozc/files/50mozc-gentoo.el
@@ -0,0 +1,4 @@
+;;; app-i18n/ibus-mozc site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'mozc-mode "mozc" nil t)
diff --git a/app-i18n/mozc/files/mozc-1.2.809.102-gentoo.patch b/app-i18n/mozc/files/mozc-1.2.809.102-gentoo.patch
new file mode 100644
index 000000000000..3e3ef1392932
--- /dev/null
+++ b/app-i18n/mozc/files/mozc-1.2.809.102-gentoo.patch
@@ -0,0 +1,14 @@
+diff -Naur mozc-1.2.809.102.orig/build_mozc.py mozc-1.2.809.102/build_mozc.py
+--- mozc-1.2.809.102.orig/build_mozc.py 2011-08-17 10:02:41.000000000 +0900
++++ mozc-1.2.809.102/build_mozc.py 2011-08-18 01:01:25.109704261 +0900
+@@ -654,9 +654,7 @@
+ if envvar in os.environ:
+ os.environ[envvar] = os.getenv(envvar)
+
+- build_args = ['-j%s' % options.jobs,
+- 'MAKE_JOBS=%s' % options.jobs,
+- 'BUILDTYPE=%s' % options.configuration]
++ build_args = ['BUILDTYPE=%s' % options.configuration]
+ build_args.append('builddir_name=%s' % GetBuildBaseName(options))
+
+ RunOrDie([make_command] + build_args + target_names)
diff --git a/app-i18n/mozc/files/mozc-1.3.975.102-ibus-1.4.patch b/app-i18n/mozc/files/mozc-1.3.975.102-ibus-1.4.patch
new file mode 100644
index 000000000000..ed697b6c8bd8
--- /dev/null
+++ b/app-i18n/mozc/files/mozc-1.3.975.102-ibus-1.4.patch
@@ -0,0 +1,54 @@
+http://bugs.gentoo.org/402397
+
+--- unix/ibus/mozc_engine.cc
++++ unix/ibus/mozc_engine.cc
+@@ -620,8 +620,15 @@
+
+ #ifndef OS_CHROMEOS
+ if (prop_mozc_tool_) {
++#if IBUS_CHECK_VERSION(1, 4, 0)
++ while ((prop = ibus_prop_list_get(
++ const_cast<IBusPropList*>(
++ ibus_property_get_sub_props(prop_mozc_tool_)), i++))) {
++ if (!g_strcmp0(property_name, ibus_property_get_key(prop))) {
++#else
+ while ((prop = ibus_prop_list_get(prop_mozc_tool_->sub_props, i++))) {
+- if (!g_strcmp0(property_name, prop->key)) {
++ if (!g_strcmp0(property_name, prop->key)) {
++#endif
+ const MozcEngineToolProperty *entry =
+ reinterpret_cast<const MozcEngineToolProperty*>(
+ g_object_get_data(G_OBJECT(prop), kGObjectDataKey));
+@@ -640,8 +647,15 @@
+ }
+
+ i = 0;
++#if IBUS_CHECK_VERSION(1, 4, 0)
++ while ((prop = ibus_prop_list_get(
++ const_cast<IBusPropList*>(
++ ibus_property_get_sub_props(prop_composition_mode_)), i++))) {
++ if (!g_strcmp0(property_name, ibus_property_get_key(prop))) {
++#else
+ while ((prop = ibus_prop_list_get(prop_composition_mode_->sub_props, i++))) {
+- if (!g_strcmp0(property_name, prop->key)) {
++ if (!g_strcmp0(property_name, prop->key)) {
++#endif
+ const MozcEngineProperty *entry =
+ reinterpret_cast<const MozcEngineProperty*>(
+ g_object_get_data(G_OBJECT(prop), kGObjectDataKey));
+@@ -1096,8 +1110,15 @@
+
+ size_t i = 0;
+ IBusProperty *prop = NULL;
++#if IBUS_CHECK_VERSION(1, 4, 0)
++ while ((prop = ibus_prop_list_get(
++ const_cast<IBusPropList*>(
++ ibus_property_get_sub_props(prop_composition_mode_)), i++))) {
++ if (!g_strcmp0(entry->key, ibus_property_get_key(prop))) {
++#else
+ while ((prop = ibus_prop_list_get(prop_composition_mode_->sub_props, i++))) {
+ if (!g_strcmp0(entry->key, prop->key)) {
++#endif
+ // Update the language panel.
+ ibus_property_set_icon(prop_composition_mode_,
+ GetIconPath(entry->icon).c_str());
diff --git a/app-i18n/mozc/metadata.xml b/app-i18n/mozc/metadata.xml
new file mode 100644
index 000000000000..99115c6964c0
--- /dev/null
+++ b/app-i18n/mozc/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+<longdescription lang="en">
+Mozc is a Japanese Input Method Editor (IME) designed for multi-platform such as Chromium OS, Windows, Mac and Linux. This open-source project originates from Google Japanese Input.
+</longdescription>
+<use>
+ <flag name='ibus'>Enable support for <pkg>app-i18n/ibus</pkg></flag>
+ <flag name='renderer'>Enable native candidate window.</flag>
+ <flag name='scim'>Enable support for <pkg>app-i18n/scim</pkg></flag>
+</use>
+</pkgmetadata>
diff --git a/app-i18n/mozc/mozc-1.3.975.102.ebuild b/app-i18n/mozc/mozc-1.3.975.102.ebuild
new file mode 100644
index 000000000000..60eceb287b70
--- /dev/null
+++ b/app-i18n/mozc/mozc-1.3.975.102.ebuild
@@ -0,0 +1,159 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/mozc/mozc-1.3.975.102.ebuild,v 1.1 2012/07/23 03:50:46 naota Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+inherit elisp-common eutils multilib python toolchain-funcs
+
+MY_P="${P/ibus-}"
+DESCRIPTION="The Mozc engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/mozc/"
+SRC_URI="http://mozc.googlecode.com/files/${MY_P}.tar.bz2"
+
+LICENSE="Apache-2.0 BSD Boost-1.0 ipadic public-domain unicode"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+#IUSE="emacs +ibus scim skk +qt4"
+IUSE="emacs +ibus scim +qt4"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/protobuf
+ net-misc/curl
+ sys-libs/zlib
+ emacs? ( virtual/emacs )
+ ibus? ( >=app-i18n/ibus-1.2 )
+ scim? ( app-i18n/scim )
+ qt4? (
+ x11-libs/qt-gui:4
+ app-i18n/zinnia
+ )"
+# chewing? ( dev-libs/libchewing )
+DEPEND="${RDEPEND}
+ dev-cpp/gtest
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${MY_P}"
+
+BUILDTYPE="${BUILDTYPE:-Release}"
+
+RESTRICT="test"
+
+SITEFILE=50${PN}-gentoo.el
+
+pkg_setup() {
+ python_set_active_version 2
+}
+
+src_prepare() {
+ sed -i -e "s:/usr/lib/mozc:${EPREFIX}/usr/$(get_libdir)/mozc:" base/util.cc || die
+ epatch \
+ "${FILESDIR}"/${PN}-1.2.809.102-gentoo.patch \
+ "${FILESDIR}"/${P}-ibus-1.4.patch
+}
+
+src_configure() {
+ local myconf="--channel_dev=0"
+ #use chewing && myconf="${myconf} --chewing"
+ if ! use qt4 ; then
+ myconf="${myconf} --noqt"
+ export GYP_DEFINES="use_libzinnia=0"
+ fi
+ "$(PYTHON)" build_mozc.py gyp ${myconf} || die "gyp failed"
+}
+
+src_compile() {
+ tc-export CC CXX AR AS RANLIB LD
+
+ local mytarget="server/server.gyp:mozc_server"
+ use emacs && mytarget="${mytarget} unix/emacs/emacs.gyp:mozc_emacs_helper"
+ use ibus && mytarget="${mytarget} unix/ibus/ibus.gyp:ibus_mozc"
+ use scim && mytarget="${mytarget} unix/scim/scim.gyp:scim_mozc unix/scim/scim.gyp:scim_mozc_setup"
+ #use skk && mytarget="${mytarget} chrome/skk/skk.gyp:skk"
+ if use qt4 ; then
+ export QTDIR="${EPREFIX}/usr"
+ mytarget="${mytarget} gui/gui.gyp:mozc_tool"
+ fi
+
+ "$(PYTHON)" build_mozc.py build_tools -c "${BUILDTYPE}" || die
+ "$(PYTHON)" build_mozc.py build -c "${BUILDTYPE}" ${mytarget} || die
+
+ if use emacs ; then
+ elisp-compile unix/emacs/*.el || die
+ fi
+}
+
+src_test() {
+ "$(PYTHON)" build_mozc.py runtests -c "${BUILDTYPE}" || die
+}
+
+src_install() {
+ if use emacs ; then
+ dobin "out_linux/${BUILDTYPE}/mozc_emacs_helper" || die
+ elisp-install ${PN} unix/emacs/*.{el,elc} || die
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${PN} || die
+ fi
+
+ if use ibus ; then
+ exeinto /usr/libexec || die
+ newexe "out_linux/${BUILDTYPE}/ibus_mozc" ibus-engine-mozc || die
+ insinto /usr/share/ibus/component || die
+ doins "out_linux/${BUILDTYPE}/obj/gen/unix/ibus/mozc.xml" || die
+ insinto /usr/share/ibus-mozc || die
+ (
+ cd data/images/unix
+ newins ime_product_icon_opensource-32.png product_icon.png || die
+ for f in ui-*
+ do
+ newins ${f} ${f/ui-} || die
+ done
+ )
+
+ fi
+
+ if use scim ; then
+ exeinto "$(pkg-config --variable=moduledir scim)/IMEngine/" || die
+ newexe "out_linux/${BUILDTYPE}/lib.target/libscim_mozc.so" mozc.so || die
+ exeinto "$(pkg-config --variable=moduledir scim)/SetupUI/" || die
+ newexe "out_linux/${BUILDTYPE}/lib.target/libscim_mozc_setup.so" mozc-setup.so || die
+ insinto "$(pkg-config --variable=icondir scim)" || die
+ (
+ cd data/images/unix
+ newins ime_product_icon_opensource-32.png scim-mozc.png || die
+ for f in ui-*
+ do
+ newins ${f} ${f/ui-/scim-mozc-} || die
+ done
+ )
+ fi
+
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_server" || die
+
+ if use qt4 ; then
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_tool" || die
+ fi
+}
+
+pkg_postinst() {
+ if use emacs ; then
+ elisp-site-regen
+ elog "You can use mozc-mode via LEIM (Library of Emacs Input Method)."
+ elog "Write the following settings into your init file (~/.emacs.d/init.el"
+ elog "or ~/.emacs) in order to use mozc-mode by default, or you can call"
+ elog "\`set-input-method' and set \"japanese-mozc\" anytime you have loaded"
+ elog "mozc.el"
+ elog
+ elog " (require 'mozc)"
+ elog " (set-language-environment \"Japanese\")"
+ elog " (setq default-input-method \"japanese-mozc\")"
+ elog
+ elog "Having the above settings, just type C-\\ which is bound to"
+ elog "\`toggle-input-method' by default."
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/app-i18n/mozc/mozc-1.5.1090.102.ebuild b/app-i18n/mozc/mozc-1.5.1090.102.ebuild
new file mode 100644
index 000000000000..4ae992d0c1a1
--- /dev/null
+++ b/app-i18n/mozc/mozc-1.5.1090.102.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/mozc/mozc-1.5.1090.102.ebuild,v 1.1 2012/07/23 03:50:46 naota Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+inherit elisp-common eutils multilib multiprocessing python toolchain-funcs
+
+DESCRIPTION="The Mozc engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/mozc/"
+
+PROTOBUF_VER="2.4.1"
+GMOCK_VER="403"
+MOZC_URL="http://mozc.googlecode.com/files/${P}.tar.bz2"
+PROTOBUF_URL="http://protobuf.googlecode.com/files/protobuf-${PROTOBUF_VER}.tar.bz2"
+SRC_URI="${MOZC_URL} ${PROTOBUF_URL}"
+
+LICENSE="Apache-2.0 BSD Boost-1.0 ipadic public-domain unicode"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="emacs +ibus scim +qt4 renderer"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/openssl
+ emacs? ( virtual/emacs )
+ ibus? ( >=app-i18n/ibus-1.4 )
+ renderer? ( x11-libs/gtk+:2 )
+ scim? ( app-i18n/scim )
+ qt4? (
+ x11-libs/qt-gui:4
+ app-i18n/zinnia
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${MY_P}"
+
+BUILDTYPE="${BUILDTYPE:-Release}"
+
+RESTRICT="test"
+
+SITEFILE=50${PN}-gentoo.el
+
+pkg_setup() {
+ python_set_active_version 2
+}
+
+src_unpack() {
+ unpack $(basename ${MOZC_URL})
+
+ cd "${S}"/protobuf
+ unpack $(basename ${PROTOBUF_URL})
+ mv protobuf-${PROTOBUF_VER} files
+}
+
+src_configure() {
+ local myconf="--channel_dev=0"
+ myconf+=" --server_dir=/usr/$(get_libdir)/mozc"
+
+ if ! use qt4 ; then
+ myconf+=" --noqt"
+ export GYP_DEFINES="use_libzinnia=0"
+ fi
+
+ if ! use renderer ; then
+ export GYP_DEFINES="${GYP_DEFINES} enable_gtk_renderer=0"
+ fi
+
+ "$(PYTHON)" build_mozc.py gyp ${myconf} || die "gyp failed"
+}
+
+src_compile() {
+ tc-export CC CXX AR AS RANLIB LD
+
+ local my_makeopts=$(makeopts_jobs)
+ # This is for a safety. -j without a number, makeopts_jobs returns 999.
+ local myjobs=-j${my_makeopts/999/1}
+
+ local mytarget="server/server.gyp:mozc_server"
+ use emacs && mytarget="${mytarget} unix/emacs/emacs.gyp:mozc_emacs_helper"
+ use ibus && mytarget="${mytarget} unix/ibus/ibus.gyp:ibus_mozc"
+ use scim && \
+ mytarget="${mytarget} unix/scim/scim.gyp:scim_mozc unix/scim/scim.gyp:scim_mozc_setup"
+ use renderer && mytarget="${mytarget} renderer/renderer.gyp:mozc_renderer"
+ if use qt4 ; then
+ export QTDIR="${EPREFIX}/usr"
+ mytarget="${mytarget} gui/gui.gyp:mozc_tool"
+ fi
+
+ "$(PYTHON)" build_mozc.py build_tools -c "${BUILDTYPE}" ${myjobs} || die
+ "$(PYTHON)" build_mozc.py build -c "${BUILDTYPE}" ${mytarget} ${myjobs} || die
+
+ if use emacs ; then
+ elisp-compile unix/emacs/*.el || die
+ fi
+}
+
+src_test() {
+ "$(PYTHON)" build_mozc.py runtests -c "${BUILDTYPE}" || die
+}
+
+src_install() {
+ if use emacs ; then
+ dobin "out_linux/${BUILDTYPE}/mozc_emacs_helper" || die
+ elisp-install ${PN} unix/emacs/*.{el,elc} || die
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${PN} || die
+ fi
+
+ if use ibus ; then
+ exeinto /usr/libexec || die
+ newexe "out_linux/${BUILDTYPE}/ibus_mozc" ibus-engine-mozc || die
+ insinto /usr/share/ibus/component || die
+ doins "out_linux/${BUILDTYPE}/obj/gen/unix/ibus/mozc.xml" || die
+ insinto /usr/share/ibus-mozc || die
+ (
+ cd data/images/unix
+ newins ime_product_icon_opensource-32.png product_icon.png || die
+ for f in ui-*
+ do
+ newins ${f} ${f/ui-} || die
+ done
+ )
+
+ fi
+
+ if use scim ; then
+ exeinto "$(pkg-config --variable=moduledir scim)/IMEngine/" || die
+ newexe "out_linux/${BUILDTYPE}/lib.target/libscim_mozc.so" mozc.so || die
+ exeinto "$(pkg-config --variable=moduledir scim)/SetupUI/" || die
+ newexe "out_linux/${BUILDTYPE}/lib.target/libscim_mozc_setup.so" mozc-setup.so || die
+ insinto "$(pkg-config --variable=icondir scim)" || die
+ (
+ cd data/images/unix
+ newins ime_product_icon_opensource-32.png scim-mozc.png || die
+ for f in ui-*
+ do
+ newins ${f} ${f/ui-/scim-mozc-} || die
+ done
+ )
+ fi
+
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_server" || die
+
+ if use qt4 ; then
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_tool" || die
+ fi
+
+ if use renderer ; then
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_renderer" || die
+ fi
+}
+
+pkg_postinst() {
+ if use emacs ; then
+ elisp-site-regen
+ elog "You can use mozc-mode via LEIM (Library of Emacs Input Method)."
+ elog "Write the following settings into your init file (~/.emacs.d/init.el"
+ elog "or ~/.emacs) in order to use mozc-mode by default, or you can call"
+ elog "\`set-input-method' and set \"japanese-mozc\" anytime you have loaded"
+ elog "mozc.el"
+ elog
+ elog " (require 'mozc)"
+ elog " (set-language-environment \"Japanese\")"
+ elog " (setq default-input-method \"japanese-mozc\")"
+ elog
+ elog "Having the above settings, just type C-\\ which is bound to"
+ elog "\`toggle-input-method' by default."
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}