--- unix/ibus/gen_mozc_xml.py.org 2010-11-06 10:55:42.821186000 +0900 +++ unix/ibus/gen_mozc_xml.py 2010-11-06 10:56:59.661189967 +0900 @@ -39,6 +39,7 @@ import optparse import sys +import os # Information to generate part of mozc.xml. %s will be replaced with # a product name, 'Mozc' or 'Google Japanese Input'. @@ -64,6 +65,24 @@ 'rank': '0', } +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 part of mozc.xml. IBUS_ENGINES_PROPS = {