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
commit8fb437c5ba207d35cec74a36c84e1c7df293a2e2 (patch)
tree7639ed7f642087ff9b1920e0c08811b19397d451 /app-i18n/mozc
parentBlock grub-0.9x versions only #398451 by Duncan. (diff)
downloadhistorical-8fb437c5ba207d35cec74a36c84e1c7df293a2e2.tar.gz
historical-8fb437c5ba207d35cec74a36c84e1c7df293a2e2.tar.bz2
historical-8fb437c5ba207d35cec74a36c84e1c7df293a2e2.zip
Rename app-i18n/ibus-mozc to app-i18n/mozc. #411689
Package-Manager: portage-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/Manifest30
-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, 635 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..0df022fa9cec
--- /dev/null
+++ b/app-i18n/mozc/Manifest
@@ -0,0 +1,30 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+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 4428 SHA256 f740cad9128b248c0b5fcfc88458a90adece50c6e997abe2119089976c653570 SHA512 b764d82b18de69c9b443d7a5370cbdba098bf608b772a150a8b8401762d9957dff1fb3a0cf9781f3f6307c2c137498d5d8c54646573b47ee31005c4dbdac75d7 WHIRLPOOL 37d2ac3bb80194253fad69bb0e383bff1f7b6dcb9646cec5f5ef00e64a680627f3e9c84e5c80026f0a5c63c41961507e309474ec99815290af59a20868609d54
+EBUILD mozc-1.5.1090.102.ebuild 4857 SHA256 ef8af0275906b1b7cbb87d1b145085560cd288217de5d32ab2d6d74885e224e4 SHA512 2082c22152d73f659f59550ef51929b699e302a387679ae845a2c3a505ad36e17d90e3ad833edbbbfd0de4204cb2fe9e26634afc829f81f95a616ff5a57dd2d7 WHIRLPOOL 9b35370343097897308459fbeea8eb75d96090d80b6ace31cc023762289b1c63fa3f1d331937c1d6c4a4bd8ddce2a0342f742e74807ee11705988306a6fb0225
+MISC ChangeLog 6298 SHA256 f56a2cc5e3b022966270c45681452df02847f51dddd2a5d3412db4a53d965880 SHA512 8057b6def48e912bc09537583537cca505f6f39517e9df2a09939426cec21ecac3343a93f44c506ef48d9a18dc23d9396b5e48e983d56ec10b2c8ef4f74c7c7b WHIRLPOOL 46b175bfe1640c6a22941a3c6f709dd609578fc585c38d9858fa66b83f59c8c70fe9614ff44f412b6ce8d5e68a2c66fff7107cc2bc97d84a3def53560f1bdb3a
+MISC metadata.xml 603 SHA256 e77d3254c53a7546df4dcde995975b713e7b7c1819e6361a98b8e0d1be183190 SHA512 5890a0bfd8e9a8584468a7bd8cd162e2135a6ca2f3c39a9a2da7bb3b1c64f77f18578241c4013da83dddf6af68817ebb02438d317996f8e712f4b6a17bf07c93 WHIRLPOOL 438f87eb3a1d199d931e0fadfad91e847f3f8e6f376e7b3d317ef2c77f278006078addee4162fd7816c81b75ca8a378bcec84e0f441c3bf73b89e95b6a38bcc3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQIcBAEBCAAGBQJQDMoIAAoJEDYO1FT4VRUUL5UP/jK/0lmpPZgeVCdDkwqXLpRl
+/q35+OP7DPrGLsgYf9XPvXtxGthGvCvFx+r/kZxt9AUNVC8PZSNkD8uiWpWmTEbR
+rheUaZvIvc/6Cs4bqodKXYVTrVThVXIySjnhAvEiOtXFIMZcnlZgOIDid0JFI6wd
+dhuIV5CD5S5wH37VZ6Ee5NPIe7kFGAAlx5ozojtf07Gf2K+JvnHGgD5YPYOam7I/
+i3g8XVajE519vZbxcIG6U3mal0YJtbChr3VS15dRVV9y6Ftd4LNBqUBi6ZoEteKF
+Co7OP9eOGZFK0zDde4U5q8lOuOVHEp6M84iUQLQCeuixHIR0uI4gPg2ZX2e24CLR
+x7z46hJVEPcr1vYDUt8mOoAIuQAl4dnF2mC4/LcY/UoumQ2OcDv5jyds1I8RgXJb
+YdK9ZLkJY7hjXp7BoRj5kykYngtYNDJlQllUQdx+bwFL4JsYQS+R5YJ0m+peXITJ
+Sa12Smu2FBpxANtr2dOPjdilthbSC+tD49KyWgb3QE+VS8QkkViYzkkZ0hPHHZI5
+vokvbGqJffayzXQDm2aNcGU7R01uLMz+Qi0eQEMYP1o9igRbDIAT3NtKOKABgn7h
+boKiHvthb3bD7+M7kM0j3bGsm2He8CaO/zNN4Gv8UGgkVuIy4XoVmC67JFGIFAK6
+FJxfKc5vgciwtMQzYYw5
+=vEjm
+-----END PGP SIGNATURE-----
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
+}