ports/japanese/mozc-server/files/patch-unix_ibus_gen_mozc_xml.py
Daichi GOTO daa6d85477 Update mozc* to 1.3.931.102
- update to 1.3.931.102
  - added mozc-el knob
2011-12-24 14:15:31 +00:00

35 lines
1.1 KiB
Python

--- unix/ibus/gen_mozc_xml.py.orig 2011-12-24 13:17:12.914092543 +0900
+++ unix/ibus/gen_mozc_xml.py 2011-12-04 16:35:15.333604982 +0900
@@ -39,6 +39,7 @@
import optparse
import sys
+import os
# Information to generate <component> part of mozc.xml. %s will be replaced with
# a product name, 'Mozc' or 'Google Japanese Input'.
@@ -64,6 +65,24 @@
'rank': '80',
}
+if os.uname()[0] == 'FreeBSD':
+ IBUS_COMPONENT_PROPS = {
+ 'name': 'com.google.IBus.Mozc',
+ 'description': '%s Component',
+ 'exec': '@@LOCALBASE@@/libexec/ibus-engine-mozc --ibus',
+ 'version': '0.0.0.0',
+ 'author': 'Google Inc.',
+ 'license': 'New BSD',
+ 'homepage': 'http://code.google.com/p/mozc/',
+ 'textdomain': 'ibus-mozc',
+ }
+ IBUS_ENGINE_COMMON_PROPS = {
+ 'description': '%s (Japanese Input Method)',
+ 'language': 'ja',
+ 'icon': '@@LOCALBASE@@/share/ibus-mozc/icons/product_logo.png',
+ 'rank': '0',
+ }
+
# A dictionary from --platform to engines that are used in the platform. The
# information is used to generate <engines> part of mozc.xml.
IBUS_ENGINES_PROPS = {