summaryrefslogtreecommitdiff
path: root/japanese/mozc-server/files/patch-src-unix_ibus_gen_mozc_xml.py
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2016-05-16 17:43:22 +0000
committerHiroki Sato <hrs@FreeBSD.org>2016-05-16 17:43:22 +0000
commit196453bfe438e95d4554a395653f65fd213c6cff (patch)
tree2dbeadf4eb748c943569385298a0aa2bbe178035 /japanese/mozc-server/files/patch-src-unix_ibus_gen_mozc_xml.py
parentRemove expired ports: (diff)
Update japanese/mozc-server to 2.17.2322.102. Changes include:
- Use Github as the source. - Depend on devel/py-gyp and japanese/zinnia because bundled versions have been removed from the original distfile. - devel/py-gyp-devel has been updated to snapshot as of 20160504 and renamed with devel/py-gyp. Take maintainership[*]. - Install mozc.el.gz instead of mozc.el. Approved by: maintainer [*]
Diffstat (limited to 'japanese/mozc-server/files/patch-src-unix_ibus_gen_mozc_xml.py')
-rw-r--r--japanese/mozc-server/files/patch-src-unix_ibus_gen_mozc_xml.py39
1 files changed, 15 insertions, 24 deletions
diff --git a/japanese/mozc-server/files/patch-src-unix_ibus_gen_mozc_xml.py b/japanese/mozc-server/files/patch-src-unix_ibus_gen_mozc_xml.py
index 4b797fa5c7e8..eed3c1b84dec 100644
--- a/japanese/mozc-server/files/patch-src-unix_ibus_gen_mozc_xml.py
+++ b/japanese/mozc-server/files/patch-src-unix_ibus_gen_mozc_xml.py
@@ -1,24 +1,6 @@
---- src/unix/ibus/gen_mozc_xml.py.orig 2015-02-15 04:18:31.000000000 +0900
-+++ src/unix/ibus/gen_mozc_xml.py 2015-02-22 02:00:23.000000000 +0900
-@@ -67,7 +67,7 @@
- # Information to generate <engines> part of mozc.xml for IBus 1.5 or later.
- IBUS_1_5_ENGINE_COMMON_PROPS = {
- 'description': '%(product_name)s (Japanese Input Method)',
-- 'language': 'ja',
-+ 'language': 'jpn',
- 'icon': '%(ibus_mozc_icon_path)s',
- 'rank': '80',
- 'symbol': '&#x3042;',
-@@ -91,7 +91,7 @@
- # unix/ibus/mozc_engine.cc.
- 'name': ['mozc-jp'],
- 'longname': ['%(product_name)s'],
-- 'layout': ['default'],
-+ 'layout': ['jp'],
- },
- }
-
-@@ -129,6 +129,7 @@
+--- src/unix/ibus/gen_mozc_xml.py.orig 2016-03-13 11:22:55.000000000 +0900
++++ src/unix/ibus/gen_mozc_xml.py 2016-05-10 23:43:06.273350000 +0900
+@@ -90,6 +90,7 @@
engines: A dictionary from a property name to a list of property values of
engines. For example, {'name': ['mozc-jp', 'mozc', 'mozc-dv']}.
"""
@@ -26,7 +8,7 @@
print '<component>'
for key in component:
OutputXmlElement(param_dict, key, component[key])
-@@ -203,13 +204,19 @@
+@@ -164,13 +165,19 @@
parser.add_option('--server_dir', dest='server_dir', default='',
help='The absolute directory path to be installed the '
'server executable.')
@@ -45,5 +27,14 @@
- setup_arg.append(os.path.join(options.server_dir, 'mozc_tool'))
+ setup_arg.append(os.path.join(options.tool_dir, 'mozc_tool'))
setup_arg.append('--mode=config_dialog')
- if IsIBus15OrGreater(options):
- # A tentative workaround against IBus 1.5
+
+ param_dict = {
+@@ -181,7 +188,7 @@
+
+ engine_common_props = {
+ 'description': '%(product_name)s (Japanese Input Method)',
+- 'language': 'ja',
++ 'language': 'jpn',
+ 'icon': '%(ibus_mozc_icon_path)s',
+ 'rank': '80',
+ }