summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/anthy-ss/Manifest1
-rw-r--r--app-i18n/anthy-ss/anthy-ss-9026.ebuild73
-rw-r--r--app-i18n/anthy-ss/files/50anthy-gentoo.el4
-rw-r--r--app-i18n/anthy-ss/metadata.xml18
-rw-r--r--app-i18n/anthy/Manifest1
-rw-r--r--app-i18n/anthy/anthy-9100h-r1.ebuild64
-rw-r--r--app-i18n/anthy/files/50anthy-gentoo.el5
-rw-r--r--app-i18n/anthy/files/anthy-9100h-anthy_context_t.patch12
-rw-r--r--app-i18n/anthy/metadata.xml21
-rw-r--r--app-i18n/atokx2/Manifest1
-rw-r--r--app-i18n/atokx2/atokx2-17.0-r2.ebuild101
-rw-r--r--app-i18n/atokx2/atokx2-17.0.ebuild87
-rw-r--r--app-i18n/atokx2/files/atokx2.initd20
-rw-r--r--app-i18n/atokx2/files/iiim.confd8
-rw-r--r--app-i18n/atokx2/files/iiim.initd20
-rw-r--r--app-i18n/atokx2/metadata.xml5
-rw-r--r--app-i18n/atokx3/Manifest3
-rw-r--r--app-i18n/atokx3/atokx3-3.0.0-r11.ebuild221
-rw-r--r--app-i18n/atokx3/files/xinput-iiimf11
-rw-r--r--app-i18n/atokx3/metadata.xml5
-rw-r--r--app-i18n/bidiv/Manifest3
-rw-r--r--app-i18n/bidiv/bidiv-1.5-r1.ebuild36
-rw-r--r--app-i18n/bidiv/bidiv-1.5_p4.ebuild48
-rw-r--r--app-i18n/bidiv/files/bidiv-1.5-fribidi.patch46
-rw-r--r--app-i18n/bidiv/metadata.xml5
-rw-r--r--app-i18n/canfep/Manifest2
-rw-r--r--app-i18n/canfep/canfep-1.0.ebuild39
-rw-r--r--app-i18n/canfep/metadata.xml5
-rw-r--r--app-i18n/canna/Manifest1
-rw-r--r--app-i18n/canna/canna-3.7_p3-r1.ebuild144
-rw-r--r--app-i18n/canna/canna-3.7_p3-r2.ebuild167
-rw-r--r--app-i18n/canna/files/canna-3.7-gentoo.diff.in144
-rw-r--r--app-i18n/canna/files/canna-3.7_p3-strip.patch142
-rw-r--r--app-i18n/canna/files/canna-3.7_p3.confd7
-rw-r--r--app-i18n/canna/files/canna-3.7_p3.initd42
-rw-r--r--app-i18n/canna/files/canna-kpdef-gentoo.diff18
-rw-r--r--app-i18n/canna/files/canna.confd8
-rw-r--r--app-i18n/canna/files/canna.hosts1
-rw-r--r--app-i18n/canna/files/canna.initd37
-rw-r--r--app-i18n/canna/files/update-canna-dics_dir36
-rw-r--r--app-i18n/canna/metadata.xml8
-rw-r--r--app-i18n/cstools/Manifest1
-rw-r--r--app-i18n/cstools/cstools-3.42.ebuild21
-rw-r--r--app-i18n/cstools/metadata.xml15
-rw-r--r--app-i18n/dbskkd-cdb/Manifest1
-rw-r--r--app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild44
-rw-r--r--app-i18n/dbskkd-cdb/files/dbskkd-cdb-2.00-gentoo.patch54
-rw-r--r--app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd10
-rw-r--r--app-i18n/dbskkd-cdb/metadata.xml8
-rw-r--r--app-i18n/enca/Manifest2
-rw-r--r--app-i18n/enca/enca-1.13-r3.ebuild52
-rw-r--r--app-i18n/enca/enca-1.14-r1.ebuild58
-rw-r--r--app-i18n/enca/enca-1.14-r2.ebuild59
-rw-r--r--app-i18n/enca/files/enca-1.14-automake-1.13.patch34
-rw-r--r--app-i18n/enca/files/enca-1.14-gcc4.8-avx-bug.patch15
-rw-r--r--app-i18n/enca/files/enca-remove-dirty-path-hack.patch19
-rw-r--r--app-i18n/enca/metadata.xml17
-rw-r--r--app-i18n/fbiterm/Manifest1
-rw-r--r--app-i18n/fbiterm/fbiterm-0.5-r2.ebuild63
-rw-r--r--app-i18n/fbiterm/files/fbiterm-0.5-cflags.patch13
-rw-r--r--app-i18n/fbiterm/files/fbiterm-0.5-r2-gentoo.diff28
-rw-r--r--app-i18n/fbiterm/metadata.xml5
-rw-r--r--app-i18n/fbterm/Manifest1
-rw-r--r--app-i18n/fbterm/fbterm-1.7-r1.ebuild57
-rw-r--r--app-i18n/fbterm/metadata.xml5
-rw-r--r--app-i18n/fcitx-anthy/Manifest2
-rw-r--r--app-i18n/fcitx-anthy/fcitx-anthy-0.1.1.ebuild29
-rw-r--r--app-i18n/fcitx-anthy/fcitx-anthy-0.2.1.ebuild29
-rw-r--r--app-i18n/fcitx-anthy/metadata.xml5
-rw-r--r--app-i18n/fcitx-chewing/Manifest2
-rw-r--r--app-i18n/fcitx-chewing/fcitx-chewing-0.2.0.ebuild20
-rw-r--r--app-i18n/fcitx-chewing/fcitx-chewing-0.2.2.ebuild20
-rw-r--r--app-i18n/fcitx-chewing/metadata.xml5
-rw-r--r--app-i18n/fcitx-cloudpinyin/Manifest2
-rw-r--r--app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.1.ebuild23
-rw-r--r--app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.4.ebuild23
-rw-r--r--app-i18n/fcitx-cloudpinyin/metadata.xml8
-rw-r--r--app-i18n/fcitx-configtool/Manifest2
-rw-r--r--app-i18n/fcitx-configtool/fcitx-configtool-0.4.6.ebuild34
-rw-r--r--app-i18n/fcitx-configtool/fcitx-configtool-0.4.8.ebuild33
-rw-r--r--app-i18n/fcitx-configtool/metadata.xml11
-rw-r--r--app-i18n/fcitx-hangul/Manifest2
-rw-r--r--app-i18n/fcitx-hangul/fcitx-hangul-0.2.1.ebuild29
-rw-r--r--app-i18n/fcitx-hangul/fcitx-hangul-0.3.0.ebuild29
-rw-r--r--app-i18n/fcitx-hangul/metadata.xml5
-rw-r--r--app-i18n/fcitx-libpinyin/Manifest2
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.2.1.ebuild30
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.1.ebuild39
-rw-r--r--app-i18n/fcitx-libpinyin/metadata.xml10
-rw-r--r--app-i18n/fcitx-qt5/Manifest1
-rw-r--r--app-i18n/fcitx-qt5/fcitx-qt5-1.0.2.ebuild23
-rw-r--r--app-i18n/fcitx-qt5/metadata.xml5
-rw-r--r--app-i18n/fcitx-rime/Manifest2
-rw-r--r--app-i18n/fcitx-rime/fcitx-rime-0.2.0.ebuild34
-rw-r--r--app-i18n/fcitx-rime/fcitx-rime-0.3.1.ebuild34
-rw-r--r--app-i18n/fcitx-rime/metadata.xml13
-rw-r--r--app-i18n/fcitx-sunpinyin/Manifest2
-rw-r--r--app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.0.ebuild34
-rw-r--r--app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.1.ebuild33
-rw-r--r--app-i18n/fcitx-sunpinyin/files/fcitx-sunpinyin-0.4.0-gcc46-compatible.patch27
-rw-r--r--app-i18n/fcitx-sunpinyin/metadata.xml8
-rw-r--r--app-i18n/fcitx-table-extra/Manifest3
-rw-r--r--app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.3.ebuild27
-rw-r--r--app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.6.ebuild27
-rw-r--r--app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.7.ebuild27
-rw-r--r--app-i18n/fcitx-table-extra/metadata.xml5
-rw-r--r--app-i18n/fcitx-unikey/Manifest2
-rw-r--r--app-i18n/fcitx-unikey/fcitx-unikey-0.2.0.ebuild39
-rw-r--r--app-i18n/fcitx-unikey/fcitx-unikey-0.2.4.ebuild34
-rw-r--r--app-i18n/fcitx-unikey/files/fcitx-unikey-0.2.0-cmake-qt-option.patch56
-rw-r--r--app-i18n/fcitx-unikey/metadata.xml5
-rw-r--r--app-i18n/fcitx/Manifest3
-rw-r--r--app-i18n/fcitx/fcitx-4.2.7.ebuild125
-rw-r--r--app-i18n/fcitx/fcitx-4.2.8.5.ebuild127
-rw-r--r--app-i18n/fcitx/fcitx-4.2.8.6.ebuild127
-rw-r--r--app-i18n/fcitx/files/fcitx-4.2.7-gcc46-compatible.patch43
-rw-r--r--app-i18n/fcitx/metadata.xml17
-rw-r--r--app-i18n/freewnn/Manifest2
-rw-r--r--app-i18n/freewnn/files/freewnn-1.1.1_alpha21-as-needed.patch11
-rw-r--r--app-i18n/freewnn/files/freewnn-1.1.1_alpha21-gcc45.patch13
-rw-r--r--app-i18n/freewnn/files/freewnn-1.1.1_alpha21-ldflags.patch26
-rw-r--r--app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch318
-rw-r--r--app-i18n/freewnn/files/freewnn.initd22
-rw-r--r--app-i18n/freewnn/freewnn-1.1.1_alpha21-r1.ebuild59
-rw-r--r--app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild61
-rw-r--r--app-i18n/freewnn/metadata.xml8
-rw-r--r--app-i18n/ibus-anthy/Manifest3
-rw-r--r--app-i18n/ibus-anthy/ibus-anthy-1.2.7-r1.ebuild62
-rw-r--r--app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild66
-rw-r--r--app-i18n/ibus-anthy/metadata.xml13
-rw-r--r--app-i18n/ibus-cangjie/Manifest4
-rw-r--r--app-i18n/ibus-cangjie/files/ibus-cangjie-gtk-unit-test.patch12
-rw-r--r--app-i18n/ibus-cangjie/ibus-cangjie-2.1.ebuild53
-rw-r--r--app-i18n/ibus-cangjie/ibus-cangjie-2.2.ebuild49
-rw-r--r--app-i18n/ibus-cangjie/ibus-cangjie-2.3.ebuild49
-rw-r--r--app-i18n/ibus-cangjie/ibus-cangjie-2.4.ebuild49
-rw-r--r--app-i18n/ibus-cangjie/metadata.xml14
-rw-r--r--app-i18n/ibus-chewing/Manifest1
-rw-r--r--app-i18n/ibus-chewing/ibus-chewing-1.4.7.ebuild43
-rw-r--r--app-i18n/ibus-chewing/metadata.xml9
-rw-r--r--app-i18n/ibus-fbterm/Manifest1
-rw-r--r--app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.1.patch23
-rw-r--r--app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.99.patch22
-rw-r--r--app-i18n/ibus-fbterm/ibus-fbterm-0.9.1.ebuild25
-rw-r--r--app-i18n/ibus-fbterm/metadata.xml5
-rw-r--r--app-i18n/ibus-handwrite/Manifest1
-rw-r--r--app-i18n/ibus-handwrite/files/ibus-handwrite-link.patch13
-rw-r--r--app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild41
-rw-r--r--app-i18n/ibus-handwrite/ibus-handwrite-2.1.4.ebuild34
-rw-r--r--app-i18n/ibus-handwrite/metadata.xml8
-rw-r--r--app-i18n/ibus-hangul/Manifest3
-rw-r--r--app-i18n/ibus-hangul/ibus-hangul-1.4.0.ebuild54
-rw-r--r--app-i18n/ibus-hangul/ibus-hangul-1.4.1.ebuild55
-rw-r--r--app-i18n/ibus-hangul/ibus-hangul-1.4.2-r1.ebuild44
-rw-r--r--app-i18n/ibus-hangul/ibus-hangul-1.4.2.ebuild55
-rw-r--r--app-i18n/ibus-hangul/metadata.xml9
-rw-r--r--app-i18n/ibus-libpinyin/Manifest1
-rw-r--r--app-i18n/ibus-libpinyin/ibus-libpinyin-1.6.92.ebuild44
-rw-r--r--app-i18n/ibus-libpinyin/metadata.xml20
-rw-r--r--app-i18n/ibus-m17n/Manifest3
-rw-r--r--app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild46
-rw-r--r--app-i18n/ibus-m17n/ibus-m17n-1.3.3.ebuild47
-rw-r--r--app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild47
-rw-r--r--app-i18n/ibus-m17n/metadata.xml18
-rw-r--r--app-i18n/ibus-pinyin/Manifest3
-rw-r--r--app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch227
-rw-r--r--app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild68
-rw-r--r--app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild65
-rw-r--r--app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild61
-rw-r--r--app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r2.ebuild51
-rw-r--r--app-i18n/ibus-pinyin/ibus-pinyin-1.5.0.ebuild58
-rw-r--r--app-i18n/ibus-pinyin/metadata.xml17
-rw-r--r--app-i18n/ibus-qt/Manifest3
-rw-r--r--app-i18n/ibus-qt/files/ibus-qt-1.2.0.20091217-doc.patch21
-rw-r--r--app-i18n/ibus-qt/files/ibus-qt-1.3-doc.patch11
-rw-r--r--app-i18n/ibus-qt/files/ibus-qt-1.3.1-display-unset.patch76
-rw-r--r--app-i18n/ibus-qt/files/ibus-qt-1.3.1-gold.patch15
-rw-r--r--app-i18n/ibus-qt/files/ibus-qt-1.3.1-qvariant.patch29
-rw-r--r--app-i18n/ibus-qt/ibus-qt-1.3.1.ebuild57
-rw-r--r--app-i18n/ibus-qt/ibus-qt-1.3.2.ebuild54
-rw-r--r--app-i18n/ibus-qt/ibus-qt-1.3.3.ebuild49
-rw-r--r--app-i18n/ibus-qt/metadata.xml12
-rw-r--r--app-i18n/ibus-rime/Manifest3
-rw-r--r--app-i18n/ibus-rime/ibus-rime-0.9.9.ebuild29
-rw-r--r--app-i18n/ibus-rime/ibus-rime-1.1.ebuild29
-rw-r--r--app-i18n/ibus-rime/ibus-rime-1.2.ebuild29
-rw-r--r--app-i18n/ibus-rime/metadata.xml17
-rw-r--r--app-i18n/ibus-skk/Manifest3
-rw-r--r--app-i18n/ibus-skk/ibus-skk-1.3.9.ebuild47
-rw-r--r--app-i18n/ibus-skk/ibus-skk-1.4.0.ebuild50
-rw-r--r--app-i18n/ibus-skk/ibus-skk-1.4.1-r1.ebuild30
-rw-r--r--app-i18n/ibus-skk/ibus-skk-1.4.1.ebuild50
-rw-r--r--app-i18n/ibus-skk/metadata.xml11
-rw-r--r--app-i18n/ibus-sunpinyin/Manifest2
-rw-r--r--app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.3-force-switch.patch33
-rw-r--r--app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.3-r2.ebuild33
-rw-r--r--app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r1.ebuild56
-rw-r--r--app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild50
-rw-r--r--app-i18n/ibus-sunpinyin/metadata.xml8
-rw-r--r--app-i18n/ibus-table-chinese/Manifest1
-rw-r--r--app-i18n/ibus-table-chinese/ibus-table-chinese-1.4.6.ebuild23
-rw-r--r--app-i18n/ibus-table-chinese/metadata.xml12
-rw-r--r--app-i18n/ibus-table-code/Manifest1
-rw-r--r--app-i18n/ibus-table-code/ibus-table-code-1.2.0.20100305.ebuild23
-rw-r--r--app-i18n/ibus-table-code/metadata.xml9
-rw-r--r--app-i18n/ibus-table-cyrillic/Manifest1
-rw-r--r--app-i18n/ibus-table-cyrillic/ibus-table-cyrillic-1.2.0.20100305.ebuild22
-rw-r--r--app-i18n/ibus-table-cyrillic/metadata.xml9
-rw-r--r--app-i18n/ibus-table-extraphrase/Manifest1
-rw-r--r--app-i18n/ibus-table-extraphrase/ibus-table-extraphrase-1.3.9.20110826.ebuild23
-rw-r--r--app-i18n/ibus-table-extraphrase/metadata.xml8
-rw-r--r--app-i18n/ibus-table-latin/Manifest1
-rw-r--r--app-i18n/ibus-table-latin/ibus-table-latin-1.2.0.20100305.ebuild22
-rw-r--r--app-i18n/ibus-table-latin/metadata.xml9
-rw-r--r--app-i18n/ibus-table-tv/Manifest1
-rw-r--r--app-i18n/ibus-table-tv/ibus-table-tv-1.2.0.20100305.ebuild22
-rw-r--r--app-i18n/ibus-table-tv/metadata.xml9
-rw-r--r--app-i18n/ibus-table/Manifest4
-rw-r--r--app-i18n/ibus-table/files/ibus-table-1.5.0-pycompile.patch13
-rw-r--r--app-i18n/ibus-table/ibus-table-1.2.0.20100111.ebuild46
-rw-r--r--app-i18n/ibus-table/ibus-table-1.3.0.20100621.ebuild54
-rw-r--r--app-i18n/ibus-table/ibus-table-1.3.9.20110827-r1.ebuild54
-rw-r--r--app-i18n/ibus-table/ibus-table-1.5.0-r1.ebuild42
-rw-r--r--app-i18n/ibus-table/ibus-table-1.5.0.ebuild56
-rw-r--r--app-i18n/ibus-table/metadata.xml9
-rw-r--r--app-i18n/ibus-tutcode/Manifest3
-rw-r--r--app-i18n/ibus-tutcode/ibus-tutcode-1.0.0.ebuild24
-rw-r--r--app-i18n/ibus-tutcode/ibus-tutcode-1.0.1.ebuild24
-rw-r--r--app-i18n/ibus-tutcode/ibus-tutcode-1.0.2-r1.ebuild34
-rw-r--r--app-i18n/ibus-tutcode/ibus-tutcode-1.0.2.ebuild27
-rw-r--r--app-i18n/ibus-tutcode/metadata.xml11
-rw-r--r--app-i18n/ibus-unikey/Manifest1
-rw-r--r--app-i18n/ibus-unikey/ibus-unikey-0.6.1.ebuild30
-rw-r--r--app-i18n/ibus-unikey/metadata.xml14
-rw-r--r--app-i18n/ibus/Manifest5
-rw-r--r--app-i18n/ibus/ibus-1.5.10.ebuild191
-rw-r--r--app-i18n/ibus/ibus-1.5.5.ebuild175
-rw-r--r--app-i18n/ibus/ibus-1.5.8-r1.ebuild175
-rw-r--r--app-i18n/ibus/ibus-1.5.9-r1.ebuild191
-rw-r--r--app-i18n/ibus/metadata.xml21
-rw-r--r--app-i18n/im-canna/Manifest1
-rw-r--r--app-i18n/im-canna/im-canna-0.3.2.2.ebuild31
-rw-r--r--app-i18n/im-canna/metadata.xml5
-rw-r--r--app-i18n/im-chooser/Manifest1
-rw-r--r--app-i18n/im-chooser/files/im-chooser-1.5.1-imchooserui.patch21
-rw-r--r--app-i18n/im-chooser/im-chooser-1.6.2.ebuild42
-rw-r--r--app-i18n/im-chooser/metadata.xml11
-rw-r--r--app-i18n/im-freewnn/Manifest1
-rw-r--r--app-i18n/im-freewnn/files/im-freewnn-0.0.2-as-needed.patch35
-rw-r--r--app-i18n/im-freewnn/files/im-freewnn-0.0.2-implicit-declaration.patch26
-rw-r--r--app-i18n/im-freewnn/files/im-freewnn-wnnrc-gentoo.diff20
-rw-r--r--app-i18n/im-freewnn/im-freewnn-0.0.2-r1.ebuild52
-rw-r--r--app-i18n/im-freewnn/metadata.xml5
-rw-r--r--app-i18n/im-ja/Manifest1
-rw-r--r--app-i18n/im-ja/files/im-ja-1.5-gentoo.patch30
-rw-r--r--app-i18n/im-ja/files/im-ja-1.5-pofiles.patch17
-rw-r--r--app-i18n/im-ja/files/im-ja-1.5-underlinking.patch18
-rw-r--r--app-i18n/im-ja/files/xinput-im-ja7
-rw-r--r--app-i18n/im-ja/im-ja-1.5-r3.ebuild97
-rw-r--r--app-i18n/im-ja/metadata.xml16
-rw-r--r--app-i18n/imhangul/Manifest6
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul22
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul2y2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul322
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul392
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul3f2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul3s2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul3y2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangulahn2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangulro2
-rw-r--r--app-i18n/imhangul/imhangul-0.9.16.ebuild79
-rw-r--r--app-i18n/imhangul/imhangul-2.0.0.ebuild87
-rw-r--r--app-i18n/imhangul/imhangul-2.1.0.ebuild76
-rw-r--r--app-i18n/imhangul/imhangul-3.0.0.ebuild64
-rw-r--r--app-i18n/imhangul/imhangul-3.1.0.ebuild65
-rw-r--r--app-i18n/imhangul/imhangul-3.1.1.ebuild64
-rw-r--r--app-i18n/imhangul/metadata.xml8
-rw-r--r--app-i18n/imsettings/Manifest2
-rw-r--r--app-i18n/imsettings/files/imsettings-1.5.0-gir-scanner.patch29
-rw-r--r--app-i18n/imsettings/imsettings-1.5.0.ebuild78
-rw-r--r--app-i18n/imsettings/imsettings-1.6.8.ebuild76
-rw-r--r--app-i18n/imsettings/metadata.xml10
-rw-r--r--app-i18n/jfbterm/Manifest1
-rw-r--r--app-i18n/jfbterm/files/jfbterm-0.4.7-gentoo.patch144
-rw-r--r--app-i18n/jfbterm/files/jfbterm-0.4.7-no-kernel-headers.patch17
-rw-r--r--app-i18n/jfbterm/files/jfbterm-0.4.7-sigchld-debian.patch22
-rw-r--r--app-i18n/jfbterm/jfbterm-0.4.7-r4.ebuild46
-rw-r--r--app-i18n/jfbterm/metadata.xml15
-rw-r--r--app-i18n/kakasi/Manifest1
-rw-r--r--app-i18n/kakasi/kakasi-2.3.4-r1.ebuild27
-rw-r--r--app-i18n/kakasi/metadata.xml5
-rw-r--r--app-i18n/kanjipad/Manifest1
-rw-r--r--app-i18n/kanjipad/files/kanjipad-2.0.0-cflags.patch19
-rw-r--r--app-i18n/kanjipad/files/kanjipad-2.0.0-underlinking.patch13
-rw-r--r--app-i18n/kanjipad/kanjipad-2.0.0.ebuild41
-rw-r--r--app-i18n/kanjipad/metadata.xml5
-rw-r--r--app-i18n/kcc/Manifest1
-rw-r--r--app-i18n/kcc/files/kcc-exit.diff10
-rw-r--r--app-i18n/kcc/files/kcc-gcc3-gentoo.diff47
-rw-r--r--app-i18n/kcc/kcc-1.0.ebuild35
-rw-r--r--app-i18n/kcc/metadata.xml5
-rw-r--r--app-i18n/kcm-fcitx/Manifest3
-rw-r--r--app-i18n/kcm-fcitx/kcm-fcitx-0.4.2.ebuild21
-rw-r--r--app-i18n/kcm-fcitx/kcm-fcitx-0.4.3.ebuild21
-rw-r--r--app-i18n/kcm-fcitx/kcm-fcitx-0.5.0.ebuild39
-rw-r--r--app-i18n/kcm-fcitx/metadata.xml5
-rw-r--r--app-i18n/kde-l10n-scripts/kde-l10n-scripts-9999.ebuild33
-rw-r--r--app-i18n/kde-l10n-scripts/metadata.xml12
-rw-r--r--app-i18n/kimera/Manifest1
-rw-r--r--app-i18n/kimera/files/kimera-2.11-underlinking.patch13
-rw-r--r--app-i18n/kimera/kimera-2.11-r1.ebuild34
-rw-r--r--app-i18n/kimera/metadata.xml15
-rw-r--r--app-i18n/kinput2/Manifest1
-rw-r--r--app-i18n/kinput2/files/kinput2-3.1-r1-gentoo.diff125
-rw-r--r--app-i18n/kinput2/files/xinput-kinput25
-rw-r--r--app-i18n/kinput2/kinput2-3.1-r1.ebuild60
-rw-r--r--app-i18n/kinput2/kinput2-3.1-r2.ebuild75
-rw-r--r--app-i18n/kinput2/metadata.xml5
-rw-r--r--app-i18n/libcangjie/Manifest2
-rw-r--r--app-i18n/libcangjie/libcangjie-1.1.ebuild17
-rw-r--r--app-i18n/libcangjie/libcangjie-1.3.ebuild17
-rw-r--r--app-i18n/libcangjie/metadata.xml14
-rw-r--r--app-i18n/libguess/Manifest2
-rw-r--r--app-i18n/libguess/libguess-1.1.ebuild35
-rw-r--r--app-i18n/libguess/libguess-1.2.ebuild35
-rw-r--r--app-i18n/libguess/metadata.xml8
-rw-r--r--app-i18n/libhangul/Manifest2
-rw-r--r--app-i18n/libhangul/libhangul-0.0.12.ebuild31
-rw-r--r--app-i18n/libhangul/libhangul-0.1.0.ebuild33
-rw-r--r--app-i18n/libhangul/metadata.xml8
-rw-r--r--app-i18n/libpinyin/Manifest4
-rw-r--r--app-i18n/libpinyin/libpinyin-0.8.0.ebuild34
-rw-r--r--app-i18n/libpinyin/libpinyin-1.0.0.ebuild36
-rw-r--r--app-i18n/libpinyin/metadata.xml9
-rw-r--r--app-i18n/librime/Manifest2
-rw-r--r--app-i18n/librime/files/librime-1.1-BOOST_NO_SCOPED_ENUMS.patch224
-rw-r--r--app-i18n/librime/files/librime-1.1-gcc53613.patch367
-rw-r--r--app-i18n/librime/files/librime-1.2-BOOST_NO_SCOPED_ENUMS.patch224
-rw-r--r--app-i18n/librime/files/librime-dictionary.patch13
-rw-r--r--app-i18n/librime/files/librime-test.patch42
-rw-r--r--app-i18n/librime/librime-0.9.9.ebuild43
-rw-r--r--app-i18n/librime/librime-1.2.ebuild46
-rw-r--r--app-i18n/librime/metadata.xml17
-rw-r--r--app-i18n/libskk/Manifest4
-rw-r--r--app-i18n/libskk/libskk-0.0.11.ebuild50
-rw-r--r--app-i18n/libskk/libskk-0.0.12.ebuild50
-rw-r--r--app-i18n/libskk/libskk-0.0.9.ebuild46
-rw-r--r--app-i18n/libskk/libskk-1.0.1.ebuild50
-rw-r--r--app-i18n/libskk/metadata.xml11
-rw-r--r--app-i18n/libtabe/Manifest3
-rw-r--r--app-i18n/libtabe/files/libtabe-0.2.6-fabs.patch24
-rw-r--r--app-i18n/libtabe/files/libtabe-0.2.6-ldflags.patch57
-rw-r--r--app-i18n/libtabe/libtabe-0.2.6.1.2.ebuild61
-rw-r--r--app-i18n/libtabe/libtabe-0.2.6.ebuild52
-rw-r--r--app-i18n/libtabe/metadata.xml5
-rw-r--r--app-i18n/libtomoe-gtk/Manifest1
-rw-r--r--app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-gucharmap2.patch253
-rw-r--r--app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-underlinking.patch15
-rw-r--r--app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r2.ebuild71
-rw-r--r--app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r3.ebuild76
-rw-r--r--app-i18n/libtomoe-gtk/metadata.xml11
-rw-r--r--app-i18n/man-pages-da/Manifest1
-rw-r--r--app-i18n/man-pages-da/man-pages-da-0.1.2.ebuild26
-rw-r--r--app-i18n/man-pages-da/metadata.xml7
-rw-r--r--app-i18n/man-pages-de/Manifest3
-rw-r--r--app-i18n/man-pages-de/files/man-pages-de-1.3-bzip2.patch19
-rw-r--r--app-i18n/man-pages-de/man-pages-de-1.7.ebuild50
-rw-r--r--app-i18n/man-pages-de/man-pages-de-1.8.ebuild50
-rw-r--r--app-i18n/man-pages-de/man-pages-de-1.9.ebuild50
-rw-r--r--app-i18n/man-pages-de/metadata.xml15
-rw-r--r--app-i18n/man-pages-fr/Manifest2
-rw-r--r--app-i18n/man-pages-fr/man-pages-fr-2.39.0.ebuild24
-rw-r--r--app-i18n/man-pages-fr/man-pages-fr-3.40.1.ebuild24
-rw-r--r--app-i18n/man-pages-fr/metadata.xml8
-rw-r--r--app-i18n/man-pages-it/Manifest1
-rw-r--r--app-i18n/man-pages-it/man-pages-it-2.80-r1.ebuild29
-rw-r--r--app-i18n/man-pages-it/metadata.xml7
-rw-r--r--app-i18n/man-pages-ja/Manifest3
-rw-r--r--app-i18n/man-pages-ja/man-pages-ja-20130215.ebuild93
-rw-r--r--app-i18n/man-pages-ja/man-pages-ja-20131015.ebuild95
-rw-r--r--app-i18n/man-pages-ja/metadata.xml12
-rw-r--r--app-i18n/man-pages-nl/Manifest1
-rw-r--r--app-i18n/man-pages-nl/man-pages-nl-0.13.3.ebuild21
-rw-r--r--app-i18n/man-pages-nl/metadata.xml7
-rw-r--r--app-i18n/man-pages-pl/Manifest1
-rw-r--r--app-i18n/man-pages-pl/man-pages-pl-0_pre20070628-r2.ebuild43
-rw-r--r--app-i18n/man-pages-pl/man-pages-pl-20070628-r2.ebuild43
-rw-r--r--app-i18n/man-pages-pl/metadata.xml7
-rw-r--r--app-i18n/man-pages-ro/Manifest1
-rw-r--r--app-i18n/man-pages-ro/man-pages-ro-0.2.ebuild23
-rw-r--r--app-i18n/man-pages-ro/metadata.xml8
-rw-r--r--app-i18n/man-pages-ru/Manifest3
-rw-r--r--app-i18n/man-pages-ru/man-pages-ru-3.54.2171.1790.20131020.ebuild28
-rw-r--r--app-i18n/man-pages-ru/man-pages-ru-3.56.2172.1866.20140202.ebuild28
-rw-r--r--app-i18n/man-pages-ru/man-pages-ru-3.71.2209.1992.20140911.ebuild28
-rw-r--r--app-i18n/man-pages-ru/metadata.xml16
-rw-r--r--app-i18n/man-pages-zh_CN/Manifest1
-rw-r--r--app-i18n/man-pages-zh_CN/man-pages-zh_CN-1.5.ebuild33
-rw-r--r--app-i18n/man-pages-zh_CN/metadata.xml7
-rw-r--r--app-i18n/mecab-skkserv/Manifest1
-rw-r--r--app-i18n/mecab-skkserv/files/mecab-skkserv11
-rw-r--r--app-i18n/mecab-skkserv/files/mecab-skkserv-0.03-cflags.patch15
-rw-r--r--app-i18n/mecab-skkserv/files/mecab-skkserv-0.03-dicrc.patch9
-rw-r--r--app-i18n/mecab-skkserv/mecab-skkserv-0.03.ebuild41
-rw-r--r--app-i18n/mecab-skkserv/metadata.xml5
-rw-r--r--app-i18n/metadata.xml34
-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.10.1390.102-drop-Werror.patch12
-rw-r--r--app-i18n/mozc/files/mozc-1.13.1651.102-gtk-renderer.patch13
-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/files/mozc-ibus-1.5.4.patch299
-rw-r--r--app-i18n/mozc/metadata.xml16
-rw-r--r--app-i18n/mozc/mozc-1.10.1390.102-r1.ebuild176
-rw-r--r--app-i18n/mozc/mozc-1.13.1651.102.ebuild181
-rw-r--r--app-i18n/mozc/mozc-2.16.2037.102.ebuild230
-rw-r--r--app-i18n/multiskkserv/Manifest1
-rw-r--r--app-i18n/multiskkserv/files/multiskkserv-20100128-cdb.patch45
-rw-r--r--app-i18n/multiskkserv/files/multiskkserv.conf15
-rw-r--r--app-i18n/multiskkserv/files/multiskkserv.initd31
-rw-r--r--app-i18n/multiskkserv/metadata.xml5
-rw-r--r--app-i18n/multiskkserv/multiskkserv-20100128.ebuild46
-rw-r--r--app-i18n/nabi/Manifest6
-rw-r--r--app-i18n/nabi/files/nabi-0.15-asneeded.patch12
-rw-r--r--app-i18n/nabi/files/nabi-0.99.3-asneeded.patch13
-rw-r--r--app-i18n/nabi/files/xinput-nabi6
-rw-r--r--app-i18n/nabi/metadata.xml5
-rw-r--r--app-i18n/nabi/nabi-0.15.ebuild38
-rw-r--r--app-i18n/nabi/nabi-0.17.ebuild39
-rw-r--r--app-i18n/nabi/nabi-0.99.10.ebuild54
-rw-r--r--app-i18n/nabi/nabi-0.99.11.ebuild53
-rw-r--r--app-i18n/nabi/nabi-0.99.3.ebuild50
-rw-r--r--app-i18n/nabi/nabi-0.99.8.ebuild53
-rw-r--r--app-i18n/nkf/Manifest3
-rw-r--r--app-i18n/nkf/files/nkf-2.1.3-strip.patch9
-rw-r--r--app-i18n/nkf/metadata.xml8
-rw-r--r--app-i18n/nkf/nkf-2.1.3-r1.ebuild74
-rw-r--r--app-i18n/nkf/nkf-2.1.3.ebuild69
-rw-r--r--app-i18n/opencc/Manifest3
-rw-r--r--app-i18n/opencc/files/opencc-0.3.0_pre20120819-cmake-libdir.patch17
-rw-r--r--app-i18n/opencc/metadata.xml10
-rw-r--r--app-i18n/opencc/opencc-0.2.0.ebuild41
-rw-r--r--app-i18n/opencc/opencc-0.3.0_pre20120819-r1.ebuild42
-rw-r--r--app-i18n/opencc/opencc-0.3.0_pre20120819.ebuild41
-rw-r--r--app-i18n/opencc/opencc-0.4.3.ebuild36
-rw-r--r--app-i18n/poedit/Manifest2
-rw-r--r--app-i18n/poedit/files/poedit-1.5.5-wx28.patch22
-rw-r--r--app-i18n/poedit/metadata.xml8
-rw-r--r--app-i18n/poedit/poedit-1.5.5.ebuild47
-rw-r--r--app-i18n/poedit/poedit-1.8.3.ebuild71
-rw-r--r--app-i18n/pology/Manifest2
-rw-r--r--app-i18n/pology/metadata.xml5
-rw-r--r--app-i18n/pology/pology-0.11-r1.ebuild64
-rw-r--r--app-i18n/pology/pology-0.12.ebuild61
-rw-r--r--app-i18n/pology/pology-9999.ebuild61
-rw-r--r--app-i18n/pyzy/Manifest2
-rw-r--r--app-i18n/pyzy/files/pyzy-dont-download-dictionary-file.patch15
-rw-r--r--app-i18n/pyzy/metadata.xml17
-rw-r--r--app-i18n/pyzy/pyzy-0.1.0-r1.ebuild52
-rw-r--r--app-i18n/pyzy/pyzy-0.1.0.ebuild51
-rw-r--r--app-i18n/qimhangul/Manifest1
-rw-r--r--app-i18n/qimhangul/metadata.xml5
-rw-r--r--app-i18n/qimhangul/qimhangul-0.2.0.ebuild18
-rw-r--r--app-i18n/qkc/Manifest1
-rw-r--r--app-i18n/qkc/metadata.xml5
-rw-r--r--app-i18n/qkc/qkc-1.00.ebuild35
-rw-r--r--app-i18n/rime-data/Manifest3
-rw-r--r--app-i18n/rime-data/metadata.xml17
-rw-r--r--app-i18n/rime-data/rime-data-0.22.ebuild20
-rw-r--r--app-i18n/rime-data/rime-data-0.32.ebuild20
-rw-r--r--app-i18n/rime-data/rime-data-0.35.ebuild20
-rw-r--r--app-i18n/scim-anthy/Manifest3
-rw-r--r--app-i18n/scim-anthy/metadata.xml13
-rw-r--r--app-i18n/scim-anthy/scim-anthy-1.2.7-r1.ebuild47
-rw-r--r--app-i18n/scim-anthy/scim-anthy-1.3.1.ebuild58
-rw-r--r--app-i18n/scim-bridge/Manifest1
-rw-r--r--app-i18n/scim-bridge/files/scim-bridge-0.4.15.2-gcc43.patch10
-rw-r--r--app-i18n/scim-bridge/files/scim-bridge-0.4.15.2-qt4.patch58
-rw-r--r--app-i18n/scim-bridge/files/scim-bridge-0.4.16+gcc-4.4.patch12
-rw-r--r--app-i18n/scim-bridge/files/scim-bridge-0.4.16+gcc-4.7.patch24
-rw-r--r--app-i18n/scim-bridge/files/scim-bridge-0.4.16-configure.ac.patch164
-rw-r--r--app-i18n/scim-bridge/metadata.xml8
-rw-r--r--app-i18n/scim-bridge/scim-bridge-0.4.16-r2.ebuild87
-rw-r--r--app-i18n/scim-canna/Manifest1
-rw-r--r--app-i18n/scim-canna/metadata.xml8
-rw-r--r--app-i18n/scim-canna/scim-canna-1.0.1.ebuild35
-rw-r--r--app-i18n/scim-hangul/Manifest2
-rw-r--r--app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.3.patch23
-rw-r--r--app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.7.patch12
-rw-r--r--app-i18n/scim-hangul/files/scim-hangul-0.4.0+gtk.patch11
-rw-r--r--app-i18n/scim-hangul/metadata.xml8
-rw-r--r--app-i18n/scim-hangul/scim-hangul-0.3.2.ebuild47
-rw-r--r--app-i18n/scim-hangul/scim-hangul-0.4.0.ebuild53
-rw-r--r--app-i18n/scim-input-pad/Manifest3
-rw-r--r--app-i18n/scim-input-pad/metadata.xml33
-rw-r--r--app-i18n/scim-input-pad/scim-input-pad-0.1.1.ebuild49
-rw-r--r--app-i18n/scim-input-pad/scim-input-pad-0.1.3.1.ebuild56
-rw-r--r--app-i18n/scim-input-pad/scim-input-pad-0.1.3.ebuild56
-rw-r--r--app-i18n/scim-m17n/Manifest2
-rw-r--r--app-i18n/scim-m17n/files/scim-m17n-0.2.2-gcc43.patch10
-rw-r--r--app-i18n/scim-m17n/metadata.xml8
-rw-r--r--app-i18n/scim-m17n/scim-m17n-0.2.2.ebuild40
-rw-r--r--app-i18n/scim-m17n/scim-m17n-0.2.3.ebuild34
-rw-r--r--app-i18n/scim-pinyin/Manifest2
-rw-r--r--app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-fixconfigure.patch33
-rw-r--r--app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gbk.patch62
-rw-r--r--app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gcc43.patch44
-rw-r--r--app-i18n/scim-pinyin/files/scim-pinyin-qt335.patch25
-rw-r--r--app-i18n/scim-pinyin/metadata.xml8
-rw-r--r--app-i18n/scim-pinyin/scim-pinyin-0.5.91-r3.ebuild48
-rw-r--r--app-i18n/scim-pinyin/scim-pinyin-0.5.92.ebuild39
-rw-r--r--app-i18n/scim-sayura/Manifest1
-rw-r--r--app-i18n/scim-sayura/files/scim-sayura-0.3.3-gcc45.patch15
-rw-r--r--app-i18n/scim-sayura/metadata.xml9
-rw-r--r--app-i18n/scim-sayura/scim-sayura-0.3.3.ebuild32
-rw-r--r--app-i18n/scim-skk/Manifest1
-rw-r--r--app-i18n/scim-skk/files/scim-skk-0.5.2-gcc43.patch11
-rw-r--r--app-i18n/scim-skk/metadata.xml8
-rw-r--r--app-i18n/scim-skk/scim-skk-0.5.2-r1.ebuild54
-rw-r--r--app-i18n/scim-sunpinyin/Manifest1
-rw-r--r--app-i18n/scim-sunpinyin/files/scim-sunpinyin-2.0.3-force-switch.patch34
-rw-r--r--app-i18n/scim-sunpinyin/metadata.xml8
-rw-r--r--app-i18n/scim-sunpinyin/scim-sunpinyin-2.0.3-r2.ebuild32
-rw-r--r--app-i18n/scim-tables/Manifest1
-rw-r--r--app-i18n/scim-tables/files/scim-tables-0.5.12-automake.patch13
-rw-r--r--app-i18n/scim-tables/files/scim-tables-0.5.8+gcc-4.3.patch11
-rw-r--r--app-i18n/scim-tables/metadata.xml8
-rw-r--r--app-i18n/scim-tables/scim-tables-0.5.13.ebuild65
-rw-r--r--app-i18n/scim-tomoe/Manifest1
-rw-r--r--app-i18n/scim-tomoe/files/scim-tomoe-0.6.0-gcc43.patch11
-rw-r--r--app-i18n/scim-tomoe/files/scim-tomoe-0.6.0-gucharmap2.patch21
-rw-r--r--app-i18n/scim-tomoe/metadata.xml11
-rw-r--r--app-i18n/scim-tomoe/scim-tomoe-0.6.0-r1.ebuild29
-rw-r--r--app-i18n/scim-tomoe/scim-tomoe-0.6.0-r2.ebuild38
-rw-r--r--app-i18n/scim-tomoe/scim-tomoe-0.6.0.ebuild23
-rw-r--r--app-i18n/scim-uim/Manifest1
-rw-r--r--app-i18n/scim-uim/files/scim-uim-0.2.0-gcc43.patch11
-rw-r--r--app-i18n/scim-uim/files/scim-uim-0.2.0-uim-1.5.patch12
-rw-r--r--app-i18n/scim-uim/metadata.xml8
-rw-r--r--app-i18n/scim-uim/scim-uim-0.2.0-r2.ebuild41
-rw-r--r--app-i18n/scim-wijesekera/Manifest1
-rw-r--r--app-i18n/scim-wijesekera/files/scim-wijesekera-0.3.3-gcc43.patch22
-rw-r--r--app-i18n/scim-wijesekera/metadata.xml6
-rw-r--r--app-i18n/scim-wijesekera/scim-wijesekera-0.3.3-r1.ebuild31
-rw-r--r--app-i18n/scim-wnn/Manifest2
-rw-r--r--app-i18n/scim-wnn/files/scim-wnn-1.0.0-gcc43.patch22
-rw-r--r--app-i18n/scim-wnn/metadata.xml5
-rw-r--r--app-i18n/scim-wnn/scim-wnn-0.2.4.ebuild47
-rw-r--r--app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild58
-rw-r--r--app-i18n/scim-wnn/scim-wnn-1.0.0.ebuild50
-rw-r--r--app-i18n/scim/Manifest1
-rw-r--r--app-i18n/scim/files/xinput-scim9
-rw-r--r--app-i18n/scim/metadata.xml11
-rw-r--r--app-i18n/scim/scim-1.4.14.ebuild106
-rw-r--r--app-i18n/skk-jisyo/Manifest1
-rw-r--r--app-i18n/skk-jisyo/files/unannotation.awk75
-rw-r--r--app-i18n/skk-jisyo/metadata.xml5
-rw-r--r--app-i18n/skk-jisyo/skk-jisyo-201101.ebuild57
-rw-r--r--app-i18n/skk-jisyo/skk-jisyo-9999.ebuild67
-rw-r--r--app-i18n/skkfep/Manifest1
-rw-r--r--app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch21
-rw-r--r--app-i18n/skkfep/files/skkfep-0.87-gentoo.patch131
-rw-r--r--app-i18n/skkfep/metadata.xml5
-rw-r--r--app-i18n/skkfep/skkfep-0.87-r1.ebuild38
-rw-r--r--app-i18n/skkserv/Manifest1
-rw-r--r--app-i18n/skkserv/files/skkserv-9.6-inet_ntoa-gentoo.patch11
-rw-r--r--app-i18n/skkserv/files/skkserv-9.6-segfault-gentoo.patch15
-rw-r--r--app-i18n/skkserv/files/skkserv.initd16
-rw-r--r--app-i18n/skkserv/metadata.xml5
-rw-r--r--app-i18n/skkserv/skkserv-9.6-r3.ebuild43
-rw-r--r--app-i18n/sunpinyin-data/Manifest3
-rw-r--r--app-i18n/sunpinyin-data/files/SLM-inst.mk62
-rw-r--r--app-i18n/sunpinyin-data/metadata.xml8
-rw-r--r--app-i18n/sunpinyin-data/sunpinyin-data-20121025.ebuild38
-rw-r--r--app-i18n/sunpinyin-data/sunpinyin-data-20130220.ebuild38
-rw-r--r--app-i18n/sunpinyin/Manifest4
-rw-r--r--app-i18n/sunpinyin/files/sunpinyin-2.0.3-force-switch.patch30
-rw-r--r--app-i18n/sunpinyin/files/sunpinyin-2.0.3-gcc-4.7.patch49
-rw-r--r--app-i18n/sunpinyin/metadata.xml8
-rw-r--r--app-i18n/sunpinyin/sunpinyin-2.0.3-r1.ebuild65
-rw-r--r--app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild46
-rw-r--r--app-i18n/tagainijisho/Manifest2
-rw-r--r--app-i18n/tagainijisho/metadata.xml23
-rw-r--r--app-i18n/tagainijisho/tagainijisho-1.0.2.ebuild59
-rw-r--r--app-i18n/tagainijisho/tagainijisho-1.0.3.ebuild53
-rw-r--r--app-i18n/tegaki-zinnia-japanese/Manifest1
-rw-r--r--app-i18n/tegaki-zinnia-japanese/metadata.xml5
-rw-r--r--app-i18n/tegaki-zinnia-japanese/tegaki-zinnia-japanese-0.3.ebuild26
-rw-r--r--app-i18n/tomoe/Manifest1
-rw-r--r--app-i18n/tomoe/files/tomoe-0.6.0-export-symbols.patch240
-rw-r--r--app-i18n/tomoe/files/tomoe-0.6.0-glib232.patch39
-rw-r--r--app-i18n/tomoe/files/tomoe-0.6.0-ldflags.patch24
-rw-r--r--app-i18n/tomoe/metadata.xml12
-rw-r--r--app-i18n/tomoe/tomoe-0.6.0-r1.ebuild88
-rw-r--r--app-i18n/tomoe/tomoe-0.6.0-r2.ebuild93
-rw-r--r--app-i18n/transifex-client/Manifest2
-rw-r--r--app-i18n/transifex-client/files/transifex-client-0.8.0-tests.patch26
-rw-r--r--app-i18n/transifex-client/metadata.xml11
-rw-r--r--app-i18n/transifex-client/transifex-client-0.10.ebuild21
-rw-r--r--app-i18n/transifex-client/transifex-client-0.11.1_beta.ebuild26
-rw-r--r--app-i18n/uim-tomoe-gtk/Manifest1
-rw-r--r--app-i18n/uim-tomoe-gtk/metadata.xml8
-rw-r--r--app-i18n/uim-tomoe-gtk/uim-tomoe-gtk-0.6.0.ebuild23
-rw-r--r--app-i18n/uim/Manifest1
-rw-r--r--app-i18n/uim/files/50uim-gentoo.el4
-rw-r--r--app-i18n/uim/files/uim-1.5.4-zhTW.patch12
-rw-r--r--app-i18n/uim/files/uim-1.6.0-gentoo.patch11
-rw-r--r--app-i18n/uim/files/xinput-uim6
-rw-r--r--app-i18n/uim/metadata.xml19
-rw-r--r--app-i18n/uim/uim-1.8.6-r1.ebuild232
-rw-r--r--app-i18n/unicode-data/Manifest2
-rw-r--r--app-i18n/unicode-data/metadata.xml5
-rw-r--r--app-i18n/unicode-data/unicode-data-6.0.0.ebuild31
-rw-r--r--app-i18n/unicode-data/unicode-data-6.1.0.ebuild29
-rw-r--r--app-i18n/x-unikey/Manifest1
-rw-r--r--app-i18n/x-unikey/files/01x-unikey9
-rw-r--r--app-i18n/x-unikey/files/x-unikey-1.0.4-gcc43.patch12
-rw-r--r--app-i18n/x-unikey/files/x-unikey-1.0.4-gcc44.patch31
-rw-r--r--app-i18n/x-unikey/files/x-unikey-1.0.4-gentoo.patch20
-rw-r--r--app-i18n/x-unikey/metadata.xml8
-rw-r--r--app-i18n/x-unikey/x-unikey-1.0.4-r2.ebuild78
-rw-r--r--app-i18n/xcin/Manifest2
-rw-r--r--app-i18n/xcin/files/xcin-2.5.3_pre3-glibc-2.10.patch110
-rw-r--r--app-i18n/xcin/files/xcin-2.5.3_pre3-ldflags.patch96
-rw-r--r--app-i18n/xcin/files/xcin-2.5.3_pre3-make.patch118
-rw-r--r--app-i18n/xcin/metadata.xml5
-rw-r--r--app-i18n/xcin/xcin-2.5.3_pre3-r2.ebuild71
-rw-r--r--app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild77
-rw-r--r--app-i18n/xsim/Manifest1
-rw-r--r--app-i18n/xsim/files/xsim-0.3.9.4-64bit.patch57
-rw-r--r--app-i18n/xsim/files/xsim-0.3.9.4-compile-fix.patch77
-rw-r--r--app-i18n/xsim/files/xsim-0.3.9.4-eof.patch92
-rw-r--r--app-i18n/xsim/files/xsim-0.3.9.4-gcc-3.4.patch116
-rw-r--r--app-i18n/xsim/files/xsim-0.3.9.4-gcc-4.3.patch44
-rw-r--r--app-i18n/xsim/files/xsim-0.3.9.4-makefile.patch153
-rw-r--r--app-i18n/xsim/metadata.xml5
-rw-r--r--app-i18n/xsim/xsim-0.3.9.4-r5.ebuild78
-rw-r--r--app-i18n/xsunpinyin/Manifest2
-rw-r--r--app-i18n/xsunpinyin/files/README.gentoo5
-rw-r--r--app-i18n/xsunpinyin/files/xsunpinyin-2.0.3-force-switch.patch45
-rw-r--r--app-i18n/xsunpinyin/metadata.xml8
-rw-r--r--app-i18n/xsunpinyin/xsunpinyin-2.0.3-r3.ebuild32
-rw-r--r--app-i18n/xsunpinyin/xsunpinyin-2.0.4_pre20130108.ebuild43
-rw-r--r--app-i18n/xvnkb/Manifest2
-rw-r--r--app-i18n/xvnkb/files/0.2.8a-putenv.patch11
-rw-r--r--app-i18n/xvnkb/files/xvnkb-0.2.8a.patch16
-rw-r--r--app-i18n/xvnkb/files/xvnkb-0.2.9a-ldflags.patch34
-rw-r--r--app-i18n/xvnkb/metadata.xml5
-rw-r--r--app-i18n/xvnkb/xvnkb-0.2.8a-r1.ebuild69
-rw-r--r--app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild65
-rw-r--r--app-i18n/zhcon/Manifest2
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch67
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6+gcc-4.3.patch185
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch18
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch77
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6-automagic-fix.patch36
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6-curses.patch22
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6.configure.in.patch11
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6.make-fix.patch82
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6.sysconfdir.patch24
-rw-r--r--app-i18n/zhcon/metadata.xml13
-rw-r--r--app-i18n/zhcon/zhcon-0.2.6-r2.ebuild54
-rw-r--r--app-i18n/zinnia-tomoe/Manifest1
-rw-r--r--app-i18n/zinnia-tomoe/metadata.xml8
-rw-r--r--app-i18n/zinnia-tomoe/zinnia-tomoe-0.6.0_p20080911.ebuild32
-rw-r--r--app-i18n/zinnia/Manifest1
-rw-r--r--app-i18n/zinnia/files/zinnia-0.06-perl.patch13
-rw-r--r--app-i18n/zinnia/files/zinnia-0.06-ricedown.patch20
-rw-r--r--app-i18n/zinnia/metadata.xml8
-rw-r--r--app-i18n/zinnia/zinnia-0.06-r3.ebuild68
671 files changed, 21762 insertions, 0 deletions
diff --git a/app-i18n/anthy-ss/Manifest b/app-i18n/anthy-ss/Manifest
new file mode 100644
index 00000000000..ddd64ca3fc1
--- /dev/null
+++ b/app-i18n/anthy-ss/Manifest
@@ -0,0 +1 @@
+DIST anthy-9026.tar.gz 4064170 SHA256 1a4c2736b531dd088f1d8f22a67a87cfc29de23402c72e70d9e5bb160b448685 SHA512 00b99d5c2e2d91b21e86fc2fb3c46490f97aa20f2d91afb2ddbe59606c0b01da9199088a92119930d0f5b8e266f3314be3cceab3562b58684692090259bc2f79 WHIRLPOOL 6587d9914eede00ca541764a9ead6befd014f9c3bc72dc28e855bc1e50a4da0c616051d7e01c96e3d9ad6d34ab074017a64db41d8ee58d314a04ab2c3de74830
diff --git a/app-i18n/anthy-ss/anthy-ss-9026.ebuild b/app-i18n/anthy-ss/anthy-ss-9026.ebuild
new file mode 100644
index 00000000000..d5752624fcf
--- /dev/null
+++ b/app-i18n/anthy-ss/anthy-ss-9026.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit elisp-common eutils
+
+IUSE="emacs"
+
+MY_P="${P/-ss/}"
+
+DESCRIPTION="Anthy -- free and secure Japanese input system"
+HOMEPAGE="http://anthy.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/anthy/25984/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
+SLOT="0"
+S="${WORKDIR}/${MY_P}"
+
+DEPEND="!app-i18n/anthy
+ emacs? ( virtual/emacs )"
+
+src_unpack() {
+
+ unpack ${A}
+ cd "${S}"
+
+ local cannadicdir=/var/lib/canna/dic/canna
+
+ if has_version 'app-dicts/canna-2ch'; then
+ einfo "Adding nichan.ctd to anthy.dic."
+ sed -i /placename/a"read ${cannadicdir}/nichan.ctd" \
+ mkworddic/dict.args.in
+ fi
+
+}
+
+src_compile() {
+
+ local myconf
+
+ use emacs || myconf="EMACS=no"
+
+ econf ${myconf} || die
+ emake || die
+
+}
+
+src_install() {
+
+ emake DESTDIR="${D}" install || die
+
+ use emacs && elisp-site-file-install "${FILESDIR}"/50anthy-gentoo.el
+
+ dodoc AUTHORS DIARY NEWS README ChangeLog
+
+ docinto doc
+ rm doc/Makefile*
+ dodoc doc/*
+
+}
+
+pkg_postinst() {
+
+ use emacs && elisp-site-regen
+
+}
+
+pkg_postrm() {
+
+ use emacs && elisp-site-regen
+
+}
diff --git a/app-i18n/anthy-ss/files/50anthy-gentoo.el b/app-i18n/anthy-ss/files/50anthy-gentoo.el
new file mode 100644
index 00000000000..2c3ed77062f
--- /dev/null
+++ b/app-i18n/anthy-ss/files/50anthy-gentoo.el
@@ -0,0 +1,4 @@
+
+;;; anthy-ss site-lisp configuration
+
+(set-language-info "Japanese" 'input-method "japanese-anthy")
diff --git a/app-i18n/anthy-ss/metadata.xml b/app-i18n/anthy-ss/metadata.xml
new file mode 100644
index 00000000000..7deacf38f2b
--- /dev/null
+++ b/app-i18n/anthy-ss/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Anthy is a free and secure Japanese kana-kanji server. This ebuild
+ includes cannadic as a server-side dictionary, so you don't need any
+ extra package to run it. You can use anthy with app-i18n/jmode (XIM),
+ app-i18n/uim(XIM, GTK+ immodule) and emacs (to enable Anthy support
+ for emacs, build this package with emacs USE flag).
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge-jp">anthy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/anthy/Manifest b/app-i18n/anthy/Manifest
new file mode 100644
index 00000000000..956a3edb9c0
--- /dev/null
+++ b/app-i18n/anthy/Manifest
@@ -0,0 +1 @@
+DIST anthy-9100h.tar.gz 4446148 SHA256 d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2275547 SHA512 315ebd9e1af208f3ecaeaa13620213b35f004e47edb54e60c3e02c2997444cd2326cc58b725dd2d0bd6a723130884d946ea193ea3d92418082256b59ecc8d88b WHIRLPOOL dfdaa96e19dbd53ad627c40521922c7df74858e9836a770059dbd6005a09e3978bcd46bcd40380360708c4234e91e77d91161064614596047f53020c2c571245
diff --git a/app-i18n/anthy/anthy-9100h-r1.ebuild b/app-i18n/anthy/anthy-9100h-r1.ebuild
new file mode 100644
index 00000000000..da419e7bbec
--- /dev/null
+++ b/app-i18n/anthy/anthy-9100h-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+inherit elisp-common eutils
+
+DESCRIPTION="Anthy -- free and secure Japanese input system"
+HOMEPAGE="http://anthy.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/anthy/37536/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+#KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
+SLOT="0"
+IUSE="canna-2ch emacs static-libs"
+
+DEPEND="!app-i18n/anthy-ss
+ canna-2ch? ( app-dicts/canna-2ch )
+ emacs? ( virtual/emacs )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-anthy_context_t.patch"
+
+ if use canna-2ch; then
+ einfo "Adding nichan.ctd to anthy.dic."
+ sed -i \
+ -e "/set_input_encoding eucjp/aread ${EPREFIX}/var/lib/canna/dic/canna/nichan.ctd" \
+ mkworddic/dict.args.in || die
+ fi
+}
+
+src_configure() {
+ local myconf
+
+ use emacs || myconf="EMACS=no"
+
+ econf \
+ $(use_enable static-libs static) \
+ ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ if use emacs ; then
+ elisp-site-file-install "${FILESDIR}"/50anthy-gentoo.el || die
+ fi
+
+ dodoc AUTHORS DIARY NEWS README ChangeLog || die
+
+ rm -f doc/Makefile*
+ docinto doc
+ dodoc doc/* || die
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/app-i18n/anthy/files/50anthy-gentoo.el b/app-i18n/anthy/files/50anthy-gentoo.el
new file mode 100644
index 00000000000..a166df14653
--- /dev/null
+++ b/app-i18n/anthy/files/50anthy-gentoo.el
@@ -0,0 +1,5 @@
+
+;;; anthy site-lisp configuration
+
+(set-language-info "Japanese" 'input-method "japanese-anthy")
+
diff --git a/app-i18n/anthy/files/anthy-9100h-anthy_context_t.patch b/app-i18n/anthy/files/anthy-9100h-anthy_context_t.patch
new file mode 100644
index 00000000000..b46a136663b
--- /dev/null
+++ b/app-i18n/anthy/files/anthy-9100h-anthy_context_t.patch
@@ -0,0 +1,12 @@
+diff -Naur anthy-9100h.orig/anthy/input.h anthy-9100h/anthy/input.h
+--- anthy-9100h.orig/anthy/input.h 2006-05-13 18:28:35.000000000 +0900
++++ anthy-9100h/anthy/input.h 2011-01-12 23:36:39.629749518 +0900
+@@ -10,6 +10,8 @@
+ #ifndef INPUT_H_INCLUDE
+ #define INPUT_H_INCLUDE
+
++#include "anthy.h"
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
diff --git a/app-i18n/anthy/metadata.xml b/app-i18n/anthy/metadata.xml
new file mode 100644
index 00000000000..22231128a4f
--- /dev/null
+++ b/app-i18n/anthy/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Anthy is a free and secure Japanese kana-kanji server. This ebuild includes
+ cannadic as a server-side dictionary, so you don't need any extra package to
+ run it. You can use anthy with <pkg>app-i18n/jmode</pkg> (XIM),
+ <pkg>app-i18n/uim</pkg> (XIM, GTK+ immodule) and <pkg>virtual/emacs</pkg>
+ (to enable Anthy support for emacs, build this package with emacs USE flag).
+</longdescription>
+ <use>
+ <flag name="canna-2ch">Enable support for <pkg>app-dicts/canna-2ch</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge-jp">anthy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/atokx2/Manifest b/app-i18n/atokx2/Manifest
new file mode 100644
index 00000000000..fcdbee157ed
--- /dev/null
+++ b/app-i18n/atokx2/Manifest
@@ -0,0 +1 @@
+DIST atokforlinux_update_17_0_2_1.tar.gz 41387655 SHA256 0fd7c0cbb870c9fa925b065ab92876419db37144f9b82ef37cf7f3cd11dd7294 SHA512 63709c7d4608d46d85eb0dfbe0bd72e23d9367f745be6a19ba3efad2bf8d2b5f2ce0d37b5813f63e81fb448aed65ac823d1870d8c35e4a2d2e99ef85ccde146a WHIRLPOOL 57e64b7c2316ae20205080d166002c26b59eae685273e1ff5b6778a8149b3d8487a69745e0eddbb52b996639442061289b99bc1443a4337b0f81ad70b52d0847
diff --git a/app-i18n/atokx2/atokx2-17.0-r2.ebuild b/app-i18n/atokx2/atokx2-17.0-r2.ebuild
new file mode 100644
index 00000000000..302371ed810
--- /dev/null
+++ b/app-i18n/atokx2/atokx2-17.0-r2.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="1"
+
+inherit cdrom eutils gnome2-utils
+
+DESCRIPTION="ATOK for Linux - The most famous Japanese Input Method Engine"
+HOMEPAGE="http://www.justsystem.co.jp/linux/atok.html"
+IIIMF_V="trunk_r2059-js1"
+UPDATE_P="atokforlinux_update_17_0_2_1"
+SRC_URI="http://www3.justsystem.co.jp/download/atok/up/lin/${UPDATE_P}.tar.gz"
+
+LICENSE="ATOK MIT GPL-2"
+
+SLOT="0"
+KEYWORDS="-* ~x86"
+IUSE=""
+RESTRICT="strip mirror"
+
+DEPEND=">=x11-libs/gtk+-2.2:2
+ !dev-libs/libiiimcf
+ !dev-libs/csconv
+ !app-i18n/iiimgcf
+ !dev-libs/libiiimp
+ !app-i18n/iiimsf
+ !app-i18n/iiimxcf"
+
+src_unpack() {
+ cdrom_get_cds doc/license.html || die "Please mount ATOK for Linux CD-ROM or set CD_ROOT variable to the directory containing ATOK for Linux."
+ unpack ${A}
+}
+
+src_install() {
+ cd "${D}"
+
+ local iiimgcf
+ if has_version '>=x11-libs/gtk+-2.4' ; then
+ iiimgcf="iiimf-gtk24-${IIIMF_V/js1/js2}.i386.tar.gz
+ iiimf-gtkopt24-${IIIMF_V/js1/js2}.i386.tar.gz"
+ else
+ iiimgcf=iiimf-gtk22-${IIIMF_V/js1/js2}.i386.tar.gz
+ fi
+
+ for i in \
+ iiimf-client-lib-${IIIMF_V}.i386.tar.gz \
+ iiimf-csconv-${IIIMF_V}.i386.tar.gz \
+ iiimf-protocol-lib-${IIIMF_V}.i386.tar.gz \
+ iiimf-rc-${IIIMF_V}.i386.tar.gz \
+ iiimf-server-${IIIMF_V}.i386.tar.gz \
+ iiimf-x-${IIIMF_V}.i386.tar.gz
+ do
+ echo ${CDROM_ROOT}
+ tar xzf ${CDROM_ROOT}/bin/IIIMF/${i} \
+ || die "Failed to unpack ${i}"
+ done
+
+ for i in ${iiimgcf}
+ do
+ tar xzf "${WORKDIR}"/${UPDATE_P}/bin/IIIMF/$i || die
+ done
+
+ # /etc files
+ newinitd "${FILESDIR}"/iiim.initd iiim || die
+ newconfd "${FILESDIR}"/iiim.confd iiim || die
+
+ tar xzf ${CDROM_ROOT}/bin/ATOK/atokx-${PV}-2.0.i386.tar.gz \
+ || die "Failed to unpack atokx-${PV}-2.0.i386.tar.gz"
+ tar xzf "${WORKDIR}"/${UPDATE_P}/bin/ATOK/atokx-${PV}-2.1.i386.patch.tar.gz \
+ || die "Failed to unpack atokx-${PV}-2.1.i386.patch.tar.gz"
+
+ newinitd "${FILESDIR}"/atokx2.initd atokx2 || die
+
+ dohtml -r ${CDROM_ROOT}/doc/* || die
+ insinto /usr/share/doc/${PF}
+ doins ${CDROM_ROOT}/{install_guide.pdf,doc/ATOK/atok.pdf} || die
+}
+
+get_gtk_confdir() {
+ if use amd64 || ( [ "${CONF_LIBDIR}" == "lib32" ] && use x86 ) ; then
+ echo "/etc/gtk-2.0/${CHOST}"
+ else
+ echo "/etc/gtk-2.0"
+ fi
+}
+
+pkg_postinst() {
+ elog
+ elog "To use ATOK for Linux, you need to add atokx2 and iiim to"
+ elog "the default runlevel:"
+ elog "# /sbin/rc-update add atokx2 default"
+ elog "# /sbin/rc-update add iiim default"
+ elog "Also, call /opt/atokx2/bin/atokx2_client.sh from appropriate file."
+ elog
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/atokx2/atokx2-17.0.ebuild b/app-i18n/atokx2/atokx2-17.0.ebuild
new file mode 100644
index 00000000000..08eea31f545
--- /dev/null
+++ b/app-i18n/atokx2/atokx2-17.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="1"
+
+inherit cdrom eutils gnome2-utils
+
+DESCRIPTION="ATOK for Linux - The most famous Japanese Input Method Engine"
+HOMEPAGE="http://www.justsystem.co.jp/linux/atok.html"
+IIIMF_V="trunk_r2059-js1"
+SRC_URI=""
+
+LICENSE="ATOK MIT GPL-2"
+
+SLOT="0"
+KEYWORDS="-* x86"
+IUSE=""
+RESTRICT="strip"
+
+DEPEND=">=x11-libs/gtk+-2.2:2
+ !dev-libs/libiiimcf
+ !dev-libs/csconv
+ !app-i18n/iiimgcf
+ !dev-libs/libiiimp
+ !app-i18n/iiimsf
+ !app-i18n/iiimxcf"
+
+src_unpack() {
+ cdrom_get_cds doc/license.html || die "Please mount ATOK for Linux CD-ROM or set CD_ROOT variable to the directory containing ATOK for Linux."
+}
+
+src_install() {
+ cd "${D}"
+
+ local iiimgcf
+ if has_version '>=x11-libs/gtk+-2.4' ; then
+ iiimgcf=iiimf-gtk24-${IIIMF_V}.i386.tar.gz
+ else
+ iiimgcf=iiimf-gtk22-${IIIMF_V}.i386.tar.gz
+ fi
+
+ for i in ${iiimgcf} \
+ iiimf-client-lib-${IIIMF_V}.i386.tar.gz \
+ iiimf-csconv-${IIIMF_V}.i386.tar.gz \
+ iiimf-protocol-lib-${IIIMF_V}.i386.tar.gz \
+ iiimf-rc-${IIIMF_V}.i386.tar.gz \
+ iiimf-server-${IIIMF_V}.i386.tar.gz \
+ iiimf-x-${IIIMF_V}.i386.tar.gz
+ do
+ echo ${CDROM_ROOT}
+ tar xzf ${CDROM_ROOT}/bin/IIIMF/${i} || die "Failed to unpack ${i}"
+ done
+
+ tar xzf ${CDROM_ROOT}/bin/ATOK/atokx-${PV}-2.0.i386.tar.gz || die "Failed to unpack atokx-${PV}-2.0.i386.tar.gz"
+
+ newinitd "${FILESDIR}"/atokx2.initd atokx2 || die
+ newinitd "${FILESDIR}"/iiim.initd iiim || die
+ newconfd "${FILESDIR}"/iiim.confd iiim || die
+
+ dohtml -r ${CDROM_ROOT}/doc/* || die
+ insinto /usr/share/doc/${PF}
+ doins ${CDROM_ROOT}/{install_guide.pdf,doc/ATOK/atok.pdf} || die
+}
+
+get_gtk_confdir() {
+ if use amd64 || ( [ "${CONF_LIBDIR}" == "lib32" ] && use x86 ) ; then
+ echo "/etc/gtk-2.0/${CHOST}"
+ else
+ echo "/etc/gtk-2.0"
+ fi
+}
+
+pkg_postinst() {
+ elog
+ elog "To use ATOK for Linux, you need to add atokx2 and iiim to"
+ elog "the default runlevel:"
+ elog "# /sbin/rc-update add atokx2 default"
+ elog "# /sbin/rc-update add iiim default"
+ elog "Also, call /opt/atokx2/bin/atokx2_client.sh from appropriate file."
+ elog
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/atokx2/files/atokx2.initd b/app-i18n/atokx2/files/atokx2.initd
new file mode 100644
index 00000000000..fdccf4d179b
--- /dev/null
+++ b/app-i18n/atokx2/files/atokx2.initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting atokx2"
+ start-stop-daemon -b --start --quiet --exec /opt/atokx2/sbin/atokx2mngdaemon
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping atokx2"
+ start-stop-daemon --stop --quiet --exec /opt/atokx2/sbin/atokx2mngdaemon
+ eend $?
+}
diff --git a/app-i18n/atokx2/files/iiim.confd b/app-i18n/atokx2/files/iiim.confd
new file mode 100644
index 00000000000..f24ab6d32fd
--- /dev/null
+++ b/app-i18n/atokx2/files/iiim.confd
@@ -0,0 +1,8 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Config file for /etc/init.d/iiim
+
+# If you want to use Shift + Space to enable/disable ATOK, uncomment
+#JUSTSYSTEM_TRIGGER_SHIFT_SPACE=t
diff --git a/app-i18n/atokx2/files/iiim.initd b/app-i18n/atokx2/files/iiim.initd
new file mode 100644
index 00000000000..51babaec437
--- /dev/null
+++ b/app-i18n/atokx2/files/iiim.initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net atokx2
+}
+
+start() {
+ ebegin "Starting iiim"
+ start-stop-daemon -b --start --quiet --exec /usr/lib/im/htt
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping iiim"
+ start-stop-daemon --stop --quiet --exec /usr/lib/im/htt
+ eend $?
+}
diff --git a/app-i18n/atokx2/metadata.xml b/app-i18n/atokx2/metadata.xml
new file mode 100644
index 00000000000..2d5852c16c6
--- /dev/null
+++ b/app-i18n/atokx2/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/atokx3/Manifest b/app-i18n/atokx3/Manifest
new file mode 100644
index 00000000000..53fa0ce7c9b
--- /dev/null
+++ b/app-i18n/atokx3/Manifest
@@ -0,0 +1,3 @@
+DIST a20y1311lx.tgz 8463681 SHA256 6f63b0402c01f29fb9a508a022945fc8ed26bfc4101f3613ea2814063dc1ed9f SHA512 e295ba03a3ef8266f07e9feb1b208accf76923ab215dd022836550cc93c5e8eed70c21dd4ad264e9be25b906ac8996f3d1f90d1865daf2790ddf268e7797c39d WHIRLPOOL 11cfc180d07b15cc32eb156b0b7b12ed50f7487da38a1728ff714ebfa687461339bd242ee5d7329bb36055682062b38570dd5f8a901aaaf567137f7292fd58e1
+DIST atokx3gtk216.tar.gz 69246 SHA256 cd81d0e85872274135d94511ee71eda3f29f00ed299c1dacbdf024b9d96c62e2 SHA512 39c0ff01807626f417f34ef02e4be2fe07c52edc931775299e90fd8725d9c870c3473005fc87be5023d089e94fb4700f9ad36a10ad3373be22ec35e2a418eddd WHIRLPOOL 9bdad5de28564d0c7e3e1b3d67bc0fea09e2b1e9af5fb301ebbb90bc41e58fee405468020a06c84b0d97e3bbab28d7e421a0d9d293d9b957230fa476f823302d
+DIST atokx3up2.tar.gz 8427265 SHA256 d9aae2b3917c3370bd40a3f0f767ad15a09a586986e906835952264cd5c1d28e SHA512 b4ce05882418a18e6a0ab58d805a1edeca69187bfa16a98b8f79d749ec0cfdc1b838de30f3049d3b8b0929214164c4c2054dbe283dce0f18a1ab2daa181e306d WHIRLPOOL 43b5e32e62cba0122e918f497a5c5d1da1b303721af8eb00b70a840431cc2aa0ffa7a7009cb4253caab690445a9921741aa6a6394044c4907e1acd1376c6c76e
diff --git a/app-i18n/atokx3/atokx3-3.0.0-r11.ebuild b/app-i18n/atokx3/atokx3-3.0.0-r11.ebuild
new file mode 100644
index 00000000000..9a90690e7db
--- /dev/null
+++ b/app-i18n/atokx3/atokx3-3.0.0-r11.ebuild
@@ -0,0 +1,221 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cdrom eutils gnome2-utils multilib
+
+MY_UPDATE_P="${PN}up2"
+MY_UPDATE_GTK="${PN}gtk216"
+MY_ZIPCODE_P="a20y1311lx"
+
+DESCRIPTION="ATOK X3 for Linux - The most famous Japanese Input Method Engine"
+HOMEPAGE="http://www.justsystems.com/jp/products/atok_linux/"
+SRC_URI="http://www3.justsystem.co.jp/download/atok/up/lin/${MY_UPDATE_P}.tar.gz
+ http://www3.justsystem.co.jp/download/atok/up/lin/${MY_UPDATE_GTK}.tar.gz
+ http://www3.justsystem.co.jp/download/zipcode/up/lin/${MY_ZIPCODE_P}.tgz"
+
+LICENSE="ATOK MIT"
+
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="multilib"
+
+RESTRICT="strip mirror"
+
+RDEPEND="!app-i18n/atokx2
+ !dev-libs/libiiimcf
+ !dev-libs/csconv
+ !app-i18n/iiimgcf
+ !dev-libs/libiiimp
+ !app-i18n/iiimsf
+ !app-i18n/iiimxcf
+ dev-libs/atk
+ dev-libs/glib:2
+ dev-libs/libxml2:2
+ media-libs/fontconfig
+ media-libs/libpng
+ sys-apps/tcp-wrappers
+ virtual/pam
+ x11-libs/cairo
+ >=x11-libs/gtk+-2.4.13:2
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXxf86vm
+ x11-libs/libdrm
+ x11-libs/pangox-compat
+ multilib? (
+ >=dev-libs/atk-2.10.0[abi_x86_32]
+ >=dev-libs/glib-2.34.3:2[abi_x86_32(-)]
+ >=dev-libs/libxml2-2.9.1-r4:2[abi_x86_32(-)]
+ >=media-libs/fontconfig-2.10.92[abi_x86_32(-)]
+ >=media-libs/libpng-1.2.51[abi_x86_32(-)]
+ >=sys-apps/tcp-wrappers-7.6.22-r1[abi_x86_32(-)]
+ >=virtual/pam-0-r1[abi_x86_32(-)]
+ >=x11-libs/cairo-1.12.14-r4[abi_x86_32]
+ >=x11-libs/gtk+-2.24.23:2[abi_x86_32]
+ >=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)]
+ >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)]
+ >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)]
+ >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)]
+ >=x11-libs/libXdamage-1.1.4-r1[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=x11-libs/libXfixes-5.0.1[abi_x86_32(-)]
+ >=x11-libs/libXft-2.3.1-r1[abi_x86_32(-)]
+ >=x11-libs/libXi-1.7.2[abi_x86_32(-)]
+ >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)]
+ >=x11-libs/libXrender-0.9.8[abi_x86_32(-)]
+ >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]
+ >=x11-libs/libdrm-2.4.46[abi_x86_32(-)]
+ >=x11-libs/pangox-compat-0.0.2[abi_x86_32]
+ )"
+
+QA_PREBUILT="opt/atokx3/lib/server/*
+ opt/atokx3/lib/client/xaux/*
+ opt/atokx3/lib/client/*
+ opt/atokx3/bin/*
+ usr/libexec/*
+ usr/bin/*
+ usr/$(get_libdir)/*
+ usr/$(get_libdir)/gtk-2.0/immodules/*
+ usr/$(get_libdir)/iiim/le/atokx3/64/*
+ usr/$(ABI=x86 get_libdir)/*
+ usr/$(ABI=x86 get_libdir)/gtk-2.0/immodules/*
+ usr/$(ABI=x86 get_libdir)/iiim/*
+ usr/$(ABI=x86 get_libdir)/iiim/le/atokx3/*"
+
+EMULTILIB_PKG="true"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ if ! cdrom_get_cds atokx3index ; then
+ die "Please mount ATOK for Linux CD-ROM or set CD_ROOT variable to the directory containing ATOK X3 for Linux."
+ fi
+}
+
+src_unpack() {
+ local targets="
+ IIIMF/iiimf-client-lib-trunk_r3104-js*.i386.tar.gz
+ IIIMF/iiimf-gtk-trunk_r3104-js*.i386.tar.gz
+ IIIMF/iiimf-protocol-lib-trunk_r3104-js*.i386.tar.gz
+ IIIMF/iiimf-server-trunk_r3104-js*.i386.tar.gz
+ IIIMF/iiimf-x-trunk_r3104-js*.i386.tar.gz
+ IIIMF/iiimf-client-lib-devel-trunk_r3104-js*.i386.tar.gz
+ IIIMF/iiimf-protocol-lib-devel-trunk_r3104-js*.i386.tar.gz
+ ATOK/atokx-20.0-*.0.0.i386.tar.gz"
+ # IIIMF/iiimf-properties-trunk_r3104-js*.i386.tar.gz
+ # IIIMF/iiimf-docs-trunk_r3104-js*.i386.tar.gz
+ # IIIMF/iiimf-notuse-trunk_r3104-js*.i386.tar.gz
+
+ if use amd64 ; then
+ targets="${targets}
+ IIIMF/iiimf-client-lib-64-trunk_r3104-js*.x86_64.tar.gz
+ IIIMF/iiimf-gtk-64-trunk_r3104-js*.x86_64.tar.gz
+ IIIMF/iiimf-protocol-lib-64-trunk_r3104-js*.x86_64.tar.gz
+ ATOK/atokx-64-20.0-*.0.0.x86_64.tar.gz"
+ # IIIMF/iiimf-client-lib-devel-64-trunk_r3104-js*.x86_64.tar.gz
+ # IIIMF/iiimf-protocol-lib-devel-64-trunk_r3104-js*.x86_64.tar.gz
+ # IIIMF/iiimf-notuse-64-trunk_r3104-js*.x86_64.tar.gz
+ fi
+
+ targets="${targets} ATOK/atokxup-20.0-*.0.0.i386.tar.gz"
+
+ unpack ${MY_UPDATE_P}.tar.gz
+
+ for i in ${targets} ; do
+ if [ -f "${S}"/${MY_UPDATE_P}/bin/${i} ] ; then
+ einfo "unpack" $(basename "${S}"/${MY_UPDATE_P}/bin/${i})
+ tar xzf "${S}"/${MY_UPDATE_P}/bin/${i} || die "Failed to unpack ${i}"
+ elif [ -f "${CDROM_ROOT}"/bin/tarball/${i} ] ; then
+ einfo "unpack" $(basename "${CDROM_ROOT}"/bin/tarball/${i})
+ tar xzf "${CDROM_ROOT}"/bin/tarball/${i} || die "Failed to unpack ${i}"
+ else
+ eerror "${i} not found."
+ die "${i} not found."
+ fi
+ done
+ unpack ${MY_UPDATE_GTK}.tar.gz
+ unpack ${MY_ZIPCODE_P}.tgz
+}
+
+src_prepare() {
+ if use amd64 ; then
+ local lib32="$(ABI=x86 get_libdir)"
+ local lib64="$(get_libdir)"
+ if [ "lib" != "${lib32}" ] ; then
+ mv usr/lib "usr/${lib32}" || die
+ fi
+ if [ "lib64" != "${lib64}" ] ; then
+ mv usr/lib64 "usr/${lib64}" || die
+ fi
+ mkdir -p "usr/${lib64}/iiim/le/atokx3" || die
+ mv "usr/${lib32}/iiim/le/atokx3/64" "usr/${lib64}/iiim/le/atokx3/64" || die
+ rm "usr/${lib32}/iiim/le/atokx3/amd64" || die
+ sed -e "s:/usr/lib:/usr/${lib64}:" \
+ "usr/${lib32}/libiiimcf.la" > "usr/${lib64}/libiiimcf.la" || die
+ sed -e "s:/usr/lib:/usr/${lib64}:" \
+ "usr/${lib32}/libiiimp.la" > "usr/${lib64}/libiiimp.la" || die
+ sed -i -e "s:/usr/lib:/usr/${lib32}:" "usr/${lib32}/libiiimcf.la" || die
+ sed -i -e "s:/usr/lib:/usr/${lib32}:" "usr/${lib32}/libiiimp.la" || die
+ fi
+}
+
+src_install() {
+ dodoc "${MY_UPDATE_P}/README_UP2.txt"
+ rm -rf "${MY_UPDATE_P}"
+
+ cp -dpR * "${ED}" || die
+
+ # amd64 hack
+ if use amd64 ; then
+ local lib32="$(ABI=x86 get_libdir)"
+ local lib64="$(get_libdir)"
+ if [ "${lib32}" != "${lib64}" ] ; then
+ for f in xiiimp.so xiiimp.a iiim-xbe xiiimp.so.2 xiiimp.so.2.0.0 iiimd-watchdog xiiimp.la ; do
+ dosym "${EPREFIX}/usr/${lib32}/iiim/${f}" "/usr/${lib64}/iiim/${f}"
+ done
+ for f in atokx3aux.so atokx3.so ; do
+ dosym "${EPREFIX}/usr/${lib32}/iiim/le/atokx3/${f}" "/usr/${lib64}/iiim/le/atokx3/${f}"
+ done
+ dosym "${EPREFIX}/usr/${lib64}/iiim/le/atokx3/64" /usr/"${lib32}"/iiim/le/atokx3/64
+ dosym "${EPREFIX}/usr/${lib64}/iiim/le/atokx3/64" /usr/"${lib32}"/iiim/le/atokx3/amd64
+ fi
+ fi
+
+ sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-iiimf" > "${T}/iiimf.conf" || die
+ insinto /etc/X11/xinit/xinput.d
+ doins "${T}/iiimf.conf"
+
+ dodoc "${CDROM_ROOT}"/doc/atok.pdf
+ dohtml "${CDROM_ROOT}"/readme.html
+}
+
+pkg_preinst() {
+ # bug #343325
+ if use amd64 && has_multilib_profile && [ -L "${EPREFIX}/usr/$(get_libdir)/iiim" ] ; then
+ rm -f "${EPREFIX}/usr/$(get_libdir)/iiim"
+ fi
+}
+
+pkg_postinst() {
+ elog
+ elog "To use ATOK for Linux, you need to add following to .xinitrc or .xprofile:"
+ elog
+ elog ". /opt/atokx3/bin/atokx3start.sh"
+ elog
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/atokx3/files/xinput-iiimf b/app-i18n/atokx3/files/xinput-iiimf
new file mode 100644
index 00000000000..2131b29b953
--- /dev/null
+++ b/app-i18n/atokx3/files/xinput-iiimf
@@ -0,0 +1,11 @@
+XIM=iiimx
+XIM_PROGRAM=@EPREFIX@/usr/bin/iiimx
+XIM_ARGS=-iiimd
+GTK_IM_MODULE=iiim
+QT_IM_MODULE=xim
+
+export HTT_DISABLE_STATUS_WINDOW=t
+export HTT_GENERATES_KANAKEY=t
+export HTT_USES_LINUX_XKEYSYM=t
+export HTT_IGNORES_LOCK_MASK=t
+export JS_FEEDBACK_CONVERT=t
diff --git a/app-i18n/atokx3/metadata.xml b/app-i18n/atokx3/metadata.xml
new file mode 100644
index 00000000000..2d5852c16c6
--- /dev/null
+++ b/app-i18n/atokx3/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/bidiv/Manifest b/app-i18n/bidiv/Manifest
new file mode 100644
index 00000000000..6fc5ca48f48
--- /dev/null
+++ b/app-i18n/bidiv/Manifest
@@ -0,0 +1,3 @@
+DIST bidiv-1.5.tgz 13865 SHA256 9b9d869fc7e5a16b5270fd50e85241c93b0438a73223fd340eacae0ea3a8e516 SHA512 f8ddaa4a7ae6e7b723eb6e4f5dc91bd2e189c02e116ecd1fb02d300f12e913e9dbf328d65f40ef8c2e7d8e822d1a612966fe0f59f44129fd5dc7ece26c021cc2 WHIRLPOOL a584f1e46097fe09043d9d4a85e1216174c698521af8d98b2da555da88b72a4e74e7ac76dfa4bae42b2de9f010e911cd93199dea0dd8127d9b024a2d6c5ffdae
+DIST bidiv_1.5-4.debian.tar.gz 5863 SHA256 f777effe7d1882f7080ee80b6bff2e8b224d495502e46a5b32cae94c96421aa3 SHA512 63e998cae38e08181cf4e40a54119b9b4b5ab3ede7fcfbf852a1a7ad51a671d14d4094b3af8b89574eef51f8c6ee34f2eab6242bf69e77d954826931a801e8b1 WHIRLPOOL a2d29191bb6162f0d4a21c8853f1c86d26618430d501c8d2722b6dc6bd97f7d9a4ad152fbd5f1d744245531a2bcd5ee80ea19a07dec51a310bfa117c2c48c4ae
+DIST bidiv_1.5.orig.tar.gz 13865 SHA256 9b9d869fc7e5a16b5270fd50e85241c93b0438a73223fd340eacae0ea3a8e516 SHA512 f8ddaa4a7ae6e7b723eb6e4f5dc91bd2e189c02e116ecd1fb02d300f12e913e9dbf328d65f40ef8c2e7d8e822d1a612966fe0f59f44129fd5dc7ece26c021cc2 WHIRLPOOL a584f1e46097fe09043d9d4a85e1216174c698521af8d98b2da555da88b72a4e74e7ac76dfa4bae42b2de9f010e911cd93199dea0dd8127d9b024a2d6c5ffdae
diff --git a/app-i18n/bidiv/bidiv-1.5-r1.ebuild b/app-i18n/bidiv/bidiv-1.5-r1.ebuild
new file mode 100644
index 00000000000..bb9c13f7692
--- /dev/null
+++ b/app-i18n/bidiv/bidiv-1.5-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A BiDirectional Text Viewer"
+HOMEPAGE="http://www.ivrix.org.il"
+SRC_URI="http://ftp.ivrix.org.il/pub/ivrix/src/cmdline/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~ppc ~sparc x86"
+IUSE=""
+
+RDEPEND=">=dev-libs/fribidi-0.19.2-r2"
+DEPEND="${DEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-fribidi.patch
+}
+
+src_compile() {
+ tc-export CC
+ emake
+}
+
+src_install() {
+ dobin bidiv
+ dodoc README WHATSNEW
+ doman bidiv.1
+}
diff --git a/app-i18n/bidiv/bidiv-1.5_p4.ebuild b/app-i18n/bidiv/bidiv-1.5_p4.ebuild
new file mode 100644
index 00000000000..15e58d96dab
--- /dev/null
+++ b/app-i18n/bidiv/bidiv-1.5_p4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+PATCH_LEVEL=4
+
+DESCRIPTION="A commandline tool displaying logical Hebrew/Arabic"
+HOMEPAGE="http://packages.qa.debian.org/b/bidiv.html"
+SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}.orig.tar.gz
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-${PATCH_LEVEL}.debian.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND=">=dev-libs/fribidi-0.19.2-r2"
+DEPEND="${DEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ # Use order from "series" file:
+ local ddir=${WORKDIR}/debian/patches
+ epatch \
+ "${ddir}"/try_utf8_fix \
+ "${ddir}"/makefile \
+ "${ddir}"/fribidi_019 \
+ "${ddir}"/hyphen_minus \
+ "${ddir}"/term_size_get \
+ "${ddir}"/type_fix \
+ "${ddir}"/cast_fix
+}
+
+src_compile() {
+ tc-export CC
+ emake CC_OPT_FLAGS="-Wall"
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ dodoc README WHATSNEW "${WORKDIR}"/debian/changelog
+}
diff --git a/app-i18n/bidiv/files/bidiv-1.5-fribidi.patch b/app-i18n/bidiv/files/bidiv-1.5-fribidi.patch
new file mode 100644
index 00000000000..0223329cbe5
--- /dev/null
+++ b/app-i18n/bidiv/files/bidiv-1.5-fribidi.patch
@@ -0,0 +1,46 @@
+--- bidiv.c
++++ bidiv.c
+@@ -172,7 +172,7 @@
+ }
+ #ifndef TRY_UTF8
+ in[len]='\0';
+- fribidi_iso8859_8_to_unicode(in, unicode_in);
++ fribidi_charset_to_unicode(FRIBIDI_CHAR_SET_ISO8859_8, in, unicode_in);
+ #endif
+
+ /* output the line */
+@@ -201,10 +201,10 @@
+ rtl_line=0;
+
+ if(out_utf8)
+- fribidi_unicode_to_utf8(unicode_out, len,
++ fribidi_unicode_to_charset(FRIBIDI_CHAR_SET_UTF8, unicode_out, len,
+ out);
+ else
+- fribidi_unicode_to_iso8859_8(unicode_out, len,
++ fribidi_unicode_to_charset(FRIBIDI_CHAR_SET_ISO8859_8, unicode_out, len,
+ out);
+ /* if rtl_line (i.e., base_dir is RL), and we didn't fill the
+ entire width, we need to pad with spaces. Maybe in the
+--- Makefile
++++ Makefile
+@@ -1,16 +1,14 @@
+ PREFIX=/usr/local
+ BIN_DIR=$(PREFIX)/bin
+ MAN_PATH=$(PREFIX)/man
+-CC_OPT_FLAGS=-O2 -Wall
+
+-
+-CFLAGS= $(CC_OPT_FLAGS) $(DEFS) `fribidi-config --cflags`
+-LDFLAGS=`fribidi-config --libs`
++CFLAGS+=`pkg-config fribidi --cflags` -Wall
++LIBS=`pkg-config fribidi --libs`
+
+ all: bidiv
+
+ bidiv: bidiv.o
+- $(CC) -o bidiv bidiv.o $(LDFLAGS)
++ $(CC) $(LDFLAGS) -o bidiv bidiv.o $(LIBS)
+
+ clean:
+ rm -f bidiv.o *~
diff --git a/app-i18n/bidiv/metadata.xml b/app-i18n/bidiv/metadata.xml
new file mode 100644
index 00000000000..2d5852c16c6
--- /dev/null
+++ b/app-i18n/bidiv/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/canfep/Manifest b/app-i18n/canfep/Manifest
new file mode 100644
index 00000000000..65954146f74
--- /dev/null
+++ b/app-i18n/canfep/Manifest
@@ -0,0 +1,2 @@
+DIST canfep-1.0.tar.gz 8067 SHA256 124a204b56a70b0ec1f6c96f32cc499065020910f12e4f9749d29c9c2fdb2d4f SHA512 0fd7c8ca56282fa537b76fe33f46e03d4f0f4727528ccad95cd4726888372da9158fc8bed2cdc67d645defb479040cd4a4d0999f69d38fd8b4080f7ece4e67d6 WHIRLPOOL 49b44552073d90b6079bb9141b885095203a662042eaa24ccc09e14120b2aa3f0a384ac38a94dbdeecb29979d41ff3db63360676567df1832f13f1cbca3e1574
+DIST canfep_utf8.diff 7152 SHA256 d1f0210354bbc2d21caed5fb521d90eea65674c8251c32df8fe070d6b7965da8 SHA512 32d946b8b78efd3b95736738497fe46a7d0e2383f2b665c8af79270d7b0d1404ca051e63fc67375f0b953b8f604475c8d6b2d683089bc97b098fa9524b89208c WHIRLPOOL 97c6cae11c6839460c5d8364c54e5ffaaad486e888b72fa8dd8cf1f98dce3dd62026ab23bfd1262ffab82eda08d46a0efc0fc8fc6d806d7d6504b1df5241cf85
diff --git a/app-i18n/canfep/canfep-1.0.ebuild b/app-i18n/canfep/canfep-1.0.ebuild
new file mode 100644
index 00000000000..c58fc59a539
--- /dev/null
+++ b/app-i18n/canfep/canfep-1.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Canna Japanese kana-kanji frontend processor on console"
+HOMEPAGE="http://www.geocities.co.jp/SiliconValley-Bay/7584/canfep/"
+SRC_URI="http://www.geocities.co.jp/SiliconValley-Bay/7584/canfep/${P}.tar.gz
+ unicode? ( http://hp.vector.co.jp/authors/VA020411/patches/canfep_utf8.diff )"
+
+LICENSE="canfep"
+SLOT="0"
+KEYWORDS="-alpha ~amd64 ppc ~sparc x86"
+IUSE="unicode"
+
+DEPEND="app-i18n/canna
+ sys-libs/ncurses"
+RDEPEND="app-i18n/canna"
+
+src_prepare() {
+ use unicode && epatch "${DISTDIR}"/canfep_utf8.diff
+ sed -i "s:\$(CFLAGS):\$(CFLAGS) \$(LDFLAGS):" Makefile || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCXX)" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ LIBS="-lcanna -lncurses"
+}
+
+src_install() {
+ dobin canfep
+ dodoc 00changes 00readme
+}
diff --git a/app-i18n/canfep/metadata.xml b/app-i18n/canfep/metadata.xml
new file mode 100644
index 00000000000..2d5852c16c6
--- /dev/null
+++ b/app-i18n/canfep/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/canna/Manifest b/app-i18n/canna/Manifest
new file mode 100644
index 00000000000..151560d8dfa
--- /dev/null
+++ b/app-i18n/canna/Manifest
@@ -0,0 +1 @@
+DIST Canna37p3.tar.bz2 1263065 SHA256 7d98d925043d3af24f99a8a2a09e3b4d6dfe881efc1303ef4a7f495a0f4542a7 SHA512 82846f2393aa2654dd2c97a93178098b8bd11e5409b584447f1b6fdf303adacc9802e2293cafd98b68af8b69622625ed00aa9712bf270feaa119adfdf4211158 WHIRLPOOL 14433083257ab705bc55b0be5972b9dcce2476209a5c48cdfc53d1f4af6bc739fac2d5fd2f42e7a6e94951a35e1a3e6ca21dd0ec7db6ef307f7d285dc881fbc5
diff --git a/app-i18n/canna/canna-3.7_p3-r1.ebuild b/app-i18n/canna/canna-3.7_p3-r1.ebuild
new file mode 100644
index 00000000000..3855a8522d7
--- /dev/null
+++ b/app-i18n/canna/canna-3.7_p3-r1.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit cannadic eutils multilib
+
+MY_P="Canna${PV//./}"
+MY_P="${MY_P/_/}"
+
+DESCRIPTION="A client-server based Kana-Kanji conversion system"
+HOMEPAGE="http://canna.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/canna/9565/${MY_P}.tar.bz2"
+
+LICENSE="MIT GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+IUSE=""
+
+DEPEND=">=sys-apps/sed-4
+ x11-misc/gccmakedep
+ x11-misc/imake"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ find . -name '*.man' -o -name '*.jmn' | xargs sed -i.bak -e 's/1M/8/g' || die
+ sed -e "s%@cannapkgver@%${PF}%" \
+ "${FILESDIR}"/${PN}-3.7-gentoo.diff.in > "${T}"/${PF}-gentoo.diff || die
+ epatch "${T}"/${PF}-gentoo.diff
+
+ # bug #248723
+ epatch "${FILESDIR}"/${P}-strip.patch
+
+ # Multilib-strict fix for amd64
+ sed -i -e "s:\(DefLibCannaDir.*\)/lib:\1/$(get_libdir):g" Canna.conf* || die
+ # fix deprecated sort syntax
+ sed -e 's:^\(sortcmd=\".* -s\).*$:\1 -k 1,1\":' \
+ -i cmd/mkbindic/mkbindic.cpp || die
+
+ cd "${S}"/dic/phono
+ epatch "${FILESDIR}"/${PN}-kpdef-gentoo.diff
+
+}
+
+src_compile() {
+ xmkmf || die
+
+ #make libCannaDir=../lib/canna canna || die
+ # bug #279706
+ emake -j1 CDEBUGFLAGS="${CFLAGS}" canna || die
+
+ #if use doc ; then
+ # einfo "Compiling DVI, PS (and PDF) document"
+ # cd doc/man/guide/tex
+ # xmkmf || die
+ # emake -j1 JLATEXCMD=platex \
+ # DVI2PSCMD="dvips -f" \
+ # canna.dvi canna.ps || die
+ # if has_version 'app-text/dvipdfmx' && \
+ # ( has_version 'app-text/acroread' \
+ # || has_version 'app-text/xpdf-japanese' ); then
+ # emake -j1 JLATEXCMD=platex \
+ # DVI2PSCMD="dvips -f" \
+ # canna.pdf || die
+ # fi
+ #fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ emake DESTDIR="${D}" install.man || die
+
+ # install default.canna (removed from Canna36p4)
+ insinto /usr/share/canna
+ newins misc/initfiles/verbose.canna default.canna
+
+ # cannakill should link to /usr/bin/catdic
+ dosym ../bin/catdic /usr/sbin/cannakill
+
+ dodir /usr/share/man/man8 /usr/share/man/ja/man8
+ for man in cannaserver cannakill ; do
+ for mandir in "${D}"/usr/share/man "${D}"/usr/share/man/ja ; do
+ mv ${mandir}/man1/${man}.1 ${mandir}/man8/${man}.8
+ done
+ done
+
+ dodoc CHANGES.jp ChangeLog INSTALL* README* WHATIS*
+
+ #if use doc ; then
+ # insinto /usr/share/doc/${PF}
+ # doins doc/man/guide/tex/canna.{dvi,ps,pdf}
+ #fi
+
+ newinitd "${FILESDIR}"/${P}.initd canna || die
+ newconfd "${FILESDIR}"/${P}.confd canna || die
+ insinto /etc/ ; newins "${FILESDIR}"/canna.hosts hosts.canna || die
+ keepdir /var/log/canna/ || die
+
+ # for backward compatibility
+ dosbin "${FILESDIR}"/update-canna-dics_dir
+
+ insinto /var/lib/canna/dic/dics.d/
+ newins "${D}"/var/lib/canna/dic/canna/dics.dir 00canna.dics.dir
+
+ # fix permission for user dictionary
+ keepdir /var/lib/canna/dic/{user,group}
+ fowners root:bin /var/lib/canna/dic/{user,group}
+ fperms 775 /var/lib/canna/dic/{user,group}
+}
+
+pkg_postinst() {
+ update-cannadic-dir
+ elog
+ elog "Canna dictionary format has been changed."
+ elog "You should rebuild app-dict/canna-* after emerge."
+ elog
+}
+
+pkg_prerm() {
+ if [ -S /tmp/.iroha_unix/IROHA ] ; then
+ # make sure cannaserver get stopped because otherwise
+ # we cannot stop it with /etc/init.d after emerge -C canna
+ einfo
+ einfo "Stopping Canna for safe unmerge"
+ einfo
+ /etc/init.d/canna stop
+ touch "${T}"/canna.cookie
+ fi
+}
+
+pkg_postrm() {
+ if [ -f /usr/sbin/cannaserver -a -e "${T}"/canna.cookie ] ; then
+ #update-cannadic-dir
+ einfo
+ einfo "Restarting Canna"
+ einfo
+ /etc/init.d/canna start
+ rm -f "${T}"/canna.cookie
+ fi
+}
diff --git a/app-i18n/canna/canna-3.7_p3-r2.ebuild b/app-i18n/canna/canna-3.7_p3-r2.ebuild
new file mode 100644
index 00000000000..533560ade4f
--- /dev/null
+++ b/app-i18n/canna/canna-3.7_p3-r2.ebuild
@@ -0,0 +1,167 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit cannadic eutils multilib
+
+MY_P="Canna${PV//./}"
+MY_P="${MY_P/_/}"
+
+DESCRIPTION="A client-server based Kana-Kanji conversion system"
+HOMEPAGE="http://canna.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/canna/9565/${MY_P}.tar.bz2"
+
+LICENSE="MIT GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc"
+
+DEPEND=">=sys-apps/sed-4
+ x11-misc/gccmakedep
+ x11-misc/imake
+ doc? (
+ app-text/ghostscript-gpl
+ >=dev-texlive/texlive-langcjk-2010
+ dev-texlive/texlive-fontsextra
+ dev-texlive/texlive-genericrecommended
+ dev-texlive/texlive-latexrecommended
+ )"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ find . -name '*.man' -o -name '*.jmn' | xargs sed -i.bak -e 's/1M/8/g' || die
+ sed -e "s%@cannapkgver@%${PF}%" \
+ "${FILESDIR}"/${PN}-3.7-gentoo.diff.in > "${T}"/${PF}-gentoo.diff || die
+ epatch "${T}"/${PF}-gentoo.diff
+
+ # bug #248723
+ epatch "${FILESDIR}"/${P}-strip.patch
+
+ # Multilib-strict fix for amd64
+ sed -i -e "s:\(DefLibCannaDir.*\)/lib:\1/$(get_libdir):g" Canna.conf* || die
+ # fix deprecated sort syntax
+ sed -e 's:^\(sortcmd=\".* -s\).*$:\1 -k 1,1\":' \
+ -i cmd/mkbindic/mkbindic.cpp || die
+
+ cd "${S}"/dic/phono
+ epatch "${FILESDIR}"/${PN}-kpdef-gentoo.diff
+
+}
+
+src_compile() {
+ xmkmf || die
+
+ #make libCannaDir=../lib/canna canna || die
+ # bug #279706
+ emake -j1 CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" SHLIBGLOBALSFLAGS="${LDFLAGS}" canna || die
+
+ if use doc ; then
+ einfo "Compiling DVI, PS (and PDF) document"
+ cd doc/man/guide/tex
+ xmkmf || die
+ emake -j1 CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" SHLIBGLOBALSFLAGS="${LDFLAGS}" \
+ JLATEXCMD=platex \
+ DVI2PSCMD="dvips -f" VARTEXFONTS=${T}/fonts \
+ canna.dvi canna.ps || die
+ if has_version 'app-text/dvipdfmx' && \
+ ( has_version 'app-text/acroread' \
+ || has_version 'app-text/xpdf-japanese' ); then
+ emake -j1 CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" SHLIBGLOBALSFLAGS="${LDFLAGS}" \
+ JLATEXCMD=platex \
+ DVI2PSCMD="dvips -f" VARTEXFONTS=${T}/fonts \
+ canna.pdf || die
+ fi
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ emake DESTDIR="${D}" install.man || die
+
+ # install default.canna (removed from Canna36p4)
+ insinto /usr/share/canna
+ newins misc/initfiles/verbose.canna default.canna
+
+ # cannakill should link to /usr/bin/catdic
+ dosym ../bin/catdic /usr/sbin/cannakill
+
+ dodir /usr/share/man/man8 /usr/share/man/ja/man8
+ for man in cannaserver cannakill ; do
+ for mandir in "${D}"/usr/share/man "${D}"/usr/share/man/ja ; do
+ mv ${mandir}/man1/${man}.1 ${mandir}/man8/${man}.8
+ done
+ done
+
+ dodoc CHANGES.jp ChangeLog INSTALL* README* WHATIS*
+
+ if use doc ; then
+ insinto /usr/share/doc/${PF}
+ doins doc/man/guide/tex/canna.{dvi,ps,pdf}
+ fi
+
+ newinitd "${FILESDIR}"/${P}.initd canna || die
+ newconfd "${FILESDIR}"/${P}.confd canna || die
+ insinto /etc/ ; newins "${FILESDIR}"/canna.hosts hosts.canna || die
+ keepdir /var/log/canna/ || die
+
+ # for backward compatibility
+ dosbin "${FILESDIR}"/update-canna-dics_dir
+
+ insinto /var/lib/canna/dic/dics.d/
+ newins "${D}"/var/lib/canna/dic/canna/dics.dir 00canna.dics.dir
+
+ # fix permission for user dictionary
+ keepdir /var/lib/canna/dic/{user,group}
+ fowners root:bin /var/lib/canna/dic/{user,group}
+ fperms 775 /var/lib/canna/dic/{user,group}
+}
+
+pkg_postinst() {
+ update-cannadic-dir
+ elog
+ elog "Canna dictionary format has been changed."
+ elog "You should rebuild app-dict/canna-* after emerge."
+ elog
+
+ local localearchive="${ROOT}usr/$(get_libdir)/locale/locale-archive"
+ if [ -f "${localearchive}" -a -x /usr/bin/localedef ] && \
+ ! /usr/bin/localedef --list-archive "${localearchive}" | grep -i 'ja_JP.eucjp' >/dev/null 2>&1 ; then
+ elog "Some dictionary tools in this package require ja_JP.eucJP locale."
+ elog "Please add ja_JP.eucJP locale to /etc/locale.gen:"
+ elog
+ elog "# echo 'ja_JP.EUC-JP EUC-JP' >> /etc/locale.gen"
+ elog "# locale-gen"
+ elog
+ fi
+}
+
+pkg_prerm() {
+ if [ -S /tmp/.iroha_unix/IROHA ] ; then
+ # make sure cannaserver get stopped because otherwise
+ # we cannot stop it with /etc/init.d after emerge -C canna
+ einfo
+ einfo "Stopping Canna for safe unmerge"
+ einfo
+ /etc/init.d/canna stop
+ touch "${T}"/canna.cookie
+ fi
+}
+
+pkg_postrm() {
+ if [ -f /usr/sbin/cannaserver -a -e "${T}"/canna.cookie ] ; then
+ #update-cannadic-dir
+ einfo
+ einfo "Restarting Canna"
+ einfo
+ /etc/init.d/canna start
+ rm -f "${T}"/canna.cookie
+ fi
+}
diff --git a/app-i18n/canna/files/canna-3.7-gentoo.diff.in b/app-i18n/canna/files/canna-3.7-gentoo.diff.in
new file mode 100644
index 00000000000..940c97f6dca
--- /dev/null
+++ b/app-i18n/canna/files/canna-3.7-gentoo.diff.in
@@ -0,0 +1,144 @@
+diff -urN Canna37b1.ORIG/Canna.conf Canna37b1/Canna.conf
+--- Canna37b1.ORIG/Canna.conf 2003-09-27 15:23:08.000000000 +0900
++++ Canna37b1/Canna.conf 2003-09-27 19:09:13.000000000 +0900
+@@ -114,7 +114,7 @@
+ # define DefErrDir /usr/spool/canna
+ # define DefLibCannaDir /usr/lib
+ # else
+-# define DefErrDir /var/log
++# define DefErrDir /var/log/canna
+ # define DefLibCannaDir $(cannaExecPrefix)/lib
+ # endif
+ #endif
+@@ -140,16 +140,18 @@
+ # define ModernElfLinkAvailable NO
+ #endif
+
+-cannaPrefix = DefCannaPrefix
++cannaPrefix = /usr
+ cannaExecPrefix = $(cannaPrefix)
+ cannaBinDir = $(cannaExecPrefix)/bin
+ cannaSrvDir = DefCannaSrvDir
+ XCOMM cannaLibDir = /var/lib/canna
+ XCOMM cannaLibDir = /var/db/canna
+ cannaLibDir = DefCannaLibDir
+-XCOMM cannaManDir = $(cannaPrefix)/share/man
+-cannaManDir = $(cannaPrefix)/man
++cannaManDir = $(cannaPrefix)/share/man
++XCOMM cannaManDir = $(cannaPrefix)/man
+ cannaIncDir = $(cannaPrefix)/include/canna
++cannaDocDir = $(cannaPrefix)/share/doc/@cannapkgver@
++cannaShareDir = $(cannaPrefix)/share/canna
+
+ libCannaDir = DefLibCannaDir
+ ErrDir = DefErrDir
+@@ -158,7 +160,7 @@
+ #define SupportOldWchar 1
+
+ /* IPv6を用いる場合は1と定義してください */
+-#define UseInet6 0 /* requires newer IPv6 implementation */
++/* #define UseInet6 0 /* requires newer IPv6 implementation */
+
+ /* 3.2系から3.6系までの形式の辞書を作る場合はこれを定義してください */
+ /* #define DIC_3_6_COMPAT */
+@@ -237,7 +239,7 @@
+ /* #define UseInstalledLibCanna YES */
+ #define UseInstalledLibCanna NO
+
+-DicDir = $(cannaLibDir)/dic
++DicDir = /var/lib/canna/dic
+
+ /* ここから下は変更不要です */
+
+diff -urN Canna37b1.ORIG/Imakefile Canna37b1/Imakefile
+--- Canna37b1.ORIG/Imakefile 2003-09-25 15:30:20.000000000 +0900
++++ Canna37b1/Imakefile 2003-09-27 19:09:00.000000000 +0900
+@@ -55,6 +55,7 @@
+ @echo "#define CANNAHOSTFILE '$(cannaLibDir)/cannahost'" >> junkjunk
+ @echo "/* for lib/canna */" >> junkjunk
+ @echo "#define CANNALIBDIR '$(cannaLibDir)'" >> junkjunk
++ @echo "#define CANNASHAREDIR '$(cannaShareDir)'" >> junkjunk
+ @echo "#define SUPPORT_OLD_WCHAR '$(supportOldWchar)'" >> junkjunk
+ @echo "/* for scripts */" >> junkjunk
+ @echo "#define CANNABINDIR $(cannaBinDir)" >> junkjunk
+@@ -83,6 +84,7 @@
+ echo "#define CANNAHOSTFILE \"$(cannaLibDir)/cannahost\"";\
+ echo "/* for lib/canna */";\
+ echo "#define CANNALIBDIR \"$(cannaLibDir)\""; \
++ echo "#define CANNASHAREDIR \"$(cannaShareDir)\""; \
+ echo "#define SUPPORT_OLD_WCHAR $(supportOldWchar)"; \
+ echo "/* for scripts */";\
+ echo "#define CANNABINDIR $(cannaBinDir)"; \
+diff -urN Canna37b1.ORIG/dic/phono/Imakefile Canna37b1/dic/phono/Imakefile
+--- Canna37b1.ORIG/dic/phono/Imakefile 2002-10-19 17:27:40.000000000 +0900
++++ Canna37b1/dic/phono/Imakefile 2003-09-27 19:09:00.000000000 +0900
+@@ -27,9 +27,10 @@
+
+ ROMAJI_DIC_DEF = -DSHIFT
+
+- DICDIR = $(cannaLibDir)/dic
+- SAMPLEDIR = $(cannaLibDir)/sample
+- SAMPLESRCDIR = $(cannaLibDir)/sample/src
++ DICDIR = $(DicDir)
++ CANNASHAREDIR = $(cannaShareDir)
++ SAMPLEDIR = $(cannaDocDir)/sample
++ SAMPLESRCDIR = $(cannaDocDir)/sample/src
+
+ KPDEF = default.kpdef jdaemon.kpdef just.kpdef kaisoku.kpdef kana.kpdef \
+ lan5.kpdef matsu.kpdef newjis.kpdef romaji.kpdef sokuon.kpdef \
+@@ -69,7 +70,7 @@
+ MakeDirectories(install,$(DICDIR))
+ MakeDirectories(install,$(SAMPLESRCDIR))
+
+-InstallMultiple($(ROMKANA_TABLES),$(DICDIR))
++InstallMultiple($(ROMKANA_TABLES),$(CANNASHAREDIR))
+
+ #ifdef USE_OBSOLETE_STYLE_FILENAME
+ InstallNonExec(default.kpdef,$(SAMPLESRCDIR))
+diff -urN Canna37b1.ORIG/lib/canna/romaji.c Canna37b1/lib/canna/romaji.c
+--- Canna37b1.ORIG/lib/canna/romaji.c 2003-09-17 17:50:53.000000000 +0900
++++ Canna37b1/lib/canna/romaji.c 2003-09-27 19:09:00.000000000 +0900
+@@ -427,7 +427,7 @@
+ }
+ }
+
+-#if 0 /* currently CANNASHAREDDIR is not defined */
++#if 1 /* currently CANNASHAREDDIR is defined */
+ if (retval == (struct RkRxDic *)NULL) { /* added for Debian by ISHIKAWA Mutsumi <ishikawa@linux.or.jp> */
+ extern jrUserInfoStruct *uinfo;
+
+diff -urN Canna37b1.ORIG/misc/Imakefile Canna37b1/misc/Imakefile
+--- Canna37b1.ORIG/misc/Imakefile 2003-03-05 04:23:53.000000000 +0900
++++ Canna37b1/misc/Imakefile 2003-09-27 19:09:00.000000000 +0900
+@@ -48,7 +48,7 @@
+ MakeLintLibSubdirs($(SUBDIRS))
+ MakeLintSubdirs($(SUBDIRS),install.ln,install.ln)
+
+-MakeDirectories(install,$(cannaLibDir)/sample/src)
++MakeDirectories(install,$(cannaDocDir)/sample/src)
+
+ #ifdef USE_OBSOLETE_STYLE_FILENAME
+ default.canna: default.ca
+@@ -58,8 +58,8 @@
+ $(CP) default.ca default.canna
+ #endif
+
+-InstallNonExec(default.canna,$(cannaLibDir))
+-InstallNonExec(is.c,$(cannaLibDir)/sample/src)
++InstallNonExec(default.canna,$(cannaDocDir))
++InstallNonExec(is.c,$(cannaDocDir)/sample/src)
+
+ clean::
+ $(RM) $(PROGRAMS)
+diff -urN Canna37b1.ORIG/misc/initfiles/Imakefile Canna37b1/misc/initfiles/Imakefile
+--- Canna37b1.ORIG/misc/initfiles/Imakefile 2003-02-04 05:13:01.000000000 +0900
++++ Canna37b1/misc/initfiles/Imakefile 2003-09-27 19:09:00.000000000 +0900
+@@ -6,7 +6,7 @@
+ #endif
+
+ CANNAROOT = ../..
+- SAMPLEDIR = $(cannaLibDir)/sample
++ SAMPLEDIR = $(cannaShareDir)
+
+ all::
+
diff --git a/app-i18n/canna/files/canna-3.7_p3-strip.patch b/app-i18n/canna/files/canna-3.7_p3-strip.patch
new file mode 100644
index 00000000000..ebcde1ef733
--- /dev/null
+++ b/app-i18n/canna/files/canna-3.7_p3-strip.patch
@@ -0,0 +1,142 @@
+diff -Naur Canna37p3.orig/config.log Canna37p3/config.log
+--- Canna37p3.orig/config.log 1970-01-01 09:00:00.000000000 +0900
++++ Canna37p3/config.log 2009-09-21 10:25:33.000000000 +0900
+@@ -0,0 +1,126 @@
++This file contains any messages produced by compilers while
++running configure, to aid debugging if configure makes a mistake.
++
++It was created by canna configure 3.7p3, which was
++generated by GNU Autoconf 2.59. Invocation command line was
++
++ $ ./configure
++
++## --------- ##
++## Platform. ##
++## --------- ##
++
++hostname = lets
++uname -m = x86_64
++uname -r = 2.6.31-gentoo
++uname -s = Linux
++uname -v = #1 SMP PREEMPT Fri Sep 11 17:39:06 JST 2009
++
++/usr/bin/uname -p = Intel(R) Core(TM)2 Duo CPU L7300 @ 1.40GHz
++/bin/uname -X = unknown
++
++/bin/arch = unknown
++/usr/bin/arch -k = unknown
++/usr/convex/getsysinfo = unknown
++hostinfo = unknown
++/bin/machine = unknown
++/usr/bin/oslevel = unknown
++/bin/universe = unknown
++
++PATH: /usr/local/bin
++PATH: /usr/bin
++PATH: /bin
++PATH: /opt/bin
++PATH: /usr/x86_64-pc-linux-gnu/i686-pc-linux-gnu/gcc-bin/4.3.3
++PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.4.1
++PATH: /usr/kde/3.5/bin
++PATH: /usr/qt/3/bin
++PATH: /opt/android-sdk-1.5/tools
++PATH: /opt/android-sdk-1.5/platforms/android-1.5/tools
++PATH: /usr/games/bin
++
++
++## ----------- ##
++## Core tests. ##
++## ----------- ##
++
++configure:1307: error: You cannot invloke configure directly.
++
++## ---------------- ##
++## Cache variables. ##
++## ---------------- ##
++
++ac_cv_env_CC_set=
++ac_cv_env_CC_value=
++ac_cv_env_CFLAGS_set=
++ac_cv_env_CFLAGS_value=
++ac_cv_env_CPPFLAGS_set=
++ac_cv_env_CPPFLAGS_value=
++ac_cv_env_CPP_set=
++ac_cv_env_CPP_value=
++ac_cv_env_LDFLAGS_set=
++ac_cv_env_LDFLAGS_value=
++ac_cv_env_build_alias_set=
++ac_cv_env_build_alias_value=
++ac_cv_env_host_alias_set=
++ac_cv_env_host_alias_value=
++ac_cv_env_target_alias_set=
++ac_cv_env_target_alias_value=
++
++## ----------------- ##
++## Output variables. ##
++## ----------------- ##
++
++CC=''
++CFLAGS=''
++CPP=''
++CPPFLAGS=''
++DEFS=''
++ECHO_C=''
++ECHO_N='-n'
++ECHO_T=''
++EGREP=''
++EXEEXT=''
++LDFLAGS=''
++LIBOBJS=''
++LIBS=''
++LTLIBOBJS=''
++OBJEXT=''
++PACKAGE_BUGREPORT='canna-dev@lists.sourceforge.jp'
++PACKAGE_NAME='canna'
++PACKAGE_STRING='canna 3.7p3'
++PACKAGE_TARNAME='canna'
++PACKAGE_VERSION='3.7p3'
++PATH_SEPARATOR=':'
++SHELL='/bin/sh'
++ac_ct_CC=''
++bindir='${exec_prefix}/bin'
++build_alias=''
++datadir='${prefix}/share'
++exec_prefix='NONE'
++host_alias=''
++includedir='${prefix}/include'
++infodir='${prefix}/info'
++libdir='${exec_prefix}/lib'
++libexecdir='${exec_prefix}/libexec'
++localstatedir='${prefix}/var'
++mandir='${prefix}/man'
++oldincludedir='/usr/include'
++prefix='NONE'
++program_transform_name='s,x,x,'
++sbindir='${exec_prefix}/sbin'
++sharedstatedir='${prefix}/com'
++sysconfdir='${prefix}/etc'
++target_alias=''
++
++## ----------- ##
++## confdefs.h. ##
++## ----------- ##
++
++#define PACKAGE_BUGREPORT "canna-dev@lists.sourceforge.jp"
++#define PACKAGE_NAME "canna"
++#define PACKAGE_STRING "canna 3.7p3"
++#define PACKAGE_TARNAME "canna"
++#define PACKAGE_VERSION "3.7p3"
++
++configure: exit 1
+diff -Naur Canna37p3.orig/server/Imakefile Canna37p3/server/Imakefile
+--- Canna37p3.orig/server/Imakefile 2004-04-27 06:48:37.000000000 +0900
++++ Canna37p3/server/Imakefile 2009-09-21 10:28:48.000000000 +0900
+@@ -6,7 +6,7 @@
+ #ifdef __EMX__
+ INSTFLAGS = $(INSTUGIDFLAGS)
+ #else
+- INSTFLAGS = -s $(INSTUGIDFLAGS)
++ INSTFLAGS = $(INSTUGIDFLAGS)
+ #endif
+ DEFINES = $(CANNASERVER_DEFINES) $(SIGNAL_DEFINES) ConnectionFlags
+ INCLUDES = -I$(CANNAROOT)/include
diff --git a/app-i18n/canna/files/canna-3.7_p3.confd b/app-i18n/canna/files/canna-3.7_p3.confd
new file mode 100644
index 00000000000..d3fdce5425a
--- /dev/null
+++ b/app-i18n/canna/files/canna-3.7_p3.confd
@@ -0,0 +1,7 @@
+CANNASERVER_ENABLE_SYSLOG="yes"
+
+# Specify user to run as
+CANNASERVER_OWNER="bin"
+
+# Options for cannaserver
+CANNASERVER_OPTS=""
diff --git a/app-i18n/canna/files/canna-3.7_p3.initd b/app-i18n/canna/files/canna-3.7_p3.initd
new file mode 100644
index 00000000000..d6445626b24
--- /dev/null
+++ b/app-i18n/canna/files/canna-3.7_p3.initd
@@ -0,0 +1,42 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# CANNASERVER_OPTS and CANNASERVER_OWNER is defined in /etc/conf.d/canna
+CANNASERVER_LOGFILE="/var/log/canna/CANNA0msgs"
+
+depend() {
+ after logger
+}
+
+start() {
+ if [ -S /tmp/.iroha_unix/IROHA ] ; then
+ /usr/sbin/cannakill >/dev/null 2>&1
+ fi
+ rm -f /tmp/.iroha_unix/IROHA
+
+ if [ "${CANNASERVER_ENABLE_SYSLOG}" = "yes" ] ; then
+ CANNASERVER_OPTS="${CANNASERVER_OPTS} -syslog"
+ else
+ touch "${CANNASERVER_LOGFILE}"
+ chmod u+w "${CANNASERVER_LOGFILEj}"
+ fi
+
+ if [ ! -z "${CANNASERVER_OWNER}" ] ; then
+ if [ -f "${CANNASERVER_LOGFILE}" ] ; then
+ chown "${CANNASERVER_OWNER}" "${CANNASERVER_LOGFILE}"
+ fi
+ CANNASERVER_OPTS="${CANNASERVER_OPTS} -u ${CANNASERVER_OWNER}"
+ fi
+
+ ebegin "Starting canna"
+ /usr/sbin/cannaserver ${CANNASERVER_OPTS}
+ eend $? "Failed to start canna"
+}
+
+stop() {
+ ebegin "Stopping canna"
+ /usr/sbin/cannakill
+ eend $? "Failed to stop canna"
+}
diff --git a/app-i18n/canna/files/canna-kpdef-gentoo.diff b/app-i18n/canna/files/canna-kpdef-gentoo.diff
new file mode 100644
index 00000000000..f458c53efdd
--- /dev/null
+++ b/app-i18n/canna/files/canna-kpdef-gentoo.diff
@@ -0,0 +1,18 @@
+--- default.kpdef.orig 2002-10-19 17:27:40.000000000 +0900
++++ default.kpdef 2003-12-13 00:54:51.000000000 +0900
+@@ -350,3 +350,15 @@
+ _ _
+ / /
+ \\ ¥
++
++# some useful romkan symbols
++z, ‥
++z- 〜
++z. …
++z/ ・
++z[ 『
++z] 』
++zh ←
++zj ↓
++zk ↑
++zl →
diff --git a/app-i18n/canna/files/canna.confd b/app-i18n/canna/files/canna.confd
new file mode 100644
index 00000000000..1cb42138873
--- /dev/null
+++ b/app-i18n/canna/files/canna.confd
@@ -0,0 +1,8 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Config file for /etc/init.d/canna
+
+# Specify user to run as
+CANNASERVER_OPTS=""
diff --git a/app-i18n/canna/files/canna.hosts b/app-i18n/canna/files/canna.hosts
new file mode 100644
index 00000000000..509143d8631
--- /dev/null
+++ b/app-i18n/canna/files/canna.hosts
@@ -0,0 +1 @@
+unix
diff --git a/app-i18n/canna/files/canna.initd b/app-i18n/canna/files/canna.initd
new file mode 100644
index 00000000000..d26393b179a
--- /dev/null
+++ b/app-i18n/canna/files/canna.initd
@@ -0,0 +1,37 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# CANNASERVER_OPTS is defined in /etc/conf.d/canna
+
+depend() {
+ after logger
+}
+
+start() {
+ if [ -S /tmp/.iroha_unix/IROHA ] ; then
+ /usr/sbin/cannakill >/dev/null 2>&1
+ fi
+ rm -f /tmp/.iroha_unix/IROHA
+
+ if [ "${CANNASERVER_OPTS}" = "${CANNASERVER_OPTS/-syslog/}" ] ; then
+ if [ ! -f /var/log/canna/CANNA0msgs ] ; then
+ touch /var/log/canna/CANNA0msgs
+ fi
+ if [ "${CANNASERVER_OPTS}" != "${CANNASERVER_OPTS/-u/}" ] ; then
+ chown `echo ${CANNASERVER_OPTS} | sed -e 's/.*-u *\(\w*\).*/\1/'` /var/log/canna/CANNA0msgs
+ fi
+ chmod u+w /var/log/canna/CANNA0msgs
+ fi
+
+ ebegin "Starting canna"
+ /usr/sbin/cannaserver ${CANNASERVER_OPTS}
+ eend $? "Failed to start canna"
+}
+
+stop() {
+ ebegin "Stopping canna"
+ /usr/sbin/cannakill
+ eend $? "Failed to stop canna"
+}
diff --git a/app-i18n/canna/files/update-canna-dics_dir b/app-i18n/canna/files/update-canna-dics_dir
new file mode 100644
index 00000000000..a57290ec3ba
--- /dev/null
+++ b/app-i18n/canna/files/update-canna-dics_dir
@@ -0,0 +1,36 @@
+#!/bin/sh
+# update-canna-dics_dir
+# compiles dics.dir files for Canna Server
+# Copyright 2001 ISHIKAWA Mutsumi
+# Licensed under the GNU General Public License, version 2. See the file
+# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>.
+
+SRC=/var/lib/canna/dic/dics.d
+DEST=/var/lib/canna/dic/canna
+
+for DIR in $SRC $DEST; do
+ VALID=yes
+ if [ ! -d $DIR ]; then
+ echo "$0: $DIR does not exist or is not a directory." >&2
+ VALID=
+ fi
+done
+
+if [ -n "$VALID" ]; then
+ # write new dics.dir file in case we are interrupted
+ echo '# dics.dir -- automatically generated file. DO NOT EDIT.' > $DEST/dics.dir.update-new
+# echo '# To modify, see update-canna-dics_dir(8). >> $DEST/dics.dir.update-new
+ # are there any files to process?
+ if [ "$(echo $SRC/*.dics.dir)" != "$SRC/*.dics.dir" ]; then
+ for file in $SRC/*.dics.dir; do
+ echo "# $file" >> $DEST/dics.dir.update-new
+ cat $file >> $DEST/dics.dir.update-new
+ done
+ mv $DEST/dics.dir.update-new $DEST/dics.dir
+ else
+ # no files to process, remove the one
+ rm -f $DEST/dics.dir
+ fi
+fi
+
+exit
diff --git a/app-i18n/canna/metadata.xml b/app-i18n/canna/metadata.xml
new file mode 100644
index 00000000000..12ed83cf199
--- /dev/null
+++ b/app-i18n/canna/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge-jp">canna</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/cstools/Manifest b/app-i18n/cstools/Manifest
new file mode 100644
index 00000000000..b305e73422d
--- /dev/null
+++ b/app-i18n/cstools/Manifest
@@ -0,0 +1 @@
+DIST Cstools-3.42.tar.gz 30650 SHA256 a47a25df1d9bdda3cff209992163bd416634e7728b70cc2c822c86d7687136ca SHA512 78f2f95b5cfde77d23249550085a895abc35965b02ff26382b248d4e713c90c113ad7909b916713dff55c9ee210f13672d609d794b3caf9985fcb207a071f19f WHIRLPOOL a4812da7ec30141b3d8ab09d60d374a49dbc30650aca807bf043f71e83710ccbc0e1f6bd967000a253bb4e2021678944f19885df73e89480e50fcdc66081886c
diff --git a/app-i18n/cstools/cstools-3.42.ebuild b/app-i18n/cstools/cstools-3.42.ebuild
new file mode 100644
index 00000000000..b1eeac8206d
--- /dev/null
+++ b/app-i18n/cstools/cstools-3.42.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit perl-app
+
+MY_P="Cstools-${PV}"
+DESCRIPTION="A charset conversion tool cstocs and two convenience Perl modules for Czech language"
+SRC_URI="http://www.adelton.com/perl/Cstools/${MY_P}.tar.gz"
+HOMEPAGE="http://www.adelton.com/perl/Cstools/"
+SLOT="0"
+LICENSE="Artistic"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-perl/MIME-tools"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
diff --git a/app-i18n/cstools/metadata.xml b/app-i18n/cstools/metadata.xml
new file mode 100644
index 00000000000..c1358c6fa34
--- /dev/null
+++ b/app-i18n/cstools/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ Distribution Cstools contains well-known character set conversion
+ program cstocs, and module Cz::Cstocs that makes it easy to do charset
+ conversions directly in Perl scripts, without spawning external process.
+ Also included is Cz::Sort module that provides functions for Czech
+ collation in Perl scripts without a need of locale settings. It is based
+ on conversion table from csr program by Petr Olsak.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-i18n/dbskkd-cdb/Manifest b/app-i18n/dbskkd-cdb/Manifest
new file mode 100644
index 00000000000..662591b2f11
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/Manifest
@@ -0,0 +1 @@
+DIST dbskkd-cdb-2.00.tar.gz 9296 SHA256 0e434e72153dde3131aeeeafbb40eba0054d0d37cab47b1561e4cf6dda6da8bb SHA512 3582728d2a1917c00437b273208fa150a5a32dcd462752c6751ddbd574ca7f1476b2aca0d2613471a800bd17f80e2c4b60846f9056ae621996f8f5a5592fa22a WHIRLPOOL 028849c4ab2d74338b6fcaed02f3c7b1ecea6315274499233e8097e4dab0bfd6d97a693657a1db8408d4e87933f804e253fa5a2e55a96ec47ba98bc45014e603
diff --git a/app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild b/app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild
new file mode 100644
index 00000000000..0db1fab63e4
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+inherit eutils multilib toolchain-funcs user
+
+DESCRIPTION="Yet another Dictionary server for the SKK Japanese-input software"
+HOMEPAGE="http://dbskkd-cdb.googlecode.com/"
+SRC_URI="http://dbskkd-cdb.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="|| ( dev-db/cdb dev-db/tinycdb )"
+RDEPEND=">=app-i18n/skk-jisyo-200705[cdb]
+ sys-apps/xinetd"
+
+pkg_setup() {
+ enewuser dbskkd -1 -1 -1
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+ sed -i -e "/^CDBLIB/s:lib:$(get_libdir):" Makefile || die
+ if has_version dev-db/cdb ; then
+ sed -i -e "/^CDBLIB/s:$: /usr/$(get_libdir)/byte.a /usr/$(get_libdir)/unix.a:" Makefile || die
+ fi
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}/${PN}.xinetd" ${PN} || die
+
+ dodoc CHANGES README* *.txt
+}
diff --git a/app-i18n/dbskkd-cdb/files/dbskkd-cdb-2.00-gentoo.patch b/app-i18n/dbskkd-cdb/files/dbskkd-cdb-2.00-gentoo.patch
new file mode 100644
index 00000000000..c4c79d22ead
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/files/dbskkd-cdb-2.00-gentoo.patch
@@ -0,0 +1,54 @@
+diff -Naur dbskkd-cdb-2.00.orig/Makefile dbskkd-cdb-2.00/Makefile
+--- dbskkd-cdb-2.00.orig/Makefile 2009-02-06 11:56:47.000000000 +0900
++++ dbskkd-cdb-2.00/Makefile 2009-02-13 15:39:03.000000000 +0900
+@@ -1,12 +1,14 @@
+ # dbskkd-cdb Makefile
+
+-CC = cc -Wall -O2 -g -I/usr/local/include
++CC = cc
++CFLAGS += -Wall -g -I/usr/include -I/usr/include/cdb
+ COMPAT =
+-CDBLIB = /usr/local/lib/libcdb.a
+-INSTALLDIR = /usr/local/libexec
++CDBLIB = /usr/lib/libcdb.a
++INSTALLDIR = /usr/libexec
++DESTDIR =
+
+ .c.o:
+- $(CC) $(COMPAT) $(PRIVATE) -c $*.c
++ $(CC) $(CFLAGS) $(COMPAT) $(PRIVATE) -c $*.c
+
+ all: dbskkd-cdb
+
+@@ -14,15 +17,16 @@
+ /bin/rm -f dbskkd-cdb *.o
+
+ dbskkd-cdb: dbskkd-cdb.o
+- $(CC) $(COMPAT) $(PRIVATE) -o dbskkd-cdb \
++ $(CC) $(LDFLAGS) $(COMPAT) $(PRIVATE) -o dbskkd-cdb \
+ dbskkd-cdb.o ${CDBLIB}
+
+ dbskkd-cdb.o: dbskkd-cdb.c
+- $(CC) $(COMPAT) $(PRIVATE) -c dbskkd-cdb.c
++ $(CC) $(CFLAGS) $(COMPAT) $(PRIVATE) -c dbskkd-cdb.c
+
+ error.o: error.c error.h
+
+ install: dbskkd-cdb
+- cp dbskkd-cdb $(INSTALLDIR); chmod 755 $(INSTALLDIR)/dbskkd-cdb
++ mkdir -p $(DESTDIR)$(INSTALLDIR)
++ cp dbskkd-cdb $(DESTDIR)$(INSTALLDIR); chmod 755 $(DESTDIR)$(INSTALLDIR)/dbskkd-cdb
+
+ # end of makefile
+diff -Naur dbskkd-cdb-2.00.orig/dbskkd-cdb.c dbskkd-cdb-2.00/dbskkd-cdb.c
+--- dbskkd-cdb-2.00.orig/dbskkd-cdb.c 2009-02-06 11:56:47.000000000 +0900
++++ dbskkd-cdb-2.00/dbskkd-cdb.c 2009-02-13 15:25:25.000000000 +0900
+@@ -27,7 +27,7 @@
+ * spelling changed from JISHO to JISYO
+ */
+ #ifndef JISYO_FILE
+-#define JISYO_FILE "/usr/local/share/skk/SKK-JISYO.L.cdb"
++#define JISYO_FILE "/usr/share/skk/SKK-JISYO.L.cdb"
+ #endif /* JISYO_FILE */
+
+ #define BUFSIZE (1024) /* max size of a request */
diff --git a/app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd b/app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd
new file mode 100644
index 00000000000..674927fe90b
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd
@@ -0,0 +1,10 @@
+service skkserv
+{
+ socket_type = stream
+ wait = no
+ user = dbskkd
+ protocol = tcp
+ port = 1178
+ server = /usr/libexec/dbskkd-cdb
+ disable = yes
+}
diff --git a/app-i18n/dbskkd-cdb/metadata.xml b/app-i18n/dbskkd-cdb/metadata.xml
new file mode 100644
index 00000000000..de646be8897
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">dbskkd-cdb</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/enca/Manifest b/app-i18n/enca/Manifest
new file mode 100644
index 00000000000..29d8660217e
--- /dev/null
+++ b/app-i18n/enca/Manifest
@@ -0,0 +1,2 @@
+DIST enca-1.13.tar.bz2 532000 SHA256 6c091455d524b3ddae3533fe9bb375092f60ad6fe252e0777c873bd7869c7432 SHA512 7c5cb7b28eea271c4c94135082c1aa3f312bf790aaa4f51c954fd87ed734fae04ec07be99b20e7dfa3a668349c17d97f1eeea1ee553f9b841e74bfafc5a5906a WHIRLPOOL 0080ce92c22c5ad8b34eea767133602d73e3ebcbcb5084794e5e5da37edceab1bba9785f3884aa5c84749be89116eecf7bc59faa0ebb7118e97411f97e97e4a8
+DIST enca-1.14.tar.bz2 560982 SHA256 7f33e3953fbbdac8ed144b31bbab1bb3bf181150db6ba4cd812fd958ce5f4b58 SHA512 9d0582cc8187f3e868339c3e13ca2c654359b240dd564b64a31615aeffb0ec7ae025659576cc72f6cab73b0bfa22286060f665f2c952f8dfe702cf97a39d2245 WHIRLPOOL 921038e3c6a612b38820d7314a7afe83c231e48396cd801dcbeb3f64afe157b0b5009ada00ae59f35ee4a882c4a40f46ac3346139c99da00611b073b561cfbee
diff --git a/app-i18n/enca/enca-1.13-r3.ebuild b/app-i18n/enca/enca-1.13-r3.ebuild
new file mode 100644
index 00000000000..ae119dde3a8
--- /dev/null
+++ b/app-i18n/enca/enca-1.13-r3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+AUTOTOOLS_AUTORECONF=2.52
+inherit eutils toolchain-funcs autotools-utils
+
+DESCRIPTION="ENCA detects the character coding of a file and converts it if desired"
+HOMEPAGE="http://gitorious.org/enca"
+SRC_URI="http://dl.cihar.com/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="doc +recode"
+
+DEPEND="recode? ( >=app-text/recode-3.6_p15 )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-remove-dirty-path-hack.patch
+ # fix crosscompilation, bug #424473
+ if tc-is-cross-compiler; then
+ sed -e "s#./make_hash#./native_make_hash#" -i tools/Makefile.am || die
+ fi
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-external
+ --disable-static
+ $(use_with recode librecode "${EPREFIX}"/usr)
+ $(use_enable doc gtk-doc)
+ )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ if tc-is-cross-compiler; then
+ pushd "${AUTOTOOLS_BUILD_DIR}"/tools > /dev/null
+ $(tc-getBUILD_CC) -o native_make_hash "${S}"/tools/make_hash.c || die "native make_hash failed"
+ popd > /dev/null
+ fi
+ autotools-utils_src_compile
+}
+
+src_install() {
+ autotools-utils_src_install
+}
diff --git a/app-i18n/enca/enca-1.14-r1.ebuild b/app-i18n/enca/enca-1.14-r1.ebuild
new file mode 100644
index 00000000000..b94dd24e52f
--- /dev/null
+++ b/app-i18n/enca/enca-1.14-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+AUTOTOOLS_AUTORECONF=2.52
+
+inherit eutils toolchain-funcs autotools-multilib
+
+DESCRIPTION="ENCA detects the character coding of a file and converts it if desired"
+HOMEPAGE="http://gitorious.org/enca"
+SRC_URI="http://dl.cihar.com/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="doc +recode"
+
+DEPEND="recode? ( >=app-text/recode-3.6_p15 )
+ sys-devel/gettext"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-remove-dirty-path-hack.patch
+ epatch "${FILESDIR}"/${P}-automake-1.13.patch
+ rm missing # too old, automake will update it
+ # fix crosscompilation, bug #424473
+ if tc-is-cross-compiler; then
+ sed -e "s#./make_hash#./native_make_hash#" -i tools/Makefile.am || die
+ fi
+ autotools-multilib_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-external
+ --disable-static
+ $(use_with recode librecode "${EPREFIX}"/usr)
+ $(use_enable doc gtk-doc)
+ )
+ autotools-multilib_src_configure
+}
+
+multilib_src_compile() {
+ if tc-is-cross-compiler; then
+ pushd "${BUILD_DIR}"/tools > /dev/null
+ $(tc-getBUILD_CC) -o native_make_hash "${S}"/tools/make_hash.c || die "native make_hash failed"
+ popd > /dev/null
+ fi
+ # It will fail if we run these twice...
+ if ! multilib_is_native_abi ; then
+ sed -i -e 's/ src / /' Makefile || die
+ sed -i -e '/SUBDIRS/s/ test//' Makefile || die
+ sed -i -e 's/install-data-hook:/install-data-hook:\n\ndisabled:/' Makefile || die
+ fi
+ autotools-utils_src_compile
+}
diff --git a/app-i18n/enca/enca-1.14-r2.ebuild b/app-i18n/enca/enca-1.14-r2.ebuild
new file mode 100644
index 00000000000..d8de93abdfd
--- /dev/null
+++ b/app-i18n/enca/enca-1.14-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=2.52
+
+inherit eutils toolchain-funcs autotools-multilib
+
+DESCRIPTION="ENCA detects the character coding of a file and converts it if desired"
+HOMEPAGE="http://gitorious.org/enca"
+SRC_URI="http://dl.cihar.com/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ~mips ~ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="doc +recode"
+
+RDEPEND="recode? ( >=app-text/recode-3.6_p15 )"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-remove-dirty-path-hack.patch \
+ "${FILESDIR}"/${P}-automake-1.13.patch \
+ "${FILESDIR}"/${P}-gcc4.8-avx-bug.patch
+ rm missing # too old, automake will update it
+ # fix crosscompilation, bug #424473
+ if tc-is-cross-compiler; then
+ sed -e "s#./make_hash#./native_make_hash#" -i tools/Makefile.am || die
+ fi
+ autotools-multilib_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-external
+ --disable-static
+ $(use_with recode librecode "${EPREFIX}"/usr)
+ $(use_enable doc gtk-doc)
+ )
+ autotools-multilib_src_configure
+}
+
+multilib_src_compile() {
+ if tc-is-cross-compiler; then
+ pushd "${BUILD_DIR}"/tools > /dev/null
+ $(tc-getBUILD_CC) -o native_make_hash "${S}"/tools/make_hash.c || die "native make_hash failed"
+ popd > /dev/null
+ fi
+ # It will fail if we run these twice...
+ if ! multilib_is_native_abi ; then
+ sed -i -e 's/ src / /'\
+ -e '/SUBDIRS/s/ test//' Makefile\
+ -e 's/install-data-hook:/install-data-hook:\n\ndisabled:/' Makefile || die
+ fi
+ autotools-utils_src_compile
+}
diff --git a/app-i18n/enca/files/enca-1.14-automake-1.13.patch b/app-i18n/enca/files/enca-1.14-automake-1.13.patch
new file mode 100644
index 00000000000..653295793fa
--- /dev/null
+++ b/app-i18n/enca/files/enca-1.14-automake-1.13.patch
@@ -0,0 +1,34 @@
+diff --git a/configure.ac b/configure.ac
+index 956763d..6a624ab 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -24,7 +24,7 @@ AC_CONFIG_FILES( \
+ test/Makefile \
+ tools/Makefile)
+
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+ AM_INIT_AUTOMAKE([1.8 gnits check-news dist-bzip2])
+ AM_ACLOCAL_INCLUDE(m4)
+ AM_MAINTAINER_MODE
+@@ -40,7 +40,7 @@ AC_GNU_SOURCE
+ AC_AIX
+ AC_ISC_POSIX
+ AC_PROG_LIBTOOL
+-AM_PROG_CC_STDC
++AC_PROG_CC
+ AM_PROG_CC_C_O
+ AC_PROG_INSTALL
+ AC_PROG_LN_S
+diff --git a/m4/typevar.m4 b/m4/typevar.m4
+index ce9578d..66077eb 100644
+--- a/m4/typevar.m4
++++ b/m4/typevar.m4
+@@ -6,7 +6,6 @@
+ ## defined in errno.h
+ AC_DEFUN([ye_CHECK_VAR_PROGRAM_INVOCATION_SHORT_NAME],
+ [AC_REQUIRE([AC_PROG_CC])dnl
+-AC_REQUIRE([AM_PROG_CC_STDC])dnl
+ dnl
+
+ dnl Check for program_invocation_short_name (present on GNU systems only?)
diff --git a/app-i18n/enca/files/enca-1.14-gcc4.8-avx-bug.patch b/app-i18n/enca/files/enca-1.14-gcc4.8-avx-bug.patch
new file mode 100644
index 00000000000..3753c73acc9
--- /dev/null
+++ b/app-i18n/enca/files/enca-1.14-gcc4.8-avx-bug.patch
@@ -0,0 +1,15 @@
+Avoid gcc-4.8.4 bug when built with -O3 -march=core-avx2
+https://bugs.gentoo.org/501386
+diff --git a/lib/multibyte.c b/lib/multibyte.c
+index d0d0680..d511f88 100644
+--- a/lib/multibyte.c
++++ b/lib/multibyte.c
+@@ -520,7 +520,7 @@ looks_like_ucs2(EncaAnalyserState *analyser)
+ static int
+ looks_like_ucs4(EncaAnalyserState *analyser)
+ {
+- static const EncaSurface PERMS[] = {
++ /*static*/ const EncaSurface PERMS[] = {
+ ENCA_SURFACE_PERM_4321,
+ ENCA_SURFACE_PERM_21
+ };
diff --git a/app-i18n/enca/files/enca-remove-dirty-path-hack.patch b/app-i18n/enca/files/enca-remove-dirty-path-hack.patch
new file mode 100644
index 00000000000..b96667cd288
--- /dev/null
+++ b/app-i18n/enca/files/enca-remove-dirty-path-hack.patch
@@ -0,0 +1,19 @@
+diff -Naur enca-1.13.orig//configure.ac enca-1.13/configure.ac
+--- enca-1.13.orig//configure.ac 2010-02-09 05:23:03.000000000 -0500
++++ enca-1.13/configure.ac 2012-06-29 18:04:51.000000000 -0400
+@@ -97,15 +97,6 @@
+ dnl Check for good random number sources
+ AC_CHECK_FILES(/dev/random /dev/urandom /dev/srandom /dev/arandom)
+
+-dnl Dirty path hack. Helps some people with badly set up search paths.
+-if test "$prefix" = "NONE"; then
+- LDFLAGS="$LDFLAGS -L$ac_default_prefix/lib"
+- CPPFLAGS="$CPPFLAGS -I$ac_default_prefix/include"
+-else
+- LDFLAGS="$LDFLAGS -L$prefix/lib"
+- CPPFLAGS="$CPPFLAGS -I$prefix/include"
+-fi
+-
+ dnl Checks for libraries.
+ ye_CHECK_LIBM
+
diff --git a/app-i18n/enca/metadata.xml b/app-i18n/enca/metadata.xml
new file mode 100644
index 00000000000..d10f1bc6bc1
--- /dev/null
+++ b/app-i18n/enca/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>stasrtf@gmail.com</email>
+ <description>Proxy maintainer</description>
+ <name>Stas</name>
+ </maintainer>
+ <maintainer>
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="gitorious">enca</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fbiterm/Manifest b/app-i18n/fbiterm/Manifest
new file mode 100644
index 00000000000..20114476820
--- /dev/null
+++ b/app-i18n/fbiterm/Manifest
@@ -0,0 +1 @@
+DIST iterm-0.5.tar.gz 608170 SHA256 4b0d2310f5e4a42bfe90c394cae51a26d2a9437716b7e4eee6a5202db9ef1424 SHA512 5b25abe9320fe3317e69048ee49b80e8b341952ac89df83d14ba2bd3893396b4348c257e0dd64ca00914485efc622dac2fbb6d2546b6360774777872a71a3695 WHIRLPOOL 9110e2a894a87fb108f93087583185117098d8be634530cf7162760e50531deb5649bd2dd4da4734effb1523a0eb8c5a7ebeccd57a67918726c7e445c9be9c58
diff --git a/app-i18n/fbiterm/fbiterm-0.5-r2.ebuild b/app-i18n/fbiterm/fbiterm-0.5-r2.ebuild
new file mode 100644
index 00000000000..925c0fc8518
--- /dev/null
+++ b/app-i18n/fbiterm/fbiterm-0.5-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit autotools-utils eutils multilib
+
+IUSE=""
+
+DESCRIPTION="Framebuffer internationalized terminal emulator"
+HOMEPAGE="http://www-124.ibm.com/linux/projects/iterm/"
+SRC_URI="http://www-124.ibm.com/linux/projects/iterm/releases/iterm-${PV}.tar.gz"
+
+LICENSE="CPL-0.5"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="x11-libs/libXfont
+ >=media-libs/freetype-2
+ x11-libs/libiterm-mbt
+ sys-libs/zlib"
+RDEPEND="${DEPEND}
+ media-fonts/font-sony-misc
+ media-fonts/unifont"
+
+PATCHES=(
+ "${FILESDIR}"/${PF}-gentoo.diff
+ "${FILESDIR}"/${P}-cflags.patch
+)
+DOCS=( AUTHORS ChangeLog README{,.jp,.zh_CN} )
+AUTOTOOLS_AUTORECONF=1
+
+S="${WORKDIR}/iterm/unix/fbiterm"
+
+src_configure() {
+ local myeconfargs=(
+ --x-includes=/usr/include
+ --x-libraries=/usr/$(get_libdir)
+ )
+ autotools-utils_src_configure
+}
+
+pkg_postinst() {
+ elog
+ elog "1. If you haven't created your locale, run localedef."
+ elog "# localedef -v -c -i en_GB -f UTF-8 en_GB.UTF-8"
+ elog "(If you want to use other locales such as Japanese, replace"
+ elog "en_GB with ja_JP and en_GB.UTF-8 with ja_JP.UTF-8, respectively)"
+ elog
+ elog "2. Set enviroment variable."
+ elog "% export LC_CTYPE=en_GB.UTF-8 (sh, bash, zsh, ...)"
+ elog "> setenv LC_CTYPE en_GB.UTF-8 (csh, tcsh, ...)"
+ elog "(Again, if you want to use Japanese locale, create ja_JP.UTF-8"
+ elog " locale by localedef and set LC_CTYPE to ja_JP.UTF-8)"
+ elog
+ elog "3. Run unicode_start."
+ elog "% unicode_start"
+ elog
+ elog "4. Run fbiterm."
+ elog "% fbiterm"
+ elog
+}
diff --git a/app-i18n/fbiterm/files/fbiterm-0.5-cflags.patch b/app-i18n/fbiterm/files/fbiterm-0.5-cflags.patch
new file mode 100644
index 00000000000..ae738c81420
--- /dev/null
+++ b/app-i18n/fbiterm/files/fbiterm-0.5-cflags.patch
@@ -0,0 +1,13 @@
+diff --git a/unix/fbiterm/src/Makefile.am b/unix/fbiterm/src/Makefile.am
+index 4ffe3da..53f12f4 100644
+--- a/unix/fbiterm/src/Makefile.am
++++ b/unix/fbiterm/src/Makefile.am
+@@ -17,7 +17,7 @@ fbiterm_SOURCES = \
+ fbiterm_LDADD = \
+ -L$(libdir) @X_LIBS@ -lm -lXfont -literm -lfreetype
+
+-CFLAGS = -I$(includedir) @X_CFLAGS@ -I$(top_srcdir)/include -I/usr/local/include $(EXTRA_CFLAGS)
++CFLAGS += -I$(includedir) @X_CFLAGS@ -I$(top_srcdir)/include -I/usr/local/include $(EXTRA_CFLAGS)
+
+ install-exec-hook:
+ chmod u+s $(DESTDIR)$(bindir)/fbiterm
diff --git a/app-i18n/fbiterm/files/fbiterm-0.5-r2-gentoo.diff b/app-i18n/fbiterm/files/fbiterm-0.5-r2-gentoo.diff
new file mode 100644
index 00000000000..7a63ebce786
--- /dev/null
+++ b/app-i18n/fbiterm/files/fbiterm-0.5-r2-gentoo.diff
@@ -0,0 +1,28 @@
+diff -Naur fbiterm.orig/src/Makefile.am fbiterm/src/Makefile.am
+--- fbiterm.orig/src/Makefile.am 2002-12-17 16:39:43.000000000 +0900
++++ fbiterm/src/Makefile.am 2008-11-25 01:35:18.000000000 +0900
+@@ -15,7 +15,7 @@
+ vt.c VTScreenView.c fbiterm.h palette.h VTScreenView.h
+
+ fbiterm_LDADD = \
+- -L$(libdir) @X_LIBS@ -lXfont -literm
++ -L$(libdir) @X_LIBS@ -lm -lXfont -literm -lfreetype
+
+ CFLAGS = -I$(includedir) @X_CFLAGS@ -I$(top_srcdir)/include -I/usr/local/include $(EXTRA_CFLAGS)
+
+diff -Naur fbiterm.orig/src/fbiterm.h fbiterm/src/fbiterm.h
+--- fbiterm.orig/src/fbiterm.h 2002-10-24 21:44:01.000000000 +0900
++++ fbiterm/src/fbiterm.h 2008-11-25 01:34:12.000000000 +0900
+@@ -53,9 +53,9 @@
+ #define FB_ENV "FRAMEBUFFER"
+ #define FB_DEFDEV "/dev/fb0"
+
+-#define DefaultAsc "/usr/lib/X11/fonts/misc/8x16.pcf.gz"
+-#define DefaultMB "/usr/lib/X11/fonts/misc/unifont.pcf.gz"
+-#define DefaultFont "/usr/local/share/iterm/fonts/8x16.pcf.gz"
++#define DefaultAsc "/usr/share/fonts/misc/8x16.pcf.gz"
++#define DefaultMB "/usr/share/fonts/misc/unifont.pcf.gz"
++#define DefaultFont "/usr/share/iterm/fonts/8x16.pcf.gz"
+
+ enum ITERM_RETCODE
+ {
diff --git a/app-i18n/fbiterm/metadata.xml b/app-i18n/fbiterm/metadata.xml
new file mode 100644
index 00000000000..2d5852c16c6
--- /dev/null
+++ b/app-i18n/fbiterm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fbterm/Manifest b/app-i18n/fbterm/Manifest
new file mode 100644
index 00000000000..2dcaedde78b
--- /dev/null
+++ b/app-i18n/fbterm/Manifest
@@ -0,0 +1 @@
+DIST fbterm-1.7.0.tar.gz 188642 SHA256 720f600817217257aa4c822e67814495dcb6c8d6326cdde5fe3ba1e457d9915d SHA512 ba78b5118b5e4c65046f7f91ce88cb4f828e2debb34358df8518e1907a8d601a2be4dfcf144e84494dc30e4828d333574debe8dd3ffb59e2169c3e48ba1f6a10 WHIRLPOOL 7e01fff188974218a71c4083a4185d52a188431bbd1d282b8d9ca79189854ba5dc942476c83f543fbbe449ddc22f223166be2f6617b04c0d0e0acd240b762c11
diff --git a/app-i18n/fbterm/fbterm-1.7-r1.ebuild b/app-i18n/fbterm/fbterm-1.7-r1.ebuild
new file mode 100644
index 00000000000..d575cfa1f75
--- /dev/null
+++ b/app-i18n/fbterm/fbterm-1.7-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit autotools-utils
+
+DESCRIPTION="Fast terminal emulator for the Linux framebuffer"
+HOMEPAGE="http://fbterm.googlecode.com/"
+SRC_URI="http://fbterm.googlecode.com/files/${P}.0.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="caps gpm video_cards_vesa"
+
+RDEPEND="caps? ( sys-libs/libcap )
+ gpm? ( sys-libs/gpm )
+ video_cards_vesa? ( dev-libs/libx86 )
+ media-libs/fontconfig
+ media-libs/freetype:2"
+DEPEND="${RDEPEND}
+ sys-libs/ncurses
+ virtual/pkgconfig"
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+DOCS=( AUTHORS NEWS README )
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable gpm)
+ $(use_enable video_cards_vesa vesa)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+ $(type -P tic) -o "${ED}/usr/share/terminfo/" \
+ "${S}"/terminfo/fbterm || die "Failed to generate terminfo database"
+ if use caps; then
+ setcap "cap_sys_tty_config+ep" "${ED}"/usr/bin/fbterm
+ else
+ fperms u+s /usr/bin/fbterm
+ fi
+}
+
+pkg_postinst() {
+ einfo
+ einfo " ${PN} won't work with vga16fb. You have to use other native"
+ einfo " framebuffer drivers or vesa driver."
+ einfo " See ${EPREFIX}/usr/share/doc/${P}/README for details."
+ einfo " To use ${PN}, ensure you are in video group."
+ einfo " To input CJK merge app-i18n/fbterm-ucimf"
+ einfo
+}
diff --git a/app-i18n/fbterm/metadata.xml b/app-i18n/fbterm/metadata.xml
new file mode 100644
index 00000000000..2d5852c16c6
--- /dev/null
+++ b/app-i18n/fbterm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-anthy/Manifest b/app-i18n/fcitx-anthy/Manifest
new file mode 100644
index 00000000000..f9552c2b052
--- /dev/null
+++ b/app-i18n/fcitx-anthy/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-anthy-0.1.1.tar.xz 68604 SHA256 c508068c7c9a56c26ea44b8e6ddb90a2ea75860031f89e171dcda8ec4cd08955 SHA512 e2c4bb20f0b0a370e5f28bff14312c2c14210695418438ebe697b94570fe502be8c96dc8fbf813fd3aa6e352283a7d31808a1f12266d4a8050646a8ae86de9d9 WHIRLPOOL 48f674ef23d62f2dc1286712cbb252d709d9e3890921d1f9296ff89f85c5ae211daa887841fc01f267fe44764275e8b6de4aef859d9f1456cb24f00023b262ce
+DIST fcitx-anthy-0.2.1.tar.xz 72196 SHA256 fd208474666f09f1c189c10c2c0fa9cfda33948b704410e02878fdd92174d78d SHA512 18599251d6ebda96a23f81f63d91e9a9d469d2ea534975c2f4ddbc80584d70646ac6d157d0571f9d48565c0cfd1bb111e2907cae2c00b750014b9f39a7bcf961 WHIRLPOOL 99632911a7831ce24c7535b0e0a249cbbc48b24ec44682f6a09e3dc0a61d7eb74363642098158cc409c3390fb141d03591f1e1b1b3683164d4d6002fe9c92769
diff --git a/app-i18n/fcitx-anthy/fcitx-anthy-0.1.1.ebuild b/app-i18n/fcitx-anthy/fcitx-anthy-0.1.1.ebuild
new file mode 100644
index 00000000000..089b8be3948
--- /dev/null
+++ b/app-i18n/fcitx-anthy/fcitx-anthy-0.1.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Japanese Anthy module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.5
+ app-i18n/anthy"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-anthy/fcitx-anthy-0.2.1.ebuild b/app-i18n/fcitx-anthy/fcitx-anthy-0.2.1.ebuild
new file mode 100644
index 00000000000..a0bc0e74151
--- /dev/null
+++ b/app-i18n/fcitx-anthy/fcitx-anthy-0.2.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Japanese Anthy module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ app-i18n/anthy"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-anthy/metadata.xml b/app-i18n/fcitx-anthy/metadata.xml
new file mode 100644
index 00000000000..cb36a2fd8c7
--- /dev/null
+++ b/app-i18n/fcitx-anthy/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-chewing/Manifest b/app-i18n/fcitx-chewing/Manifest
new file mode 100644
index 00000000000..d054d9c7f2a
--- /dev/null
+++ b/app-i18n/fcitx-chewing/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-chewing-0.2.0.tar.xz 13968 SHA256 cf03b84004f1839a6f6e10dadf53edfbf8b6dcbb9d70579cde913b6b5e0a8dec SHA512 af8f2fb6fb5fb017522ac81fa9b14907d9537dace21ef594951f1dd717e276319666480aecaa55d0696c2ba80f74d51f7573aea9799d96a37bfa8305b8e04e54 WHIRLPOOL 6508407069d353c05b3167b413f5ab90f839afa6e77282ce79504ae23d831e150747a1c949e5fa8f0c021ba7b44b95087295336ad17d049bfbd41b87555aca5f
+DIST fcitx-chewing-0.2.2.tar.xz 19684 SHA256 fa278ee9d2c20f7ae0a3093a3e490553798186bd67dc1e83f2723bd15b47a450 SHA512 3191c269459779115353fdf3f6fcdd1a8bace2d7f45426eebe1d4198eb8f84ef88680c38b7e03d7db4db45dc41ee2ddbe92d36c71911f09b23ef9f0d5d745617 WHIRLPOOL ab9a2fec736f3e2c4af761360ef0cd0e53fdeae1e850e322d7b5d31ceee9d074f7cb29f9f6e083f26e374928ba559b53d139ba906faf21538771a6f371d677eb
diff --git a/app-i18n/fcitx-chewing/fcitx-chewing-0.2.0.ebuild b/app-i18n/fcitx-chewing/fcitx-chewing-0.2.0.ebuild
new file mode 100644
index 00000000000..0be76516b3a
--- /dev/null
+++ b/app-i18n/fcitx-chewing/fcitx-chewing-0.2.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="Chewing module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ dev-libs/libchewing"
+DEPEND="${RDEPEND}
+ virtual/libintl"
diff --git a/app-i18n/fcitx-chewing/fcitx-chewing-0.2.2.ebuild b/app-i18n/fcitx-chewing/fcitx-chewing-0.2.2.ebuild
new file mode 100644
index 00000000000..8c8208f587e
--- /dev/null
+++ b/app-i18n/fcitx-chewing/fcitx-chewing-0.2.2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="Chewing module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ >=dev-libs/libchewing-0.4.0"
+DEPEND="${RDEPEND}
+ virtual/libintl"
diff --git a/app-i18n/fcitx-chewing/metadata.xml b/app-i18n/fcitx-chewing/metadata.xml
new file mode 100644
index 00000000000..cb36a2fd8c7
--- /dev/null
+++ b/app-i18n/fcitx-chewing/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-cloudpinyin/Manifest b/app-i18n/fcitx-cloudpinyin/Manifest
new file mode 100644
index 00000000000..6b17d161ed0
--- /dev/null
+++ b/app-i18n/fcitx-cloudpinyin/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-cloudpinyin-0.3.1.tar.xz 19296 SHA256 2c919bf7979964bef861b432b821fc43fa94824e82372b03c653219b0fc05f6e SHA512 fda8501d8c132b3810f70d984f77652cefad5a052580c6607f893efdfed132a05053c6edf3ea8ba829e33abc237808eac6ca3521c6616ad2cfa5e3c4e0045297 WHIRLPOOL bcd8aae0339ecdc3db58a950c475e81133a90b08f9294dfea224d38ec7b6e2f929fff2d389761f2c90ee1553b9bd02fd8bf93ab9ef7c23101affebfff7b76d33
+DIST fcitx-cloudpinyin-0.3.4.tar.xz 20796 SHA256 c131e8cfd4d171f7749c2934f13092dcdffcf3d4ff1cefde7ed67daed74b7d90 SHA512 ecfab0e45387793986fc75f24372d69910552d6168c9dd63f258bf05bfa397350bfea2a6fc419ab067fc5a7737a3e8c39d4b8ae5d0501871e3365c8a07553b09 WHIRLPOOL 7dbecb3f5ec38c50364abddeb5c44318503fdf40783b6efd5c8ece029f0cd56f750057b547a25fa6836458ed15646d5923e09c4fc33d927f9d1a40e5332577c7
diff --git a/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.1.ebuild b/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.1.ebuild
new file mode 100644
index 00000000000..fdbb97b66e5
--- /dev/null
+++ b/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="A fcitx module to look up pinyin candidate words on the internet"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ net-misc/curl"
+DEPEND="${RDEPEND}
+ virtual/libiconv
+ virtual/libintl
+ virtual/pkgconfig"
diff --git a/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.4.ebuild b/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.4.ebuild
new file mode 100644
index 00000000000..92cc2d9c9d7
--- /dev/null
+++ b/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.4.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="A fcitx module to look up pinyin candidate words on the internet"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ net-misc/curl"
+DEPEND="${RDEPEND}
+ virtual/libiconv
+ virtual/libintl
+ virtual/pkgconfig"
diff --git a/app-i18n/fcitx-cloudpinyin/metadata.xml b/app-i18n/fcitx-cloudpinyin/metadata.xml
new file mode 100644
index 00000000000..7cb952df2e6
--- /dev/null
+++ b/app-i18n/fcitx-cloudpinyin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">fcitx</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-configtool/Manifest b/app-i18n/fcitx-configtool/Manifest
new file mode 100644
index 00000000000..1d391788deb
--- /dev/null
+++ b/app-i18n/fcitx-configtool/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-configtool-0.4.6.tar.xz 41992 SHA256 8d64107f9f12b4f2cbd82e40b87a2dc4dc76d0ff854481c1103d5e9a2c2e129d SHA512 946bceb77fc6d14210154d9264c86d3333f910893cf3054f65eab72641421847e8ac003889b742f4c28f74c8ab1cfbcfb82abe35ea83ca2548cfc1decc92fc4c WHIRLPOOL 58f8a420f6c98cb6d710bd05d8ca2a3ca48a115015e6de98b105bf71b59bf3dab34eb63009d763dc7a3554fa6ec0b442e8bb277f890230dd94ec371397a6766c
+DIST fcitx-configtool-0.4.8.tar.xz 47196 SHA256 0ebc06d9d325fed096e9cb61fe53b82000d2de0e9aefe5945ba8f0aa2ca851ed SHA512 7b3c43b9d7d1dab04880effe6fc4e80e64c9bad34699c0c8d2992ec971605ef2eaa0b1fb13f71a582289c75560c3edc95af21f6413ac2bb594d5cdb31a0b4cb7 WHIRLPOOL a1817bcc9d6bdcd96e66dbe71d44cb66d6b66802e366b8f21d5f922495176463fc23adff2bbdbfb4003ddcef43839fab06715231fdaada8714eec1e3a073f18f
diff --git a/app-i18n/fcitx-configtool/fcitx-configtool-0.4.6.ebuild b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.6.ebuild
new file mode 100644
index 00000000000..ebf428cbf88
--- /dev/null
+++ b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.6.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="A GTK+ GUI configuration tool for fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE="gtk +gtk3"
+REQUIRED_USE="|| ( gtk gtk3 )"
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ dev-libs/glib:2
+ gtk? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )"
+DEPEND="${RDEPEND}
+ app-text/iso-codes
+ dev-libs/libunique:1
+ dev-util/intltool
+ virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs="
+ $(cmake-utils_use_enable gtk GTK2)
+ $(cmake-utils_use_enable gtk3 GTK3)"
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/fcitx-configtool/fcitx-configtool-0.4.8.ebuild b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.8.ebuild
new file mode 100644
index 00000000000..48ac139256a
--- /dev/null
+++ b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.8.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="A GTK+ GUI configuration tool for fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE="gtk +gtk3"
+REQUIRED_USE="|| ( gtk gtk3 )"
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ dev-libs/glib:2
+ gtk? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )"
+DEPEND="${RDEPEND}
+ app-text/iso-codes
+ dev-libs/libunique:1
+ dev-util/intltool
+ virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs="
+ $(cmake-utils_use_enable gtk GTK2)
+ $(cmake-utils_use_enable gtk3 GTK3)"
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/fcitx-configtool/metadata.xml b/app-i18n/fcitx-configtool/metadata.xml
new file mode 100644
index 00000000000..4484e0f7375
--- /dev/null
+++ b/app-i18n/fcitx-configtool/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <use>
+ <flag name="gtk3">Use GTK+3 instead of 2</flag>
+ </use>
+ <upstream>
+ <remote-id type="google-code">fcitx</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-hangul/Manifest b/app-i18n/fcitx-hangul/Manifest
new file mode 100644
index 00000000000..185ce0dcc00
--- /dev/null
+++ b/app-i18n/fcitx-hangul/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-hangul-0.2.1.tar.xz 25064 SHA256 a084789d2f5646af9e60b8f95385ee1cbbd2dc402709a8b3a8ea82a16fbbae97 SHA512 da1a0926be129dcf49b5fd199b7a75d4f66d3c58944c7f5ae70219a2903c0277a99e9bd05e0758ae86f24b51f910425d70ea86112d85e852cf6f5f1f7fe78db8 WHIRLPOOL c4dae7a479d385da877ffdea36d439e61fa441090b8f86cecf83239250f1cc1ba19204f378ce39c02fe135dd120a4858819c183b25a79dc1989b0a236b6d37bd
+DIST fcitx-hangul-0.3.0.tar.xz 25600 SHA256 978a66471eb200cc3807fe84e9b5f1392fefdcd51031e5a0bd8647fa994507cb SHA512 07085508da98c49bcecf75fbfad6681263a735a1efcc4fb7a6fa05cb215dfe0c338e95e26cc55e488501b5abbc1007464b1bbf488f07aaca2d1a0a18c8173074 WHIRLPOOL 9833d6eb8484be33e84275174b2b81cc88dbb8d2561c15c7897e172fef61045c856cb9c2c42e7df9baf4d3dbdeb987db556b6a2e8a3e1462cd93f80b6a933b7a
diff --git a/app-i18n/fcitx-hangul/fcitx-hangul-0.2.1.ebuild b/app-i18n/fcitx-hangul/fcitx-hangul-0.2.1.ebuild
new file mode 100644
index 00000000000..adc22c76a54
--- /dev/null
+++ b/app-i18n/fcitx-hangul/fcitx-hangul-0.2.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Korean Hangul module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ app-i18n/libhangul"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-hangul/fcitx-hangul-0.3.0.ebuild b/app-i18n/fcitx-hangul/fcitx-hangul-0.3.0.ebuild
new file mode 100644
index 00000000000..8e7463d6da3
--- /dev/null
+++ b/app-i18n/fcitx-hangul/fcitx-hangul-0.3.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Korean Hangul module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ app-i18n/libhangul"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-hangul/metadata.xml b/app-i18n/fcitx-hangul/metadata.xml
new file mode 100644
index 00000000000..cb36a2fd8c7
--- /dev/null
+++ b/app-i18n/fcitx-hangul/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-libpinyin/Manifest b/app-i18n/fcitx-libpinyin/Manifest
new file mode 100644
index 00000000000..0d0e6d23c53
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-libpinyin-0.2.1_dict.tar.xz 10007544 SHA256 1ec33b2c56f98079fa5383b5fffcbe095ec64ffaa07eefebbc5d609136a2fab8 SHA512 7e446ac1e07301d6671f3de1059d099237aeeb46fdb9f68fce40a205cdcb17542345334b13f45b19f356743f92601492d178e6e2d578567c2506bed9c808ccbd WHIRLPOOL 598341a001d4cbb544bf3e3fc4449b1a323fc9ae6d3fc5fe8217b9a15bc2db22fb937e61bae32b3420a6b33d235368d6bd31fecfd1a845d1edd3acda320cb6f3
+DIST fcitx-libpinyin-0.3.1_dict.tar.xz 15143832 SHA256 0b553c90d37c36e82ad692803519cb3cf82ae3597ed2f74b1f5251e942c272ae SHA512 3b7501a75dab2f5b83541c71ccac93709f3354f390f322d7b95e4b94e0c4dc6963522759ab52eb77203d787d6d14d3ce1c838dd92ecd0db041a3b7a25008eaa4 WHIRLPOOL 1f655dc2a4439b8ff0583fa88f3d75f2472a8abdeff9132a98d242f2007d3abaf582f8ae31ec18ef693754bdf29788a37f4dda96bd1777d6a43eb1ac8eb6c194
diff --git a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.2.1.ebuild b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.2.1.ebuild
new file mode 100644
index 00000000000..101a0d6c0c2
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.2.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Libpinyin module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}_dict.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ <app-i18n/libpinyin-0.9.0
+ dev-libs/glib:2"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.1.ebuild b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.1.ebuild
new file mode 100644
index 00000000000..e28164527ec
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Libpinyin module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE="dictmanager"
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ app-i18n/libpinyin
+ dev-libs/glib:2
+ dictmanager? ( >=app-i18n/fcitx-4.2.8[qt4]
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtwebkit:4 )"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs="$(cmake-utils_use_enable dictmanager QT)"
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-libpinyin/metadata.xml b/app-i18n/fcitx-libpinyin/metadata.xml
new file mode 100644
index 00000000000..c4a4afa6554
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <use>
+ <flag name='dictmanager'>
+ Enable dictionary manager. Requires <pkg>dev-qt/qtwebkit</pkg>.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-qt5/Manifest b/app-i18n/fcitx-qt5/Manifest
new file mode 100644
index 00000000000..9a86957b539
--- /dev/null
+++ b/app-i18n/fcitx-qt5/Manifest
@@ -0,0 +1 @@
+DIST fcitx-qt5-1.0.2.tar.xz 53324 SHA256 b8073f07d9384878c616f6d2cea44fc739a3b5731b95b10b3133e0914d49f66d SHA512 f7075d5334e29fd00c54563182c9cc4027011503aa14d577aa2fb75eb8558c385d91c939f1f21e51850c9c64fc5c396aad5b32fdcc8ddd99c46ec74bd577255d WHIRLPOOL 35ae384cf13fdfdb86c34b7dbefbbe780a2c20ac220868824e25a0ba4368581c19d45cbc9447e1c2dd3236b0758ee9e4311dab1f348a524ca2d002d0b43c760c
diff --git a/app-i18n/fcitx-qt5/fcitx-qt5-1.0.2.ebuild b/app-i18n/fcitx-qt5/fcitx-qt5-1.0.2.ebuild
new file mode 100644
index 00000000000..f066264ddc8
--- /dev/null
+++ b/app-i18n/fcitx-qt5/fcitx-qt5-1.0.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="Qt5 input module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ kde-frameworks/extra-cmake-modules"
+DEPEND="${RDEPEND}"
diff --git a/app-i18n/fcitx-qt5/metadata.xml b/app-i18n/fcitx-qt5/metadata.xml
new file mode 100644
index 00000000000..cb36a2fd8c7
--- /dev/null
+++ b/app-i18n/fcitx-qt5/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-rime/Manifest b/app-i18n/fcitx-rime/Manifest
new file mode 100644
index 00000000000..dba3d246464
--- /dev/null
+++ b/app-i18n/fcitx-rime/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-rime-0.2.0.tar.xz 8116 SHA256 e4bc9243abffd1851b4ee19c88d7c2b32ede134aeda60aee930388f9f33ca269 SHA512 3f02d7bf0e47981e7a135ccaa46653be319d1bb716bd939b50419e47b8d3c07b347434e8529522d4266bd5fac6dbc2cdc1bfd4b7ea0607250023f70f97006228 WHIRLPOOL 7dbdcd3ac90f2d901b5b5c06541b9f6f1debf4ad833c2ddacb840dbd80a4443725fc7bdb41ad2261db8f34cb0dc77fe3d5f0c45e69a0a056618518007c1c708e
+DIST fcitx-rime-0.3.1.tar.xz 39648 SHA256 3ca74de4d20e8fd0e67eb4ccae8af3790bb1f557f183c2af32cb45f371e8521d SHA512 5d3c8fc119e1a104987a7876f3b1c54da074e34ce9feb9c02efa7c9cfd788c3735680a03cdb50d69a5512a9f075c7326bdc267cf076daa916238898da81d2388 WHIRLPOOL ed8f4ed563dfbe01aaac71bb847d4a9b641b041f9916c8c6c34a444202ac00720ebe4274c30906141b103fbbf55d7ce045cef094792c1fffadae03dd0ce73f7a
diff --git a/app-i18n/fcitx-rime/fcitx-rime-0.2.0.ebuild b/app-i18n/fcitx-rime/fcitx-rime-0.2.0.ebuild
new file mode 100644
index 00000000000..25335a90966
--- /dev/null
+++ b/app-i18n/fcitx-rime/fcitx-rime-0.2.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Rime support for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="https://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ app-i18n/librime
+ app-i18n/rime-data
+ x11-libs/libnotify"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # dont build data resource here, already provided by app-i18n/rime-data
+ sed -i -e 's|add_subdirectory(data)||' CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DRIME_DATA_DIR=/usr/share/rime-data
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/fcitx-rime/fcitx-rime-0.3.1.ebuild b/app-i18n/fcitx-rime/fcitx-rime-0.3.1.ebuild
new file mode 100644
index 00000000000..8b1623ca36b
--- /dev/null
+++ b/app-i18n/fcitx-rime/fcitx-rime-0.3.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Rime support for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8.1
+ >=app-i18n/librime-1.0
+ app-i18n/rime-data
+ x11-libs/libnotify"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # dont build data resource here, already provided by app-i18n/rime-data
+ sed -i -e 's|add_subdirectory(data)||' CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DRIME_DATA_DIR=/usr/share/rime-data
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/fcitx-rime/metadata.xml b/app-i18n/fcitx-rime/metadata.xml
new file mode 100644
index 00000000000..91091e17d28
--- /dev/null
+++ b/app-i18n/fcitx-rime/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>
+ <maintainer>
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>http://code.google.com/p/rimeime/issues/list</bugs-to>
+ <remote-id type="google-code">rimeime</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-sunpinyin/Manifest b/app-i18n/fcitx-sunpinyin/Manifest
new file mode 100644
index 00000000000..91c1f13dfb7
--- /dev/null
+++ b/app-i18n/fcitx-sunpinyin/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-sunpinyin-0.4.0.tar.xz 40264 SHA256 366af4123455bd85e5af104ca0368057470079937f79eaa70e58951de4743acc SHA512 53def2f36de0d9517da0d154ae8926075c69a5712bf74a3e5ba5ba6266e2d94152dac77e051473828d98ed6a78d3f10557a8ca2081bf1f799405a4f6a4afb83f WHIRLPOOL 2c92a9d0a9d48eb8e4aca895ccddb91f1d1fbaf137bdc4fe32519cd25a8294be39140d117a0d4d20a5a3fa3c21086bd6edbd44d93fafdf8f885aa7d3d36f9843
+DIST fcitx-sunpinyin-0.4.1.tar.xz 41076 SHA256 7bd0c61a3c821719760bff72c3c114b28e277b87f54dcb61d83e3548b1eb6777 SHA512 7ad9065d86d7bb3ceb6536a0fe3559bf2ba60aebe69e2f07c8dadad1a0a2283a1b85712105c6c2a2bf19b9645c4392204db9c3d1db234618ba7f62ee44eda85c WHIRLPOOL 9339656a5b8cf1359af8f3ceeaa630862a31d4a1089a4b3a738f65c275f0f61d8d06bbe89e496f8922ba4b09b384d96aeac43d7bdfcf21bdaa555c79efd10709
diff --git a/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.0.ebuild b/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.0.ebuild
new file mode 100644
index 00000000000..caa149b2374
--- /dev/null
+++ b/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Sunpinyin module for fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ >app-i18n/sunpinyin-2.0.3"
+DEPEND="${RDEPEND}
+ virtual/libintl"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-gcc46-compatible.patch"
+ epatch_user
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.1.ebuild b/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.1.ebuild
new file mode 100644
index 00000000000..b57aef5720c
--- /dev/null
+++ b/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Sunpinyin module for fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ >app-i18n/sunpinyin-2.0.3"
+DEPEND="${RDEPEND}
+ virtual/libintl"
+
+src_prepare() {
+ epatch_user
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-sunpinyin/files/fcitx-sunpinyin-0.4.0-gcc46-compatible.patch b/app-i18n/fcitx-sunpinyin/files/fcitx-sunpinyin-0.4.0-gcc46-compatible.patch
new file mode 100644
index 00000000000..42b6b91a342
--- /dev/null
+++ b/app-i18n/fcitx-sunpinyin/files/fcitx-sunpinyin-0.4.0-gcc46-compatible.patch
@@ -0,0 +1,27 @@
+From f43108d900a2ce7fa52d1c6741fdf41b6747c94c Mon Sep 17 00:00:00 2001
+From: Weng Xuetian <wengxt@gmail.com>
+Date: Sat, 26 Jan 2013 19:56:31 -0500
+Subject: [PATCH] [sunpinyin] gcc46 compatible.
+
+---
+ src/eim.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/eim.cpp b/src/eim.cpp
+index e09521f..c1c898f 100644
+--- a/src/eim.cpp
++++ b/src/eim.cpp
+@@ -49,8 +49,8 @@
+ extern "C" {
+ #endif
+ FCITX_DEFINE_PLUGIN(fcitx_sunpinyin, ime, FcitxIMClass) = {
+- .Create = FcitxSunpinyinCreate,
+- .Destroy = FcitxSunpinyinDestroy
++ FcitxSunpinyinCreate,
++ FcitxSunpinyinDestroy
+ };
+ #ifdef __cplusplus
+ }
+--
+1.7.10
+
diff --git a/app-i18n/fcitx-sunpinyin/metadata.xml b/app-i18n/fcitx-sunpinyin/metadata.xml
new file mode 100644
index 00000000000..7cb952df2e6
--- /dev/null
+++ b/app-i18n/fcitx-sunpinyin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">fcitx</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-table-extra/Manifest b/app-i18n/fcitx-table-extra/Manifest
new file mode 100644
index 00000000000..621aa9742fe
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/Manifest
@@ -0,0 +1,3 @@
+DIST fcitx-table-extra-0.3.3.tar.xz 3350592 SHA256 ae2bbf9146dfdeafb6220c9a738ddc1f0437da2c5f2da0d578ba4970bc74767d SHA512 ea100ba7bfc558395b678390bb787b15f674c13140ab22b5a9ef423e5114399633d24ec322904fd61d8f3613058744d08f615d4330ed948aad9dcff09818e36f WHIRLPOOL 10a61ea0aac14e9b55902276557c5b5daba17c14a3101d4e4e1384c8922c89dbfe96b1ac543e9ad3408f0951ecd7869a8c4c0d36d168129b2f78d611a0f70158
+DIST fcitx-table-extra-0.3.6.tar.xz 3694520 SHA256 9f80984d23622b90a7d5fbf439f54d7d46f6e2f640618b00079214f50a62a233 SHA512 3970fd9fb14afef5bc55fcfb8234c12951cf88a8ead9be1575ba3100d08f83f23c923093722380ca9c066d6a3fa065bd51f176b09815b0c85f13d8351a004304 WHIRLPOOL b296eb3198cbf578c4b556942591aee9a9998e3677776a8a6d5a4b80cc3e360d4b6cd784e88d5eb3714879d1ec1231d13e2ad9cca50439470362ae1a9473963a
+DIST fcitx-table-extra-0.3.7.tar.xz 3704164 SHA256 8933570ecd803a4f4fe932c983004e669d81b2f08c3bcaa532151545a42e659e SHA512 628eb7d2b09a3383ab92460dc8c2bc86771482cc84bdce847a394ee595423642dff29a39ccf31f56ea8de833f25e9d42952b55b754dd234d0831b5de5431d16a WHIRLPOOL 2744d91154d51d2388192ce313f4be2e839d5dc33e20622a68208e8e4f155883aedb7b4828e619a1a81e21ea4f893fb6806e59ebed66d842259477a7b4127122
diff --git a/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.3.ebuild b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.3.ebuild
new file mode 100644
index 00000000000..eb85808c7ad
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Extra tables for Fcitx, including Boshiamy, Zhengma, Cangjie and Quick"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7[table]"
+DEPEND="${RDEPEND}
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.6.ebuild b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.6.ebuild
new file mode 100644
index 00000000000..dca95d4bf52
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.6.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Extra tables for Fcitx, including Boshiamy, Zhengma, Cangjie and Quick"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8[table]"
+DEPEND="${RDEPEND}
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.7.ebuild b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.7.ebuild
new file mode 100644
index 00000000000..a62f314d467
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.7.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Extra tables for Fcitx, including Boshiamy, Zhengma, Cangjie and Quick"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8[table]"
+DEPEND="${RDEPEND}
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-table-extra/metadata.xml b/app-i18n/fcitx-table-extra/metadata.xml
new file mode 100644
index 00000000000..cb36a2fd8c7
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-unikey/Manifest b/app-i18n/fcitx-unikey/Manifest
new file mode 100644
index 00000000000..eef4f12d026
--- /dev/null
+++ b/app-i18n/fcitx-unikey/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-unikey-0.2.0.tar.xz 70944 SHA256 152da48ffeb665fc5d88202f6491fa5f4d11284792c2ef079bea4a94c8b125e1 SHA512 10c5c2c5b7e4f40710daccc485b220ed4cdadc6e866636032873a86f9f8489490a42671c9d02aedbbda78a94e40801dd888efc9b692d26ff81fe6d1fe2e10fa7 WHIRLPOOL d6dfd445bd5aa98ec28ab0bd9668f288d67f27874ecdd079f78956172f3d5695fd990ce9e70f190a26edd1eab4f48a8263efc8682fe93679a85fc1db2f6745be
+DIST fcitx-unikey-0.2.4.tar.xz 72308 SHA256 726e5999c00e93856639258298688c835db1e80e4ac4d5ff0786433c0593c195 SHA512 d55fe71bbcbc420e0ba3ec61ad3c7e9293e33f30b6303d90591d5a94e89d7bbc513dc940ae5a081b81c0d973fa6674872a695eac03cfbbefb460609993219221 WHIRLPOOL 9178a4ec7bcf0b6f969295bef0b066b266e336352c52f9a8761cb1cb6456df6c3d90a90d90212c2fbe137ebc07a1cf6b79f82e959dc6ad3806158675ee040fbb
diff --git a/app-i18n/fcitx-unikey/fcitx-unikey-0.2.0.ebuild b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.0.ebuild
new file mode 100644
index 00000000000..4e28e9c1282
--- /dev/null
+++ b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Vietnamese Unikey module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE="+qt4"
+
+RDEPEND=">=app-i18n/fcitx-4.2.7[qt4?]"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+src_prepare() {
+ # Add cmake option to build the qt based macro editor or not
+ epatch "${FILESDIR}/${P}-cmake-qt-option.patch"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_enable qt4 QT)
+ )
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-unikey/fcitx-unikey-0.2.4.ebuild b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.4.ebuild
new file mode 100644
index 00000000000..e829fd226be
--- /dev/null
+++ b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.4.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Vietnamese Unikey module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE="+qt4"
+
+RDEPEND=">=app-i18n/fcitx-4.2.8[qt4?]"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_enable qt4 QT)
+ )
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-unikey/files/fcitx-unikey-0.2.0-cmake-qt-option.patch b/app-i18n/fcitx-unikey/files/fcitx-unikey-0.2.0-cmake-qt-option.patch
new file mode 100644
index 00000000000..2667b0cd0d1
--- /dev/null
+++ b/app-i18n/fcitx-unikey/files/fcitx-unikey-0.2.0-cmake-qt-option.patch
@@ -0,0 +1,56 @@
+From f0f0d7c1ee5d83f33ceacaf78f4b7845ec2819de Mon Sep 17 00:00:00 2001
+From: Weng Xuetian <wengxt@gmail.com>
+Date: Sat, 26 Jan 2013 14:45:29 -0500
+Subject: [PATCH] [unikey] option for qt, detect qt 4.8
+
+---
+ CMakeLists.txt | 7 ++++++-
+ macro-editor/CMakeLists.txt | 4 ++--
+ 2 files changed, 8 insertions(+), 3 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index cef1625..5ccf21c 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -4,6 +4,8 @@ project(fcitx-unikey)
+
+ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
+
++option(ENABLE_QT "Enable Qt based macro editor" On)
++
+ # uninstall target
+ configure_file(
+ "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
+@@ -21,9 +23,12 @@ set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--as-needed ${CMAKE_MODULE_LINKER_FLAGS}")
+ find_package(Fcitx 4.2.7 REQUIRED)
+ find_package(Libiconv REQUIRED)
+ find_package(Gettext REQUIRED)
+-find_package(Qt4)
++
++if (ENABLE_QT)
++find_package(Qt4 4.8)
+
+ pkg_check_modules(FCITX_QT "fcitx-qt>=4.2.7")
++endif (ENABLE_QT)
+
+ configure_file(config.h.in config.h)
+
+diff --git a/macro-editor/CMakeLists.txt b/macro-editor/CMakeLists.txt
+index fbb2482..145ee0b 100644
+--- a/macro-editor/CMakeLists.txt
++++ b/macro-editor/CMakeLists.txt
+@@ -16,9 +16,9 @@ fcitx_translate_add_sources(
+ ${MACRO_EDITOR_SRCS}
+ ${MACRO_EDITOR_HDRS})
+
+-if (NOT QT_FOUND OR NOT FCITX_QT_FOUND)
++if (NOT QT_FOUND OR NOT FCITX_QT_FOUND OR NOT ENABLE_QT)
+ return()
+-endif (NOT QT_FOUND OR NOT FCITX_QT_FOUND)
++endif (NOT QT_FOUND OR NOT FCITX_QT_FOUND OR NOT ENABLE_QT)
+
+ include_directories(
+ ${FCITX_QT_INCLUDE_DIRS}
+--
+1.7.10
+
diff --git a/app-i18n/fcitx-unikey/metadata.xml b/app-i18n/fcitx-unikey/metadata.xml
new file mode 100644
index 00000000000..cb36a2fd8c7
--- /dev/null
+++ b/app-i18n/fcitx-unikey/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx/Manifest b/app-i18n/fcitx/Manifest
new file mode 100644
index 00000000000..47e7d57ae72
--- /dev/null
+++ b/app-i18n/fcitx/Manifest
@@ -0,0 +1,3 @@
+DIST fcitx-4.2.7_dict.tar.xz 8546416 SHA256 0c902617581f04eb0d337634b0bf2b39956abbcc949512cc79d4ee24cfc9dbb5 SHA512 e5d8eb55f644250197e69315ad02b9f6bc84e697b23c20c01a731f98ce8b1a16d764a58b1e1047d45b8decb6be33144707c2a52fc427e6338d8b8186cd4da074 WHIRLPOOL e344bc92a84940d3c885d1ae87a2fc83c95d6cb0f0e95eed76078e996c4a00df82a0c09c4540771f628928db1716f90d50d04469f2c0f2d5c17b5048fbf2d482
+DIST fcitx-4.2.8.5_dict.tar.xz 8696468 SHA256 fe3d6f57805fc61130f8254f19a86fe3baa0f405406414ca2e94bcf86d3d1b72 SHA512 ee6612a34087135065537fa14f09078bad9f029f69b636fb2221193f23d86c5431a9d8a848b264bdcb259680f6bda41d08d58dcf67d19e5a200cb11fa4a26ffe WHIRLPOOL 0a394d5aaa53819bbab66b32e7ae5896187bc45fad146c7eef4ab75640e5c6670cf811bec87e482bb3516b30e1ce28f2cefa91c10838092f9329b1101b5c70db
+DIST fcitx-4.2.8.6_dict.tar.xz 8694328 SHA256 91034e9ef976bbe2649a96b67adf0c133d64e2c0d53be440cc40a4370569d597 SHA512 822e448932e735fe3087384eaf91c6b029b06d3461aa3798501bfbf8f79b8ebc5ea3ac57f01ec32674cc3cb74fcb34b6e285ef265bb49be54543f34dcaf624e4 WHIRLPOOL df24b3b6bbe18a8498732b27817caef6c28278bddd6acfbe49edd9a63d8f33b09ba93ff0bd144e1c1d3b9b9c8079a35a8a047ebf9b361b4f173ec9b23138042e
diff --git a/app-i18n/fcitx/fcitx-4.2.7.ebuild b/app-i18n/fcitx/fcitx-4.2.7.ebuild
new file mode 100644
index 00000000000..04c124be9e9
--- /dev/null
+++ b/app-i18n/fcitx/fcitx-4.2.7.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils eutils gnome2-utils fdo-mime multilib readme.gentoo
+
+DESCRIPTION="Flexible Contect-aware Input Tool with eXtension support"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}_dict.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="+X +autostart +cairo +dbus debug +enchant gtk gtk3 icu introspection lua
+nls opencc +pango qt4 snooper static-libs +table test +xml"
+
+RDEPEND="
+ X? (
+ x11-libs/libX11
+ x11-libs/libXinerama
+ )
+ cairo? (
+ x11-libs/cairo[X]
+ pango? ( x11-libs/pango[X] )
+ !pango? ( media-libs/fontconfig )
+ )
+ dbus? ( sys-apps/dbus )
+ enchant? ( app-text/enchant )
+ gtk? (
+ x11-libs/gtk+:2
+ dev-libs/glib:2
+ dev-libs/dbus-glib
+ )
+ gtk3? (
+ x11-libs/gtk+:3
+ dev-libs/glib:2
+ dev-libs/dbus-glib
+ )
+ icu? ( dev-libs/icu:= )
+ introspection? ( dev-libs/gobject-introspection )
+ lua? ( dev-lang/lua )
+ opencc? ( app-i18n/opencc )
+ qt4? (
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4[glib]
+ )
+ xml? (
+ app-text/iso-codes
+ dev-libs/libxml2
+ x11-libs/libxkbfile
+ )"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+DOCS=( AUTHORS ChangeLog README THANKS TODO
+ doc/pinyin.txt doc/cjkvinput.txt doc/API.txt doc/Develop_Readme )
+HTML_DOCS=( doc/wb_fh.htm )
+
+src_prepare() {
+ use autostart && DOC_CONTENTS="You have enabled the autostart USE flag,
+ which will let fcitx start automatically on XDG compatible desktop
+ environments, such as Gnome, KDE, LXDE, Razor-qt and Xfce. If you use
+ ~/.xinitrc to configure your desktop, make sure to include the fcitx
+ command to start it."
+ epatch "${FILESDIR}/${P}-gcc46-compatible.patch"
+ epatch_user
+}
+
+src_configure() {
+ local mycmakeargs="
+ -DLIB_INSTALL_DIR=/usr/$(get_libdir)
+ $(cmake-utils_use_enable X X11)
+ $(cmake-utils_use_enable autostart XDGAUTOSTART)
+ $(cmake-utils_use_enable cairo CAIRO)
+ $(cmake-utils_use_enable dbus DBUS)
+ $(cmake-utils_use_enable debug DEBUG)
+ $(cmake-utils_use_enable enchant ENCHANT)
+ $(cmake-utils_use_enable gtk GTK2_IM_MODULE)
+ $(cmake-utils_use_enable gtk3 GTK3_IM_MODULE)
+ $(cmake-utils_use_enable icu ICU)
+ $(cmake-utils_use_enable introspection GIR)
+ $(cmake-utils_use_enable lua LUA)
+ $(cmake-utils_use_enable nls GETTEXT)
+ $(cmake-utils_use_enable opencc OPENCC)
+ $(cmake-utils_use_enable pango PANGO)
+ $(cmake-utils_use_enable qt4 QT)
+ $(cmake-utils_use_enable qt4 QT_IM_MODULE)
+ $(cmake-utils_use_enable qt4 QT_GUI)
+ $(cmake-utils_use_enable snooper SNOOPER)
+ $(cmake-utils_use_enable static-libs STATIC)
+ $(cmake-utils_use_enable table TABLE)
+ $(cmake-utils_use_enable test TEST)
+ $(cmake-utils_use_enable xml LIBXML2)"
+ if use gtk || use gtk3 || use qt4 ; then
+ mycmakeargs+=" -DENABLE_GLIB2=ON "
+ fi
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ rm -rf "${ED}"/usr/share/doc/${PN} || die
+ use autostart && readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use autostart && readme.gentoo_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/fcitx/fcitx-4.2.8.5.ebuild b/app-i18n/fcitx/fcitx-4.2.8.5.ebuild
new file mode 100644
index 00000000000..7e4b47d2bce
--- /dev/null
+++ b/app-i18n/fcitx/fcitx-4.2.8.5.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils eutils gnome2-utils fdo-mime multilib readme.gentoo
+
+DESCRIPTION="Flexible Contect-aware Input Tool with eXtension support"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/fcitx/${P}_dict.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc ppc64 ~x86"
+IUSE="+X +autostart +cairo +dbus debug +enchant gtk gtk3 icu introspection lua
+nls opencc +pango qt4 static-libs +table test +xml"
+
+REQUIRED_USE="cairo? ( X ) gtk? ( X ) gtk3? ( X ) qt4? ( X )"
+
+RDEPEND="
+ X? (
+ x11-libs/libX11
+ x11-libs/libXinerama
+ )
+ cairo? (
+ x11-libs/cairo[X]
+ pango? ( x11-libs/pango[X] )
+ !pango? ( media-libs/fontconfig )
+ )
+ dbus? ( sys-apps/dbus )
+ enchant? ( app-text/enchant )
+ gtk? (
+ x11-libs/gtk+:2
+ dev-libs/glib:2
+ dev-libs/dbus-glib
+ )
+ gtk3? (
+ x11-libs/gtk+:3
+ dev-libs/glib:2
+ dev-libs/dbus-glib
+ )
+ icu? ( dev-libs/icu:= )
+ introspection? ( dev-libs/gobject-introspection )
+ lua? ( dev-lang/lua:= )
+ nls? ( sys-devel/gettext )
+ opencc? ( app-i18n/opencc )
+ qt4? (
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4[glib]
+ )
+ xml? (
+ app-text/iso-codes
+ dev-libs/libxml2
+ x11-libs/libxkbfile
+ )"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog README THANKS TODO
+ doc/pinyin.txt doc/cjkvinput.txt doc/API.txt doc/Develop_Readme )
+HTML_DOCS=( doc/wb_fh.htm )
+
+src_prepare() {
+ use autostart && DOC_CONTENTS="You have enabled the autostart USE flag,
+ which will let fcitx start automatically on XDG compatible desktop
+ environments, such as Gnome, KDE, LXDE, Razor-qt and Xfce. If you use
+ ~/.xinitrc to configure your desktop, make sure to include the fcitx
+ command to start it."
+ epatch_user
+}
+
+src_configure() {
+ local mycmakeargs="
+ -DLIB_INSTALL_DIR=/usr/$(get_libdir)
+ -DSYSCONFDIR=/etc/
+ $(cmake-utils_use_enable X X11)
+ $(cmake-utils_use_enable autostart XDGAUTOSTART)
+ $(cmake-utils_use_enable cairo CAIRO)
+ $(cmake-utils_use_enable dbus DBUS)
+ $(cmake-utils_use_enable debug DEBUG)
+ $(cmake-utils_use_enable enchant ENCHANT)
+ $(cmake-utils_use_enable gtk GTK2_IM_MODULE)
+ $(cmake-utils_use_enable gtk SNOOPER)
+ $(cmake-utils_use_enable gtk3 GTK3_IM_MODULE)
+ $(cmake-utils_use_enable gtk3 SNOOPER)
+ $(cmake-utils_use_enable icu ICU)
+ $(cmake-utils_use_enable introspection GIR)
+ $(cmake-utils_use_enable lua LUA)
+ $(cmake-utils_use_enable nls GETTEXT)
+ $(cmake-utils_use_enable opencc OPENCC)
+ $(cmake-utils_use_enable pango PANGO)
+ $(cmake-utils_use_enable qt4 QT)
+ $(cmake-utils_use_enable qt4 QT_IM_MODULE)
+ $(cmake-utils_use_enable qt4 QT_GUI)
+ $(cmake-utils_use_enable static-libs STATIC)
+ $(cmake-utils_use_enable table TABLE)
+ $(cmake-utils_use_enable test TEST)
+ $(cmake-utils_use_enable xml LIBXML2)"
+ if use gtk || use gtk3 || use qt4 ; then
+ mycmakeargs+=" -DENABLE_GLIB2=ON "
+ fi
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ rm -rf "${ED}"/usr/share/doc/${PN} || die
+ use autostart && readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use autostart && readme.gentoo_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/fcitx/fcitx-4.2.8.6.ebuild b/app-i18n/fcitx/fcitx-4.2.8.6.ebuild
new file mode 100644
index 00000000000..1889d2b651f
--- /dev/null
+++ b/app-i18n/fcitx/fcitx-4.2.8.6.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils eutils gnome2-utils fdo-mime multilib readme.gentoo
+
+DESCRIPTION="Flexible Contect-aware Input Tool with eXtension support"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/fcitx/${P}_dict.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="+X +autostart +cairo +dbus debug +enchant gtk gtk3 icu introspection lua
+nls opencc +pango qt4 static-libs +table test +xml"
+
+REQUIRED_USE="cairo? ( X ) gtk? ( X ) gtk3? ( X ) qt4? ( X )"
+
+RDEPEND="
+ X? (
+ x11-libs/libX11
+ x11-libs/libXinerama
+ )
+ cairo? (
+ x11-libs/cairo[X]
+ pango? ( x11-libs/pango[X] )
+ !pango? ( media-libs/fontconfig )
+ )
+ dbus? ( sys-apps/dbus )
+ enchant? ( app-text/enchant )
+ gtk? (
+ x11-libs/gtk+:2
+ dev-libs/glib:2
+ dev-libs/dbus-glib
+ )
+ gtk3? (
+ x11-libs/gtk+:3
+ dev-libs/glib:2
+ dev-libs/dbus-glib
+ )
+ icu? ( dev-libs/icu:= )
+ introspection? ( dev-libs/gobject-introspection )
+ lua? ( dev-lang/lua:= )
+ nls? ( sys-devel/gettext )
+ opencc? ( app-i18n/opencc )
+ qt4? (
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4[glib]
+ )
+ xml? (
+ app-text/iso-codes
+ dev-libs/libxml2
+ x11-libs/libxkbfile
+ )"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog README THANKS TODO
+ doc/pinyin.txt doc/cjkvinput.txt doc/API.txt doc/Develop_Readme )
+HTML_DOCS=( doc/wb_fh.htm )
+
+src_prepare() {
+ use autostart && DOC_CONTENTS="You have enabled the autostart USE flag,
+ which will let fcitx start automatically on XDG compatible desktop
+ environments, such as Gnome, KDE, LXDE, LXQt and Xfce. If you use
+ ~/.xinitrc to configure your desktop, make sure to include the fcitx
+ command to start it."
+ epatch_user
+}
+
+src_configure() {
+ local mycmakeargs="
+ -DLIB_INSTALL_DIR=/usr/$(get_libdir)
+ -DSYSCONFDIR=/etc/
+ $(cmake-utils_use_enable X X11)
+ $(cmake-utils_use_enable autostart XDGAUTOSTART)
+ $(cmake-utils_use_enable cairo CAIRO)
+ $(cmake-utils_use_enable dbus DBUS)
+ $(cmake-utils_use_enable debug DEBUG)
+ $(cmake-utils_use_enable enchant ENCHANT)
+ $(cmake-utils_use_enable gtk GTK2_IM_MODULE)
+ $(cmake-utils_use_enable gtk SNOOPER)
+ $(cmake-utils_use_enable gtk3 GTK3_IM_MODULE)
+ $(cmake-utils_use_enable gtk3 SNOOPER)
+ $(cmake-utils_use_enable icu ICU)
+ $(cmake-utils_use_enable introspection GIR)
+ $(cmake-utils_use_enable lua LUA)
+ $(cmake-utils_use_enable nls GETTEXT)
+ $(cmake-utils_use_enable opencc OPENCC)
+ $(cmake-utils_use_enable pango PANGO)
+ $(cmake-utils_use_enable qt4 QT)
+ $(cmake-utils_use_enable qt4 QT_IM_MODULE)
+ $(cmake-utils_use_enable qt4 QT_GUI)
+ $(cmake-utils_use_enable static-libs STATIC)
+ $(cmake-utils_use_enable table TABLE)
+ $(cmake-utils_use_enable test TEST)
+ $(cmake-utils_use_enable xml LIBXML2)"
+ if use gtk || use gtk3 || use qt4 ; then
+ mycmakeargs+=" -DENABLE_GLIB2=ON "
+ fi
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ rm -rf "${ED}"/usr/share/doc/${PN} || die
+ use autostart && readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use autostart && readme.gentoo_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/fcitx/files/fcitx-4.2.7-gcc46-compatible.patch b/app-i18n/fcitx/files/fcitx-4.2.7-gcc46-compatible.patch
new file mode 100644
index 00000000000..218f0e8312c
--- /dev/null
+++ b/app-i18n/fcitx/files/fcitx-4.2.7-gcc46-compatible.patch
@@ -0,0 +1,43 @@
+From 4c703e395b55e939f3ac1e4a4bf5cd36aa5b0abc Mon Sep 17 00:00:00 2001
+From: Weng Xuetian <wengxt@gmail.com>
+Date: Sat, 26 Jan 2013 14:40:00 -0500
+Subject: [PATCH] [fcitx] fix compatible with gcc 4.6
+
+---
+ src/lib/fcitx/module.h | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/lib/fcitx/module.h b/src/lib/fcitx/module.h
+index 28de64f..bae6601 100644
+--- a/src/lib/fcitx/module.h
++++ b/src/lib/fcitx/module.h
+@@ -109,7 +109,7 @@
+ void* FcitxModuleInvokeFunction(FcitxAddon* addon, int functionId, FcitxModuleFunctionArg args);
+ #define FcitxModuleInvokeVaArgs(addon, functionId, ARGV...) \
+ (FcitxModuleInvokeFunction(addon, functionId, \
+- (FcitxModuleFunctionArg){ .args = {ARGV} }))
++ (FcitxModuleFunctionArg){ {ARGV} }))
+
+ /**
+ * invoke inter module function with addon name, returns NULL when fails (the function itself can also return NULL)
+@@ -133,7 +133,7 @@
+ #define InvokeVaArgs(INST, MODULE, FUNC, ARGV...) \
+ ((MODULE##_##FUNC##_RETURNTYPE)FcitxModuleInvokeFunctionByName( \
+ INST, MODULE##_NAME, MODULE##_##FUNC, \
+- (FcitxModuleFunctionArg){ .args = {ARGV} }))
++ (FcitxModuleFunctionArg){ {ARGV} }))
+
+ /** add a function to a addon */
+ #define AddFunction(ADDON, Realname) \
+@@ -215,7 +215,7 @@
+ }
+
+ #define FCITX_DEF_MODULE_ARGS(var, ARGV...) \
+- FcitxModuleFunctionArg var = { .args = {ARGV} }
++ FcitxModuleFunctionArg var = { {ARGV} }
+ /* void *__##var##_array[] = {ARGV}; \ */
+ /* size_t __##var##_length = sizeof(__##var##_array) / sizeof(void*); \ */
+ /* FcitxModuleFunctionArg var[] = { { .n = __##var##_length, \ */
+--
+1.7.10
+
diff --git a/app-i18n/fcitx/metadata.xml b/app-i18n/fcitx/metadata.xml
new file mode 100644
index 00000000000..aecebce7655
--- /dev/null
+++ b/app-i18n/fcitx/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <use>
+ <flag name='autostart'>Enable xdg-compatible autostart of fcitx</flag>
+ <flag name='enchant'>Use <pkg>app-text/enchant</pkg> for text prediction</flag>
+ <flag name='introspection'>Enable GObject Introspection</flag>
+ <flag name='gtk'>Install GTK2 IM module</flag>
+ <flag name='gtk3'>Install GTK3 IM module</flag>
+ <flag name='opencc'>Enable OpenCC for Chinese Transform</flag>
+ <flag name='pango'>Enable support for <pkg>x11-libs/pango</pkg></flag>
+ <flag name='qt4'>Install Qt4 IM module</flag>
+ <flag name='snooper'>Enable Key Snooper for GTK app</flag>
+ <flag name='table'>Enable Table IM</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-i18n/freewnn/Manifest b/app-i18n/freewnn/Manifest
new file mode 100644
index 00000000000..a7e47796b9a
--- /dev/null
+++ b/app-i18n/freewnn/Manifest
@@ -0,0 +1,2 @@
+DIST FreeWnn-1.1.1-a021.tar.bz2 3108905 SHA256 df9523b2eea7cbc94d9d01c19a01394abe3b648c5ec3f1259adac06fc8ecbb86 SHA512 27a61949d4f9e969d09b7c698c07db0be8140e346dad4e84be72d54f9c087e317e7854ae02e2ebbd530b6b86b4a55c8d209a7dd27de1ed908731487aece5d7a8 WHIRLPOOL 3e34357a3925fdbedd1c71138053196799de9a7b0d5e3c1e23501a52cafac5eda52b6f33b5c75f7ed7e09174dfc36a63b25e3d7d620114b157e6dd82530f6013
+DIST FreeWnn-1.1.1-a022.tar.bz2 3137954 SHA256 3728352fe9d3352ce16884bd0a517eaf227da0cf7e6f1d09b7a3f38f6bfb6dba SHA512 938c8bff69e2f43cce265a6a84822ae08b89725837f808addb66ba202dadafa60c213638f298d9efe1257fd96f7193fd711a3dacecd803289d925d8f6ea6eaf3 WHIRLPOOL f7462c2d6214ea416c8b726b0d086911b238efd39615c4eea5d2c1a9685974ce1c9f20d23d65e861753e64d796c8b98d72682d670d48bf5da80e8051df8d7de9
diff --git a/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-as-needed.patch b/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-as-needed.patch
new file mode 100644
index 00000000000..588c28731db
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-as-needed.patch
@@ -0,0 +1,11 @@
+--- FreeWnn-1.1.1-a021.orig/Wnn/jlib/Makefile.in 2004-09-12 18:56:55.000000000 +0200
++++ FreeWnn-1.1.1-a021/Wnn/jlib/Makefile.in 2009-12-29 20:29:18.086539501 +0100
+@@ -101,7 +101,7 @@
+ all:: libwnn.la
+
+ libwnn.la: $(OBJS) $(EXTRALIBRARYDEPS)
+- $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS:.o=.lo) -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION)
++ $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS:.o=.lo) @LIBS@ -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION)
+
+ lintlib:: llib-lwnn.ln
+
diff --git a/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-gcc45.patch b/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-gcc45.patch
new file mode 100644
index 00000000000..d46c91d80ae
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-gcc45.patch
@@ -0,0 +1,13 @@
+diff --git a/Wnn/pubdicplus/Makefile.in b/Wnn/pubdicplus/Makefile.in
+index 41c868d..e9ffc28 100644
+--- a/Wnn/pubdicplus/Makefile.in
++++ b/Wnn/pubdicplus/Makefile.in
+@@ -422,7 +422,7 @@ fzk.master-.c: fzk.master
+ $(LN) $? $@
+
+ std.fzk: fzk.master-.c $(FZK_SRC)
+- $(CPP) $(FZK_FLAG) fzk.master-.c | egrep -v '^(# |#line |#pragma |$$)' | $(ATOF) -h $(HINSI) $@
++ $(CPP) -P $(FZK_FLAG) fzk.master-.c | egrep -v '^(# |#line |#pragma |$$)' | $(ATOF) -h $(HINSI) $@
+
+ full.fzk: $(FZK_SRC)
+ $(MAKE) FZK_FLAG=-DKANSAI std.fzk
diff --git a/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-ldflags.patch b/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-ldflags.patch
new file mode 100644
index 00000000000..f097892249e
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-ldflags.patch
@@ -0,0 +1,26 @@
+diff --git a/makerule.mk.in b/makerule.mk.in
+index fa9a7e1..dc7210a 100644
+--- a/makerule.mk.in
++++ b/makerule.mk.in
+@@ -94,7 +94,7 @@ ALLDEFINES = $(INCLUDES) $(DEFINES)
+ CFLAGS = @CFLAGS@ @CDEBUGFLAGS@ $(CCOPTIONS) @ipv6@ @DEFS@ $(ALLDEFINES)
+ LIBS = @LIBS@
+ LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)
+-LDOPTIONS = @CDEBUGFLAGS@ $(CCOPTIONS)
++LDOPTIONS = @CDEBUGFLAGS@ $(CCOPTIONS) $(LDFLAGS)
+
+
+ #
+diff --git a/Wnn/jlib.V3/Makefile.in b/Wnn/jlib.V3/Makefile.in
+index 9d5b873..5b1bf23 100644
+--- a/Wnn/jlib.V3/Makefile.in
++++ b/Wnn/jlib.V3/Makefile.in
+@@ -76,7 +76,7 @@ includes::
+ all:: libjd.la
+
+ libjd.la: $(OBJS) $(EXTRALIBRARYDEPS)
+- $(LIBTOOL) $(CC) -o $@ $(OBJS:.o=.lo) -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION)
++ $(LIBTOOL) $(CC) -o $@ $(LDOPTIONS) $(OBJS:.o=.lo) -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION)
+
+ lintlib:: llib-ljd.ln
+
diff --git a/app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch b/app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch
new file mode 100644
index 00000000000..058225c36ee
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch
@@ -0,0 +1,318 @@
+Description: Fix potential race condition when building in parallel mode
+Origin: upstream, http://cvs.sourceforge.jp/cvs/view/freewnn/FreeWnn/Wnn/pubdicplus/Makefile.in?r1=1.7&r2=1.8&view=patch
+Bug-Debian: http://bugs.debian.org/724058
+
+--- a/Wnn/pubdicplus/Makefile.in 2010/02/22 17:06:54 1.7
++++ b/Wnn/pubdicplus/Makefile.in 2013/11/08 18:54:44 1.8
+@@ -1,5 +1,5 @@
+ #
+-# $Id: Makefile.in,v 1.7 2010/02/22 17:06:54 aonoto Exp $
++# $Id: Makefile.in,v 1.8 2013/11/08 18:54:44 aonoto Exp $
+ #
+
+ #
+@@ -10,7 +10,7 @@
+ # 1987, 1988, 1989, 1990, 1991, 1992
+ # Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
+ # Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
+-# Copyright FreeWnn Project 1999, 2000, 2001, 2002, 2004, 2010
++# Copyright FreeWnn Project 1999, 2000, 2001, 2002, 2004, 2010, 2013
+ #
+ # Maintainer: FreeWnn Project
+ #
+@@ -42,13 +42,12 @@
+ ATOF = $(WNNJUTILOBJ)/atof
+ WNNTOUCH = $(WNNJUTILOBJ)/wnntouch
+ HINSI = @HINSI_DATA@
+- FZK_FLAG =
+
+ LINKS = Version bio.hd chimei.hd computer.hd fzk.attr fzk.con fzk.fzkattr fzk.jirattr fzk.jircon fzk.master fzk.shuutan jinmei.hd kihon.hd koyuu.hd setsuji.hd special.hd special.u symbol.hd tankan.hd
+
+ WNNDICS = bio.u chimei.u computer.u jinmei.u kihon.u koyuu.u setsuji.u symbol.u tankan.u
+
+-FZK_SRC= fzk.master fzk.attr fzk.jirattr fzk.fzkattr fzk.jircon fzk.con fzk.shuutan
++FZK_SRC= fzk.master-.c fzk.attr fzk.jirattr fzk.fzkattr fzk.jircon fzk.con fzk.shuutan
+
+ DIC= bio.dic chimei.dic computer.dic jinmei.dic kihon.dic koyuu.dic setsuji.dic special.dic symbol.dic tankan.dic
+
+@@ -68,24 +67,14 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: Version
+-
+ depend:: Version
+
+-clean::
+- $(RM) Version
+-
+ bio.hd: $(PUBDICPLUSSRC)/bio.hd
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: bio.hd
+-
+ depend:: bio.hd
+
+-clean::
+- $(RM) bio.hd
+-
+ # bio.u: $(PUBDICPLUSSRC)/bio.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -101,13 +90,8 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: chimei.hd
+-
+ depend:: chimei.hd
+
+-clean::
+- $(RM) chimei.hd
+-
+ # chimei.u: $(PUBDICPLUSSRC)/chimei.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -123,13 +107,8 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: computer.hd
+-
+ depend:: computer.hd
+
+-clean::
+- $(RM) computer.hd
+-
+ # computer.u: $(PUBDICPLUSSRC)/computer.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -145,90 +124,50 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.attr
+-
+ depend:: fzk.attr
+
+-clean::
+- $(RM) fzk.attr
+-
+ fzk.con: $(PUBDICPLUSSRC)/fzk.con
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.con
+-
+ depend:: fzk.con
+
+-clean::
+- $(RM) fzk.con
+-
+ fzk.fzkattr: $(PUBDICPLUSSRC)/fzk.fzkattr
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.fzkattr
+-
+ depend:: fzk.fzkattr
+
+-clean::
+- $(RM) fzk.fzkattr
+-
+ fzk.jirattr: $(PUBDICPLUSSRC)/fzk.jirattr
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.jirattr
+-
+ depend:: fzk.jirattr
+
+-clean::
+- $(RM) fzk.jirattr
+-
+ fzk.jircon: $(PUBDICPLUSSRC)/fzk.jircon
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.jircon
+-
+ depend:: fzk.jircon
+
+-clean::
+- $(RM) fzk.jircon
+-
+ fzk.master: $(PUBDICPLUSSRC)/fzk.master
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.master
+-
+ depend:: fzk.master
+
+-clean::
+- $(RM) fzk.master
+-
+ fzk.shuutan: $(PUBDICPLUSSRC)/fzk.shuutan
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: fzk.shuutan
+-
+ depend:: fzk.shuutan
+
+-clean::
+- $(RM) fzk.shuutan
+-
+ jinmei.hd: $(PUBDICPLUSSRC)/jinmei.hd
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: jinmei.hd
+-
+ depend:: jinmei.hd
+
+-clean::
+- $(RM) jinmei.hd
+-
+ # jinmei.u: $(PUBDICPLUSSRC)/jinmei.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -244,13 +183,8 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: kihon.hd
+-
+ depend:: kihon.hd
+
+-clean::
+- $(RM) kihon.hd
+-
+ # kihon.u: $(PUBDICPLUSSRC)/kihon.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -266,13 +200,8 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: koyuu.hd
+-
+ depend:: koyuu.hd
+
+-clean::
+- $(RM) koyuu.hd
+-
+ # koyuu.u: $(PUBDICPLUSSRC)/koyuu.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -288,13 +217,8 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: setsuji.hd
+-
+ depend:: setsuji.hd
+
+-clean::
+- $(RM) setsuji.hd
+-
+ # setsuji.u: $(PUBDICPLUSSRC)/setsuji.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -310,35 +234,20 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: special.hd
+-
+ depend:: special.hd
+
+-clean::
+- $(RM) special.hd
+-
+ special.u: $(PUBDICPLUSSRC)/special.u
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: special.u
+-
+ depend:: special.u
+
+-clean::
+- $(RM) special.u
+-
+ symbol.hd: $(PUBDICPLUSSRC)/symbol.hd
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: symbol.hd
+-
+ depend:: symbol.hd
+
+-clean::
+- $(RM) symbol.hd
+-
+ # symbol.u: $(PUBDICPLUSSRC)/symbol.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -354,13 +263,8 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-includes:: tankan.hd
+-
+ depend:: tankan.hd
+
+-clean::
+- $(RM) tankan.hd
+-
+ # tankan.u: $(PUBDICPLUSSRC)/tankan.u
+ # $(RM) $@
+ # $(LN) $? $@
+@@ -421,16 +325,14 @@
+ $(RM) $@
+ $(LN) $? $@
+
+-std.fzk: fzk.master-.c $(FZK_SRC)
+- $(FZK_PP) $(FZK_FLAG) fzk.master-.c | egrep -v '^(# |#line |#pragma |$$)' | $(ATOF) -h $(HINSI) $@
++std.fsrc: $(FZK_SRC)
++ $(FZK_PP) fzk.master-.c > $@
++
++full.fsrc: $(FZK_SRC)
++ $(FZK_PP) -DKANSAI fzk.master-.c > $@
+
+-full.fzk: $(FZK_SRC)
+- $(MAKE) FZK_FLAG=-DKANSAI std.fzk
+- $(MV) std.fzk $@
+-
+-kougo.fzk: $(FZK_SRC)
+- $(MAKE) FZK_FLAG=-DKOUGO std.fzk
+- $(MV) std.fzk $@
++kougo.fsrc: $(FZK_SRC)
++ $(FZK_PP) -DKOUGO fzk.master-.c > $@
+
+ # additional rule from PubdicPlus/Makefile.in : by aono
+ pod.o: $(PUBDICPLUSSRC)/pod.c
+@@ -442,7 +344,7 @@
+ $(WNNDICS): pod $(PUBDICPLUSSRC)/pubdic.p
+ ./pod $(PUBDICPLUSSRC)/pubdic.p -w -1 -k `basename $@ .u` > $@
+
+-.SUFFIXES: .hd .u .dic .more
++.SUFFIXES: .hd .u .dic .more .fsrc .fzk
+
+ .u.dic:
+ cat $*.hd $< | $(ATOD) -p $(VERSION) -P $(VERSION) -h $(HINSI) $@
+@@ -450,7 +352,10 @@
+ .hd.more:
+ $(ATOD) -h $(HINSI) $@ < $<
+
++.fsrc.fzk:
++ egrep -v '^(# |#line |#pragma |$$)' $< | $(ATOF) -h $(HINSI) $@
++
+ $(DIC): $(HINSI)
+
+ clean::
+- $(RM) -f *.fzk *.dic *.more fzk.master-.c pod $(LINKS)
++ $(RM) -f *.fsrc *.dic *.more fzk.master-.c pod $(LINKS) $(FZKDATA)
diff --git a/app-i18n/freewnn/files/freewnn.initd b/app-i18n/freewnn/files/freewnn.initd
new file mode 100644
index 00000000000..b81f018ff2f
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting up ${SERVICE}"
+ /usr/bin/Wnn4/jserver &>/dev/null
+ if [ $? -eq 15 ]; then
+ true;
+ else
+ false;
+ fi
+ eend 0
+}
+
+stop() {
+ ebegin "Stopping ${SERVICE}"
+ /usr/bin/Wnn4/wnnkill &> /dev/null
+ eend $? "Failed to stop ${SERVICE}"
+}
diff --git a/app-i18n/freewnn/freewnn-1.1.1_alpha21-r1.ebuild b/app-i18n/freewnn/freewnn-1.1.1_alpha21-r1.ebuild
new file mode 100644
index 00000000000..63e01499905
--- /dev/null
+++ b/app-i18n/freewnn/freewnn-1.1.1_alpha21-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+MY_P="FreeWnn-${PV/_alpha/-a0}"
+
+DESCRIPTION="Network-Extensible Kana-to-Kanji Conversion System"
+HOMEPAGE="http://freewnn.sourceforge.jp/
+ http://www.freewnn.org/"
+SRC_URI="mirror://sourceforge.jp/freewnn/17724/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+IUSE="X ipv6"
+
+DEPEND="X? ( x11-libs/libX11 x11-libs/libXmu x11-libs/libXt )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ #Change WNNOWNER to root so we don't need to add wnn user
+ # and disable stripping of binary files
+ sed -i -e "s/WNNOWNER = wnn/WNNOWNER = root/" \
+ -e "s/@INSTPGMFLAGS@//" makerule.mk.in || die
+
+ #bug #318593
+ epatch "${FILESDIR}"/${P}-gcc45.patch
+
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+}
+
+src_compile() {
+ econf \
+ --disable-cWnn \
+ --disable-kWnn \
+ --without-termcap \
+ $(use_with X x) \
+ $(use_with ipv6) \
+ || die
+ emake -j1 || die
+}
+
+src_install() {
+ # install executables, libs ,dictionaries
+ emake DESTDIR="${D}" install || die
+ # install man pages
+ emake DESTDIR="${D}" install.man || die
+ # install docs
+ dodoc ChangeLog* CONTRIBUTORS
+ # install rc script
+ newinitd "${FILESDIR}"/freewnn.initd freewnn
+}
diff --git a/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild b/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild
new file mode 100644
index 00000000000..bc23a7e4ba4
--- /dev/null
+++ b/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+MY_P="FreeWnn-${PV/_alpha/-a0}"
+
+DESCRIPTION="Network-Extensible Kana-to-Kanji Conversion System"
+HOMEPAGE="http://freewnn.sourceforge.jp/
+ http://www.freewnn.org/"
+SRC_URI="mirror://sourceforge.jp/freewnn/59257/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X ipv6"
+
+DEPEND="X? ( x11-libs/libX11 x11-libs/libXmu x11-libs/libXt )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ #Change WNNOWNER to root so we don't need to add wnn user
+ # and disable stripping of binary files
+ sed -i -e "s/WNNOWNER = wnn/WNNOWNER = root/" \
+ -e "s/@INSTPGMFLAGS@//" makerule.mk.in \
+ -e "s/@LN_S@/ln -sf/" || die
+
+ #bug #318593
+
+ epatch "${FILESDIR}"/${P}-parallel-build.patch #517916
+
+ # 542534
+ sed -i -e "s/egrep -v/egrep -av/" kWnn/kdic/Makefile.in \
+ cWnn/tdic/Makefile.in cWnn/cdic/Makefile.in \
+ Wnn/pubdicplus/Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ --disable-cWnn \
+ --disable-kWnn \
+ --without-termcap \
+ $(use_with X x) \
+ $(use_with ipv6)
+}
+
+src_install() {
+ # install executables, libs ,dictionaries
+ emake DESTDIR="${ED}" install || die
+ # install man pages
+ emake DESTDIR="${ED}" install.man || die
+ # install docs
+ dodoc ChangeLog* CONTRIBUTORS
+ # install rc script
+ newinitd "${FILESDIR}"/freewnn.initd freewnn
+}
diff --git a/app-i18n/freewnn/metadata.xml b/app-i18n/freewnn/metadata.xml
new file mode 100644
index 00000000000..12bb1ff75af
--- /dev/null
+++ b/app-i18n/freewnn/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge-jp">freewnn</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-anthy/Manifest b/app-i18n/ibus-anthy/Manifest
new file mode 100644
index 00000000000..dc4d549595c
--- /dev/null
+++ b/app-i18n/ibus-anthy/Manifest
@@ -0,0 +1,3 @@
+DIST anthy.i 3170 SHA256 3615639f5cd9bf2adcbc2bac8d3ae968646df1d9d2ba987d80442d5ad99ecdf9 SHA512 400d67c2f0ffbdb3eab241646922d549ec4a42ae5b33714a91b864f4b5dfdf0d9a0d28cb6dcdffa55eb9633651ceae034bb547d7a5c41d9b8d352e955773e069 WHIRLPOOL 9be409df613530658c68bc7491e1dd258f5f1ef1d09895a3557a9e63c3ced5083c1ecd9e274536c9afbc98031c353c05c73304bb4354aaf8e21a1c15de39b8b6
+DIST ibus-anthy-1.2.7.tar.gz 523139 SHA256 33c42c1612423f84fddd8c38f8b2439b8af5f0b5fc7725ae195a01b8999d85e9 SHA512 ee45759bb8303967d09d0f92ee0a97fa63611de936c61073078d795b9ba8858cc882e539611bb5ea68848d471e6d2b0e4d8f51df5335aad7942f15e63c4d159d WHIRLPOOL a27945667347d0fb121d028b23b68219df6417369d32d47a43665c828e8935cd74e04b861e0a4e04a117c08665771c22750eab2869fffd21f23b1e21f633b358
+DIST ibus-anthy-1.5.4.tar.gz 592595 SHA256 4c0a8b88a2c547e72173a7d682d82797f6c65fe712abe5f3b89495d4eec7b031 SHA512 8478e9ea14472d0153cc7a35feae4edea791476dc98cfc266b598f915376d267bd5db48ea0a676209d7a6fa680628116a30fec59afaf696477cfaa14082aad8d WHIRLPOOL f4aec300dc5cff62f81a3ae64ac2d46768e3fbaa579e14abac8bd87e0801155e8258f6f3d66d7015122e929cd2e0f48183aeb37245b3046afa3d80b8ce42d58c
diff --git a/app-i18n/ibus-anthy/ibus-anthy-1.2.7-r1.ebuild b/app-i18n/ibus-anthy/ibus-anthy-1.2.7-r1.ebuild
new file mode 100644
index 00000000000..276c57d0c50
--- /dev/null
+++ b/app-i18n/ibus-anthy/ibus-anthy-1.2.7-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+PYTHON_DEPEND="2:2.5"
+inherit eutils python
+
+DESCRIPTION="Japanese input method Anthy IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.2.0.20100111
+ !>=app-i18n/ibus-1.4.99
+ app-i18n/anthy
+ >=dev-python/pygtk-2.15.2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-lang/swig
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ >py-compile #397497
+}
+
+src_configure() {
+ PYTHON="$(PYTHON -a)" econf $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+
+ find "${ED}" -name '*.la' -type f -delete || die
+}
+
+pkg_postinst() {
+ elog
+ elog "app-dicts/kasumi is not required but probably useful for you."
+ elog
+ elog "# emerge app-dicts/kasumi"
+ elog
+
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild b/app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild
new file mode 100644
index 00000000000..8ff72f13bca
--- /dev/null
+++ b/app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1 autotools gnome2-utils
+
+DESCRIPTION="Japanese input method Anthy IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz
+ https://raw.github.com/ibus/ibus-anthy/${PV}/engine/anthy.i"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="deprecated nls"
+
+RDEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.5.0
+ app-i18n/anthy
+ deprecated? ( >=dev-python/pygtk-2.15.2 )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-libs/gobject-introspection
+ dev-util/intltool
+ virtual/pkgconfig
+ deprecated? ( dev-lang/swig )
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+src_prepare() {
+ >py-compile #397497
+ cp "${DISTDIR}"/anthy.i "${S}"/engine # deal with packaging bug
+}
+
+src_configure() {
+ econf --enable-private-png \
+ $(use_enable deprecated pygtk2-anthy) \
+ $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc AUTHORS ChangeLog NEWS README
+
+ find "${ED}" -name '*.la' -type f -delete || die
+
+ python_optimize
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ elog
+ elog "app-dicts/kasumi is not required but probably useful for you."
+ elog
+ elog "# emerge app-dicts/kasumi"
+ elog
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-anthy/metadata.xml b/app-i18n/ibus-anthy/metadata.xml
new file mode 100644
index 00000000000..96a29926bf0
--- /dev/null
+++ b/app-i18n/ibus-anthy/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">The Anthy engine for IBus platform. It provides Japanese input method from
+libanthy.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+ <use>
+ <flag name="deprecated">Install deprecated pygtk2 library</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-i18n/ibus-cangjie/Manifest b/app-i18n/ibus-cangjie/Manifest
new file mode 100644
index 00000000000..ad579855477
--- /dev/null
+++ b/app-i18n/ibus-cangjie/Manifest
@@ -0,0 +1,4 @@
+DIST ibus-cangjie-2.1.tar.xz 147796 SHA256 00563b16fdbc8033e019b37e3ee17f62fb5dd05c68fd67b114909d7261cd433c SHA512 8ac4b7d9ecd91f9a04190db2aeda595f0740c10afe49aa7f5961eb30962fec5874131c4831b3bf473b008549bb2bb51195c6ab81f32008edbe4f3239e69afadf WHIRLPOOL 6def3a79d6f38382844340e1a1bb5a66911c5db3e260f295c7d5db66b1e4d314ec23f5df184cb4eb6a236688bffad54e61df6604c4a758a622aab4e6c86f4d99
+DIST ibus-cangjie-2.2.tar.xz 148012 SHA256 7c816173d8f79072ada988d7770928572d28be5dd375b4f7e690c9f57dd49018 SHA512 847e6bcc6e89fa864073937b34d5abf26a598b867881fd45d962b107a84470585040afcac5152f4f237be4175a53acad3ac8e7eb48fd8bae8ff2cdd04e2de70b WHIRLPOOL 278b125a9ef1c95c92a5a7a39a7c742bac3fca92b021dffeb156814be5a71fd0d0a3ec1f3fbb141d40a703626914ffc2b26e6d8741cf29415473b293ce8ab56d
+DIST ibus-cangjie-2.3.tar.xz 151184 SHA256 88d4cbf4d1de5cdb90b880a0f2014fbf2c18bf2581760408442bb8195c89e7ff SHA512 adbd51cbd6e4e816c12ab230c9173cf884fc300b886da51a40cb3956b66d43cb13fd477b4923b43032efb5c82d410c1766bb1f6d18445fa704b7db91e13d2497 WHIRLPOOL 0fd4e5ecc0fe8f83367e16e848ad69c02b7a973bde9c705431afe131c1d4dfe78445f62cff34dae1f198c4a4846ab114bc08fd7f3a2e616dd730a4b6f8690c7c
+DIST ibus-cangjie-2.4.tar.xz 150616 SHA256 299a60f1df063bfadc68c5420cbddb5d1a0de31935d95e414f75e0f93e27ba49 SHA512 cef9562fc4a5f3b78881c09b43e502f02322148e501022d3f80989caef4ca98ae26903e9a3dcc422feeba7712a8321c731ba229429e52fe919db5144aa0ead47 WHIRLPOOL a183d66bc53007046a2b3ffb778e6f08c39c709cb5e0d5558e5db617155bb4bc1de2df015f5668f4d6022faecb816171766039658ee8e69621abb0d73869d82d
diff --git a/app-i18n/ibus-cangjie/files/ibus-cangjie-gtk-unit-test.patch b/app-i18n/ibus-cangjie/files/ibus-cangjie-gtk-unit-test.patch
new file mode 100644
index 00000000000..c3842f6945b
--- /dev/null
+++ b/app-i18n/ibus-cangjie/files/ibus-cangjie-gtk-unit-test.patch
@@ -0,0 +1,12 @@
+diff --git a/tests/test_prefs.py b/tests/test_prefs.py
+index d1bb438..e568939 100644
+--- a/tests/test_prefs.py
++++ b/tests/test_prefs.py
+@@ -37,6 +37,7 @@ class PrefsTestCase(unittest.TestCase):
+ except ET.ParseError as e:
+ raise AssertionError(e)
+
++ @unittest.skip("Importing Gtk doesn't raise a RuntimeError on recent Fedora")
+ def test_ui_file_is_valid_gtk_builder(self):
+ try:
+ from gi.repository import Gtk
diff --git a/app-i18n/ibus-cangjie/ibus-cangjie-2.1.ebuild b/app-i18n/ibus-cangjie/ibus-cangjie-2.1.ebuild
new file mode 100644
index 00000000000..bcddcee08c2
--- /dev/null
+++ b/app-i18n/ibus-cangjie/ibus-cangjie-2.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{3_3,3_4} )
+
+inherit autotools-utils gnome2-utils python-r1 eutils
+
+DESCRIPTION="The IBus engine for users of the Cangjie and Quick input methods"
+HOMEPAGE="http://cangjians.github.io"
+SRC_URI="http://cangjians.github.io/downloads/ibus-cangjie/ibus-cangjie-${PV}.tar.xz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ dev-util/intltool
+ sys-devel/gettext"
+
+RDEPEND=">=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ virtual/libintl
+ ${PYTHON_DEPS}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-gtk-unit-test.patch"
+}
+
+src_configure() {
+ python_foreach_impl autotools-utils_src_configure
+}
+
+src_compile() {
+ python_foreach_impl autotools-utils_src_compile
+}
+
+src_install() {
+ python_foreach_impl autotools-utils_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-cangjie/ibus-cangjie-2.2.ebuild b/app-i18n/ibus-cangjie/ibus-cangjie-2.2.ebuild
new file mode 100644
index 00000000000..066aa8f449c
--- /dev/null
+++ b/app-i18n/ibus-cangjie/ibus-cangjie-2.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{3_3,3_4} )
+
+inherit autotools-utils gnome2-utils python-r1 eutils
+
+DESCRIPTION="The IBus engine for users of the Cangjie and Quick input methods"
+HOMEPAGE="http://cangjians.github.io"
+SRC_URI="https://github.com/Cangjians/ibus-cangjie/releases/download/v${PV}/ibus-cangjie-${PV}.tar.xz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ dev-util/intltool
+ sys-devel/gettext"
+
+RDEPEND=">=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ virtual/libintl
+ ${PYTHON_DEPS}"
+
+src_configure() {
+ python_foreach_impl autotools-utils_src_configure
+}
+
+src_compile() {
+ python_foreach_impl autotools-utils_src_compile
+}
+
+src_install() {
+ python_foreach_impl autotools-utils_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-cangjie/ibus-cangjie-2.3.ebuild b/app-i18n/ibus-cangjie/ibus-cangjie-2.3.ebuild
new file mode 100644
index 00000000000..066aa8f449c
--- /dev/null
+++ b/app-i18n/ibus-cangjie/ibus-cangjie-2.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{3_3,3_4} )
+
+inherit autotools-utils gnome2-utils python-r1 eutils
+
+DESCRIPTION="The IBus engine for users of the Cangjie and Quick input methods"
+HOMEPAGE="http://cangjians.github.io"
+SRC_URI="https://github.com/Cangjians/ibus-cangjie/releases/download/v${PV}/ibus-cangjie-${PV}.tar.xz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ dev-util/intltool
+ sys-devel/gettext"
+
+RDEPEND=">=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ virtual/libintl
+ ${PYTHON_DEPS}"
+
+src_configure() {
+ python_foreach_impl autotools-utils_src_configure
+}
+
+src_compile() {
+ python_foreach_impl autotools-utils_src_compile
+}
+
+src_install() {
+ python_foreach_impl autotools-utils_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-cangjie/ibus-cangjie-2.4.ebuild b/app-i18n/ibus-cangjie/ibus-cangjie-2.4.ebuild
new file mode 100644
index 00000000000..066aa8f449c
--- /dev/null
+++ b/app-i18n/ibus-cangjie/ibus-cangjie-2.4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{3_3,3_4} )
+
+inherit autotools-utils gnome2-utils python-r1 eutils
+
+DESCRIPTION="The IBus engine for users of the Cangjie and Quick input methods"
+HOMEPAGE="http://cangjians.github.io"
+SRC_URI="https://github.com/Cangjians/ibus-cangjie/releases/download/v${PV}/ibus-cangjie-${PV}.tar.xz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ dev-util/intltool
+ sys-devel/gettext"
+
+RDEPEND=">=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ virtual/libintl
+ ${PYTHON_DEPS}"
+
+src_configure() {
+ python_foreach_impl autotools-utils_src_configure
+}
+
+src_compile() {
+ python_foreach_impl autotools-utils_src_compile
+}
+
+src_install() {
+ python_foreach_impl autotools-utils_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-cangjie/metadata.xml b/app-i18n/ibus-cangjie/metadata.xml
new file mode 100644
index 00000000000..7a8c0e17087
--- /dev/null
+++ b/app-i18n/ibus-cangjie/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>brendan@horan.hk</email>
+ <name>Brendan Horan</name>
+ <description>Proxy - Maintainer. Assign bugs to him</description>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Cangjians/ibus-cangjie</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-chewing/Manifest b/app-i18n/ibus-chewing/Manifest
new file mode 100644
index 00000000000..04951f44074
--- /dev/null
+++ b/app-i18n/ibus-chewing/Manifest
@@ -0,0 +1 @@
+DIST ibus-chewing-1.4.7-Source.tar.gz 108078 SHA256 73426b024be52eea0182f6b8c7936482ca2df7754e971e0b7980e504afdf8af2 SHA512 70e9c4950ac846c2f0087200d3b42f845ef8f911962d3f6bf37a3a0054606fa0fc061daa5dac390d022dbd29801fbcae596d2c5126270eb6e9843a9e0af4486e WHIRLPOOL 67b12375adfcc40c9e61e8f69e1bddc8b7c2354e9bdbe4a8fde97c6db3f212ca5b426428e1bf96ede1d5c55f5ffe230a57acd026ef1c0b960ee4cdc692aa35ca
diff --git a/app-i18n/ibus-chewing/ibus-chewing-1.4.7.ebuild b/app-i18n/ibus-chewing/ibus-chewing-1.4.7.ebuild
new file mode 100644
index 00000000000..2afcc7fa068
--- /dev/null
+++ b/app-i18n/ibus-chewing/ibus-chewing-1.4.7.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit cmake-utils
+
+MY_P=${P}-Source
+
+DESCRIPTION="The Chewing IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND="x11-libs/libXtst
+ >=app-i18n/ibus-1.3
+ >=dev-libs/libchewing-0.3.3
+ x11-libs/gtk+:2
+ dev-util/gob:2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+CMAKE_IN_SOURCE_BUILD=1
+
+DOCS="AUTHORS ChangeLog README RELEASE-NOTES.txt USER-GUIDE"
+
+src_configure() {
+ local mycmakeargs=(
+ -DPRJ_DOC_DIR=/usr/share/doc/${PF}
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_make all translations
+}
diff --git a/app-i18n/ibus-chewing/metadata.xml b/app-i18n/ibus-chewing/metadata.xml
new file mode 100644
index 00000000000..7d84776d4df
--- /dev/null
+++ b/app-i18n/ibus-chewing/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">The Chewing engine for IBus platform. It provides Chinese input method from libchewing.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-fbterm/Manifest b/app-i18n/ibus-fbterm/Manifest
new file mode 100644
index 00000000000..6329759cca9
--- /dev/null
+++ b/app-i18n/ibus-fbterm/Manifest
@@ -0,0 +1 @@
+DIST ibus-fbterm-0.9.1.tar.gz 106808 SHA256 98437db4d5d15bbdca3e4b0a08f1bd1be544a305aa1d0f65fedb81b871da2e7c SHA512 7f5bbb0ebf5ad12f3bdccb7966cb1ff7f40f8ebfb94a5767e0382ef5eee24f22021a428ac8073e987c43f32d67cfb7922ffe63666d88dcbd56cfdbcd36f3156f WHIRLPOOL 110e38beadfd64e75b6a40b9885b8aa1dec30771aeaff5dcd4c0f7403d24faa63b6a72d6a3fe79ec3fc1eb09e0f5963dee85664d41849ce3d723e4996ef6ebff
diff --git a/app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.1.patch b/app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.1.patch
new file mode 100644
index 00000000000..08508c23180
--- /dev/null
+++ b/app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.1.patch
@@ -0,0 +1,23 @@
+diff -Nurap ibus-fbterm-0.9.1.orig//src/display.c ibus-fbterm-0.9.1//src/display.c
+--- ibus-fbterm-0.9.1.orig//src/display.c 2012-06-06 17:59:26.000000000 +0900
++++ ibus-fbterm-0.9.1//src/display.c 2012-06-06 18:05:22.000000000 +0900
+@@ -212,7 +212,7 @@ static void calculate_status_win()
+ IBusProperty *prop = ibus_prop_list_get(property_list, i);
+ if (!prop) break;
+
+- w += text_width(prop->label->text);
++ w += text_width(ibus_property_get_label(prop)->text);
+ }
+
+ status_bar_win.x = cursor_x;
+@@ -238,8 +238,8 @@ static void draw_status_bar()
+ IBusProperty *prop = ibus_prop_list_get(property_list, i);
+ if (!prop) break;
+
+- draw_text(x, y, COLOR_FG, COLOR_BG, prop->label->text, strlen(prop->label->text));
+- x += FW(text_width(prop->label->text));
++ draw_text(x, y, COLOR_FG, COLOR_BG, ibus_property_get_label(prop)->text, strlen(ibus_property_get_label(prop)->text));
++ x += FW(text_width(ibus_property_get_label(prop)->text));
+
+ char space = ' ';
+ draw_text(x, y, COLOR_FG, COLOR_BG, &space, 1);
diff --git a/app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.99.patch b/app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.99.patch
new file mode 100644
index 00000000000..6cf85865904
--- /dev/null
+++ b/app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.99.patch
@@ -0,0 +1,22 @@
+diff --git a/src/ibus-fbterm.c b/src/ibus-fbterm.c
+index ffb7401..b4ddb64 100644
+--- a/src/ibus-fbterm.c
++++ b/src/ibus-fbterm.c
+@@ -119,13 +119,17 @@ static void im_active()
+ debug("im active\n");
+ modifier_state = 0;
+ init_keycode_state();
++#if ! IBUS_CHECK_VERSION(1, 4, 99)
+ ibus_input_context_enable(ibus_ctx);
++#endif
+ }
+
+ static void im_deactive()
+ {
+ debug("im deactive\n");
++#if ! IBUS_CHECK_VERSION(1, 4, 99)
+ ibus_input_context_disable(ibus_ctx);
++#endif
+
+ auxiliary_text_win.w = 0;
+ lookup_table_win.w = 0;
diff --git a/app-i18n/ibus-fbterm/ibus-fbterm-0.9.1.ebuild b/app-i18n/ibus-fbterm/ibus-fbterm-0.9.1.ebuild
new file mode 100644
index 00000000000..53fedfcf7e8
--- /dev/null
+++ b/app-i18n/ibus-fbterm/ibus-fbterm-0.9.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+inherit autotools-utils
+
+DESCRIPTION="ibus-fbterm is a input method for FbTerm based on iBus"
+HOMEPAGE="http://ibus-fbterm.googlecode.com"
+SRC_URI="https://ibus-fbterm.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-1.4.1
+ app-i18n/fbterm"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-ibus-1.4.1.patch
+ "${FILESDIR}"/${P}-ibus-1.4.99.patch
+)
diff --git a/app-i18n/ibus-fbterm/metadata.xml b/app-i18n/ibus-fbterm/metadata.xml
new file mode 100644
index 00000000000..2d5852c16c6
--- /dev/null
+++ b/app-i18n/ibus-fbterm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/ibus-handwrite/Manifest b/app-i18n/ibus-handwrite/Manifest
new file mode 100644
index 00000000000..9fdf3cb8eb4
--- /dev/null
+++ b/app-i18n/ibus-handwrite/Manifest
@@ -0,0 +1 @@
+DIST ibus-handwrite-2.1.4.tar.bz2 237980 SHA256 fa4ec0624e1ca904d8026fda75a26f0edd3ac6c781c28c03262e4c6ec52ceb34 SHA512 fca7129edb7433e7ea6df1ce67b3f27285fe102cc029a7a1bdb8ba0402407bd81724d1b14667d342ef41491acff03e9c152b748e4fee5387f315d4673c2964e6 WHIRLPOOL 13facb5d7c4a34586202cc1d6b46eb857aaf3649fb64ca44a5b367135860217c554d0cf48656096ac43cc3411b0466c9b2a468d9e2dc99ddac4d7729ff0ad6d9
diff --git a/app-i18n/ibus-handwrite/files/ibus-handwrite-link.patch b/app-i18n/ibus-handwrite/files/ibus-handwrite-link.patch
new file mode 100644
index 00000000000..bd73e4f41f4
--- /dev/null
+++ b/app-i18n/ibus-handwrite/files/ibus-handwrite-link.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.ac b/configure.ac
+index 8625fe9..20fdd42 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -80,6 +80,8 @@ AS_IF([test "x${have_zinnia}" = "xyes" ],[
+ AM_CONDITIONAL(WITH_ZINNIA,[false])
+ ])
+
++AC_SEARCH_LIBS([atan2],[m])
++
+ # check ibus
+ PKG_CHECK_MODULES(IBUS, [
+ ibus-1.0 >= 1.3
diff --git a/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild b/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild
new file mode 100644
index 00000000000..56390185b44
--- /dev/null
+++ b/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1 autotools-utils multilib
+
+DESCRIPTION="hand write recognition/input using ibus IM engine"
+HOMEPAGE="http://code.google.com/p/ibus-handwrite/"
+SRC_URI="http://ibus-handwrite.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls +zinnia"
+
+RDEPEND="zinnia? ( app-i18n/zinnia app-i18n/zinnia-tomoe )
+ >=app-i18n/ibus-1.3.0
+ >=x11-libs/gtk+-2.10
+ x11-libs/gtkglext"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-link.patch #bug #501954
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable nls)
+ $(use_enable zinnia)
+ $(use_with zinnia zinnia-tomoe "${EPREFIX}"/usr/$(get_libdir)/zinnia/model/tomoe)
+ )
+ autotools-utils_src_configure
+}
diff --git a/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4.ebuild b/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4.ebuild
new file mode 100644
index 00000000000..f5f7bd12611
--- /dev/null
+++ b/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils python autotools-utils multilib
+
+DESCRIPTION="hand write recognition/input using ibus IM engine"
+HOMEPAGE="http://code.google.com/p/ibus-handwrite/"
+SRC_URI="http://ibus-handwrite.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls +zinnia"
+
+RDEPEND="zinnia? ( app-i18n/zinnia app-i18n/zinnia-tomoe )
+ >=app-i18n/ibus-1.3.0
+ >=x11-libs/gtk+-2.10
+ x11-libs/gtkglext"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable nls)
+ $(use_enable zinnia)
+ $(use_with zinnia zinnia-tomoe "${EPREFIX}"/usr/$(get_libdir)/zinnia/model/tomoe)
+ )
+ autotools-utils_src_configure
+}
diff --git a/app-i18n/ibus-handwrite/metadata.xml b/app-i18n/ibus-handwrite/metadata.xml
new file mode 100644
index 00000000000..b705e0c6c1e
--- /dev/null
+++ b/app-i18n/ibus-handwrite/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+<use>
+ <flag name="zinnia">Build with <pkg>app-i18n/zinnia</pkg> engine.</flag>
+</use>
+</pkgmetadata>
diff --git a/app-i18n/ibus-hangul/Manifest b/app-i18n/ibus-hangul/Manifest
new file mode 100644
index 00000000000..f044b679a00
--- /dev/null
+++ b/app-i18n/ibus-hangul/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-hangul-1.4.0.tar.gz 439462 SHA256 a955ec0c9ea90ecd8e8d0fd2de1596a5ba1186463862c387d74a418d1707ca0a SHA512 a2ed7c5ec344d31a37fa3decc502d0b2d724f08c668e6072eade7aa5bdbaba0b5812daf5fb5503e6477d0b289f248894eb81f70729e2a87a40516b1d4d09a6de WHIRLPOOL 06c2eeb6d975c414cd3209500ef562e834c02e7e1c96915cc977a9ff9d8779128e978d52cc8f11940d6a9c23ef34f285d2be63b978f2fe6c3aaf253349e8b949
+DIST ibus-hangul-1.4.1.tar.gz 484065 SHA256 8b7cbc124850df9fb78cdcb38b138f10c648b5519d36a92107616606678b662d SHA512 80d893c33e06108e1477bab067d24e333c9fbfaa3f1a839d9070f2b78694ff80965d9dd23cded3a512f1ed71b60ea5e8390ef9f87d2b63858b09158f90d74b9f WHIRLPOOL 0ec6a6d357e2b6234ddd448c72fa04668381b4de0e82d892e83378f3f1d40a31f5a28c667b68045555cdc74ed441640acc81c91d051683f664ea754021ea526c
+DIST ibus-hangul-1.4.2.tar.gz 483967 SHA256 de79dff94028673f1a00b24f9af35f37f59c12b1737d171a24ac4d34fad20b89 SHA512 ba046d3d234db71043e5dd2fbc8d38443dff4d422e360a09b05dd4c411705967495195b71f8feb5986683c20984217934e3bfe45547b4e43b83aa3f33756963f WHIRLPOOL 046a9b67f6730ffbecd9be13b734fbfc87614dd0e4a72b4e5f866bc6149719e7f5a8b9300faad48470ba20432d3baebd5d7bb173e04885802686237f6c421805
diff --git a/app-i18n/ibus-hangul/ibus-hangul-1.4.0.ebuild b/app-i18n/ibus-hangul/ibus-hangul-1.4.0.ebuild
new file mode 100644
index 00000000000..f37b95fc76a
--- /dev/null
+++ b/app-i18n/ibus-hangul/ibus-hangul-1.4.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+PYTHON_DEPEND="2:2.5"
+
+inherit python
+
+DESCRIPTION="The Hangul engine for IBus input platform"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ =dev-python/pygobject-2*
+ =dev-python/pygtk-2*
+ >=app-i18n/libhangul-0.1
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? (
+ dev-util/intltool
+ >=sys-devel/gettext-0.17
+ )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ >py-compile
+ python_convert_shebangs 2 setup/ibus-setup-hangul.in
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-hangul/ibus-hangul-1.4.1.ebuild b/app-i18n/ibus-hangul/ibus-hangul-1.4.1.ebuild
new file mode 100644
index 00000000000..a2f8585fe06
--- /dev/null
+++ b/app-i18n/ibus-hangul/ibus-hangul-1.4.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+PYTHON_DEPEND="2:2.5"
+
+inherit python
+
+DESCRIPTION="The Hangul engine for IBus input platform"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ =dev-python/pygobject-2*
+ =dev-python/pygtk-2*
+ >=app-i18n/libhangul-0.1
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? (
+ dev-util/intltool
+ >=sys-devel/gettext-0.17
+ )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ python_clean_py-compile_files
+ sed -ie "s:python:${EPYTHON}:" \
+ setup/ibus-setup-hangul.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-hangul/ibus-hangul-1.4.2-r1.ebuild b/app-i18n/ibus-hangul/ibus-hangul-1.4.2-r1.ebuild
new file mode 100644
index 00000000000..4e1d96e4571
--- /dev/null
+++ b/app-i18n/ibus-hangul/ibus-hangul-1.4.2-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="The Hangul engine for IBus input platform"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.4[python,${PYTHON_USEDEP}]
+ =dev-python/pygobject-2*[${PYTHON_USEDEP}]
+ =dev-python/pygtk-2*[${PYTHON_USEDEP}]
+ >=app-i18n/libhangul-0.1
+ nls? ( virtual/libintl )
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? (
+ dev-util/intltool
+ >=sys-devel/gettext-0.17
+ )"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+src_prepare() {
+ sed -ie "s:python:${EPYTHON}:" \
+ setup/ibus-setup-hangul.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
diff --git a/app-i18n/ibus-hangul/ibus-hangul-1.4.2.ebuild b/app-i18n/ibus-hangul/ibus-hangul-1.4.2.ebuild
new file mode 100644
index 00000000000..895eb370f12
--- /dev/null
+++ b/app-i18n/ibus-hangul/ibus-hangul-1.4.2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_DEPEND="2:2.5"
+
+inherit python
+
+DESCRIPTION="The Hangul engine for IBus input platform"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ =dev-python/pygobject-2*
+ =dev-python/pygtk-2*
+ >=app-i18n/libhangul-0.1
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? (
+ dev-util/intltool
+ >=sys-devel/gettext-0.17
+ )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ python_clean_py-compile_files
+ sed -ie "s:python:${EPYTHON}:" \
+ setup/ibus-setup-hangul.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-hangul/metadata.xml b/app-i18n/ibus-hangul/metadata.xml
new file mode 100644
index 00000000000..299a127ff9b
--- /dev/null
+++ b/app-i18n/ibus-hangul/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">The Hangul engine for IBus platform. It provides Korean input method from libhangul.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-libpinyin/Manifest b/app-i18n/ibus-libpinyin/Manifest
new file mode 100644
index 00000000000..1d94abe71af
--- /dev/null
+++ b/app-i18n/ibus-libpinyin/Manifest
@@ -0,0 +1 @@
+DIST ibus-libpinyin-1.6.92.tar.gz 1686249 SHA256 e611cff47b84345e1f60b8e94f74811bcfdf53b6ef7436b5cb5aff47eea743a3 SHA512 b4af0083c9c1dd4273c75372acf5d74ce317effdf56d8a0de8a3e3cd24f40b1b2dba91786d0a1cd72c9d7867b9ae630c4f69b04b378529dca8be0869e91d322d WHIRLPOOL 5dd8493bbbaa0f3d189a825bd4237a56276e88b8da91e75c1e3d49c1c1b2050ee2f9aaa4524ea00418690d8ff2085d6b6f686e60752e838f2515ca9d780347ef
diff --git a/app-i18n/ibus-libpinyin/ibus-libpinyin-1.6.92.ebuild b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.6.92.ebuild
new file mode 100644
index 00000000000..5d8824fd9b7
--- /dev/null
+++ b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.6.92.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+AUTOTOOLS_AUTORECONF=1
+inherit autotools-utils python-single-r1
+
+DESCRIPTION="ibus-libpinyin - pinyin chinese input for ibus using libpinyin"
+HOMEPAGE="https://github.com/libpinyin/ibus-libpinyin"
+
+SRC_URI="https://github.com/libpinyin/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boost opencc lua"
+
+DEPEND="sys-apps/sed"
+RDEPEND=">=app-i18n/ibus-1.4[python,${PYTHON_USEDEP}]
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ >=app-i18n/libpinyin-1.0.0
+ app-i18n/pyzy
+ boost? ( >=dev-libs/boost-1.39 )
+ lua? ( >=dev-lang/lua-5.1 )"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_prepare() {
+ sed -i -e "s/python/${EPYTHON}/" setup/ibus-setup-libpinyin.in || die
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable boost )
+ $(use_enable opencc )
+ $(use_enable lua lua-extension )
+ --enable-english-input-mode
+ )
+ autotools-utils_src_configure
+}
diff --git a/app-i18n/ibus-libpinyin/metadata.xml b/app-i18n/ibus-libpinyin/metadata.xml
new file mode 100644
index 00000000000..5188ad1e2c5
--- /dev/null
+++ b/app-i18n/ibus-libpinyin/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>graham.ramsey@gmail.com</email>
+ <name>Graham Ramsey</name>
+ </maintainer>
+ <longdescription lang="en">
+ PinYin engine for IBus platform. It provides a Chinese PinYin input method.
+ </longdescription>
+ <use>
+ <flag name="boost">Compile against <pkg>dev-libs/boost</pkg> libraries</flag>
+ <flag name="opencc">Enable support for <pkg>app-i18n/opencc</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="github">libpinyin/ibus-libpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-m17n/Manifest b/app-i18n/ibus-m17n/Manifest
new file mode 100644
index 00000000000..b19671acafc
--- /dev/null
+++ b/app-i18n/ibus-m17n/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-m17n-1.3.2.tar.gz 414324 SHA256 c1e7529c63305bc5f2ddc4832550becd16e084beaf4217549bf1dd46a9b0e370 SHA512 6cbff2bf08043eb46d5e97c9303ebbb795c69b77c14d113c22fee2111eaee04ba8bc27bbd44b6640be02dd43f4b3711aba1b02fcbb350b8bca8d90dd20b4ba54 WHIRLPOOL 5b59e39028e19f3379abebf6b4ddf835bd01d28df623c2ef03f98a8f5b53acd985ca34d3f3d12cf5258c926de47523fddb48b78ceec0efb967586437e52bdc7e
+DIST ibus-m17n-1.3.3.tar.gz 431113 SHA256 0374aef2149bcf1a337c39ab642ee39da4dbb17758ee8c095f954ca835dc10bf SHA512 1ffb659a2c6837727365760267ebbdf0329cf0b103e1fa105d895f62fc580821f8cfc097687e631cb06881986a5482ecc720df451a5b27dc494cc07d1862c98d WHIRLPOOL 437e1720efe77952d12c9eca28a95e509a3cad288573754eccab8de4fbe3a88d2efbdc9e3c4997ebbc04825d3a318c7b49c384d2459b8ddd1d0af1fd4fd45aeb
+DIST ibus-m17n-1.3.4.tar.gz 436687 SHA256 79004c696c47cd909b39f547ce118a80b672ccdab77a4a5b1824e496d649ae70 SHA512 9e9bc290b0f0d68558d408f6e69aa3bd9bb767db827a95839b576b58c7a5056dedcbd9b0bf1aab5e26ab21e601acd67a53404a5fd54b436efaf2a706489f25c4 WHIRLPOOL 0109df716a9ed71ac7f1d9544e361e38c3b8a7ae81b271d54ab1979a611fc44698649d92dfc68131f29166f60875558421b9f033632c5125c27505465c73d0a4
diff --git a/app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild b/app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild
new file mode 100644
index 00000000000..4c06cfc1896
--- /dev/null
+++ b/app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+DESCRIPTION="The M17N engine IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="gtk nls"
+
+RDEPEND=">=app-i18n/ibus-1.3
+ gtk? ( >=x11-libs/gtk+-2.12.12:2 )
+ dev-libs/m17n-lib
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=sys-devel/gettext-0.16.1"
+RDEPEND="${RDEPEND}
+ dev-db/m17n-db
+ dev-db/m17n-contrib"
+# gtk? (
+# || (
+# >=x11-libs/gtk+-2.90.5:3
+# >=x11-libs/gtk+-2.12.12:2
+# )
+# )
+
+src_configure() {
+ local myconf
+
+ econf \
+ $(use_with gtk gtk 2.0) \
+ $(use_enable nls) \
+ ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-m17n/ibus-m17n-1.3.3.ebuild b/app-i18n/ibus-m17n/ibus-m17n-1.3.3.ebuild
new file mode 100644
index 00000000000..b1b97aa70e5
--- /dev/null
+++ b/app-i18n/ibus-m17n/ibus-m17n-1.3.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+DESCRIPTION="The M17N engine IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk nls"
+
+RDEPEND=">=app-i18n/ibus-1.3.99.20110817
+ dev-libs/libxml2
+ gtk? ( >=x11-libs/gtk+-2.12.12:2 )
+ dev-libs/m17n-lib
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=sys-devel/gettext-0.16.1"
+RDEPEND="${RDEPEND}
+ dev-db/m17n-db
+ dev-db/m17n-contrib"
+# gtk? (
+# || (
+# >=x11-libs/gtk+-2.90.5:3
+# >=x11-libs/gtk+-2.12.12:2
+# )
+# )
+
+src_configure() {
+ local myconf
+
+ econf \
+ $(use_with gtk gtk 2.0) \
+ $(use_enable nls) \
+ ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild b/app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild
new file mode 100644
index 00000000000..46b2bd81d70
--- /dev/null
+++ b/app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+DESCRIPTION="The M17N engine IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk nls"
+
+RDEPEND=">=app-i18n/ibus-1.3.99.20110817
+ dev-libs/libxml2
+ gtk? ( >=x11-libs/gtk+-2.12.12:2 )
+ dev-libs/m17n-lib
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=sys-devel/gettext-0.16.1"
+RDEPEND="${RDEPEND}
+ dev-db/m17n-db
+ dev-db/m17n-contrib"
+# gtk? (
+# || (
+# >=x11-libs/gtk+-2.90.5:3
+# >=x11-libs/gtk+-2.12.12:2
+# )
+# )
+
+src_configure() {
+ local myconf
+
+ econf \
+ $(use_with gtk gtk 2.0) \
+ $(use_enable nls) \
+ ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-m17n/metadata.xml b/app-i18n/ibus-m17n/metadata.xml
new file mode 100644
index 00000000000..09339d3d574
--- /dev/null
+++ b/app-i18n/ibus-m17n/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">
+ M17N engine for IBus input platform. It allows input of many
+ launguaes using the input table maps from m17n-db.
+ </longdescription>
+ <upstream>
+ <remote-id type="cpe">cpe:/a:ibus_project:ibus-m17n</remote-id>
+ </upstream>
+ <use>
+ <flag name='gtk'>
+ Build the preference interfaces, based on
+ <pkg>x11-libs/gtk+</pkg> (GTK+ 2).
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/app-i18n/ibus-pinyin/Manifest b/app-i18n/ibus-pinyin/Manifest
new file mode 100644
index 00000000000..a1252d28495
--- /dev/null
+++ b/app-i18n/ibus-pinyin/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-pinyin-1.4.0.tar.gz 1813003 SHA256 4fcaef6ac0533945c7feb4cb36fc72c102aae63b3fb4cbf338cdcc816182c24a SHA512 3aecac95d5ccdc494b885901780ceb72353350ed6d317e8ac9f34251e7a9354c63ebc5666af46f2fc47b4c7adf69950cb0ddee0cbd32a3e2194910b4974591e4 WHIRLPOOL 6591943f83cec6442196a4007e231711ba2a3121757f7a50381e2278ea8b3b0cda39fac10c0d761addb7235fa6eba0c7bdb8769dea4bb64498e03517482468f1
+DIST ibus-pinyin-1.5.0.tar.gz 692516 SHA256 a85d458dcc51ea9fd65849e63002428b3fcb3b39adcbea9214b5cb4a4cbdbc96 SHA512 b0cd849ee3154543747dde8994eec9aed01d67e0d9be308a2f0230cf22f0281cd8fcabd9763b24238547a37e54400bcd8e541937767b93f005d04302f0c00241 WHIRLPOOL 80fd0ec7306d857870a0ceecce67166dd4d03529d5bdc404347dea6568c9b7271dbeb6feeebd8587bb5ab6856cec7f269fe5be9dbad5eb1b4297054eb9cb5ab2
+DIST pinyin-database-1.2.99.tar.bz2 9977983 SHA256 32c7d07b9f41e1dfc0f9008f54eca8e6cb367e7f2b19ac94c49754442694c321 SHA512 5a7248870407f7f92c418ada49a275062325f2eb33a7eb4b91492e4b706ae70ba931b04377a758ce429fa64cd22e8bee2ac4279d4f205bbce406248eda1decf7 WHIRLPOOL 07043adf9d83eb40b1a53409a31b3711f041e2b4dd5cf3f8c2034c129c31270fd37f2e53ecf2da5503562cf103ccb0a4487fa606928ac38a8775e90ff376ce3a
diff --git a/app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch b/app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch
new file mode 100644
index 00000000000..b7be95d9c89
--- /dev/null
+++ b/app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch
@@ -0,0 +1,227 @@
+From f1accaa9a18bd4a1c7234b40e16ad9889c25a461 Mon Sep 17 00:00:00 2001
+From: Peng Wu <alexepico@gmail.com>
+Date: Wed, 6 Nov 2013 13:16:14 +0800
+Subject: [PATCH] support setContentType method
+
+---
+ src/PYBopomofoEngine.cc | 22 ++++++++++++++++++++++
+ src/PYBopomofoEngine.h | 7 +++++++
+ src/PYEngine.cc | 21 +++++++++++++++++++++
+ src/PYEngine.h | 3 +++
+ src/PYPinyinEngine.cc | 22 ++++++++++++++++++++++
+ src/PYPinyinEngine.h | 7 +++++++
+ 6 files changed, 82 insertions(+)
+
+diff --git a/src/PYBopomofoEngine.cc b/src/PYBopomofoEngine.cc
+index 581c4cf..4dfbc2c 100644
+--- a/src/PYBopomofoEngine.cc
++++ b/src/PYBopomofoEngine.cc
+@@ -42,6 +42,10 @@ BopomofoEngine::BopomofoEngine (IBusEngine *engine)
+ {
+ gint i;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM;
++#endif
++
+ /* create editors */
+ m_editors[MODE_INIT].reset (new BopomofoEditor (m_props, BopomofoConfig::instance ()));
+ m_editors[MODE_PUNCT].reset (new PunctEditor (m_props, BopomofoConfig::instance ()));
+@@ -72,6 +76,11 @@ BopomofoEngine::processKeyEvent (guint keyval, guint keycode, guint modifiers)
+ {
+ gboolean retval = FALSE;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ if (IBUS_INPUT_PURPOSE_PASSWORD == m_input_purpose)
++ return retval;
++#endif
++
+ /* check Shift + Release hotkey,
+ * and then ignore other Release key event */
+ if (modifiers & IBUS_RELEASE_MASK) {
+@@ -139,9 +148,22 @@ BopomofoEngine::focusIn (void)
+ void
+ BopomofoEngine::focusOut (void)
+ {
++
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM;
++#endif
++
+ reset ();
+ }
+
++#if IBUS_CHECK_VERSION(1, 5, 4)
++void
++BopomofoEngine::setContentType (guint purpose, guint hints)
++{
++ m_input_purpose = (IBusInputPurpose) purpose;
++}
++#endif
++
+ void
+ BopomofoEngine::reset (void)
+ {
+diff --git a/src/PYBopomofoEngine.h b/src/PYBopomofoEngine.h
+index ce41ce8..14b6780 100644
+--- a/src/PYBopomofoEngine.h
++++ b/src/PYBopomofoEngine.h
+@@ -36,6 +36,9 @@ public:
+ gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers);
+ void focusIn (void);
+ void focusOut (void);
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ void setContentType (guint purpose, guint hints);
++#endif
+ void reset (void);
+ void enable (void);
+ void disable (void);
+@@ -59,6 +62,10 @@ private:
+ private:
+ PinyinProperties m_props;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ IBusInputPurpose m_input_purpose;
++#endif
++
+ guint m_prev_pressed_key;
+
+ enum {
+diff --git a/src/PYEngine.cc b/src/PYEngine.cc
+index d9fa04a..da047b2 100644
+--- a/src/PYEngine.cc
++++ b/src/PYEngine.cc
+@@ -67,6 +67,12 @@ static gboolean ibus_pinyin_engine_process_key_event
+ guint modifiers);
+ static void ibus_pinyin_engine_focus_in (IBusEngine *engine);
+ static void ibus_pinyin_engine_focus_out (IBusEngine *engine);
++#if IBUS_CHECK_VERSION (1, 5, 4)
++static void ibus_pinyin_engine_set_content_type
++ (IBusEngine *engine,
++ guint purpose,
++ guint hints);
++#endif
+ static void ibus_pinyin_engine_reset (IBusEngine *engine);
+ static void ibus_pinyin_engine_enable (IBusEngine *engine);
+ static void ibus_pinyin_engine_disable (IBusEngine *engine);
+@@ -123,6 +129,10 @@ ibus_pinyin_engine_class_init (IBusPinyinEngineClass *klass)
+ engine_class->focus_in = ibus_pinyin_engine_focus_in;
+ engine_class->focus_out = ibus_pinyin_engine_focus_out;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ engine_class->set_content_type = ibus_pinyin_engine_set_content_type;
++#endif
++
+ engine_class->page_up = ibus_pinyin_engine_page_up;
+ engine_class->page_down = ibus_pinyin_engine_page_down;
+
+@@ -182,6 +192,17 @@ ibus_pinyin_engine_process_key_event (IBusEngine *engine,
+ return pinyin->engine->processKeyEvent (keyval, keycode, modifiers);
+ }
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++static void
++ibus_pinyin_engine_set_content_type (IBusEngine *engine,
++ guint purpose,
++ guint hints)
++{
++ IBusPinyinEngine *pinyin = (IBusPinyinEngine *) engine;
++ return pinyin->engine->setContentType (purpose, hints);
++}
++#endif
++
+ static void
+ ibus_pinyin_engine_property_activate (IBusEngine *engine,
+ const gchar *prop_name,
+diff --git a/src/PYEngine.h b/src/PYEngine.h
+index b74e6e8..22e1b79 100644
+--- a/src/PYEngine.h
++++ b/src/PYEngine.h
+@@ -44,6 +44,9 @@ public:
+ virtual gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers) = 0;
+ virtual void focusIn (void) = 0;
+ virtual void focusOut (void) = 0;
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ virtual void setContentType (guint purpose, guint hints) = 0;
++#endif
+ virtual void reset (void) = 0;
+ virtual void enable (void) = 0;
+ virtual void disable (void) = 0;
+diff --git a/src/PYPinyinEngine.cc b/src/PYPinyinEngine.cc
+index 7aea261..570187b 100644
+--- a/src/PYPinyinEngine.cc
++++ b/src/PYPinyinEngine.cc
+@@ -45,6 +45,10 @@ PinyinEngine::PinyinEngine (IBusEngine *engine)
+ {
+ gint i;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM;
++#endif
++
+ if (PinyinConfig::instance ().doublePinyin ())
+ m_editors[MODE_INIT].reset (new DoublePinyinEditor (m_props, PinyinConfig::instance ()));
+ else
+@@ -82,6 +86,11 @@ PinyinEngine::processKeyEvent (guint keyval, guint keycode, guint modifiers)
+ {
+ gboolean retval = FALSE;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ if (IBUS_INPUT_PURPOSE_PASSWORD == m_input_purpose)
++ return retval;
++#endif
++
+ /* check Shift + Release hotkey,
+ * and then ignore other Release key event */
+ if (modifiers & IBUS_RELEASE_MASK) {
+@@ -195,9 +204,22 @@ PinyinEngine::focusIn (void)
+ void
+ PinyinEngine::focusOut (void)
+ {
++
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM;
++#endif
++
+ reset ();
+ }
+
++#if IBUS_CHECK_VERSION(1, 5, 4)
++void
++PinyinEngine::setContentType (guint purpose, guint hints)
++{
++ m_input_purpose = (IBusInputPurpose) purpose;
++}
++#endif
++
+ void
+ PinyinEngine::reset (void)
+ {
+diff --git a/src/PYPinyinEngine.h b/src/PYPinyinEngine.h
+index fcce73e..de50269 100644
+--- a/src/PYPinyinEngine.h
++++ b/src/PYPinyinEngine.h
+@@ -35,6 +35,9 @@ public:
+ gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers);
+ void focusIn (void);
+ void focusOut (void);
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ void setContentType (guint purpose, guint hints);
++#endif
+ void reset (void);
+ void enable (void);
+ void disable (void);
+@@ -58,6 +61,10 @@ private:
+ private:
+ PinyinProperties m_props;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ IBusInputPurpose m_input_purpose;
++#endif
++
+ guint m_prev_pressed_key;
+
+ enum {
+--
+1.8.3.1
+
diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild
new file mode 100644
index 00000000000..20a62d50e18
--- /dev/null
+++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+
+inherit python
+
+PYDB_TAR="pinyin-database-1.2.99.tar.bz2"
+DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz
+ http://ibus.googlecode.com/files/${PYDB_TAR}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boost lua nls opencc"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ dev-python/pygtk
+ sys-apps/util-linux
+ boost? ( >=dev-libs/boost-1.39 )
+ lua? (
+ >=dev-lang/lua-5.1
+ <dev-lang/lua-5.2.0
+ )
+ nls? ( virtual/libintl )
+ opencc? ( app-i18n/opencc )"
+DEPEND="${RDEPEND}
+ sys-apps/sed
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ sed -i -e "s/python/&2/" setup/ibus-setup-pinyin.in || die
+ cp "${DISTDIR}"/${PYDB_TAR} data/db/open-phrase/ || die
+ >py-compile
+}
+
+src_configure() {
+ econf \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable nls) \
+ $(use_enable opencc) \
+ --enable-db-open-phrase
+ #--disable-db-android \
+ #--disable-english-input-mode \
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild
new file mode 100644
index 00000000000..ed1645f20f6
--- /dev/null
+++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+
+inherit python
+
+PYDB_TAR="pinyin-database-1.2.99.tar.bz2"
+DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz
+ http://ibus.googlecode.com/files/${PYDB_TAR}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boost lua nls opencc"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ sys-apps/util-linux
+ boost? ( >=dev-libs/boost-1.39 )
+ lua? (
+ >=dev-lang/lua-5.1
+ <dev-lang/lua-5.2.0
+ )
+ nls? ( virtual/libintl )
+ opencc? ( app-i18n/opencc )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ cp "${DISTDIR}"/${PYDB_TAR} data/db/open-phrase/ || die
+ >py-compile
+}
+
+src_configure() {
+ econf \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable nls) \
+ $(use_enable opencc) \
+ --enable-db-open-phrase
+ #--disable-db-android \
+ #--disable-english-input-mode \
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild
new file mode 100644
index 00000000000..7df7141428c
--- /dev/null
+++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+
+inherit python eutils
+
+DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="boost lua nls"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ dev-python/pygtk
+ app-i18n/pyzy
+ boost? ( >=dev-libs/boost-1.39 )
+ lua? (
+ >=dev-lang/lua-5.1
+ <dev-lang/lua-5.2 )
+ nls? ( virtual/libintl )"
+
+DEPEND="${RDEPEND}
+ sys-apps/sed
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ sed -i -e "s/python/&2/" setup/ibus-setup-pinyin.in || die
+ epatch "${FILESDIR}"/${P}-content-type-method.patch
+}
+
+src_configure() {
+ econf \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable nls) \
+ --enable-english-input-mode
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r2.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r2.ebuild
new file mode 100644
index 00000000000..3535cfc6ff2
--- /dev/null
+++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+inherit python-single-r1 eutils
+
+DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boost lua nls"
+
+RDEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.4[python,${PYTHON_USEDEP}]
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ app-i18n/pyzy
+ boost? ( >=dev-libs/boost-1.39 )
+ lua? (
+ >=dev-lang/lua-5.1
+ <dev-lang/lua-5.2 )
+ nls? ( virtual/libintl )"
+
+DEPEND="${RDEPEND}
+ sys-apps/sed
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+src_prepare() {
+ sed -i -e "s/python/${EPYTHON}/" setup/ibus-setup-pinyin.in || die
+ epatch "${FILESDIR}"/${P}-content-type-method.patch
+}
+
+src_configure() {
+ econf \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable nls) \
+ --enable-english-input-mode
+}
diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0.ebuild
new file mode 100644
index 00000000000..48f386ddef9
--- /dev/null
+++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+
+inherit python eutils
+
+DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boost lua nls"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ app-i18n/pyzy
+ boost? ( >=dev-libs/boost-1.39 )
+ lua? (
+ >=dev-lang/lua-5.1
+ <dev-lang/lua-5.2 )
+ nls? ( virtual/libintl )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-content-type-method.patch
+}
+
+src_configure() {
+ econf \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable nls) \
+ --enable-english-input-mode
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-pinyin/metadata.xml b/app-i18n/ibus-pinyin/metadata.xml
new file mode 100644
index 00000000000..e48d0a4aca0
--- /dev/null
+++ b/app-i18n/ibus-pinyin/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+<longdescription lang="en">
+PinYin engine for IBus platform. It provides a Chinese PinYin input method.
+</longdescription>
+<use>
+ <flag name="boost">Compile against <pkg>dev-libs/boost</pkg> libraries</flag>
+ <flag name="opencc">Enable support for <pkg>app-i18n/opencc</pkg></flag>
+</use>
+</pkgmetadata>
+
diff --git a/app-i18n/ibus-qt/Manifest b/app-i18n/ibus-qt/Manifest
new file mode 100644
index 00000000000..bc5cb6fa3b9
--- /dev/null
+++ b/app-i18n/ibus-qt/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-qt-1.3.1-Source.tar.gz 141488 SHA256 4079577a240c961278f7bdab11a5ad546dff414c687c60560fdbc19208b3ac85 SHA512 2cd28f8ff3fff411496ccaf9ab67ab5332b7f2d2d0d0e3460dbeb34874ed931aa56c222c3ea5ce39053577b91cd2de4ebe01152039cd6def37c366ab3065cff2 WHIRLPOOL 585ead9a02d2014f7536aa633c72e07f8ce990c768d0aa9b5bf00105166f467307fb12457c5da4c2aa0b7b5cf9656d616de7d0e344e8d02161e123368bdad9ff
+DIST ibus-qt-1.3.2-Source.tar.gz 139496 SHA256 070c8ef4e6c74eddf7ddf4385936aed730c2dfe2160162e5c56b5158d1061a76 SHA512 b82c744265daec4bbda3c7f2f1874fab52aca77cbe726a04f350502e1e5637f5e07b5218a81efa6ccf3715e73638e6442376cdf73d5435e47c3bd3571dcbc0c5 WHIRLPOOL 926c8db73249c5c6697befb19f2e425a24ea531f9154295a32dbc8907270ae9ac07ef58c15aa99adc54289b136ee5f01189466f48ebc895b952685ae9457c850
+DIST ibus-qt-1.3.3.tar.gz 141523 SHA256 29bff835a4a07396c5f174d29c2266a39767c1abad48b2b0da1ab8d4c66fb44a SHA512 825a32fec51f10f466efd4255743a12ae98af63bacd07d5dc04e18fab6b830501b04491146c1f8bc92edd93dbf8eaeb68cf71062ffdbf25c2970d807b655c80a WHIRLPOOL 692f5dcf1e89c28a90a4fdfbd0bc62e00e5f680798ecfe9c7a47c9d26510c30415a07facae0e7e44f0416f7b3675a6c4445c8812294ec37ea523603a68d7c6a0
diff --git a/app-i18n/ibus-qt/files/ibus-qt-1.2.0.20091217-doc.patch b/app-i18n/ibus-qt/files/ibus-qt-1.2.0.20091217-doc.patch
new file mode 100644
index 00000000000..a2adbd7b953
--- /dev/null
+++ b/app-i18n/ibus-qt/files/ibus-qt-1.2.0.20091217-doc.patch
@@ -0,0 +1,21 @@
+--- ibus-qt-1.2.0.20091217-Source.orig/CMakeLists.txt 2009-12-17 14:50:00.000000000 +0900
++++ ibus-qt-1.2.0.20091217-Source/CMakeLists.txt 2010-01-03 09:11:53.000000000 +0900
+@@ -76,7 +76,7 @@
+ # pkg_check_modules(IBUS REQUIRED ibus-1.0>=1.2.0)
+
+ # check doxygen
+-find_package(Doxygen REQUIRED)
++find_package(Doxygen)
+
+ # =====
+ # Define variables
+@@ -100,8 +100,7 @@
+ # install
+ set(MAIN_DOCS
+ AUTHORS
+- README
+- INSTALL)
++ README)
+ install(FILES ${MAIN_DOCS}
+ DESTINATION ${DOCDIR})
+
diff --git a/app-i18n/ibus-qt/files/ibus-qt-1.3-doc.patch b/app-i18n/ibus-qt/files/ibus-qt-1.3-doc.patch
new file mode 100644
index 00000000000..a35e673110e
--- /dev/null
+++ b/app-i18n/ibus-qt/files/ibus-qt-1.3-doc.patch
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.old 2014-08-04 15:26:19.636569061 +0200
++++ CMakeLists.txt 2014-08-04 15:26:54.637618456 +0200
+@@ -77,7 +77,7 @@
+ pkg_check_modules(IBUS REQUIRED ibus-1.0>=1.3.7)
+
+ # check doxygen
+-find_package(Doxygen REQUIRED)
++find_package(Doxygen)
+
+ # =====
+ # Define variables
diff --git a/app-i18n/ibus-qt/files/ibus-qt-1.3.1-display-unset.patch b/app-i18n/ibus-qt/files/ibus-qt-1.3.1-display-unset.patch
new file mode 100644
index 00000000000..8325779282f
--- /dev/null
+++ b/app-i18n/ibus-qt/files/ibus-qt-1.3.1-display-unset.patch
@@ -0,0 +1,76 @@
+From d2a4e30fdb92aeaf476dcaaf2b5d6f8275d6af70 Mon Sep 17 00:00:00 2001
+From: Peter Wu <lekensteyn@gmail.com>
+Date: Tue, 4 Sep 2012 19:40:08 +0200
+Subject: [PATCH] Do not crash on missing/invalid DISPLAY envvar.
+
+- Check whether the passed DISPLAY environment variable contains ":".
+
+- Fallback to "-display" parameter passed to QApplication.
+---
+ src/CMakeLists.txt | 2 ++
+ src/qibusbus.cpp | 23 ++++++++++++++++-------
+ 2 files changed, 18 insertions(+), 7 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 2ad5588..8866ac0 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -92,9 +92,11 @@ set_target_properties(
+ target_link_libraries(
+ ibus-qt
+ debug ${QT_QTCORE_LIBRARY_DEBUG}
++ debug ${QT_QTGUI_LIBRARY_DEBUG}
+ debug ${QT_QTDBUS_LIBRARY_DEBUG}
+ debug ${QT_QTXML_LIBRARY_DEBUG}
+ optimized ${QT_QTCORE_LIBRARY_RELEASE}
++ optimized ${QT_QTGUI_LIBRARY_RELEASE}
+ optimized ${QT_QTDBUS_LIBRARY_RELEASE}
+ optimized ${QT_QTXML_LIBRARY_RELEASE}
+ ${DBUS_LIBRARIES}
+diff --git a/src/qibusbus.cpp b/src/qibusbus.cpp
+index 6a45d65..ed8248a 100644
+--- a/src/qibusbus.cpp
++++ b/src/qibusbus.cpp
+@@ -12,7 +12,8 @@
+ #include "qibusbus.h"
+ #include "qibusibusproxy.h"
+ #include "qibusdbusproxy.h"
+-
++#include <X11/Xlib.h>
++#include <QX11Info>
+
+ namespace IBus {
+ /**
+@@ -121,15 +122,23 @@
+ Bus::getSocketPath (void)
+ {
+ QString display = getenv ("DISPLAY");
+- QStringList strs = display.split(":");
+ QString hostname = "unix";
+ QString display_number = "0";
++ /* fallback when -display is passed to QApplication with no DISPLAY env */
++ if (display == NULL) {
++ Display * dpy = QX11Info::display();
++ if (dpy)
++ display = XDisplayString(dpy);
++ }
++ if (display != NULL && display.contains(':')) {
++ QStringList strs = display.split(":");
+
+- if (!strs[0].isEmpty())
+- hostname = strs[0];
+- strs = strs[1].split(".");
+- if (!strs[0].isEmpty())
+- display_number = strs[0];
++ if (!strs[0].isEmpty())
++ hostname = strs[0];
++ strs = strs[1].split(".");
++ if (!strs[0].isEmpty())
++ display_number = strs[0];
++ }
+
+ QString path =
+ QDir::homePath() +
+--
+1.7.10
+
diff --git a/app-i18n/ibus-qt/files/ibus-qt-1.3.1-gold.patch b/app-i18n/ibus-qt/files/ibus-qt-1.3.1-gold.patch
new file mode 100644
index 00000000000..3d108026911
--- /dev/null
+++ b/app-i18n/ibus-qt/files/ibus-qt-1.3.1-gold.patch
@@ -0,0 +1,15 @@
+ src/CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 8866ac0..f419141 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -100,6 +100,7 @@ target_link_libraries(
+ optimized ${QT_QTDBUS_LIBRARY_RELEASE}
+ optimized ${QT_QTXML_LIBRARY_RELEASE}
+ ${DBUS_LIBRARIES}
++ ${X11_LIBRARIES}
+ )
+
+ install(TARGETS ibus-qt
diff --git a/app-i18n/ibus-qt/files/ibus-qt-1.3.1-qvariant.patch b/app-i18n/ibus-qt/files/ibus-qt-1.3.1-qvariant.patch
new file mode 100644
index 00000000000..23981b35ded
--- /dev/null
+++ b/app-i18n/ibus-qt/files/ibus-qt-1.3.1-qvariant.patch
@@ -0,0 +1,29 @@
+From 40e119bd5577fc383990ad02b175ec64292f764b Mon Sep 17 00:00:00 2001
+From: Jekyll Wu <adaptee@gmail.com>
+Date: Tue, 16 Oct 2012 11:24:06 +0900
+Subject: [PATCH] Fix a non-const lvalue build error with clang-3.1
+
+BUG=http://code.google.com/p/ibus/issues/detail?id=1506
+
+Review URL: https://codereview.appspot.com/6697048
+Patch from Jekyll Wu <adaptee@gmail.com>.
+---
+ src/qibusserializable.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/qibusserializable.h b/src/qibusserializable.h
+index 594d973..92a32ed 100644
+--- a/src/qibusserializable.h
++++ b/src/qibusserializable.h
+@@ -91,7 +91,7 @@ class Serializable : public Object
+
+ template<typename T>
+ QVariant &
+-qVariantFromSerializable (const Pointer<T> &p, QVariant & variant = QVariant ())
++qVariantFromSerializable (const Pointer<T> &p, QVariant & variant)
+ {
+ QDBusArgument argument;
+
+--
+1.8.1.5
+
diff --git a/app-i18n/ibus-qt/ibus-qt-1.3.1.ebuild b/app-i18n/ibus-qt/ibus-qt-1.3.1.ebuild
new file mode 100644
index 00000000000..c8a86f7c887
--- /dev/null
+++ b/app-i18n/ibus-qt/ibus-qt-1.3.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit cmake-utils eutils multilib
+
+MY_P="${P}-Source"
+DESCRIPTION="Qt IBus library and Qt input method plugin"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND=">=app-i18n/ibus-1.3.7
+ >=sys-apps/dbus-1.2
+ x11-libs/libX11
+ >=dev-qt/qtcore-4.5:4
+ >=dev-qt/qtdbus-4.5:4"
+DEPEND="${RDEPEND}
+ >=dev-libs/icu-4:=
+ dev-util/cmake
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS="AUTHORS README TODO"
+
+mycmakeargs="-DLIBDIR=$(get_libdir) -DDOCDIR=${EPREFIX}/usr/share/doc/${PF} all"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.2.0.20091217-doc.patch" \
+ "${FILESDIR}"/${PN}-1.3.1-display-unset.patch \
+ "${FILESDIR}"/${PN}-1.3.1-gold.patch \
+ "${FILESDIR}"/${PN}-1.3.1-qvariant.patch
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc ; then
+ cd "${CMAKE_BUILD_DIR}"
+ emake docs || die
+ fi
+}
+
+src_install() {
+ if use doc ; then
+ HTML_DOCS="${CMAKE_BUILD_DIR}/docs/html/*"
+ fi
+
+ cmake-utils_src_install
+}
diff --git a/app-i18n/ibus-qt/ibus-qt-1.3.2.ebuild b/app-i18n/ibus-qt/ibus-qt-1.3.2.ebuild
new file mode 100644
index 00000000000..31922b67654
--- /dev/null
+++ b/app-i18n/ibus-qt/ibus-qt-1.3.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit cmake-utils eutils multilib
+
+MY_P="${P}-Source"
+DESCRIPTION="Qt IBus library and Qt input method plugin"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND=">=app-i18n/ibus-1.3.7
+ >=sys-apps/dbus-1.2
+ x11-libs/libX11
+ >=dev-qt/qtcore-4.5:4
+ >=dev-qt/qtdbus-4.5:4"
+DEPEND="${RDEPEND}
+ >=dev-libs/icu-4:=
+ dev-util/cmake
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS="AUTHORS README TODO"
+
+mycmakeargs="-DLIBDIR=$(get_libdir) -DDOCDIR=${EPREFIX}/usr/share/doc/${PF} all"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.2.0.20091217-doc.patch"
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc ; then
+ cd "${CMAKE_BUILD_DIR}"
+ emake docs || die
+ fi
+}
+
+src_install() {
+ if use doc ; then
+ HTML_DOCS="${CMAKE_BUILD_DIR}/docs/html/*"
+ fi
+
+ cmake-utils_src_install
+}
diff --git a/app-i18n/ibus-qt/ibus-qt-1.3.3.ebuild b/app-i18n/ibus-qt/ibus-qt-1.3.3.ebuild
new file mode 100644
index 00000000000..05f923f1c74
--- /dev/null
+++ b/app-i18n/ibus-qt/ibus-qt-1.3.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit cmake-utils eutils multilib
+
+DESCRIPTION="Qt IBus library and Qt input method plugin"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="https://github.com/ibus/ibus-qt/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND=">=app-i18n/ibus-1.3.7
+ >=sys-apps/dbus-1.2
+ x11-libs/libX11
+ >=dev-qt/qtcore-4.5:4
+ >=dev-qt/qtdbus-4.5:4"
+DEPEND="${RDEPEND}
+ >=dev-libs/icu-4:=
+ dev-util/cmake
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+DOCS="AUTHORS README TODO"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.3-doc.patch )
+
+mycmakeargs="-DLIBDIR=$(get_libdir) all"
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc ; then
+ cd "${CMAKE_BUILD_DIR}"
+ emake docs || die
+ fi
+}
+
+src_install() {
+ if use doc ; then
+ HTML_DOCS="${CMAKE_BUILD_DIR}/docs/html/*"
+ fi
+
+ cmake-utils_src_install
+}
diff --git a/app-i18n/ibus-qt/metadata.xml b/app-i18n/ibus-qt/metadata.xml
new file mode 100644
index 00000000000..f605ee66a1f
--- /dev/null
+++ b/app-i18n/ibus-qt/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">IBus means Intelligent Input Bus. It is a new input framework for Linux OS. It provides
+full featured and user friendly input method user interface. It also may help
+developers to develop input method easily.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ <remote-id type="github">ibus/ibus-qt</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-rime/Manifest b/app-i18n/ibus-rime/Manifest
new file mode 100644
index 00000000000..791d2d1536c
--- /dev/null
+++ b/app-i18n/ibus-rime/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-rime-0.9.9.tar.gz 23912 SHA256 5bbb76abc763bdd3c83a5fe594f1488b34377b34b3f6e3c8c7b5cf86ab550cad SHA512 b18e6f3ba6c97e3b55900d9c4cb70d58f24b202bf2ae894ca861af10ddb028c193d9ac97e609f3b4f0f183b212b74180a02e5d823f235b4c799733933a48afb7 WHIRLPOOL 65d50aafe79014536da3fbbd274fcdf45b93223b1162dae52a2a6c99b2bf2f15192051011ae7aad13f2044fe24b6cdce018f0527cd9ff61164134893447e0431
+DIST ibus-rime-1.1.tar.gz 23418 SHA256 5aff3bbf5ce1eddd1243436ce2bbbb55a6c745b7cba8b6df4e5049f116a8b2be SHA512 2510f9019045013f85af5b8401286b338b739fa0e908a3e30e1d59971a43c32212f388d367b51942292e236859feb1a70d7e7b8deb17eafd8b4f878cc7ba018f WHIRLPOOL 1df8da49b1d3e420ea78cae9ee65b5bf646928480a7d13ed9d05358b274cb932f2026a232876a3c72402ced5957a03c82d3839f84b2a272f5e650aac17ed7360
+DIST ibus-rime-1.2.tar.gz 33396 SHA256 932e0ce6d480562fbb4e3e266d48cdf6007ce0288db4fa3f3cbc3bb1c69b6fce SHA512 e1851781a6d069a79d04890b5b0aa2a706e611c08df3fcb99f883eeedd4dc4eefcac207f35b5cf1d856a41f0153ec3fbb040b4e6f610727384baa19b52a64155 WHIRLPOOL 3ab5b34268913846f29ae3bacf0c46133ecf19728094850dd2a9d28fe78811af1a7ef2d9e6c04221c4ba44a6e5a8fdb50456836def20a61621639dda14d6d2bb
diff --git a/app-i18n/ibus-rime/ibus-rime-0.9.9.ebuild b/app-i18n/ibus-rime/ibus-rime-0.9.9.ebuild
new file mode 100644
index 00000000000..f65142c1a56
--- /dev/null
+++ b/app-i18n/ibus-rime/ibus-rime-0.9.9.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Rime Input Method Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+SRC_URI="http://rimeime.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="app-i18n/ibus
+ app-i18n/librime
+ x11-libs/libnotify"
+DEPEND="${COMMON_DEPEND}
+ dev-util/cmake"
+RDEPEND="${COMMON_DEPEND}
+ app-i18n/rime-data"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ sed -i -e "/^libexecdir/s:/lib:/libexec:" Makefile || die
+ sed -i -e "/exec/s:/usr/lib:/usr/libexec:" rime.xml || die
+}
diff --git a/app-i18n/ibus-rime/ibus-rime-1.1.ebuild b/app-i18n/ibus-rime/ibus-rime-1.1.ebuild
new file mode 100644
index 00000000000..0265250c5dc
--- /dev/null
+++ b/app-i18n/ibus-rime/ibus-rime-1.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Rime Input Method Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+SRC_URI="http://rimeime.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="app-i18n/ibus
+ app-i18n/librime
+ x11-libs/libnotify"
+DEPEND="${COMMON_DEPEND}
+ dev-util/cmake"
+RDEPEND="${COMMON_DEPEND}
+ app-i18n/rime-data"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ sed -i -e "/^libexecdir/s:/lib:/libexec:" Makefile || die
+ sed -i -e "/exec/s:/usr/lib:/usr/libexec:" rime.xml || die
+}
diff --git a/app-i18n/ibus-rime/ibus-rime-1.2.ebuild b/app-i18n/ibus-rime/ibus-rime-1.2.ebuild
new file mode 100644
index 00000000000..022b86fb58d
--- /dev/null
+++ b/app-i18n/ibus-rime/ibus-rime-1.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Rime Input Method Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+SRC_URI="http://dl.bintray.com/lotem/rime/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="app-i18n/ibus
+ app-i18n/librime
+ x11-libs/libnotify"
+DEPEND="${COMMON_DEPEND}
+ dev-util/cmake"
+RDEPEND="${COMMON_DEPEND}
+ app-i18n/rime-data"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ sed -i -e "/^libexecdir/s:/lib:/libexec:" Makefile || die
+ sed -i -e "/exec/s:/usr/lib:/usr/libexec:" rime.xml || die
+}
diff --git a/app-i18n/ibus-rime/metadata.xml b/app-i18n/ibus-rime/metadata.xml
new file mode 100644
index 00000000000..0a8c950f329
--- /dev/null
+++ b/app-i18n/ibus-rime/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>chen.sst@gmail.com</email>
+ <name>Gong Chen</name>
+ </maintainer>
+ <bugs-to>http://code.google.com/p/rimeime/issues/list</bugs-to>
+ <remote-id type="google-code">rimeime</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-skk/Manifest b/app-i18n/ibus-skk/Manifest
new file mode 100644
index 00000000000..2549378863e
--- /dev/null
+++ b/app-i18n/ibus-skk/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-skk-1.3.9.tar.gz 459987 SHA256 67c615f6e070673e312da50e1125f2f0637b40e0eca4f6ea34325f41322b4ba6 SHA512 f68fbd82d087f7bcae50196854cbe650f8b4ef936238be170d74c33ede4c15370d0f0a8e65216a6ab2547bd2ab7a4b2a4f5a5ee96ed81b0034fcdff6872528fe WHIRLPOOL 3d026b36ee416fd101047b9babfb4cef6dcefb73aea2b359ce01a93fc68fe0e29ac0ce3a21094d0c087623d118730b6abc4aaa7d0062cbddb9db28914b8a4dca
+DIST ibus-skk-1.4.0.tar.gz 478964 SHA256 bbf4309215802dddc41bdb7dc0efad91da99957e07f9216193345b149e43b4d9 SHA512 b3c9520eeb139a315779cd12a3865935ac92063dddf7920e63bcdd9670041e9588ae3858c2e8f0f8f77fbed545630a6021e3296de76a239c4bd75e2927c216da WHIRLPOOL 13f56e9bed96d89a4e015d46e8623442efcb63376e4f42152bfe48809b53ffc7a08ff61311d5321ae1c0c6e6f653a05034085a7887faf6db454128f349b2c60e
+DIST ibus-skk-1.4.1.tar.gz 478018 SHA256 368b114a07f03d5d91cf333215f9429995efbbea73ee7efe2e37fb3bbc6d81de SHA512 d8c0bf2c92fd96486ed10e9dcac861b4fc16e741fd96764671352e9e67226887ad6aa4b76c4891411029d3f5bf692de1162f996a294cecc9e5231e90ea0df5f0 WHIRLPOOL 38f029ad775870c1112d7277337c6083a03008960c54a0a9e09cb2acad5e3dd7c56583645aab9d597870c4a27c4e6c85a11e9e0c33a1533d51c36fa301bdb094
diff --git a/app-i18n/ibus-skk/ibus-skk-1.3.9.ebuild b/app-i18n/ibus-skk/ibus-skk-1.3.9.ebuild
new file mode 100644
index 00000000000..fbd71b29621
--- /dev/null
+++ b/app-i18n/ibus-skk/ibus-skk-1.3.9.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+PYTHON_DEPEND="2:2.5"
+
+inherit python
+
+DESCRIPTION="Japanese input method Anthy IMEngine for IBus Framework"
+HOMEPAGE="http://github.com/ueno/ibus-skk"
+SRC_URI="mirror://github/ueno/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.3
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+RDEPEND="${RDEPEND}
+ app-i18n/skk-jisyo"
+
+DOCS="ChangeLog NEWS README THANKS TODO"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ >py-compile
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-skk/ibus-skk-1.4.0.ebuild b/app-i18n/ibus-skk/ibus-skk-1.4.0.ebuild
new file mode 100644
index 00000000000..209efc31836
--- /dev/null
+++ b/app-i18n/ibus-skk/ibus-skk-1.4.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+PYTHON_DEPEND="2:2.5"
+
+inherit python
+
+DESCRIPTION="Japanese input method Anthy IMEngine for IBus Framework"
+HOMEPAGE="http://github.com/ueno/ibus-skk"
+SRC_URI="mirror://github/ueno/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.3
+ app-i18n/libskk
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+RDEPEND="${RDEPEND}
+ app-i18n/skk-jisyo"
+
+DOCS="ChangeLog NEWS README THANKS"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ >py-compile
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-skk/ibus-skk-1.4.1-r1.ebuild b/app-i18n/ibus-skk/ibus-skk-1.4.1-r1.ebuild
new file mode 100644
index 00000000000..2034ccc1314
--- /dev/null
+++ b/app-i18n/ibus-skk/ibus-skk-1.4.1-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Japanese input method Anthy IMEngine for IBus Framework"
+HOMEPAGE="http://github.com/ueno/ibus-skk"
+SRC_URI="mirror://github/ueno/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.3
+ >=app-i18n/libskk-0.0.11
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+RDEPEND="${RDEPEND}
+ app-i18n/skk-jisyo"
+
+DOCS="ChangeLog NEWS README THANKS"
+
+src_configure() {
+ econf $(use_enable nls)
+}
diff --git a/app-i18n/ibus-skk/ibus-skk-1.4.1.ebuild b/app-i18n/ibus-skk/ibus-skk-1.4.1.ebuild
new file mode 100644
index 00000000000..e4238a167ba
--- /dev/null
+++ b/app-i18n/ibus-skk/ibus-skk-1.4.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+PYTHON_DEPEND="2:2.5"
+
+inherit python
+
+DESCRIPTION="Japanese input method Anthy IMEngine for IBus Framework"
+HOMEPAGE="http://github.com/ueno/ibus-skk"
+SRC_URI="mirror://github/ueno/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.3
+ >=app-i18n/libskk-0.0.11
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+RDEPEND="${RDEPEND}
+ app-i18n/skk-jisyo"
+
+DOCS="ChangeLog NEWS README THANKS"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ >py-compile
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-skk/metadata.xml b/app-i18n/ibus-skk/metadata.xml
new file mode 100644
index 00000000000..8603c718073
--- /dev/null
+++ b/app-i18n/ibus-skk/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">
+A Japanese Simple Kana Kanji Input Method Engine for ibus.
+</longdescription>
+ <upstream>
+ <remote-id type="github">ueno/ibus-skk</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-sunpinyin/Manifest b/app-i18n/ibus-sunpinyin/Manifest
new file mode 100644
index 00000000000..3d2f7a5b5bf
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/Manifest
@@ -0,0 +1,2 @@
+DIST ibus-sunpinyin-2.0.3.tar.gz 218785 SHA256 9c15b89d683318f3b1f3475dcabf7a91ee815692b233a289bcadab3ab7f8fa3c SHA512 75620184540ca71d239f6370dda83dd791b46581b19b309e4e7924f3760072a4d58c06940360539d0ec98d88e24c61922025dbdf97bfe93eb0aba5a778651106 WHIRLPOOL 32bb79dc743ebc44c09cff5cae15ad449aa9951a87a5b2d4cef58788d61cbe4bdaa8923f1e2043243442eeec17d0455ca0b124581b2aa403a320a2da1beba368
+DIST sunpinyin-2.0.4_pre20130108.tar.xz 964764 SHA256 e650957aced55075448b7f02298d0c5cf59a8b8e041e9c7d92d24cb5170de93f SHA512 7c1dd7db8b800e9d436746a560a16de2c6777576868f2e7e28f6dcb767b91ccd62b974f9d4ce6bd6ce80d30e1ee83887c3ee03c227e7e9fa59c01db4867465b2 WHIRLPOOL 82535dcde38c2fce17877e465db7ebeaed14a7f305ad96ca451c5b35ae04244a94e9bde9ce51092a390964c557e39ab43742d2370342f9b72722b24f916c55d6
diff --git a/app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.3-force-switch.patch b/app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.3-force-switch.patch
new file mode 100644
index 00000000000..66b0165b9eb
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.3-force-switch.patch
@@ -0,0 +1,33 @@
+diff --git a/wrapper/ibus/SConstruct b/wrapper/ibus/SConstruct
+index 92b1094..3e1166f 100644
+--- a/wrapper/ibus/SConstruct
++++ b/wrapper/ibus/SConstruct
+@@ -14,7 +14,7 @@ sources = ['src/debug.cpp',
+
+ locales = ['zh_CN']
+
+-cflags = '-O2 -g -pipe'
++cflags = '-O2 -g -pipe '
+ version = '2.0.3'
+
+ AddOption('--prefix', dest='prefix', metavar='DIR',
+@@ -62,9 +62,6 @@ if GetOption('datadir') is not None:
+
+ opts.Save('configure.conf', env)
+
+-if GetOption('rpath') is not None:
+- env.Append(LINKFLAGS='-Wl,-R -Wl,%s' % GetOption('rpath'))
+-
+ envvar = [('CC', 'CC'),
+ ('CXX', 'CXX'),
+ ('CFLAGS', 'CFLAGS'),
+@@ -85,6 +82,9 @@ extra_cflags += ' -DGETTEXT_PACKAGE=\'"%s"\'' % gettext_package
+ env.Append(CFLAGS=extra_cflags)
+ env.Append(CXXFLAGS=extra_cflags)
+
++if GetOption('rpath') is not None:
++ env.Append(LINKFLAGS=' -Wl,-R -Wl,%s' % GetOption('rpath'))
++
+ #
+ #==============================configure================================
+ #
diff --git a/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.3-r2.ebuild b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.3-r2.ebuild
new file mode 100644
index 00000000000..556c78d31ed
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.3-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_DEPEND="2:2.5"
+inherit eutils python scons-utils
+
+DESCRIPTION="The SunPinYin IMEngine for IBus Framework"
+HOMEPAGE="http://sunpinyin.googlecode.com"
+SRC_URI="${HOMEPAGE}/files/${P}.tar.gz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-i18n/ibus
+ ~app-i18n/sunpinyin-${PV}"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-force-switch.patch"
+}
+
+src_compile() {
+ escons --prefix="/usr"
+}
+
+src_install() {
+ escons --prefix="/usr" --install-sandbox="${D}" install
+}
diff --git a/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r1.ebuild b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r1.ebuild
new file mode 100644
index 00000000000..6b023a93a10
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_DEPEND="2:2.5"
+inherit python scons-utils toolchain-funcs
+
+DESCRIPTION="The SunPinYin IMEngine for IBus Framework"
+HOMEPAGE="https://sunpinyin.googlecode.com/"
+SRC_URI="http://dev.gentoo.org/~yngwin/distfiles/sunpinyin-${PV}.tar.xz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+nls"
+
+RDEPEND="app-i18n/ibus
+ ~app-i18n/sunpinyin-${PV}:=
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ default
+ mv "${WORKDIR}/sunpinyin-${PV}" "${S}" || die
+}
+
+src_configure() {
+ tc-export CXX
+ myesconsargs=(
+ --prefix="${EPREFIX}"/usr
+ --libexecdir="${EPREFIX}"/usr/libexec
+ )
+}
+
+src_compile() {
+ pushd "${S}"/wrapper/ibus
+ escons
+ popd
+}
+
+src_install() {
+ pushd "${S}"/wrapper/ibus
+ escons --install-sandbox="${ED}" install
+ popd
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/ibus-sunpinyin/setup
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/ibus-sunpinyin/setup
+}
diff --git a/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild
new file mode 100644
index 00000000000..92403c58d6a
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit python-single-r1 scons-utils toolchain-funcs
+
+DESCRIPTION="The SunPinYin IMEngine for IBus Framework"
+HOMEPAGE="https://sunpinyin.googlecode.com/"
+SRC_URI="http://dev.gentoo.org/~yngwin/distfiles/sunpinyin-${PV}.tar.xz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+nls"
+
+RDEPEND="${PYTHON_DEPS}
+ app-i18n/ibus[python,${PYTHON_USEDEP}]
+ ~app-i18n/sunpinyin-${PV}:=
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+src_unpack() {
+ default
+ mv "${WORKDIR}/sunpinyin-${PV}" "${S}" || die
+}
+
+src_prepare() {
+ sed -i -e "s/python/${EPYTHON}/" wrapper/ibus/setup/ibus-setup-sunpinyin.in || die
+}
+
+src_configure() {
+ tc-export CXX
+ myesconsargs=(
+ --prefix="${EPREFIX}"/usr
+ --libexecdir="${EPREFIX}"/usr/libexec
+ )
+}
+
+src_compile() {
+ escons -C wrapper/ibus
+}
+
+src_install() {
+ escons -C wrapper/ibus --install-sandbox="${ED}" install
+}
diff --git a/app-i18n/ibus-sunpinyin/metadata.xml b/app-i18n/ibus-sunpinyin/metadata.xml
new file mode 100644
index 00000000000..d83314f5cab
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">sunpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table-chinese/Manifest b/app-i18n/ibus-table-chinese/Manifest
new file mode 100644
index 00000000000..10ebfe1d3b6
--- /dev/null
+++ b/app-i18n/ibus-table-chinese/Manifest
@@ -0,0 +1 @@
+DIST ibus-table-chinese-1.4.6-Source.tar.gz 7604868 SHA256 5e3422e59417e70e65cfd342cc3c0627a3b612b1405c493df0245a3841bd9386 SHA512 52a72c388ad287572ae334bb25537b6054f72ecdd641aa1c539b85a5e9a4cf97801ae38baa8ace1caabca95d845d2fb4156eb174ac7ad1c9123409749318d76d WHIRLPOOL bdfd4203fe8954bb02002bfa3868e67f9b1aebcf1a416cc281381601ac42020b98b344443889c7714ce456a171710f00b1f0c0f34f7eb42867a9da6382d7a174
diff --git a/app-i18n/ibus-table-chinese/ibus-table-chinese-1.4.6.ebuild b/app-i18n/ibus-table-chinese/ibus-table-chinese-1.4.6.ebuild
new file mode 100644
index 00000000000..7a6cbdb4f04
--- /dev/null
+++ b/app-i18n/ibus-table-chinese/ibus-table-chinese-1.4.6.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="Chinese input tables for ibus-table"
+HOMEPAGE="https://github.com/definite/ibus-table-chinese"
+MY_P="${P}-Source"
+SRC_URI="http://ibus.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-table-1.2.0"
+DEPEND="${RDEPEND}
+ dev-util/cmake-fedora"
+
+CMAKE_IN_SOURCE_BUILD=1
+S="${WORKDIR}/${MY_P}"
diff --git a/app-i18n/ibus-table-chinese/metadata.xml b/app-i18n/ibus-table-chinese/metadata.xml
new file mode 100644
index 00000000000..90760e39892
--- /dev/null
+++ b/app-i18n/ibus-table-chinese/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>cjk@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ <remote-id type="github">definite/ibus-table-chinese</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table-code/Manifest b/app-i18n/ibus-table-code/Manifest
new file mode 100644
index 00000000000..d1393894c9e
--- /dev/null
+++ b/app-i18n/ibus-table-code/Manifest
@@ -0,0 +1 @@
+DIST ibus-table-code-1.2.0.20100305.tar.gz 550208 SHA256 b81e85546ebe74b67f07801d3f25a420dbab936ad6832b8b7dd25fd2f33286df SHA512 20e0b1d8bcf525d2ef510ef3ba90780980c76e158b12d9be99eb73ea4abaf8fd0be119fe047a3ce87d9751365d7abaf3f4566e25fcf08eeaaace1acfa73c3de8 WHIRLPOOL e2e74f9b3d0329c28c8197055aaa5529f88c3deeeef2fc1d4eda9b6a3c1542acf72202cb67075e6c66d45b571d5d7f31a5f7fd3dd1cf1d7d93c1b6116865a449
diff --git a/app-i18n/ibus-table-code/ibus-table-code-1.2.0.20100305.ebuild b/app-i18n/ibus-table-code/ibus-table-code-1.2.0.20100305.ebuild
new file mode 100644
index 00000000000..83b30691d2a
--- /dev/null
+++ b/app-i18n/ibus-table-code/ibus-table-code-1.2.0.20100305.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="The code tables for IBus-Table"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-table-1.2.0.20090912
+ !>app-i18n/ibus-table-1.3.9"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-table-code/metadata.xml b/app-i18n/ibus-table-code/metadata.xml
new file mode 100644
index 00000000000..e81802ffe5c
--- /dev/null
+++ b/app-i18n/ibus-table-code/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">The package contains additional tables for Ibus-Table.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table-cyrillic/Manifest b/app-i18n/ibus-table-cyrillic/Manifest
new file mode 100644
index 00000000000..540481a1835
--- /dev/null
+++ b/app-i18n/ibus-table-cyrillic/Manifest
@@ -0,0 +1 @@
+DIST ibus-table-cyrillic-1.2.0.20100305.tar.gz 93474 SHA256 cfe929df5c46da9ccd57efdd851ce2110f1143863a6e18b586f09319fba405b0 SHA512 420d335453def7a5a701562e22d87c20a3d22af7f42e7df3c58f4f3735e0f5d510198838a31632fedf3a34cd192a543f2466a27dabb5cec71e467dca98b6f231 WHIRLPOOL 45a6fdc87391f3aa7740be024aac83e8a61256465698efd098f3388d574159449ee542d169705dc3fe6a4696d8307b99823936995446fc412a6028d94f66fcda
diff --git a/app-i18n/ibus-table-cyrillic/ibus-table-cyrillic-1.2.0.20100305.ebuild b/app-i18n/ibus-table-cyrillic/ibus-table-cyrillic-1.2.0.20100305.ebuild
new file mode 100644
index 00000000000..e4aa6923cb6
--- /dev/null
+++ b/app-i18n/ibus-table-cyrillic/ibus-table-cyrillic-1.2.0.20100305.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Translit, Russian Traditional, Yawerty tables for IBus-Table"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-table-1.2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-table-cyrillic/metadata.xml b/app-i18n/ibus-table-cyrillic/metadata.xml
new file mode 100644
index 00000000000..b260e7d8963
--- /dev/null
+++ b/app-i18n/ibus-table-cyrillic/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">ibus-table-cyrillic provides Transit, Russian Traditional, Yawerty input method on IBus-Table on IBus framework.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table-extraphrase/Manifest b/app-i18n/ibus-table-extraphrase/Manifest
new file mode 100644
index 00000000000..67b3417e457
--- /dev/null
+++ b/app-i18n/ibus-table-extraphrase/Manifest
@@ -0,0 +1 @@
+DIST ibus-table-extraphrase-1.3.9.20110826.tar.gz 2200447 SHA256 4db86e1ea82398c0396a4e157dd2f50003c5445f421fda706560f9242f13c74e SHA512 5310cee7bd74455a732cd568a2a60887765588ef7fabdcd950f66fb2d5fab6dcdd059d2e460c0962117495c88656386a0c738dbd94f9ba553f3365fb3b42ce5d WHIRLPOOL 03a39e184d2bbaf47ef68aa28cd05da7d988109b9b09e70dd06ae54a41f66684d3dbace03cfdd161dc5d0eccbaf468a67c55125057af8bd82a59da1a8d453c47
diff --git a/app-i18n/ibus-table-extraphrase/ibus-table-extraphrase-1.3.9.20110826.ebuild b/app-i18n/ibus-table-extraphrase/ibus-table-extraphrase-1.3.9.20110826.ebuild
new file mode 100644
index 00000000000..671c7dceb91
--- /dev/null
+++ b/app-i18n/ibus-table-extraphrase/ibus-table-extraphrase-1.3.9.20110826.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Chinese extra phrases for ibus-table based IME"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-table-1.1"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/app-i18n/ibus-table-extraphrase/metadata.xml b/app-i18n/ibus-table-extraphrase/metadata.xml
new file mode 100644
index 00000000000..7c97bd6353d
--- /dev/null
+++ b/app-i18n/ibus-table-extraphrase/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table-latin/Manifest b/app-i18n/ibus-table-latin/Manifest
new file mode 100644
index 00000000000..bef5649d0fc
--- /dev/null
+++ b/app-i18n/ibus-table-latin/Manifest
@@ -0,0 +1 @@
+DIST ibus-table-latin-1.2.0.20100305.tar.gz 88608 SHA256 ed89dd5c669d4a6c69f147ee74f5495d05ba6c5425421950b46ab4a4099e4834 SHA512 103b176364f548e7aaf8b006354e82b1933fa791587de734f7d9474ad85b7f9918b0b85136eb391c07d8a8df9024f1013a5a604e30ad5f13db5647a9380eb2cf WHIRLPOOL ff4420ea39fd330f44e9dd2f7b9b9ed3f90e82d2b0c72fcf40cf0c56541ae84b723fcfc4aa794bd6af54b831f8f2f1214329d7aaf353261dfb1f9441b534c54e
diff --git a/app-i18n/ibus-table-latin/ibus-table-latin-1.2.0.20100305.ebuild b/app-i18n/ibus-table-latin/ibus-table-latin-1.2.0.20100305.ebuild
new file mode 100644
index 00000000000..df2074c05a8
--- /dev/null
+++ b/app-i18n/ibus-table-latin/ibus-table-latin-1.2.0.20100305.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="The Latin tables for IBus-Table"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-table-1.2.0.20090912"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-table-latin/metadata.xml b/app-i18n/ibus-table-latin/metadata.xml
new file mode 100644
index 00000000000..875d1031b77
--- /dev/null
+++ b/app-i18n/ibus-table-latin/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">The Latin tables for Ibus-Table.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table-tv/Manifest b/app-i18n/ibus-table-tv/Manifest
new file mode 100644
index 00000000000..7ee8d526933
--- /dev/null
+++ b/app-i18n/ibus-table-tv/Manifest
@@ -0,0 +1 @@
+DIST ibus-table-tv-1.2.0.20100305.tar.gz 75183 SHA256 98acc450afdfdb7b6eabb43c78dbb60dc15921b7e04deb3ba4299e1f9358c990 SHA512 5bfe114f1cfd426d11dca103a636d59603264854c8f861de8716e48efe4c3ab1a1b6c8cff6820797799513c67a67d92a98de9ba577504b55fe41b7347922112f WHIRLPOOL 0d40ea44637bbc441deb7a26713007adf2d63671191a69e7a171f7cf0ed9a0daee6e46beeea280345a9848dba6e563ac6e4a89cc017c3b2ed06d349ad28e6bbc
diff --git a/app-i18n/ibus-table-tv/ibus-table-tv-1.2.0.20100305.ebuild b/app-i18n/ibus-table-tv/ibus-table-tv-1.2.0.20100305.ebuild
new file mode 100644
index 00000000000..79bcde9ad9b
--- /dev/null
+++ b/app-i18n/ibus-table-tv/ibus-table-tv-1.2.0.20100305.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="The Thai and Viqr (Vietnamese) tables for IBus-Table"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-table-1.2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-table-tv/metadata.xml b/app-i18n/ibus-table-tv/metadata.xml
new file mode 100644
index 00000000000..db59448265e
--- /dev/null
+++ b/app-i18n/ibus-table-tv/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">The Thai and Viqr (Vietnamese) tables for Ibus-Table.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table/Manifest b/app-i18n/ibus-table/Manifest
new file mode 100644
index 00000000000..4880258ec81
--- /dev/null
+++ b/app-i18n/ibus-table/Manifest
@@ -0,0 +1,4 @@
+DIST ibus-table-1.2.0.20100111.tar.gz 419886 SHA256 0ae9e4628059978bbfd51af89fed66ce2ee0841f40e2b6ecd2cd1e10f7368044 SHA512 201baeaa74c5488783c2a99f3192a258113324e18fc9e8e8214be74c433b1ed6fc87faeda7f987df16a707b8733c9855322ec5c4404738d9fdfec53a3aec254a WHIRLPOOL acaf643cd315cadb3bd033a20a83474da51a68d24ca155c61b9ab9185eeb7937226c28f069d12eedcc89edf86d550fb929f29e4ba0ee39ca90a2431e005df8d3
+DIST ibus-table-1.3.0.20100621.tar.gz 421845 SHA256 c2c9604082bd3c50e76c2cd8494855485845147a6b9fe05d4fa1c4a2f6fd3324 SHA512 25192988b1194fc210545f967c4b5888cb790d12505c04cfbce54cacc013ad0e058de961b2321e837f50b41e44d4b9b77d687b4abd3654bb012c349b7d4099ab WHIRLPOOL 563892f540d3ac373d7817c4cf56bcd211376c764ef2eef60354633559dc20a12ba8066e5c755eb45f4e5f71d7c0e8cfb282c57e68d7f1826b79134246d43bdf
+DIST ibus-table-1.3.9.20110827.tar.gz 428810 SHA256 99c5eee5175233d8ee5678d3a16ef3ed76c029eaeb9792d811345a02652f0401 SHA512 508197f2d862cd10c3818df032c014e03a9ba35cc4e16394dad448dc3efa8d0d53c361d8caadd6108ce222cca0841dfa4f0a76daae5edb1a51f31c7c6692205d WHIRLPOOL 78a2aeddbd4efbb83bde51f2ef6ec86edfa2f7c73139b208863985781c8b09b85de3659b1f51210cbe805d1cf9c0390892a04b62e1d848e5796e9bf1f6502ed7
+DIST ibus-table-1.5.0.tar.gz 432844 SHA256 6ba89c70c50773d43927769a2c608f71b282afbf3538188f65b9c89ebdc1a184 SHA512 2c52da1b4d6ae8aec29e97a8a413b388912cfcfd15860ba0e65c97b139b14f8a7d4087eb196d516abe731df03a2e4904666194414242da8cf1f3f0b54696248e WHIRLPOOL cec2ad28dd8fa936738e7e2ae1ffa3c0e96a6d5c6cf88c74a98ed0900c31464ba405c6e4449977936733dc28f3c7768f22bb216fca2a583f1679a7bcb596c39d
diff --git a/app-i18n/ibus-table/files/ibus-table-1.5.0-pycompile.patch b/app-i18n/ibus-table/files/ibus-table-1.5.0-pycompile.patch
new file mode 100644
index 00000000000..a492607eca2
--- /dev/null
+++ b/app-i18n/ibus-table/files/ibus-table-1.5.0-pycompile.patch
@@ -0,0 +1,13 @@
+diff --git a/engine/Makefile.in b/engine/Makefile.in
+index c9d1a42..4d25a09 100644
+--- a/engine/Makefile.in
++++ b/engine/Makefile.in
+@@ -418,7 +418,7 @@ install-engine_tablePYTHON: $(engine_table_PYTHON)
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(engine_tabledir)" || exit $$?; \
+ done || exit $$?; \
+ if test -n "$$dlist"; then \
+- $(am__py_compile) --destdir "$(DESTDIR)" \
++ $(py_compile) --destdir "$(DESTDIR)" \
+ --basedir "$(engine_tabledir)" $$dlist; \
+ else :; fi
+
diff --git a/app-i18n/ibus-table/ibus-table-1.2.0.20100111.ebuild b/app-i18n/ibus-table/ibus-table-1.2.0.20100111.ebuild
new file mode 100644
index 00000000000..bcee465474c
--- /dev/null
+++ b/app-i18n/ibus-table/ibus-table-1.2.0.20100111.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+inherit python
+
+DESCRIPTION="The Table Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ virtual/pkgconfig"
+
+src_prepare() {
+ mv py-compile py-compile.orig || die
+ ln -s "$(type -P true)" py-compile || die
+}
+
+src_configure() {
+ econf $(use_enable nls) --disable-additional
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}/engine
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}/engine
+}
diff --git a/app-i18n/ibus-table/ibus-table-1.3.0.20100621.ebuild b/app-i18n/ibus-table/ibus-table-1.3.0.20100621.ebuild
new file mode 100644
index 00000000000..3fcdbbfa373
--- /dev/null
+++ b/app-i18n/ibus-table/ibus-table-1.3.0.20100621.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+inherit python
+
+DESCRIPTION="The Table Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ virtual/pkgconfig"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ mv py-compile py-compile.orig || die
+ ln -s "$(type -P true)" py-compile || die
+ python_convert_shebangs 2 engine/tabcreatedb.py || die
+ sed -i -e "s/python/python2/" \
+ engine/ibus-table-createdb.in engine/ibus-engine-table.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls) --disable-additional
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}/engine
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}/engine
+}
diff --git a/app-i18n/ibus-table/ibus-table-1.3.9.20110827-r1.ebuild b/app-i18n/ibus-table/ibus-table-1.3.9.20110827-r1.ebuild
new file mode 100644
index 00000000000..df7e0ec4f80
--- /dev/null
+++ b/app-i18n/ibus-table/ibus-table-1.3.9.20110827-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+inherit python
+
+DESCRIPTION="The Table Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ virtual/pkgconfig"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ mv py-compile py-compile.orig || die
+ ln -s "$(type -P true)" py-compile || die
+ python_convert_shebangs 2 engine/tabcreatedb.py || die
+ sed -i -e "s/python/python2/" \
+ engine/ibus-table-createdb.in engine/ibus-engine-table.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls) --disable-additional PYTHON="${EPREFIX}"/usr/bin/python2
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}/engine
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}/engine
+}
diff --git a/app-i18n/ibus-table/ibus-table-1.5.0-r1.ebuild b/app-i18n/ibus-table/ibus-table-1.5.0-r1.ebuild
new file mode 100644
index 00000000000..4466705acc3
--- /dev/null
+++ b/app-i18n/ibus-table/ibus-table-1.5.0-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+inherit eutils python-single-r1
+
+DESCRIPTION="The Table Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.2[python,${PYTHON_USEDEP}]
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ virtual/pkgconfig"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+src_prepare() {
+ python_fix_shebang .
+
+ sed -i -e "s/python/${EPYTHON}/" \
+ engine/ibus-table-createdb.in engine/ibus-engine-table.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/app-i18n/ibus-table/ibus-table-1.5.0.ebuild b/app-i18n/ibus-table/ibus-table-1.5.0.ebuild
new file mode 100644
index 00000000000..aaab9a442b7
--- /dev/null
+++ b/app-i18n/ibus-table/ibus-table-1.5.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+inherit eutils python
+
+DESCRIPTION="The Table Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ virtual/pkgconfig"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-pycompile.patch
+
+ mv py-compile py-compile.orig || die
+ ln -s "$(type -P true)" py-compile || die
+ python_convert_shebangs 2 engine/tabcreatedb.py || die
+ sed -i -e "s/python/python2/" \
+ engine/ibus-table-createdb.in engine/ibus-engine-table.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls) PYTHON="${EPREFIX}"/usr/bin/python2
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}/engine
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}/engine
+}
diff --git a/app-i18n/ibus-table/metadata.xml b/app-i18n/ibus-table/metadata.xml
new file mode 100644
index 00000000000..46e3a1d3267
--- /dev/null
+++ b/app-i18n/ibus-table/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">The package contains general Table engine for IBus platform.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-tutcode/Manifest b/app-i18n/ibus-tutcode/Manifest
new file mode 100644
index 00000000000..a39be414be9
--- /dev/null
+++ b/app-i18n/ibus-tutcode/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-tutcode-1.0.0.tar.bz2 216599 SHA256 d0d15f43960ffa0af22ddc7461add7e08f65d3006ed75de35090e5e42419d098 SHA512 36c5e0b74c5cefa221fc9c15ba3b334638044324730887a4c1b70a8c013d7b7651832503339edb28a15929e052d833a6b3f9cdc104a47b80ec62a38413d411f2 WHIRLPOOL 80031d2a65c8be9272f804b641488028a04025fa4f3ff2c13a8dac5413ac770ed0de40fc51c81a7eff2ede95652ae302c1bd5757e1643f7c66b457e8391ae294
+DIST ibus-tutcode-1.0.1.tar.bz2 217017 SHA256 5a3bd8a941602e33799dc6c8b09a38e0009b98c004ebf4557cc6391221909900 SHA512 2b0245f5188b91d668ea503793acbad149471300e593e13eef6f433bdc3e5ba89dca52cc843751c5be1bdfdede390c9b35ed8370d4246e06f3261b1fed31f0e2 WHIRLPOOL 149c7ca6e1b98068aa4e67132d704de8d7cca0b8f5a0edbb621f53f69aa28c665265430053668de3422648c4a11a8aec6595c2317bca4b00c4ed459ca2a96706
+DIST ibus-tutcode-1.0.2.tar.bz2 217894 SHA256 ccbdcffffb7e8fb63dca2fd1e5bbc638ca276ee9c4c4cfa7f097d20d1eabbde0 SHA512 f7845323396d24a3097cf475c8fa40890b923434e551b8941a6f4cb4d84a4aed7d7b293295ba515603131a8e03a99d58b19dc3d81a7ee13d8d7d904edb5ece02 WHIRLPOOL ae3f18605dab02a00a94048af7aa5a6863ae92020190c46abcf6e4b964e282140666e078ec64382ec3f1dba0f0726534143ad6feb9341169f7ccbe20aabcb249
diff --git a/app-i18n/ibus-tutcode/ibus-tutcode-1.0.0.ebuild b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.0.ebuild
new file mode 100644
index 00000000000..ecd356957c5
--- /dev/null
+++ b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="a Japanese TUT-Code input engine for IBus"
+HOMEPAGE="https://github.com/deton/ibus-tutcode/"
+SRC_URI="mirror://github/deton/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/python-2.5
+ >=sys-devel/gettext-0.16.1"
+RDEPEND="${DEPEND}
+ app-i18n/ibus"
+
+src_install() {
+ default
+ dodoc ${PN}.json.example
+}
diff --git a/app-i18n/ibus-tutcode/ibus-tutcode-1.0.1.ebuild b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.1.ebuild
new file mode 100644
index 00000000000..ecd356957c5
--- /dev/null
+++ b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="a Japanese TUT-Code input engine for IBus"
+HOMEPAGE="https://github.com/deton/ibus-tutcode/"
+SRC_URI="mirror://github/deton/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/python-2.5
+ >=sys-devel/gettext-0.16.1"
+RDEPEND="${DEPEND}
+ app-i18n/ibus"
+
+src_install() {
+ default
+ dodoc ${PN}.json.example
+}
diff --git a/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2-r1.ebuild b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2-r1.ebuild
new file mode 100644
index 00000000000..3f6c847322d
--- /dev/null
+++ b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit python-single-r1
+
+DESCRIPTION="a Japanese TUT-Code input engine for IBus"
+HOMEPAGE="https://github.com/deton/ibus-tutcode/"
+SRC_URI="mirror://github/deton/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="test"
+
+CDEPEND="${PYTHON_DEPS}
+ >=sys-devel/gettext-0.16.1"
+DEPEND="${CDEPEND}
+ test? ( app-i18n/ibus )"
+RDEPEND="${CDEPEND}
+ app-i18n/ibus"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+src_prepare() {
+ sed -i -e "s/python/${EPYTHON}/" engine/ibus-engine-tutcode.in || die
+}
+
+src_install() {
+ default
+ dodoc ${PN}.json.example
+}
diff --git a/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2.ebuild b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2.ebuild
new file mode 100644
index 00000000000..c02ee9edaa1
--- /dev/null
+++ b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="a Japanese TUT-Code input engine for IBus"
+HOMEPAGE="https://github.com/deton/ibus-tutcode/"
+SRC_URI="mirror://github/deton/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="test"
+
+CDEPEND=">=dev-lang/python-2.5
+ >=sys-devel/gettext-0.16.1"
+DEPEND="${CDEPEND}
+ test? ( app-i18n/ibus )"
+RDEPEND="${CDEPEND}
+ app-i18n/ibus"
+
+src_install() {
+ default
+ dodoc ${PN}.json.example
+}
diff --git a/app-i18n/ibus-tutcode/metadata.xml b/app-i18n/ibus-tutcode/metadata.xml
new file mode 100644
index 00000000000..f18ac2c4cac
--- /dev/null
+++ b/app-i18n/ibus-tutcode/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>naota@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">deton/ibus-tutcode</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-unikey/Manifest b/app-i18n/ibus-unikey/Manifest
new file mode 100644
index 00000000000..72fb913c076
--- /dev/null
+++ b/app-i18n/ibus-unikey/Manifest
@@ -0,0 +1 @@
+DIST ibus-unikey-0.6.1.tar.gz 516250 SHA256 989bbea706d2d8d7b86630b1f2b4f63d8ed5167a1cc2b8fafd7f2198ec78d734 SHA512 f8d519802d9b304cdaebfcee3f9fef5f17756cde48aa48b9dd357d714e2eaaba0df8f91218b658fdd1d85343804e054b7987caff2734913b29dc76263c30d4e6 WHIRLPOOL 4a14d0145477527b100272801f2ac8e90178c8d6d7ae743619d6babcf1da069bc550a3eac473c8ac9b60e0b5eeaf1ea780a97d1e3ebd81a0b557e51f20615c4c
diff --git a/app-i18n/ibus-unikey/ibus-unikey-0.6.1.ebuild b/app-i18n/ibus-unikey/ibus-unikey-0.6.1.ebuild
new file mode 100644
index 00000000000..9e830634fef
--- /dev/null
+++ b/app-i18n/ibus-unikey/ibus-unikey-0.6.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+inherit eutils
+
+DESCRIPTION="Vietnamese Input Method Engine for IBUS using Unikey IME"
+HOMEPAGE="http://code.google.com/p/ibus-unikey/"
+SRC_URI="http://ibus-unikey.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk3"
+
+RDEPEND="gtk3? ( >app-i18n/ibus-1.4.0[gtk3]
+ x11-libs/gtk+:3 )
+ !gtk3? ( >=app-i18n/ibus-1.4.0
+ >=x11-libs/gtk+-2.12:2 )
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ >=sys-devel/gettext-0.17"
+
+src_configure() {
+ use gtk3 && myconf="--with-gtk-version=3" || myconf=""
+ econf ${myconf}
+}
diff --git a/app-i18n/ibus-unikey/metadata.xml b/app-i18n/ibus-unikey/metadata.xml
new file mode 100644
index 00000000000..229a5e652cc
--- /dev/null
+++ b/app-i18n/ibus-unikey/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">Ibus-unikey is a IM Engine for IBus
+Use for type Vietnamese
+Support via forum at: http://forum.ubuntu-vn.com/viewforum.php?f=85</longdescription>
+ <use>
+ <flag name="gtk3">Enable support for gtk+3</flag>
+ </use>
+ <upstream>
+ <remote-id type="google-code">ibus-unikey</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus/Manifest b/app-i18n/ibus/Manifest
new file mode 100644
index 00000000000..a8adb10f594
--- /dev/null
+++ b/app-i18n/ibus/Manifest
@@ -0,0 +1,5 @@
+DIST ibus-1.5.10.tar.gz 2169299 SHA256 1d01b7806602875a1f3004f32e1000a39be01f59731d6baf36446498e26f5594 SHA512 2f7f07c20cac5f934f24c3bc99b29efe30aa5ced501ac442a9da16454cb889d946fa262b3495c1778f200c8f62a1fd8d67f47f43ae6ee214d3d392feb6e413c9 WHIRLPOOL 575d5bba84ed8afb608030260b5fbbd47bdfc4ff1368590e0c34b2fed1cf2878e71bdb7b6da286d0b0d5a27f7fcc9e2a02675a86bbc9417c1d060246b7a6acbd
+DIST ibus-1.5.5.tar.gz 2063794 SHA256 02ab36af6048399fedbe8d85074b161219b89df5020932df33cf8829764f8aec SHA512 8249d6ee4918b0e0fe030af736eed2260e1376b2fdaf0d819f289e0bd880a5e3874f1fb3d097fc74b9f359822ce16f4dae52a263aa28c2e2ce7bdf671cb2fea9 WHIRLPOOL 33ba90e5cdd54ecd7a03af8c5d2c1d2e8cfc88bfc53b65e5240eb4c60d6138007b754a60e8b1e79c98ce92e299d14f1a0cce445ad40b04e862adf3919401d77d
+DIST ibus-1.5.8.tar.gz 2120220 SHA256 cfc562ae73de753dc8cb9ae30fe117286ddd94cd109002108f2eeb47e8101a29 SHA512 428e40be7ebea57832295e76b5c4350351c6d40c5178c57c61c8d6f31e524a315184c3d533ad88592e53ae7c6cb4beed67796ad61910f99f260fc9c243b2fc98 WHIRLPOOL 2fc0059a75b3f4b253770303a8c9c8ae02947153eaf7b9c220e2e10657275293a556b068ba4cad0d27f315b7374ffaedb53b20cd13f8408a3729cfaaea869d78
+DIST ibus-1.5.9-upstream-patches-0.tar.xz 30380 SHA256 9efe631008cfad1d59db01a83ae093149b2c827d480705836f0bf8a29706f1e0 SHA512 98c323de9793938d8c0bd646071d0ea7860212e3ae826e97ed0e0a092ec715084529b3a3cee3def63958dd3d56357b2e33e4e3d3946cca90bec3409469cf14d4 WHIRLPOOL 0aaf7aaba36de96525f0339a16df2c435e2f2c5cc6168c9b2da25bd7003af88f6d55ca53ae692c9c611b563ddfcb48a0e19e915f8361ba51a4aac813edc45f41
+DIST ibus-1.5.9.tar.gz 2128459 SHA256 ad41014aa3cb961854ee0aa392a5abd7452fab2c6b77d8ff2d736b7405b48ac6 SHA512 8a21303abceb38f1e5903342590c229a243db1497503fa08d547e1029bc25b90a2031f0386e57ddfcb897a14819d202289fcac1e3c8bad059698b04501a7ede9 WHIRLPOOL 88135818669cb3c189ce02a7caba3ec262bd95ffa6d139e8f76113ca91fc778f5f7703cfbfb1f5d5dd3cbb6948ba14d9c326f318b0286381caec45db3b453221
diff --git a/app-i18n/ibus/ibus-1.5.10.ebuild b/app-i18n/ibus/ibus-1.5.10.ebuild
new file mode 100644
index 00000000000..133ca89aa90
--- /dev/null
+++ b/app-i18n/ibus/ibus-1.5.10.ebuild
@@ -0,0 +1,191 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.20"
+VALA_USE_DEPEND="vapigen"
+# Vapigen is needed for the vala binding
+# Valac is needed when building from git for the engine
+UPSTREAM_VER=
+
+inherit autotools bash-completion-r1 eutils gnome2-utils multilib python-single-r1 readme.gentoo vala virtualx
+
+DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
+HOMEPAGE="http://code.google.com/p/ibus/"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~ia64 ppc ~ppc64 ~sparc x86 ~x86-fbsd"
+IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test vala wayland +X"
+REQUIRED_USE="
+ || ( gtk gtk3 X )
+ deprecated? ( python )
+ vala? ( introspection )
+ python? (
+ ${PYTHON_REQUIRED_USE}
+ || ( deprecated ( gtk3 introspection ) ) )" #342903
+
+[[ -n ${UPSTREAM_VER} ]] && \
+ UPSTRAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
+
+SRC_URI="https://github.com/ibus/ibus/releases/download/${PV}/${P}.tar.gz
+ ${UPSTRAM_PATCHSET_URI}"
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.26:2
+ gnome-base/librsvg:2
+ sys-apps/dbus[X?]
+ app-text/iso-codes
+ >=gnome-base/dconf-0.13.4
+ x11-libs/libnotify
+ gconf? ( >=gnome-base/gconf-2.12:2 )
+ gtk? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ python? ( ${PYTHON_DEPS} )
+ X? (
+ x11-libs/libX11
+ x11-libs/gtk+:2 )
+ introspection? ( >=dev-libs/gobject-introspection-0.6.8 )
+ nls? ( virtual/libintl )
+ wayland? ( dev-libs/wayland )"
+RDEPEND="${COMMON_DEPEND}
+ x11-apps/setxkbmap
+ python? (
+ dev-python/pyxdg
+ deprecated? (
+ >=dev-python/dbus-python-0.83
+ dev-python/pygobject:2
+ dev-python/pygtk:2 )
+ gtk3? (
+ dev-python/pygobject:3
+ x11-libs/gdk-pixbuf:2[introspection]
+ x11-libs/pango[introspection]
+ x11-libs/gtk+:3[introspection] )
+ )"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/perl-5.8.1
+ dev-util/gtk-doc-am
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ vala? ( $(vala_depend) )"
+
+# stress test in bus/ fails
+# IBUS-CRITICAL **: bus_test_client_init: assertion `ibus_bus_is_connected (_bus)' failed
+RESTRICT="test"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="To use ibus, you should:
+1. Get input engines from sunrise overlay.
+Run \"emerge -s ibus-\" in your favorite terminal
+for a list of packages we already have.
+
+2. Setup ibus:
+$ ibus-setup
+
+3. Set the following in your user startup scripts
+such as .xinitrc, .xsession or .xprofile:
+
+export XMODIFIERS=\"@im=ibus\"
+export GTK_IM_MODULE=\"ibus\"
+export QT_IM_MODULE=\"xim\"
+ibus-daemon -d -x
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Upstream's patchset
+ if [[ -n ${UPSTREAM_VER} ]]; then
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ EPATCH_OPTS="-p1" \
+ epatch "${WORKDIR}"/patches-upstream
+ fi
+
+ # We run "dconf update" in pkg_postinst/postrm to avoid sandbox violations
+ sed -e 's/dconf update/:/' \
+ -i data/dconf/Makefile.{am,in} || die
+ use vala && vala_src_prepare
+
+ eautoreconf
+}
+
+src_configure() {
+ local python_conf
+ if use python; then
+ python_conf="PYTHON=${PYTHON}
+ $(use_enable deprecated python-library)
+ $(use_enable gtk3 setup)"
+ else
+ python_conf="--disable-python-library --disable-setup"
+ fi
+ econf \
+ --enable-dconf \
+ $(use_enable introspection) \
+ $(use_enable gconf) \
+ $(use_enable gtk gtk2) \
+ $(use_enable gtk xim) \
+ $(use_enable gtk3) \
+ $(use_enable gtk3 ui) \
+ $(use_enable nls) \
+ $(use_enable test tests) \
+ $(use_enable X xim) \
+ $(use_enable vala) \
+ $(use_enable wayland) \
+ ${python_conf}
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ Xemake check || die
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --all
+
+ mv "${ED}"/usr/share/bash-completion/completions/ibus.bash "${T}"
+ rm -rf "${ED}"/usr/share/bash-completion || die
+ newbashcomp "${T}"/ibus.bash ${PN}
+ insinto /etc/X11/xinit/xinput.d
+ newins xinput-ibus ibus.conf
+
+ keepdir /usr/share/ibus/{engine,icons} #289547
+
+ use deprecated && python_optimize
+ use python && use gtk3 && python_optimize
+
+ readme.gentoo_create_doc
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_schemas_savelist
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ gnome2_schemas_update
+ gnome2_icon_cache_update
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use gconf && gnome2_schemas_update
+ gnome2_schemas_savelist
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus/ibus-1.5.5.ebuild b/app-i18n/ibus/ibus-1.5.5.ebuild
new file mode 100644
index 00000000000..526d663ef00
--- /dev/null
+++ b/app-i18n/ibus/ibus-1.5.5.ebuild
@@ -0,0 +1,175 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.20"
+VALA_USE_DEPEND="vapigen"
+# Vapigen is needed for the vala binding
+# Valac is needed when building from git for the engine
+
+inherit bash-completion-r1 eutils gnome2-utils multilib python-single-r1 readme.gentoo vala virtualx
+
+DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~ia64 ppc ppc64 ~sparc x86 ~x86-fbsd"
+IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test vala wayland +X"
+REQUIRED_USE="|| ( gtk gtk3 X )
+ deprecated? ( python )
+ python? (
+ ${PYTHON_REQUIRED_USE}
+ || ( deprecated ( gtk3 introspection ) ) )" #342903
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.26:2
+ gnome-base/librsvg:2
+ sys-apps/dbus[X?]
+ app-text/iso-codes
+ >=gnome-base/dconf-0.13.4
+ x11-libs/libnotify
+
+ gconf? ( >=gnome-base/gconf-2.12:2 )
+ gtk? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ python? ( ${PYTHON_DEPS} )
+ X? (
+ x11-libs/libX11
+ x11-libs/gtk+:2 )
+ introspection? ( >=dev-libs/gobject-introspection-0.6.8 )
+ nls? ( virtual/libintl )
+ wayland? ( dev-libs/wayland )"
+RDEPEND="${COMMON_DEPEND}
+ x11-apps/setxkbmap
+ python? (
+ dev-python/pyxdg
+ deprecated? (
+ >=dev-python/dbus-python-0.83
+ dev-python/pygobject:2
+ dev-python/pygtk:2 )
+ gtk3? (
+ dev-python/pygobject:3
+ x11-libs/gdk-pixbuf:2[introspection]
+ x11-libs/pango[introspection]
+ x11-libs/gtk+:3[introspection] )
+ )"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/perl-5.8.1
+ dev-util/gtk-doc-am
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ vala? ( $(vala_depend) )
+ gnome-base/gconf"
+
+# stress test in bus/ fails
+# IBUS-CRITICAL **: bus_test_client_init: assertion `ibus_bus_is_connected (_bus)' failed
+RESTRICT="test"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="To use ibus, you should:
+1. Get input engines from sunrise overlay.
+Run \"emerge -s ibus-\" in your favorite terminal
+for a list of packages we already have.
+
+2. Setup ibus:
+$ ibus-setup
+
+3. Set the following in your user startup scripts
+such as .xinitrc, .xsession or .xprofile:
+
+export XMODIFIERS=\"@im=ibus\"
+export GTK_IM_MODULE=\"ibus\"
+export QT_IM_MODULE=\"xim\"
+ibus-daemon -d -x
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # We run "dconf update" in pkg_postinst/postrm to avoid sandbox violations
+ sed -e 's/dconf update/$(NULL)/' \
+ -i data/dconf/Makefile.{am,in} || die
+ use vala && vala_src_prepare
+ cp "${S}"/client/gtk2/ibusimcontext.c "${S}"/client/gtk3/ibusimcontext.c || die
+}
+
+src_configure() {
+ local python_conf
+ if use python; then
+ python_conf="PYTHON=${PYTHON}
+ $(use_enable deprecated python-library)
+ $(use_enable gtk3 setup)"
+ else
+ python_conf="--disable-python-library --disable-setup"
+ fi
+ econf \
+ --enable-dconf \
+ $(use_enable introspection) \
+ $(use_enable gconf) \
+ $(use_enable gtk gtk2) \
+ $(use_enable gtk xim) \
+ $(use_enable gtk3) \
+ $(use_enable gtk3 ui) \
+ $(use_enable nls) \
+ $(use_enable test tests) \
+ $(use_enable X xim) \
+ $(use_enable vala) \
+ $(use_enable wayland) \
+ ${python_conf}
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ Xemake check || die
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --all
+
+ mv "${ED}"/usr/share/bash-completion/completions/ibus.bash "${T}"
+ rm -rf "${ED}"/usr/share/bash-completion || die
+ newbashcomp "${T}"/ibus.bash ${PN}
+ insinto /etc/X11/xinit/xinput.d
+ newins xinput-ibus ibus.conf
+
+ keepdir /usr/share/ibus/{engine,icons} #289547
+
+ use deprecated && python_optimize
+ use python && use gtk3 && python_optimize
+
+ readme.gentoo_create_doc
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_schemas_savelist
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ gnome2_schemas_update
+ gnome2_icon_cache_update
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use gconf && gnome2_schemas_update
+ gnome2_schemas_savelist
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus/ibus-1.5.8-r1.ebuild b/app-i18n/ibus/ibus-1.5.8-r1.ebuild
new file mode 100644
index 00000000000..d073005d661
--- /dev/null
+++ b/app-i18n/ibus/ibus-1.5.8-r1.ebuild
@@ -0,0 +1,175 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.20"
+VALA_USE_DEPEND="vapigen"
+# Vapigen is needed for the vala binding
+# Valac is needed when building from git for the engine
+
+inherit bash-completion-r1 eutils gnome2-utils multilib python-single-r1 readme.gentoo vala virtualx
+
+DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="https://github.com/ibus/ibus/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test vala wayland +X"
+REQUIRED_USE="|| ( gtk gtk3 X )
+ deprecated? ( python )
+ python? (
+ ${PYTHON_REQUIRED_USE}
+ || ( deprecated ( gtk3 introspection ) ) )" #342903
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.26:2
+ gnome-base/librsvg:2
+ sys-apps/dbus[X?]
+ app-text/iso-codes
+ >=gnome-base/dconf-0.13.4
+ x11-libs/libnotify
+
+ gconf? ( >=gnome-base/gconf-2.12:2 )
+ gtk? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ python? ( ${PYTHON_DEPS} )
+ X? (
+ x11-libs/libX11
+ x11-libs/gtk+:2 )
+ introspection? ( >=dev-libs/gobject-introspection-0.6.8 )
+ nls? ( virtual/libintl )
+ wayland? ( dev-libs/wayland )"
+RDEPEND="${COMMON_DEPEND}
+ x11-apps/setxkbmap
+ python? (
+ dev-python/pyxdg
+ deprecated? (
+ >=dev-python/dbus-python-0.83
+ dev-python/pygobject:2
+ dev-python/pygtk:2 )
+ gtk3? (
+ dev-python/pygobject:3
+ x11-libs/gdk-pixbuf:2[introspection]
+ x11-libs/pango[introspection]
+ x11-libs/gtk+:3[introspection] )
+ )"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/perl-5.8.1
+ dev-util/gtk-doc-am
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ vala? ( $(vala_depend) )
+ gnome-base/gconf"
+
+# stress test in bus/ fails
+# IBUS-CRITICAL **: bus_test_client_init: assertion `ibus_bus_is_connected (_bus)' failed
+RESTRICT="test"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="To use ibus, you should:
+1. Get input engines from sunrise overlay.
+Run \"emerge -s ibus-\" in your favorite terminal
+for a list of packages we already have.
+
+2. Setup ibus:
+$ ibus-setup
+
+3. Set the following in your user startup scripts
+such as .xinitrc, .xsession or .xprofile:
+
+export XMODIFIERS=\"@im=ibus\"
+export GTK_IM_MODULE=\"ibus\"
+export QT_IM_MODULE=\"xim\"
+ibus-daemon -d -x
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # We run "dconf update" in pkg_postinst/postrm to avoid sandbox violations
+ sed -e 's/dconf update/:/' \
+ -i data/dconf/Makefile.{am,in} || die
+ use vala && vala_src_prepare
+}
+
+src_configure() {
+ local python_conf
+ if use python; then
+ python_conf="PYTHON=${PYTHON}
+ $(use_enable deprecated python-library)
+ $(use_enable gtk3 setup)"
+ else
+ python_conf="--disable-python-library --disable-setup"
+ fi
+ econf \
+ --enable-dconf \
+ $(use_enable introspection) \
+ $(use_enable gconf) \
+ $(use_enable gtk gtk2) \
+ $(use_enable gtk xim) \
+ $(use_enable gtk3) \
+ $(use_enable gtk3 ui) \
+ $(use_enable nls) \
+ $(use_enable test tests) \
+ $(use_enable X xim) \
+ $(use_enable vala) \
+ $(use_enable wayland) \
+ ${python_conf}
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ Xemake check || die
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --all
+
+ mv "${ED}"/usr/share/bash-completion/completions/ibus.bash "${T}"
+ rm -rf "${ED}"/usr/share/bash-completion || die
+ newbashcomp "${T}"/ibus.bash ${PN}
+ insinto /etc/X11/xinit/xinput.d
+ newins xinput-ibus ibus.conf
+
+ keepdir /usr/share/ibus/{engine,icons} #289547
+
+ use deprecated && python_optimize
+ use python && use gtk3 && python_optimize
+
+ readme.gentoo_create_doc
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_schemas_savelist
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ gnome2_schemas_update
+ gnome2_icon_cache_update
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use gconf && gnome2_schemas_update
+ gnome2_schemas_savelist
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus/ibus-1.5.9-r1.ebuild b/app-i18n/ibus/ibus-1.5.9-r1.ebuild
new file mode 100644
index 00000000000..90c1a905a91
--- /dev/null
+++ b/app-i18n/ibus/ibus-1.5.9-r1.ebuild
@@ -0,0 +1,191 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.20"
+VALA_USE_DEPEND="vapigen"
+# Vapigen is needed for the vala binding
+# Valac is needed when building from git for the engine
+UPSTREAM_VER=0
+
+inherit autotools bash-completion-r1 eutils gnome2-utils multilib python-single-r1 readme.gentoo vala virtualx
+
+DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
+HOMEPAGE="http://code.google.com/p/ibus/"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test +vala wayland +X"
+REQUIRED_USE="
+ || ( gtk gtk3 X )
+ deprecated? ( python )
+ vala? ( introspection )
+ python? (
+ ${PYTHON_REQUIRED_USE}
+ || ( deprecated ( gtk3 introspection ) ) )" #342903
+
+[[ -n ${UPSTREAM_VER} ]] && \
+ UPSTRAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
+
+SRC_URI="https://github.com/ibus/ibus/releases/download/${PV}/${P}.tar.gz
+ ${UPSTRAM_PATCHSET_URI}"
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.26:2
+ gnome-base/librsvg:2
+ sys-apps/dbus[X?]
+ app-text/iso-codes
+ >=gnome-base/dconf-0.13.4
+ x11-libs/libnotify
+ gconf? ( >=gnome-base/gconf-2.12:2 )
+ gtk? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ python? ( ${PYTHON_DEPS} )
+ X? (
+ x11-libs/libX11
+ x11-libs/gtk+:2 )
+ introspection? ( >=dev-libs/gobject-introspection-0.6.8 )
+ nls? ( virtual/libintl )
+ wayland? ( dev-libs/wayland )"
+RDEPEND="${COMMON_DEPEND}
+ x11-apps/setxkbmap
+ python? (
+ dev-python/pyxdg
+ deprecated? (
+ >=dev-python/dbus-python-0.83
+ dev-python/pygobject:2
+ dev-python/pygtk:2 )
+ gtk3? (
+ dev-python/pygobject:3
+ x11-libs/gdk-pixbuf:2[introspection]
+ x11-libs/pango[introspection]
+ x11-libs/gtk+:3[introspection] )
+ )"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/perl-5.8.1
+ dev-util/gtk-doc-am
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ vala? ( $(vala_depend) )"
+
+# stress test in bus/ fails
+# IBUS-CRITICAL **: bus_test_client_init: assertion `ibus_bus_is_connected (_bus)' failed
+RESTRICT="test"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="To use ibus, you should:
+1. Get input engines from sunrise overlay.
+Run \"emerge -s ibus-\" in your favorite terminal
+for a list of packages we already have.
+
+2. Setup ibus:
+$ ibus-setup
+
+3. Set the following in your user startup scripts
+such as .xinitrc, .xsession or .xprofile:
+
+export XMODIFIERS=\"@im=ibus\"
+export GTK_IM_MODULE=\"ibus\"
+export QT_IM_MODULE=\"xim\"
+ibus-daemon -d -x
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Upstream's patchset
+ if [[ -n ${UPSTREAM_VER} ]]; then
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ EPATCH_OPTS="-p1" \
+ epatch "${WORKDIR}"/patches-upstream
+ fi
+
+ # We run "dconf update" in pkg_postinst/postrm to avoid sandbox violations
+ sed -e 's/dconf update/:/' \
+ -i data/dconf/Makefile.{am,in} || die
+ use vala && vala_src_prepare
+
+ eautoreconf
+}
+
+src_configure() {
+ local python_conf
+ if use python; then
+ python_conf="PYTHON=${PYTHON}
+ $(use_enable deprecated python-library)
+ $(use_enable gtk3 setup)"
+ else
+ python_conf="--disable-python-library --disable-setup"
+ fi
+ econf \
+ --enable-dconf \
+ $(use_enable introspection) \
+ $(use_enable gconf) \
+ $(use_enable gtk gtk2) \
+ $(use_enable gtk xim) \
+ $(use_enable gtk3) \
+ $(use_enable gtk3 ui) \
+ $(use_enable nls) \
+ $(use_enable test tests) \
+ $(use_enable X xim) \
+ $(use_enable vala) \
+ $(use_enable wayland) \
+ ${python_conf}
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ Xemake check || die
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --all
+
+ mv "${ED}"/usr/share/bash-completion/completions/ibus.bash "${T}"
+ rm -rf "${ED}"/usr/share/bash-completion || die
+ newbashcomp "${T}"/ibus.bash ${PN}
+ insinto /etc/X11/xinit/xinput.d
+ newins xinput-ibus ibus.conf
+
+ keepdir /usr/share/ibus/{engine,icons} #289547
+
+ use deprecated && python_optimize
+ use python && use gtk3 && python_optimize
+
+ readme.gentoo_create_doc
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_schemas_savelist
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ gnome2_schemas_update
+ gnome2_icon_cache_update
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use gconf && gnome2_schemas_update
+ gnome2_schemas_savelist
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus/metadata.xml b/app-i18n/ibus/metadata.xml
new file mode 100644
index 00000000000..b81da6fb831
--- /dev/null
+++ b/app-i18n/ibus/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">
+IBus means Intelligent Input Bus. It is a new input framework for Linux OS. It provides
+full featured and user friendly input method user interface. It also may help
+developers to develop input method easily.
+</longdescription>
+ <use>
+ <flag name="gconf">Enable support for <pkg>gnome-base/gconf</pkg></flag>
+ <flag name="gtk3">Enable support for gtk+3</flag>
+ <flag name="vala">Enable support for <pkg>dev-lang/vala</pkg></flag>
+ <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg> for introspection</flag>
+ <flag name="deprecated">install the deprecated ibus python library</flag>
+ </use>
+ <upstream>
+ <remote-id type="cpe">cpe:/a:ibus_project:ibus</remote-id>
+ <remote-id type="github">ibus/ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/im-canna/Manifest b/app-i18n/im-canna/Manifest
new file mode 100644
index 00000000000..44c5bef0900
--- /dev/null
+++ b/app-i18n/im-canna/Manifest
@@ -0,0 +1 @@
+DIST im-canna-0.3.2.2.tar.gz 314633 SHA256 df767584a92ddd23d6849979d27d7f99d2b6859dd2478cc1c5d151a8de8e393f SHA512 6ec4253038ca97e3e6319c024e4d11ca5418bf478280c4b19b81a9c628310a06bcd4ec35334d3a2bbdff0245bdfa660c1cdfd949ddd6b768d3b73d78648edc81 WHIRLPOOL 512cb9610714a6cf6c8bc24302b63213fce50a2ff69751f9695d97f2076d1e04c4607c4cd8d001ddf09d8bef0ea3429bb7a3e617632231d5c5ca239e2382bb2d
diff --git a/app-i18n/im-canna/im-canna-0.3.2.2.ebuild b/app-i18n/im-canna/im-canna-0.3.2.2.ebuild
new file mode 100644
index 00000000000..79e74c0e1af
--- /dev/null
+++ b/app-i18n/im-canna/im-canna-0.3.2.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit gnome2-utils
+
+DESCRIPTION="Japanese Canna input method module for GTK+2"
+HOMEPAGE="http://bonobo.gnome.gr.jp/~nakai/immodule/"
+SRC_URI="http://bonobo.gnome.gr.jp/~nakai/immodule/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE=""
+
+RDEPEND=">=x11-libs/gtk+-2.4:2
+ app-i18n/canna"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/im-canna/metadata.xml b/app-i18n/im-canna/metadata.xml
new file mode 100644
index 00000000000..2d5852c16c6
--- /dev/null
+++ b/app-i18n/im-canna/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/im-chooser/Manifest b/app-i18n/im-chooser/Manifest
new file mode 100644
index 00000000000..1ce6d4309a7
--- /dev/null
+++ b/app-i18n/im-chooser/Manifest
@@ -0,0 +1 @@
+DIST im-chooser-1.6.2.tar.bz2 515776 SHA256 0df444df86a60ff2534eea58c51a5e8bcc343c13a6b3d87356d9c5da3e4867b1 SHA512 86ed483ccdeb045f2b96df443ffbccb4d66bd11dac215e52d10eabb983fbbcecc848b074f7771c76bab311db04ec982865f2cce27d6274144068361aa04f42b9 WHIRLPOOL 3280243d859cd53ddf5d3cd64c7acbbc74718e751c0ca756315a2a3966b7db9215cb5d174cc5bcf25c5ecee653cd6c6019ddbdf62b4906d470710e8455d7b2cf
diff --git a/app-i18n/im-chooser/files/im-chooser-1.5.1-imchooserui.patch b/app-i18n/im-chooser/files/im-chooser-1.5.1-imchooserui.patch
new file mode 100644
index 00000000000..9e5a9f48d57
--- /dev/null
+++ b/app-i18n/im-chooser/files/im-chooser-1.5.1-imchooserui.patch
@@ -0,0 +1,21 @@
+diff --git a/libimchooseui/imchooseui.c b/libimchooseui/imchooseui.c
+index f135aff..dd5881a 100644
+--- a/libimchooseui/imchooseui.c
++++ b/libimchooseui/imchooseui.c
+@@ -41,14 +41,14 @@ static void _imchoose_ui_switch_im_finish (GObject *source_object,
+ GAsyncResult *res,
+ gpointer user_data);
+
+-typedef struct _IMChooseUIPrivate {
++struct _IMChooseUIPrivate {
+ IMSettingsClient *client;
+ gchar *default_im;
+ gchar *initial_im;
+ gchar *current_im;
+ guint note_type;
+ gboolean clicked:1;
+-} IMChooseUIPrivate;
++};
+ enum {
+ POS_ICON = 0,
+ POS_LABEL,
diff --git a/app-i18n/im-chooser/im-chooser-1.6.2.ebuild b/app-i18n/im-chooser/im-chooser-1.6.2.ebuild
new file mode 100644
index 00000000000..6f313fad4e5
--- /dev/null
+++ b/app-i18n/im-chooser/im-chooser-1.6.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit gnome2 eutils
+
+DESCRIPTION="Desktop Input Method configuration tool"
+HOMEPAGE="https://fedorahosted.org/im-chooser/"
+SRC_URI="https://fedorahosted.org/releases/i/m/im-chooser/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnome"
+
+RDEPEND=">=app-i18n/imsettings-1.3.0
+ >=dev-libs/glib-2.16:2
+ >=x11-libs/gtk+-2.16:2
+ gnome? ( >=gnome-base/gnome-control-center-2.29:2 )"
+# || (
+# (
+# >=dev-libs/glib:3
+# >=x11-libs/gtk+:3
+# gnome? ( gnome-base/gnome-control-center:3 )
+# )
+# (
+# >=dev-libs/glib-2.16:2
+# >=x11-libs/gtk+-2.16:2
+# gnome? ( >=gnome-base/gnome-control-center-2.29:2 )
+# )
+# )
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.5.1-imchooserui.patch
+ gnome2_src_prepare
+}
diff --git a/app-i18n/im-chooser/metadata.xml b/app-i18n/im-chooser/metadata.xml
new file mode 100644
index 00000000000..d7d91208e9c
--- /dev/null
+++ b/app-i18n/im-chooser/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+<longdescription lang="en">
+IM Chooser is a GUI configuration tool for IMSettings to
+choose Input Method you want to use or disable it entirely
+on the desktop.
+</longdescription>
+</pkgmetadata>
+
diff --git a/app-i18n/im-freewnn/Manifest b/app-i18n/im-freewnn/Manifest
new file mode 100644
index 00000000000..7c69c9b6e4b
--- /dev/null
+++ b/app-i18n/im-freewnn/Manifest
@@ -0,0 +1 @@
+DIST im-freewnn-0.0.2.tar.gz 322963 SHA256 79b7783bd9516024df352c9a3e1dec55d56d46faf2b7517b63fe9cd81f6f8866 SHA512 c942d320433d0b1ff15fc1566eff183f5761ce14cb0575834f4ee80504be6d286068203c22ffea81345dab3db11a873f0a559b3d38ba8505f4966f9532a06358 WHIRLPOOL c06ab23037b6c3a302534b24b15ac93ff41edf9a9ba505c6727a4ab655fcfd98ffd86a4954e83ff6f40590bc732d8ecb67b38ea777d31ecc5cba11453ba161f3
diff --git a/app-i18n/im-freewnn/files/im-freewnn-0.0.2-as-needed.patch b/app-i18n/im-freewnn/files/im-freewnn-0.0.2-as-needed.patch
new file mode 100644
index 00000000000..859ea779817
--- /dev/null
+++ b/app-i18n/im-freewnn/files/im-freewnn-0.0.2-as-needed.patch
@@ -0,0 +1,35 @@
+--- im-freewnn-0.0.2.orig/Makefile.am 2004-08-04 07:05:06.000000000 +0200
++++ im-freewnn-0.0.2/Makefile.am 2009-12-29 20:34:54.420539767 +0100
+@@ -10,8 +10,6 @@
+
+ DEPS =
+
+-LDADDS = @GTK_DEP_LIBS@ -lcrypt
+-
+ EXTRA_DIST= \
+ im-freewnn.spec
+
+@@ -38,7 +36,7 @@
+ candwin.h \
+ candwin.c
+
+-im_freewnn_la_LIBADD = $(LDADDS) -lcrypt
++im_freewnn_la_LIBADD = @LIBS@ @GTK_DEP_LIBS@ -lcrypt
+
+ module_LTLIBRARIES = \
+ im-freewnn.la
+--- im-freewnn-0.0.2.orig/configure.in 2004-08-05 08:04:36.000000000 +0200
++++ im-freewnn-0.0.2/configure.in 2009-12-29 20:36:31.562539161 +0100
+@@ -48,11 +48,8 @@
+ AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
+
+ dnl FreeWnn check
+-ldflags_backup="$LDFLAGS"
+-LDFLAGS="$LDFLAGS -lcrypt"
+ AC_CHECK_HEADER(wnn/jlib.h,,)
+-AC_CHECK_LIB(wnn, jl_open_lang,,)
+-LDFLAGS="$ldflags_backup"
++AC_CHECK_LIB([wnn], [jl_open_lang], , ,[-lcrypt])
+
+ AC_OUTPUT([
+ Makefile
diff --git a/app-i18n/im-freewnn/files/im-freewnn-0.0.2-implicit-declaration.patch b/app-i18n/im-freewnn/files/im-freewnn-0.0.2-implicit-declaration.patch
new file mode 100644
index 00000000000..c52618924c9
--- /dev/null
+++ b/app-i18n/im-freewnn/files/im-freewnn-0.0.2-implicit-declaration.patch
@@ -0,0 +1,26 @@
+diff --git a/freewnn-utils.c b/freewnn-utils.c
+index 3cf63b3..0e871d6 100644
+--- a/freewnn-utils.c
++++ b/freewnn-utils.c
+@@ -18,6 +18,9 @@
+ * Boston, MA 02111-1307, USA.
+ */
+
++#include <stdlib.h>
++#include <string.h>
++
+ #include "freewnn-utils.h"
+ #include "kata2hkata.h"
+
+diff --git a/im-freewnn.c b/im-freewnn.c
+index b56d63c..833582e 100644
+--- a/im-freewnn.c
++++ b/im-freewnn.c
+@@ -26,6 +26,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+ #include <string.h>
+ #include "keytable.h"
diff --git a/app-i18n/im-freewnn/files/im-freewnn-wnnrc-gentoo.diff b/app-i18n/im-freewnn/files/im-freewnn-wnnrc-gentoo.diff
new file mode 100644
index 00000000000..ae7d629edc2
--- /dev/null
+++ b/app-i18n/im-freewnn/files/im-freewnn-wnnrc-gentoo.diff
@@ -0,0 +1,20 @@
+--- im-freewnn.c 2004-08-05 09:47:08.000000000 +0900
++++ im-freewnn.c-wnnrc 2004-08-05 21:55:50.540038392 +0900
+@@ -53,7 +53,7 @@
+ { 0, NULL },
+ };
+
+-static const gchar* ideos = "鐚鐚誌鐚鐚鐚卒鐔即鐚常殖鐚帥純障篁錫鐚鐚若鐔モ鐚鐚鐚誌悉鐔鐔鐚賊歎鐚鐚鐚р癌属霞鰍鐃ワ蔵贈鐚鐚鐚鐚鐚則р測モ≠盾汲謂‖金違宴眼泣粁痢裡里離陸律率立留硫粒隆竜龍侶慮旅虜了亮僚両凌弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗ムも癌錫b鰍獅撃垂謂モ呉";
++static const gchar* ideos = "鐚鐚誌鐚鐚鐚卒鐔即鐚常殖鐚帥純障篁錫鐚鐚??鐔モ鐚鐚鐚誌悉鐔鐔鐚?賊歎鐚鐚鐚р癌属霞鰍鐃ワ??鐚鐚鐚鐚鐚則р?モ≠盾汲謂‖金違宴眼泣粁痢裡里離陸律率立留硫粒隆竜龍侶慮旅虜了亮僚両凌弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗ムも癌錫b鰍獅撃垂謂モ呉";
+
+ #ifdef BUFSIZ
+ #undef BUFSIZ
+@@ -236,7 +236,7 @@
+ return;
+ }
+
+- jl_set_env_wnnrc(wenv, "/etc/FreeWnn/ja/wnnenvrc", printConfirm, printError);
++ jl_set_env_wnnrc(wenv, "/usr/lib/wnn/ja_JP/wnnenvrc", printConfirm, printError);
+
+ cf->modewin = freewnn_modewin_new(cf->wnnbuf, &cf->functable);
+ cf->candwin = candwin_new();
diff --git a/app-i18n/im-freewnn/im-freewnn-0.0.2-r1.ebuild b/app-i18n/im-freewnn/im-freewnn-0.0.2-r1.ebuild
new file mode 100644
index 00000000000..ff6a98fbf6c
--- /dev/null
+++ b/app-i18n/im-freewnn/im-freewnn-0.0.2-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="1"
+
+inherit autotools eutils gnome2-utils multilib
+
+DESCRIPTION="Japanese FreeWnn input method module for GTK+2"
+HOMEPAGE="http://bonobo.gnome.gr.jp/~nakai/immodule/"
+SRC_URI="http://bonobo.gnome.gr.jp/~nakai/immodule/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+
+RDEPEND="dev-libs/glib
+ x11-libs/pango
+ >=x11-libs/gtk+-2.4:2
+ >=app-i18n/freewnn-1.1.1_alpha21-r1"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+pkg_setup() {
+ # An arch specific config directory is used on multilib systems
+ has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
+ GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0/}
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}-wnnrc-gentoo.diff"
+ # bug #298744
+ epatch "${FILESDIR}/${P}-as-needed.patch"
+ epatch "${FILESDIR}/${P}-implicit-declaration.patch"
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/im-freewnn/metadata.xml b/app-i18n/im-freewnn/metadata.xml
new file mode 100644
index 00000000000..2d5852c16c6
--- /dev/null
+++ b/app-i18n/im-freewnn/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/im-ja/Manifest b/app-i18n/im-ja/Manifest
new file mode 100644
index 00000000000..14a67be26cd
--- /dev/null
+++ b/app-i18n/im-ja/Manifest
@@ -0,0 +1 @@
+DIST im-ja-1.5.tar.gz 905539 SHA256 96f4ed82706a873bdade99a934a1a66431f146758837ed0f007e3c145649f780 SHA512 97c75aa5437b3f887d7004d87f4dd7e444fb2ad393af0117dab64fdef87c0a92b1a97c1934a8e1e67e6c1753ad78f1c9a67f5aca10710115a8b331aae4f17864 WHIRLPOOL c9d3cd722ce3b31cedfc75667d752a0df22fd3eda6e6f3421c5d381c86735e047c80db5c14b0b59a71d524b617276850fddc8b0378e18bbda825208381fa7700
diff --git a/app-i18n/im-ja/files/im-ja-1.5-gentoo.patch b/app-i18n/im-ja/files/im-ja-1.5-gentoo.patch
new file mode 100644
index 00000000000..af78e77876f
--- /dev/null
+++ b/app-i18n/im-ja/files/im-ja-1.5-gentoo.patch
@@ -0,0 +1,30 @@
+diff -Naur im-ja-1.5.orig/configure.in im-ja-1.5/configure.in
+--- im-ja-1.5.orig/configure.in 2006-04-18 19:52:25.000000000 +0900
++++ im-ja-1.5/configure.in 2009-10-19 08:19:22.000000000 +0900
+@@ -28,6 +28,7 @@
+ PKG_CHECK_MODULES([GTK], gtk+-2.0 >= 2.4.0)
+ PKG_CHECK_MODULES([GCONF], gconf-2.0)
+ PKG_CHECK_MODULES([LIBGLADE], libglade-2.0 >= 2.4.0)
++PKG_CHECK_MODULES([LIBGNOMEUI], libgnomeui-2.0 >= 2.4.0)
+
+ AM_GCONF_SOURCE_2
+
+diff -Naur im-ja-1.5.orig/src/gnome-panel-applet/Makefile.am im-ja-1.5/src/gnome-panel-applet/Makefile.am
+--- im-ja-1.5.orig/src/gnome-panel-applet/Makefile.am 2006-04-18 19:52:24.000000000 +0900
++++ im-ja-1.5/src/gnome-panel-applet/Makefile.am 2009-10-19 08:21:24.000000000 +0900
+@@ -26,13 +26,14 @@
+ -DIM_JA_LIBPROGDIR=\"$(libprogdir)\" \
+ -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
+ $(LIBPANELAPPLET_CFLAGS) \
++ $(LIBGNOMEUI_CFLAGS) \
+ @DEBUG_FLAGS@ \
+ @DISABLE_CANNA_FLAG@ \
+ @DISABLE_ANTHY_FLAG@ \
+ @DISABLE_SKK_FLAG@ \
+ @DISABLE_WNN_FLAG@
+
+-im_ja_applet_LDADD = $(LIBPANELAPPLET_LIBS)
++im_ja_applet_LDADD = $(LIBPANELAPPLET_LIBS) $(LIBGNOMEUI_LIBS)
+
+ uidir = $(datadir)/gnome-2.0/ui
+ ui_DATA = GNOME_ImJaApplet.xml
diff --git a/app-i18n/im-ja/files/im-ja-1.5-pofiles.patch b/app-i18n/im-ja/files/im-ja-1.5-pofiles.patch
new file mode 100644
index 00000000000..611cc61450d
--- /dev/null
+++ b/app-i18n/im-ja/files/im-ja-1.5-pofiles.patch
@@ -0,0 +1,17 @@
+diff --git a/po/POTFILES.in b/po/POTFILES.in
+index a52fa9a..7fac135 100644
+--- a/po/POTFILES.in
++++ b/po/POTFILES.in
+@@ -3,10 +3,12 @@ gnome/im-ja.desktop.in
+ src/actionmenu.c
+ src/candwin.c
+ src/conf.c
++src/eggtrayicon/eggtrayicon.c
+ src/gnome-panel-applet/GNOME_ImJaApplet.server.in.in
+ src/gnome-panel-applet/GNOME_ImJaApplet.xml
+ src/gnome-panel-applet/im-ja-applet.c
+ src/gtk/im-ja-gtk.c
++src/helper/im-ja-helper.c
+ src/im-ja-conf/im-ja-conf.c
+ src/im-ja-conf/im-ja-conf.glade
+ src/im-ja.c
diff --git a/app-i18n/im-ja/files/im-ja-1.5-underlinking.patch b/app-i18n/im-ja/files/im-ja-1.5-underlinking.patch
new file mode 100644
index 00000000000..adbc2144d23
--- /dev/null
+++ b/app-i18n/im-ja/files/im-ja-1.5-underlinking.patch
@@ -0,0 +1,18 @@
+--- src/xim/Makefile.am.old 2014-06-01 20:06:19.209885674 +0200
++++ src/xim/Makefile.am 2014-06-01 20:06:27.020040088 +0200
+@@ -88,4 +88,4 @@
+ @DISABLE_SKK_FLAG@ \
+ @X_CFLAGS@
+ im_ja_xim_server_LDADD = IMdkit/libXimd.a
+-im_ja_xim_server_LDFLAGS = @GTK_LIBS@ @GCONF_LIBS@ @X_LIBS@ @X_PRE_LIBS@ -lX11 @CANNA_LIBS@ @WNN_LIBS@ @ANTHY_LIBS@
++im_ja_xim_server_LDFLAGS = @GTK_LIBS@ @GCONF_LIBS@ @X_LIBS@ @X_PRE_LIBS@ -lX11 -lm @CANNA_LIBS@ @WNN_LIBS@ @ANTHY_LIBS@
+--- src/helper/Makefile.am.old 2014-06-01 20:09:11.592293279 +0200
++++ src/helper/Makefile.am 2014-06-01 20:09:24.454547489 +0200
+@@ -23,6 +23,6 @@
+ @DISABLE_SKK_FLAG@ \
+ @DISABLE_WNN_FLAG@
+
+-im_ja_helper_LDADD = @GTK_LIBS@ @GCONF_LIBS@
++im_ja_helper_LDADD = @GTK_LIBS@ @GCONF_LIBS@ -lX11
+
+
diff --git a/app-i18n/im-ja/files/xinput-im-ja b/app-i18n/im-ja/files/xinput-im-ja
new file mode 100644
index 00000000000..6f76ec609ac
--- /dev/null
+++ b/app-i18n/im-ja/files/xinput-im-ja
@@ -0,0 +1,7 @@
+XIM=im-ja-xim-server
+XIM_PROGRAM="@EPREFIX@/usr/bin/im-ja-xim-server"
+PREFERENCE_PROGRAM="@EPREFIX@/usr/bin/im-ja-conf"
+ICON=im-ja-capplet
+SHORT_DESC="im-ja"
+GTK_IM_MODULE=im-ja
+#QT_IM_MODULE=im-ja
diff --git a/app-i18n/im-ja/im-ja-1.5-r3.ebuild b/app-i18n/im-ja/im-ja-1.5-r3.ebuild
new file mode 100644
index 00000000000..d7f424188fa
--- /dev/null
+++ b/app-i18n/im-ja/im-ja-1.5-r3.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GNOME2_LA_PUNT="yes"
+GCONF_DEBUG="no"
+
+inherit autotools gnome2 eutils multilib readme.gentoo
+
+DESCRIPTION="A Japanese input module for GTK2 and XIM"
+HOMEPAGE="http://im-ja.sourceforge.net/"
+SRC_URI="http://im-ja.sourceforge.net/${P}.tar.gz
+ http://im-ja.sourceforge.net/old/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="canna freewnn skk anthy"
+# --enable-debug causes build failure with gtk+-2.4
+#IUSE="${IUSE} debug"
+
+RDEPEND="
+ >=dev-libs/glib-2.4:2
+ >=dev-libs/atk-1.6
+ >=x11-libs/gtk+-2.4:2
+ >=x11-libs/pango-1.2.1
+ >=gnome-base/gconf-2.4:2
+ >=gnome-base/libglade-2.4:2.0
+ >=gnome-base/libgnomeui-2.4
+ freewnn? ( app-i18n/freewnn )
+ canna? ( app-i18n/canna )
+ skk? ( virtual/skkserv )
+ anthy? ( app-i18n/anthy )
+"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ dev-util/intltool
+ dev-perl/URI
+ virtual/pkgconfig
+"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="This version of im-ja comes with experimental XIM support.
+If you'd like to try it out, run im-ja-xim-server and set
+environment variable XMODIFIERS to @im=im-ja-xim-server
+e.g.)
+$ export XMODIFIERS=@im=im-ja-xim-server (sh)
+> setenv XMODIFIERS @im=im-ja-xim-server (csh)"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-gentoo.patch" \
+ "${FILESDIR}"/${P}-pofiles.patch \
+ "${FILESDIR}/${P}-underlinking.patch"
+
+ sed -ie 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in || die
+
+ eautoreconf
+ gnome2_src_prepare
+}
+
+src_configure() {
+ local myconf
+ # You cannot use `use_enable ...` here. im-ja's configure script
+ # doesn't distinguish --enable-canna from --disable-canna, so
+ # --enable-canna stands for --disable-canna in the script ;-(
+ use canna || myconf="$myconf --disable-canna"
+ use freewnn || myconf="$myconf --disable-wnn"
+ use anthy || myconf="$myconf --disable-anthy"
+ use skk || myconf="$myconf --disable-skk"
+ #use debug && myconf="$myconf --enable-debug"
+
+ gnome2_src_configure \
+ --disable-gnome \
+ $myconf
+}
+
+src_install() {
+ gnome2_src_install
+
+ sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-${PN}" > "${T}/${PN}.conf" || die
+ insinto /etc/X11/xinit/xinput.d
+ doins "${T}/${PN}.conf"
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk2
+ gnome2_pkg_postinst
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+ gnome2_pkg_postrm
+}
diff --git a/app-i18n/im-ja/metadata.xml b/app-i18n/im-ja/metadata.xml
new file mode 100644
index 00000000000..46a11b21711
--- /dev/null
+++ b/app-i18n/im-ja/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+<longdescription>
+ IM-JA is a Japanese input module for GTK+2. It supports kanji
+ conversion using either the Canna or the (Free)Wnn kanji conversion
+ engine. IM-JA can also do kanji character recognition, you can draw
+ kanji into a widget using the mouse. This feature is based on the
+ KanjiPad application which has been enhanced in IM-JA.
+</longdescription>
+<use>
+ <flag name='anthy'>Support for Anthy input method</flag>
+ <flag name='skk'>Support for SKK input method</flag>
+</use>
+</pkgmetadata>
diff --git a/app-i18n/imhangul/Manifest b/app-i18n/imhangul/Manifest
new file mode 100644
index 00000000000..36dd1d9666f
--- /dev/null
+++ b/app-i18n/imhangul/Manifest
@@ -0,0 +1,6 @@
+DIST imhangul-0.9.16.tar.bz2 253102 SHA256 fb36064cfdec3d3a36a4d9a08ccdcd9d2dbb5b999a6ff6688527139addc8add3 SHA512 60d233c96c442dcb34ffdd269d9793a12845481a7f213e5ea2337368b82cece58a7978a4702f79ab540191a851e93c251d72ddbbab10c2632f783d33dfc5c702 WHIRLPOOL a56b2697608a9692b4ca46d31fcf9bd49e2b8829c1c9c68f0cd861e7bcfbf3578b4b368c539addc509647c80ab5cd2288c9125f129b88ef73dd8030c4ffaf86f
+DIST imhangul-2.0.0.tar.bz2 255591 SHA256 504b3cce9dc269bc94a14c6e725b86620cb135e6d43f8b945d799162f50bbb43 SHA512 203d83ec714ee464d3caa304a462a93129712d2221188a4f5cbb1caac309fb91f3b49749ab81d01d3c8bc2feeaf80398e9b8bc5e09b79c228fbc13ed9fbc28d3 WHIRLPOOL c4a7372215de7ec4a5fb850be6a8756c21096fb12ebb7e2d25e7fddbe369aad584ab98b9a76ddfaa862d03341d7c5efc0455a419ac663fd6c6cc51a7b4f6bd59
+DIST imhangul-2.1.0.tar.bz2 268205 SHA256 08c6deb97eda7c96e8180528f3b2aeee3e367757c643e2c48dde7d7b5ac77dc9 SHA512 ea4621c4e0e5ed1786e644b577bc0c9f3dbbf296f938ddb2ab04923d8147e01123e10e09a61484e30c3ab0ff51d86da80a93bce583eceee207eab90c27df5f8e WHIRLPOOL c758955538eb970b3a2ed73df3ba6c08963ea16628b1befa8f7130f6afa00dc8179ea9bf25a951070c0fdb17fcaa0a17c6d0e97b5eebbd3e6c1d859ad1f00348
+DIST imhangul-3.0.0.tar.bz2 265064 SHA256 fbc6fbdd33781eeac873c677cb30da7163f0f8e8277bad386a93267c34b50eef SHA512 39e52716c0d9ad60200627bc8231ae4ff639504c3ea4a826bbc02c420af71586ac1c96aa19842eda2e14700bde4a656eed6a5af08f6ced7d3c11ca82e71a5dba WHIRLPOOL c5700937a4f4cd4945662afc28bbdfa3e4565ab9f8762a0a2fcb6019bf457d32788f913272eccce336f0baa00ed187f6f6b87c4c04449c8ba981390b1181f825
+DIST imhangul-3.1.0.tar.bz2 267943 SHA256 69cd696a56321dd6cf7dc32d4bc7959a5853aee6ee61e4c4b26521473e84dad3 SHA512 48f3247511925e670bcafd07437e66943fbc50b58cd1b2c40832c6b71df39804b57e0bcb2d8dcf41d5309067becaef436b8102241d8e47519a5a351e9c27379a WHIRLPOOL 840e93f99226eaa3597f603754e36a9955dd52dd6076ab67f3da242fc0efaf9a9c7ca11bd52871878b56fc807c9925f2f1d654024cbfba3012ecfd7c3ade99f0
+DIST imhangul-3.1.1.tar.bz2 288236 SHA256 24f103e55c38f2cd4b708398106ac19760e2ef1834513f46f32b0baf439461e0 SHA512 a27fb34a826ceccb16e4c8a422f5571c7c6a4c253cd2a55c1025b0c22500a380a35a8703e9f0f6300fdc92544e1d7b59e33f11e059b85754b1619698e0f74d89 WHIRLPOOL c5cdb552891463a1d3f231b17ab9bf50810746a2ca7bfe3f9aeed001356232f188512de9e66c2d34777eec784c139e8286e7050fae6351b5e90099ec655d2764
diff --git a/app-i18n/imhangul/files/xinput-imhangul2 b/app-i18n/imhangul/files/xinput-imhangul2
new file mode 100644
index 00000000000..099b880344b
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul2
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Dubeolsik"
+GTK_IM_MODULE=hangul2
diff --git a/app-i18n/imhangul/files/xinput-imhangul2y b/app-i18n/imhangul/files/xinput-imhangul2y
new file mode 100644
index 00000000000..f622cb8d246
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul2y
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Dubeolsik Yetgeul"
+GTK_IM_MODULE=hangul2y
diff --git a/app-i18n/imhangul/files/xinput-imhangul32 b/app-i18n/imhangul/files/xinput-imhangul32
new file mode 100644
index 00000000000..6a903e2cd70
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul32
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Sebeolsik Dubeol Layout"
+GTK_IM_MODULE=hangul32
diff --git a/app-i18n/imhangul/files/xinput-imhangul39 b/app-i18n/imhangul/files/xinput-imhangul39
new file mode 100644
index 00000000000..b5438d01c57
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul39
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Sebeolsik 390"
+GTK_IM_MODULE=hangul39
diff --git a/app-i18n/imhangul/files/xinput-imhangul3f b/app-i18n/imhangul/files/xinput-imhangul3f
new file mode 100644
index 00000000000..e0c703272ce
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul3f
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Sebeolsik Final"
+GTK_IM_MODULE=hangul3f
diff --git a/app-i18n/imhangul/files/xinput-imhangul3s b/app-i18n/imhangul/files/xinput-imhangul3s
new file mode 100644
index 00000000000..0ce1079ff76
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul3s
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Sebeolsik Noshift"
+GTK_IM_MODULE=hangul3s
diff --git a/app-i18n/imhangul/files/xinput-imhangul3y b/app-i18n/imhangul/files/xinput-imhangul3y
new file mode 100644
index 00000000000..922e9025e88
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangul3y
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Sebeolsik Yetgeul"
+GTK_IM_MODULE=hangul3y
diff --git a/app-i18n/imhangul/files/xinput-imhangulahn b/app-i18n/imhangul/files/xinput-imhangulahn
new file mode 100644
index 00000000000..1dd23b66192
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangulahn
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Ahnmatae"
+GTK_IM_MODULE=hangulahn
diff --git a/app-i18n/imhangul/files/xinput-imhangulro b/app-i18n/imhangul/files/xinput-imhangulro
new file mode 100644
index 00000000000..7cfcfaeb8d8
--- /dev/null
+++ b/app-i18n/imhangul/files/xinput-imhangulro
@@ -0,0 +1,2 @@
+SHORT_DESC="Hangul Romaja"
+GTK_IM_MODULE=hangulro
diff --git a/app-i18n/imhangul/imhangul-0.9.16.ebuild b/app-i18n/imhangul/imhangul-0.9.16.ebuild
new file mode 100644
index 00000000000..45f35540de9
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-0.9.16.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit multilib
+
+DESCRIPTION="Gtk+-2.0 Hangul Input Modules"
+HOMEPAGE="http://kldp.net/projects/imhangul/"
+SRC_URI="http://kldp.net/frs/download.php/5856/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ >=x11-libs/gtk+-2.2:2
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+get_gtk_confdir() {
+ if has_multilib_profile ; then
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0/${CHOST}}"
+ else
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0}"
+ fi
+ echo ${GTK2_CONFDIR}
+}
+
+update_gtk_immodules() {
+ local GTK2_CONFDIR=$(get_gtk_confdir)
+
+ mkdir -p "${GTK2_CONFDIR}"
+
+ if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then
+ "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${GTK2_CONFDIR}/gtk.immodules"
+ fi
+}
+
+src_configure() {
+ econf \
+ --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-2.0/immodules" \
+ --with-gtk-im-module-file="$(get_gtk_confdir)" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+pkg_postinst() {
+ update_gtk_immodules
+
+ elog ""
+ elog "If you want to use one of the module as a default input method, "
+ elog ""
+ elog "export GTK_IM_MODULE=hangul2 # 2 input type"
+ elog "export GTK_IM_MODULE=hangul3f # 3 input type"
+ elog ""
+}
+
+pkg_postrm() {
+ update_gtk_immodules
+}
diff --git a/app-i18n/imhangul/imhangul-2.0.0.ebuild b/app-i18n/imhangul/imhangul-2.0.0.ebuild
new file mode 100644
index 00000000000..ccb76bb8681
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-2.0.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit multilib
+
+DESCRIPTION="Gtk+-2.0 Hangul Input Modules"
+HOMEPAGE="http://kldp.net/projects/imhangul/"
+SRC_URI="http://kldp.net/frs/download.php/5924/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ >=x11-libs/gtk+-2.2:2
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+get_gtk_confdir() {
+ # bug #366889
+ if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0/$(get_abi_CHOST)}"
+ else
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0}"
+ fi
+ echo ${GTK2_CONFDIR}
+}
+
+update_gtk_immodules() {
+ local GTK2_CONFDIR=$(get_gtk_confdir)
+
+ mkdir -p "${GTK2_CONFDIR}"
+
+ if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then
+ "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${GTK2_CONFDIR}/gtk.immodules"
+ fi
+}
+
+src_prepare() {
+ # Drop DEPRECATED flags, bug #387825
+ sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-2.0/immodules" \
+ --with-gtk-im-module-file="$(get_gtk_confdir)" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}" -name "*.la" -type f -delete || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+pkg_postinst() {
+ update_gtk_immodules
+
+ elog ""
+ elog "If you want to use one of the module as a default input method, "
+ elog ""
+ elog "export GTK_IM_MODULE=hangul2 # 2 input type"
+ elog "export GTK_IM_MODULE=hangul3f # 3 input type"
+ elog ""
+}
+
+pkg_postrm() {
+ update_gtk_immodules
+}
diff --git a/app-i18n/imhangul/imhangul-2.1.0.ebuild b/app-i18n/imhangul/imhangul-2.1.0.ebuild
new file mode 100644
index 00000000000..a3018c91324
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-2.1.0.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit gnome2-utils multilib
+
+DESCRIPTION="Gtk+-2.0 Hangul Input Modules"
+HOMEPAGE="http://code.google.com/p/imhangul/"
+SRC_URI="http://imhangul.googlecode.com/files/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ >=x11-libs/gtk+-2.2:2
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+get_gtk_confdir() {
+ # bug #366889
+ if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0/$(get_abi_CHOST)}"
+ else
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0}"
+ fi
+ echo ${GTK2_CONFDIR}
+}
+
+src_prepare() {
+ # Drop DEPRECATED flags, bug #387825
+ sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-2.0/immodules" \
+ --with-gtk-im-module-file="$(get_gtk_confdir)" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}" -name "*.la" -type f -delete || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk2
+ elog ""
+ elog "If you want to use one of the module as a default input method, "
+ elog ""
+ elog "export GTK_IM_MODULE=hangul2 # 2 input type"
+ elog "export GTK_IM_MODULE=hangul3f # 3 input type"
+ elog ""
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/imhangul/imhangul-3.0.0.ebuild b/app-i18n/imhangul/imhangul-3.0.0.ebuild
new file mode 100644
index 00000000000..2bb88e90cf2
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-3.0.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit gnome2-utils multilib
+
+DESCRIPTION="Gtk+-3.0 Hangul Input Modules"
+HOMEPAGE="http://kldp.net/projects/imhangul/"
+SRC_URI="http://kldp.net/frs/download.php/5925/${P}.tar.bz2"
+
+SLOT="3"
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ x11-libs/gtk+:3
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_prepare() {
+ # Drop DEPRECATED flags, bug #387825
+ sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
+}
+
+src_configure() {
+ econf --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-3.0/$(pkg-config gtk+-3.0 --variable=gtk_binary_version)/immodules" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}" -name "*.la" -type f -delete || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk3
+ elog ""
+ elog "If you want to use one of the module as a default input method, "
+ elog ""
+ elog "export GTK_IM_MODULE=hangul2 # 2 input type"
+ elog "export GTK_IM_MODULE=hangul3f # 3 input type"
+ elog ""
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/imhangul/imhangul-3.1.0.ebuild b/app-i18n/imhangul/imhangul-3.1.0.ebuild
new file mode 100644
index 00000000000..8dd79cd5399
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-3.1.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit gnome2-utils multilib
+
+DESCRIPTION="Gtk+-3.0 Hangul Input Modules"
+HOMEPAGE="http://code.google.com/p/imhangul/"
+SRC_URI="http://imhangul.googlecode.com/files/${P}.tar.bz2"
+
+SLOT="3"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ x11-libs/gtk+:3
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_prepare() {
+ # Drop DEPRECATED flags, bug #387825
+ sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
+}
+
+src_configure() {
+ econf --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-3.0/$(pkg-config gtk+-3.0 --variable=gtk_binary_version)/immodules" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}" -name "*.la" -type f -delete || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk3
+
+ elog ""
+ elog "If you want to use one of the module as a default input method, "
+ elog ""
+ elog "export GTK_IM_MODULE=hangul2 # 2 input type"
+ elog "export GTK_IM_MODULE=hangul3f # 3 input type"
+ elog ""
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/imhangul/imhangul-3.1.1.ebuild b/app-i18n/imhangul/imhangul-3.1.1.ebuild
new file mode 100644
index 00000000000..9c28791db98
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-3.1.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit multilib
+
+DESCRIPTION="Gtk+-3.0 Hangul Input Modules"
+HOMEPAGE="http://code.google.com/p/imhangul/"
+SRC_URI="http://imhangul.googlecode.com/files/${P}.tar.bz2"
+
+SLOT="3"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ x11-libs/gtk+:3
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_prepare() {
+ # Drop DEPRECATED flags, bug #387825
+ sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
+}
+
+src_configure() {
+ econf --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-3.0/$(pkg-config gtk+-3.0 --variable=gtk_binary_version)/immodules" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}" -name "*.la" -type f -delete || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk3
+ elog ""
+ elog "If you want to use one of the module as a default input method, "
+ elog ""
+ elog "export GTK_IM_MODULE=hangul2 # 2 input type"
+ elog "export GTK_IM_MODULE=hangul3f # 3 input type"
+ elog ""
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/imhangul/metadata.xml b/app-i18n/imhangul/metadata.xml
new file mode 100644
index 00000000000..b59e83555ce
--- /dev/null
+++ b/app-i18n/imhangul/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">imhangul</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/imsettings/Manifest b/app-i18n/imsettings/Manifest
new file mode 100644
index 00000000000..684dc0aaa9e
--- /dev/null
+++ b/app-i18n/imsettings/Manifest
@@ -0,0 +1,2 @@
+DIST imsettings-1.5.0.tar.bz2 567488 SHA256 06a9d82718104fb9b86ded11bc73afaf7dd858b138eb24d8264c6a4877db161e SHA512 0743264fc09c9998d93fd92195946936141f17a943783b40906d0e269db691c7559e05158217f7a3b46b18cd29004338b94ca9958d52185c630e26cd7dfca08d WHIRLPOOL 21e96e5b9aeb80189a9aa6650d86d0cf1a72287a246eb43c0e54af94d1d5dc37e47c5760e17b36c0c3f222367520f81a50150fc3e4a4449e3ed284d237e91d06
+DIST imsettings-1.6.8.tar.bz2 593942 SHA256 2620ffbf9a6dc842dbf994b4773d4fe355eb77076ccf33f726ba63f16c0d08ba SHA512 a15a4824529b16f61653fdf3e149656c7a2ca1384579c755cec6650414499c3d24ac15178971d961f327c5fd8acd7892b9b4f9c60608166c281c11ab3f2b25b0 WHIRLPOOL c39cb54b9be8424dc1d9eceae12f793847585638f29a52282427c3c07ee1bd3e5ed9d67ff73727b055499c3963e106024eb9f164b32ebcf553b2dfccf1114a6d
diff --git a/app-i18n/imsettings/files/imsettings-1.5.0-gir-scanner.patch b/app-i18n/imsettings/files/imsettings-1.5.0-gir-scanner.patch
new file mode 100644
index 00000000000..be7350f9401
--- /dev/null
+++ b/app-i18n/imsettings/files/imsettings-1.5.0-gir-scanner.patch
@@ -0,0 +1,29 @@
+From 75e1ec9cea4bb9f108c0637a4b62cabfa500ed61 Mon Sep 17 00:00:00 2001
+From: Akira TAGOH <akira@tagoh.org>
+Date: Wed, 3 Apr 2013 19:37:15 +0900
+Subject: [PATCH] Fix a build issue with the latest gobject-introspection
+
+---
+ imsettings/Makefile.am | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/imsettings/Makefile.am b/imsettings/Makefile.am
+index 574480a..8e5999a 100644
+--- a/imsettings/Makefile.am
++++ b/imsettings/Makefile.am
+@@ -117,9 +117,11 @@ IMSettings_1_3_gir_INCLUDES = \
+ GObject-2.0 \
+ Gio-2.0 \
+ $(NULL)
++IMSettings_1_3_gir_SCANNERFLAGS = \
++ --symbol-prefix=imsettings \
++ $(NULL)
+ IMSettings_1_3_gir_CFLAGS = \
+ $(INCLUDES) \
+- --symbol-prefix=imsettings \
+ $(NULL)
+ IMSettings_1_3_gir_LIBS = libimsettings.la
+ IMSettings_1_3_gir_FILES = $(introspection_sources)
+--
+1.8.5.2
+
diff --git a/app-i18n/imsettings/imsettings-1.5.0.ebuild b/app-i18n/imsettings/imsettings-1.5.0.ebuild
new file mode 100644
index 00000000000..b91eac4a64a
--- /dev/null
+++ b/app-i18n/imsettings/imsettings-1.5.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils autotools
+
+DESCRIPTION="Delivery framework for general Input Method configuration"
+HOMEPAGE="http://tagoh.github.com/imsettings/"
+SRC_URI="https://bitbucket.org/tagoh/imsettings/downloads/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gconf gtk3 qt4 static-libs xfconf"
+
+# X11 connections are required for test.
+RESTRICT="test"
+
+RDEPEND=">=dev-libs/check-0.9.4
+ >=dev-libs/glib-2.26
+ sys-apps/dbus
+ >=x11-libs/gtk+-2.12:2
+ >=x11-libs/libgxim-0.4.0
+ >=x11-libs/libnotify-0.7
+ x11-libs/libX11
+ gconf? ( gnome-base/gconf )
+ gtk3? ( x11-libs/gtk+:3 )
+ qt4? ( dev-qt/qtcore:4 )
+ xfconf? ( xfce-base/xfconf )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ doc? ( dev-util/gtk-doc )"
+
+MY_XINPUTSH="90-xinput"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_prepare() {
+ # Prevent automagic linking to libxfconf-0.
+ if ! use gconf; then
+ sed -i -e 's:gconf-2.0:dIsAbLe&:' configure || die
+ fi
+ if ! use gtk3; then
+ sed -i -e 's:gtk+-3.0:dIsAbLe&:' configure || die
+ fi
+ if ! use qt4; then
+ sed -i -e 's:QtCore:dIsAbLe&:' configure || die
+ fi
+ if ! use xfconf; then
+ sed -i -e 's:libxfconf-0:dIsAbLe&:' configure || die
+ fi
+ epatch "${FILESDIR}"/${P}-gir-scanner.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ --with-xinputsh="${MY_XINPUTSH}"
+}
+
+src_install() {
+ default
+
+ find "${ED}" -name '*.la' -exec rm -f '{}' +
+
+ fperms 0755 /usr/libexec/xinputinfo.sh
+ fperms 0755 "/etc/X11/xinit/xinitrc.d/${MY_XINPUTSH}"
+}
+
+pkg_postinst() {
+ if [ ! -e "${EPREFIX}/etc/X11/xinit/xinputrc" ] ; then
+ ln -sf xinput.d/xcompose.conf "${EPREFIX}/etc/X11/xinit/xinputrc"
+ fi
+}
diff --git a/app-i18n/imsettings/imsettings-1.6.8.ebuild b/app-i18n/imsettings/imsettings-1.6.8.ebuild
new file mode 100644
index 00000000000..1454eeaa160
--- /dev/null
+++ b/app-i18n/imsettings/imsettings-1.6.8.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils autotools
+
+DESCRIPTION="Delivery framework for general Input Method configuration"
+HOMEPAGE="http://tagoh.bitbucket.org/imsettings/"
+SRC_URI="https://bitbucket.org/tagoh/imsettings/downloads/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gconf gtk3 qt4 static-libs xfconf"
+
+# X11 connections are required for test.
+RESTRICT="test"
+
+RDEPEND=">=dev-libs/check-0.9.4
+ >=dev-libs/glib-2.32
+ sys-apps/dbus
+ >=x11-libs/gtk+-2.12:2
+ >=x11-libs/libgxim-0.5.0
+ >=x11-libs/libnotify-0.7
+ x11-libs/libX11
+ gconf? ( gnome-base/gconf )
+ gtk3? ( x11-libs/gtk+:3 )
+ qt4? ( dev-qt/qtcore:4 )
+ xfconf? ( xfce-base/xfconf )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ doc? ( dev-util/gtk-doc )"
+
+MY_XINPUTSH="90-xinput"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_prepare() {
+ # Prevent automagic linking to libxfconf-0.
+ if ! use gconf; then
+ sed -i -e 's:gconf-2.0:dIsAbLe&:' configure || die
+ fi
+ if ! use gtk3; then
+ sed -i -e 's:gtk+-3.0:dIsAbLe&:' configure || die
+ fi
+ if ! use qt4; then
+ sed -i -e 's:use_qt="yes":use_qt="no":' configure || die
+ fi
+ if ! use xfconf; then
+ sed -i -e 's:libxfconf-0:dIsAbLe&:' configure || die
+ fi
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ --with-xinputsh="${MY_XINPUTSH}"
+}
+
+src_install() {
+ default
+
+ find "${ED}" -name '*.la' -exec rm -f '{}' +
+
+ fperms 0755 /usr/libexec/xinputinfo.sh
+ fperms 0755 "/etc/X11/xinit/xinitrc.d/${MY_XINPUTSH}"
+}
+
+pkg_postinst() {
+ if [ ! -e "${EPREFIX}/etc/X11/xinit/xinputrc" ] ; then
+ ln -sf xinput.d/xcompose.conf "${EPREFIX}/etc/X11/xinit/xinputrc"
+ fi
+}
diff --git a/app-i18n/imsettings/metadata.xml b/app-i18n/imsettings/metadata.xml
new file mode 100644
index 00000000000..6a110ec0e89
--- /dev/null
+++ b/app-i18n/imsettings/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+<use>
+ <flag name='xfconf'>Enable integration in the Xfce desktop environment with <pkg>xfce-base/xfconf</pkg></flag>
+ <flag name='gconf'>Enable GConf support</flag>
+ <flag name='gtk3'>Enable support for <pkg>x11-libs/gtk+</pkg>:3</flag>
+</use>
+</pkgmetadata>
diff --git a/app-i18n/jfbterm/Manifest b/app-i18n/jfbterm/Manifest
new file mode 100644
index 00000000000..395a7a7dc0a
--- /dev/null
+++ b/app-i18n/jfbterm/Manifest
@@ -0,0 +1 @@
+DIST jfbterm-0.4.7.tar.gz 104592 SHA256 a18446040cfaadd51c1ce77bb06ba6860372a70a04e36962e2635253a1f693a3 SHA512 267dc777c2a296731ac7e5fb89381891e26ac119be63c8889b0e194246a3ac03b1c4b50f7d9254221c2ab201a126da46d312946845ddaad82fcc718a76472dcc WHIRLPOOL faa57bca89ab88808b07f0902d86069df8440feb840a72842efe6f4c30922fbc1bdf622715fe93f75d3beee5fab40b72ded107cf17a7b91f2c3fcc86f43d5944
diff --git a/app-i18n/jfbterm/files/jfbterm-0.4.7-gentoo.patch b/app-i18n/jfbterm/files/jfbterm-0.4.7-gentoo.patch
new file mode 100644
index 00000000000..8dc8bc097b0
--- /dev/null
+++ b/app-i18n/jfbterm/files/jfbterm-0.4.7-gentoo.patch
@@ -0,0 +1,144 @@
+diff -Naur jfbterm-0.4.7.orig/fbcommon.c jfbterm-0.4.7/fbcommon.c
+--- jfbterm-0.4.7.orig/fbcommon.c 2003-09-03 00:23:17.000000000 +0900
++++ jfbterm-0.4.7/fbcommon.c 2007-08-18 10:55:30.000000000 +0900
+@@ -46,7 +46,6 @@
+ #endif
+ #include <linux/vt.h>
+ #include <linux/fb.h>
+-#include <asm/page.h>
+
+ #include "mytypes.h"
+ #include "fbcommon.h"
+@@ -475,6 +474,9 @@
+ perror("ioctl FBIOGET_CON2FBMAP");
+ c2m.framebuffer = 0;
+ }
++ if (-1 == c2m.framebuffer) {
++ c2m.framebuffer = 0;
++ }
+ close(fd);
+ snprintf(fbdn, 15, "/dev/fb%d", c2m.framebuffer);
+ }
+diff -Naur jfbterm-0.4.7.orig/jfbterm.conf.sample jfbterm-0.4.7/jfbterm.conf.sample
+--- jfbterm-0.4.7.orig/jfbterm.conf.sample 2003-09-16 00:16:35.000000000 +0900
++++ jfbterm-0.4.7/jfbterm.conf.sample 2007-08-18 10:19:00.000000000 +0900
+@@ -19,29 +19,29 @@
+ # Absolute path or relative path to PWD
+ #
+ ###############################################################################
+-fontset : iso646-1973irv,pcf,L,/usr/X11R6/lib/X11/fonts/misc/8x16.pcf.gz
++fontset : iso646-1973irv,pcf,L,/usr/share/fonts/misc/8x16.pcf.gz
+ +fontset: ansix3.4-1968,alias,L,iso646-1973irv
+-+fontset: jisc6226-1978,pcf,L,/usr/X11R6/lib/X11/fonts/misc/jiskan16.pcf.gz
+++fontset: jisc6226-1978,pcf,L,/usr/share/fonts/misc/jiskan16.pcf.gz
+ +fontset: jisx0208-1983,alias,L,jisc6226-1978
+-+fontset: jisc6220-1969roman,pcf,L,/usr/X11R6/lib/X11/fonts/misc/a18rk.pcf.gz
+++fontset: jisc6220-1969roman,pcf,L,/usr/share/fonts/intlfonts/a18rk.pcf.gz
+ +fontset: jisc6220-1969kana,alias,R,jisc6220-1969roman
+-+fontset: jisx0212-1990,pcf,L,/usr/X11R6/lib/X11/fonts/misc/jksp16.pcf.gz
+-+fontset: gb2312-80,pcf,L,/usr/X11R6/lib/X11/fonts/misc/gb16fs.pcf.gz
+-+fontset: ksc5601-1987,pcf,L,/usr/X11R6/lib/X11/fonts/misc/hanglg16.pcf.gz
+-+fontset: iso8859.1-1987,pcf,R,/usr/X11R6/lib/X11/fonts/misc/8x16.pcf.gz
+-+fontset: iso8859.2-1987,pcf,R,/usr/X11R6/lib/X11/fonts/misc/lt2-16-etl.pcf.gz
+-+fontset: iso8859.3-1988,pcf,R,/usr/X11R6/lib/X11/fonts/misc/lt3-16-etl.pcf.gz
+-+fontset: iso8859.4-1988,pcf,R,/usr/X11R6/lib/X11/fonts/misc/lt4-16-etl.pcf.gz
+-+fontset: iso8859.5-1988,pcf,R,/usr/X11R6/lib/X11/fonts/misc/cyr16-etl.pcf.gz
+-+fontset: iso8859.7-1987,pcf,R,/usr/X11R6/lib/X11/fonts/misc/grk16-etl.pcf.gz
+-+fontset: iso8859.8-1988,pcf,R,/usr/X11R6/lib/X11/fonts/misc/heb16-etl.pcf.gz
+-+fontset: iso8859.9-1989,pcf,R,/usr/X11R6/lib/X11/fonts/misc/lt5-16-etl.pcf.gz
+-+fontset: iso8859.10-1992,pcf,R,/usr/X11R6/lib/X11/fonts/misc/8x13-ISO8859-10.pcf.gz
+-+fontset: iso8859.13-1998,pcf,R,/usr/X11R6/lib/X11/fonts/misc/8x13-ISO8859-13.pcf.gz
+-+fontset: iso8859.14-1998,pcf,R,/usr/X11R6/lib/X11/fonts/misc/8x13-ISO8859-14.pcf.gz
+-+fontset: iso8859.15-1999,pcf,R,/usr/X11R6/lib/X11/fonts/misc/8x13-ISO8859-15.pcf.gz
+++fontset: jisx0212-1990,pcf,L,/usr/share/fonts/intlfonts/jksp16.pcf.gz
+++fontset: gb2312-80,pcf,L,/usr/share/fonts/misc/gb16fs.pcf.gz
+++fontset: ksc5601-1987,pcf,L,/usr/share/fonts/misc/hanglg16.pcf.gz
+++fontset: iso8859.1-1987,pcf,R,/usr/share/fonts/misc/8x16.pcf.gz
+++fontset: iso8859.2-1987,pcf,R,/usr/share/fonts/intlfonts/lt2-16-etl.pcf.gz
+++fontset: iso8859.3-1988,pcf,R,/usr/share/fonts/intlfonts/lt3-16-etl.pcf.gz
+++fontset: iso8859.4-1988,pcf,R,/usr/share/fonts/intlfonts/lt4-16-etl.pcf.gz
+++fontset: iso8859.5-1988,pcf,R,/usr/share/fonts/intlfonts/cyr16-etl.pcf.gz
+++fontset: iso8859.7-1987,pcf,R,/usr/share/fonts/intlfonts/grk16-etl.pcf.gz
+++fontset: iso8859.8-1988,pcf,R,/usr/share/fonts/intlfonts/heb16-etl.pcf.gz
+++fontset: iso8859.9-1989,pcf,R,/usr/share/fonts/intlfonts/lt5-16-etl.pcf.gz
+++fontset: iso8859.10-1992,pcf,R,/usr/share/fonts/misc/8x13-ISO8859-10.pcf.gz
+++fontset: iso8859.13-1998,pcf,R,/usr/share/fonts/misc/8x13-ISO8859-13.pcf.gz
+++fontset: iso8859.14-1998,pcf,R,/usr/share/fonts/misc/8x13-ISO8859-14.pcf.gz
+++fontset: iso8859.15-1999,pcf,R,/usr/share/fonts/misc/8x13-ISO8859-15.pcf.gz
+ +fontset: vt100-graphics,pcf,L,/usr/share/fonts/jfbterm/vt100-graphics.pcf.gz
+-+fontset: iso10646.1,pcf,U,/usr/X11R6/lib/X11/fonts/misc/unifont.pcf.gz
+++fontset: iso10646.1,pcf,U,/usr/share/fonts/unifont/unifont.pcf.gz
+
+
+ ###############################################################################
+diff -Naur jfbterm-0.4.7.orig/jfbterm.conf.sample.ja jfbterm-0.4.7/jfbterm.conf.sample.ja
+--- jfbterm-0.4.7.orig/jfbterm.conf.sample.ja 2003-09-16 00:16:35.000000000 +0900
++++ jfbterm-0.4.7/jfbterm.conf.sample.ja 2007-08-18 10:19:11.000000000 +0900
+@@ -25,29 +25,29 @@
+ # 絶対パス or PWDからの相対パス
+ #
+ ################################################################################
+-fontset : iso646-1973irv,pcf,L,/usr/X11R6/lib/X11/fonts/misc/8x16.pcf.gz
++fontset : iso646-1973irv,pcf,L,/usr/share/fonts/misc/8x16.pcf.gz
+ +fontset: ansix3.4-1968,alias,L,iso646-1973irv
+-+fontset: jisc6226-1978,pcf,L,/usr/X11R6/lib/X11/fonts/misc/jiskan16.pcf.gz
+++fontset: jisc6226-1978,pcf,L,/usr/share/fonts/misc/jiskan16.pcf.gz
+ +fontset: jisx0208-1983,alias,L,jisc6226-1978
+-+fontset: jisc6220-1969roman,pcf,L,/usr/X11R6/lib/X11/fonts/misc/a18rk.pcf.gz
+++fontset: jisc6220-1969roman,pcf,L,/usr/share/fonts/intlfonts/a18rk.pcf.gz
+ +fontset: jisc6220-1969kana,alias,R,jisc6220-1969roman
+-+fontset: jisx0212-1990,pcf,L,/usr/X11R6/lib/X11/fonts/misc/jksp16.pcf.gz
+-+fontset: gb2312-80,pcf,L,/usr/X11R6/lib/X11/fonts/misc/gb16fs.pcf.gz
+-+fontset: ksc5601-1987,pcf,L,/usr/X11R6/lib/X11/fonts/misc/hanglg16.pcf.gz
+-+fontset: iso8859.1-1987,pcf,R,/usr/X11R6/lib/X11/fonts/misc/8x16.pcf.gz
+-+fontset: iso8859.2-1987,pcf,R,/usr/X11R6/lib/X11/fonts/misc/lt2-16-etl.pcf.gz
+-+fontset: iso8859.3-1987,pcf,R,/usr/X11R6/lib/X11/fonts/misc/lt3-16-etl.pcf.gz
+-+fontset: iso8859.4-1988,pcf,R,/usr/X11R6/lib/X11/fonts/misc/lt4-16-etl.pcf.gz
+-+fontset: iso8859.5-1988,pcf,R,/usr/X11R6/lib/X11/fonts/misc/cyr16-etl.pcf.gz
+-+fontset: iso8859.7-1987,pcf,R,/usr/X11R6/lib/X11/fonts/misc/grk16-etl.pcf.gz
+-+fontset: iso8859.8-1988,pcf,R,/usr/X11R6/lib/X11/fonts/misc/heb16-etl.pcf.gz
+-+fontset: iso8859.9-1989,pcf,R,/usr/X11R6/lib/X11/fonts/misc/lt5-16-etl.pcf.gz
+-+fontset: iso8859.10-1992,pcf,R,/usr/X11R6/lib/X11/fonts/misc/8x13-ISO8859-10.pcf.gz
+-+fontset: iso8859.13-1998,pcf,R,/usr/X11R6/lib/X11/fonts/misc/8x13-ISO8859-13.pcf.gz
+-+fontset: iso8859.14-1998,pcf,R,/usr/X11R6/lib/X11/fonts/misc/8x13-ISO8859-14.pcf.gz
+-+fontset: iso8859.15-1999,pcf,R,/usr/X11R6/lib/X11/fonts/misc/8x13-ISO8859-15.pcf.gz
+++fontset: jisx0212-1990,pcf,L,/usr/share/fonts/intlfonts/jksp16.pcf.gz
+++fontset: gb2312-80,pcf,L,/usr/share/fonts/misc/gb16fs.pcf.gz
+++fontset: ksc5601-1987,pcf,L,/usr/share/fonts/misc/hanglg16.pcf.gz
+++fontset: iso8859.1-1987,pcf,R,/usr/share/fonts/misc/8x16.pcf.gz
+++fontset: iso8859.2-1987,pcf,R,/usr/share/fonts/intlfonts/lt2-16-etl.pcf.gz
+++fontset: iso8859.3-1987,pcf,R,/usr/share/fonts/intlfonts/lt3-16-etl.pcf.gz
+++fontset: iso8859.4-1988,pcf,R,/usr/share/fonts/intlfonts/lt4-16-etl.pcf.gz
+++fontset: iso8859.5-1988,pcf,R,/usr/share/fonts/intlfonts/cyr16-etl.pcf.gz
+++fontset: iso8859.7-1987,pcf,R,/usr/share/fonts/intlfonts/grk16-etl.pcf.gz
+++fontset: iso8859.8-1988,pcf,R,/usr/share/fonts/intlfonts/heb16-etl.pcf.gz
+++fontset: iso8859.9-1989,pcf,R,/usr/share/fonts/intlfonts/lt5-16-etl.pcf.gz
+++fontset: iso8859.10-1992,pcf,R,/usr/share/fonts/misc/8x13-ISO8859-10.pcf.gz
+++fontset: iso8859.13-1998,pcf,R,/usr/share/fonts/misc/8x13-ISO8859-13.pcf.gz
+++fontset: iso8859.14-1998,pcf,R,/usr/share/fonts/misc/8x13-ISO8859-14.pcf.gz
+++fontset: iso8859.15-1999,pcf,R,/usr/share/fonts/misc/8x13-ISO8859-15.pcf.gz
+ +fontset: vt100-graphics,pcf,L,/usr/share/fonts/jfbterm/vt100-graphics.pcf.gz
+-+fontset: iso10646.1,pcf,L,/usr/X11R6/lib/X11/fonts/misc/unifont.pcf.gz
+++fontset: iso10646.1,pcf,L,/usr/share/fonts/unifont/unifont.pcf.gz
+
+ ################################################################################
+ #
+diff -Naur jfbterm-0.4.7.orig/util.h jfbterm-0.4.7/util.h
+--- jfbterm-0.4.7.orig/util.h 2003-09-16 00:45:31.000000000 +0900
++++ jfbterm-0.4.7/util.h 2007-08-18 08:48:49.000000000 +0900
+@@ -31,6 +31,7 @@
+
+ #include <sys/types.h>
+ #include <stdlib.h>
++#include <unistd.h>
+
+ void util_privilege_init();
+ void util_privilege_on();
+@@ -49,4 +50,7 @@
+
+ int util_search_string(const char* s, const char** array);
+
++#define PAGE_SIZE (sysconf(_SC_PAGESIZE))
++#define PAGE_MASK (~(PAGE_SIZE-1))
++
+ #endif /* INCLUDE_UTIL_H */
diff --git a/app-i18n/jfbterm/files/jfbterm-0.4.7-no-kernel-headers.patch b/app-i18n/jfbterm/files/jfbterm-0.4.7-no-kernel-headers.patch
new file mode 100644
index 00000000000..06c6e603348
--- /dev/null
+++ b/app-i18n/jfbterm/files/jfbterm-0.4.7-no-kernel-headers.patch
@@ -0,0 +1,17 @@
+Remove usage of kernel headers, deprecated since linux-headers-2.6.18.
+Patch by Shunichi Fuji <palgowr@gmail.com>.
+
+See bug #156306
+
+--- jfbterm-0.4.7.orig/fbdpsp.c 2003-08-30 03:48:16.000000000 +0900
++++ jfbterm-0.4.7/fbdpsp.c 2006-11-27 01:22:20.000000000 +0900
+@@ -827,8 +827,7 @@
+
+ #ifdef JFB_VGA16FB
+
+-#include <asm/io.h>
+-#include <asm/system.h>
++#include <sys/io.h>
+
+ #define GRAPHICS_ADDR_REG 0x3ce /* Graphics address register. */
+ #define GRAPHICS_DATA_REG 0x3cf /* Graphics data register. */
diff --git a/app-i18n/jfbterm/files/jfbterm-0.4.7-sigchld-debian.patch b/app-i18n/jfbterm/files/jfbterm-0.4.7-sigchld-debian.patch
new file mode 100644
index 00000000000..2e803640077
--- /dev/null
+++ b/app-i18n/jfbterm/files/jfbterm-0.4.7-sigchld-debian.patch
@@ -0,0 +1,22 @@
+--- jfbterm-0.4.7.orig/main.c
++++ jfbterm-0.4.7/main.c
+@@ -184,7 +184,7 @@
+ p->gExecShellArgv = NULL;
+ p->gConfFile = FILE_JFBTERM_CONF;
+ p->gConfEncoding = NULL;
+-
++ signal(SIGCHLD, sigchld);
+ atexit(tapp_final_at_exit);
+ }
+
+--- jfbterm-0.4.7.orig/term.h
++++ jfbterm-0.4.7/term.h
+@@ -44,7 +44,7 @@
+ } TTerm;
+
+ void tterm_start(TTerm* p, const char* tn, const char* en);
+-
++void sigchld(int sig);
+ extern TTerm gTerm;
+
+ #endif /* INCLUDE_TERM_H */
diff --git a/app-i18n/jfbterm/jfbterm-0.4.7-r4.ebuild b/app-i18n/jfbterm/jfbterm-0.4.7-r4.ebuild
new file mode 100644
index 00000000000..a1266429d3f
--- /dev/null
+++ b/app-i18n/jfbterm/jfbterm-0.4.7-r4.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit flag-o-matic eutils autotools
+
+DESCRIPTION="The J Framebuffer Terminal/Multilingual Enhancement with UTF-8 support"
+HOMEPAGE="http://jfbterm.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/${PN}/13501/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 sparc x86"
+IUSE="debug"
+
+DEPEND=">=sys-libs/ncurses-5.6"
+RDEPEND="media-fonts/unifont
+ media-fonts/font-misc-misc
+ media-fonts/intlfonts"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-sigchld-debian.patch"
+ epatch "${FILESDIR}/${P}-no-kernel-headers.patch"
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+
+ eautoreconf
+}
+
+src_compile() {
+ econf $(use_enable debug) || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ dodir /etc /usr/share/fonts/jfbterm
+ emake -j1 DESTDIR="${D}" install || die "emake install failed"
+
+ mv "${D}"/etc/jfbterm.conf{.sample,}
+
+ doman jfbterm.1 jfbterm.conf.5 || die "doman failed"
+
+ dodoc AUTHORS ChangeLog NEWS README* jfbterm.conf.sample* \
+ || die "dodoc failed"
+}
diff --git a/app-i18n/jfbterm/metadata.xml b/app-i18n/jfbterm/metadata.xml
new file mode 100644
index 00000000000..8c34bf4bda6
--- /dev/null
+++ b/app-i18n/jfbterm/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">
+ JFBTERM/ME takes advantages of framebuffer device that is supported
+ since linux kernel 2.2.x (at least on ix86 architecture) and make it
+ enable to display multilingual text on console. Is is developed on
+ ix86 architecture, and it will works on other architectures such as
+ linux/ppc.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge-jp">jfbterm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/kakasi/Manifest b/app-i18n/kakasi/Manifest
new file mode 100644
index 00000000000..c19d7ceda06
--- /dev/null
+++ b/app-i18n/kakasi/Manifest
@@ -0,0 +1 @@
+DIST kakasi-2.3.4.tar.gz 1099258 SHA256 c272560f5c11fe45b011c4e26ada66218fb0109d5582c5876aa49c5e24718534 SHA512 33fa17251ba00163f6d9df208f18c88ff2dfa9891320f1d00fc0c72686bbcc59cf3ccbfb76fa66dfb135a6e942ef4d5d907edc3f1ca9d380c5b7a7d4df090a66 WHIRLPOOL 018eacc55750f22839639248c97888c039b2cd16053f486ce4017080c8462f6aa214f5ac6d18e9a7ec6a00317c54ad8aa666992d889ab96846c680403d1dece3
diff --git a/app-i18n/kakasi/kakasi-2.3.4-r1.ebuild b/app-i18n/kakasi/kakasi-2.3.4-r1.ebuild
new file mode 100644
index 00000000000..c0b6caba099
--- /dev/null
+++ b/app-i18n/kakasi/kakasi-2.3.4-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Converts Japanese text between kanji, kana, and romaji"
+HOMEPAGE="http://kakasi.namazu.org/"
+SRC_URI="http://kakasi.namazu.org/stable/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
+IUSE=""
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ doman doc/kakasi.1
+ dodoc AUTHORS ChangeLog NEWS ONEWS README README-ja THANKS TODO
+ dodoc doc/ChangeLog.lib doc/JISYO doc/README.lib
+}
diff --git a/app-i18n/kakasi/metadata.xml b/app-i18n/kakasi/metadata.xml
new file mode 100644
index 00000000000..2d5852c16c6
--- /dev/null
+++ b/app-i18n/kakasi/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/kanjipad/Manifest b/app-i18n/kanjipad/Manifest
new file mode 100644
index 00000000000..74ae797b8b6
--- /dev/null
+++ b/app-i18n/kanjipad/Manifest
@@ -0,0 +1 @@
+DIST kanjipad-2.0.0.tar.gz 75930 SHA256 28272f61ec09c607a3578e3626e9e4fd43d1d9d1e21cb64328745766d00ee9e1 SHA512 66a38597358f97a9b43c3d1f4a9d6cf583b6158350131bae3b4d47edb167877def8eff4dde666c41549accb54c7256e08403985bb06d56758050a46d5b471ef6 WHIRLPOOL e94dfc8be761ded30eeb09c33c80cd23af99135fc68a890ceb71bdb7508f3a88264cb21f69d93259a1e2101f769cc7114968be856eeafbbcd00f587b743e770f
diff --git a/app-i18n/kanjipad/files/kanjipad-2.0.0-cflags.patch b/app-i18n/kanjipad/files/kanjipad-2.0.0-cflags.patch
new file mode 100644
index 00000000000..b1a6786bf17
--- /dev/null
+++ b/app-i18n/kanjipad/files/kanjipad-2.0.0-cflags.patch
@@ -0,0 +1,19 @@
+diff --git a/Makefile b/Makefile
+index 4869923..0f7509c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,4 +1,4 @@
+-OPTIMIZE=-g -Wall
++OPTIMIZE=-Wall
+ #OPTIMIZE=-O2
+
+ GTKINC=$(shell pkg-config --cflags gtk+-2.0) -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
+@@ -26,7 +26,7 @@ PACKAGE = kanjipad
+ VERSION = 2.0.0
+
+ OBJS = kpengine.o scoring.o util.o
+-CFLAGS = $(OPTIMIZE) $(GTKINC) -DFOR_PILOT_COMPAT -DKP_LIBDIR=\"$(LIBDIR)\" -DBINDIR=\"$(BINDIR)\"
++CFLAGS += $(OPTIMIZE) $(GTKINC) -DFOR_PILOT_COMPAT -DKP_LIBDIR=\"$(LIBDIR)\" -DBINDIR=\"$(BINDIR)\"
+
+ all: kpengine kanjipad jdata.dat
+
diff --git a/app-i18n/kanjipad/files/kanjipad-2.0.0-underlinking.patch b/app-i18n/kanjipad/files/kanjipad-2.0.0-underlinking.patch
new file mode 100644
index 00000000000..26fbcd76511
--- /dev/null
+++ b/app-i18n/kanjipad/files/kanjipad-2.0.0-underlinking.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile b/Makefile
+index 7e67d30..5bf53ba 100644
+--- a/Makefile
++++ b/Makefile
+@@ -40,7 +40,7 @@ kpengine: $(OBJS)
+ $(CC) -o kpengine $(OBJS) $(GLIBLIBS) $(LDFLAGS)
+
+ kanjipad: kanjipad.o padarea.o
+- $(CC) -o kanjipad kanjipad.o padarea.o $(GTKLIBS) $(LDFLAGS)
++ $(CC) -o kanjipad kanjipad.o padarea.o -lm $(GTKLIBS) $(LDFLAGS)
+
+ jdata.dat: jstroke/strokedata.h conv_jdata.pl
+ perl conv_jdata.pl < jstroke/strokedata.h > jdata.dat
diff --git a/app-i18n/kanjipad/kanjipad-2.0.0.ebuild b/app-i18n/kanjipad/kanjipad-2.0.0.ebuild
new file mode 100644
index 00000000000..478fc76a675
--- /dev/null
+++ b/app-i18n/kanjipad/kanjipad-2.0.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Japanese handwriting recognition tool"
+HOMEPAGE="http://fishsoup.net/software/kanjipad/"
+SRC_URI="http://fishsoup.net/software/kanjipad/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 amd64 ppc64"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ dev-libs/glib:2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cflags.patch \
+ "${FILESDIR}"/${P}-underlinking.patch
+}
+
+src_compile() {
+ tc-export CC
+ perl -i -pe "s|PREFIX=/usr/local|PREFIX=/usr|;
+ s|-DG.*DISABLE_DEPRECATED||g" Makefile || die
+
+ emake || die
+}
+
+src_install() {
+ dobin kanjipad kpengine || die
+ insinto /usr/share/kanjipad
+ doins jdata.dat || die
+ dodoc ChangeLog README TODO jstroke/README-kanjipad
+}
diff --git a/app-i18n/kanjipad/metadata.xml b/app-i18n/kanjipad/metadata.xml
new file mode 100644
index 00000000000..2d5852c16c6
--- /dev/null
+++ b/app-i18n/kanjipad/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/kcc/Manifest b/app-i18n/kcc/Manifest
new file mode 100644
index 00000000000..12d1e3d80c0
--- /dev/null
+++ b/app-i18n/kcc/Manifest
@@ -0,0 +1 @@
+DIST kcc.tar.gz 18869 SHA256 4f77ab0bcd7b377bca887973eb364ba5b2f9a0c057fb7e0f9b998f020f57d231 SHA512 2ec1645bb7edbe49c6845cd6e6794568bd48efec367d2d9628ddb8a72d2b5edd590be101f4d9c8856764ae85c9aad7b0adf69601b78fddffdc23235b96f65145 WHIRLPOOL b957057124acaacb61141d26b509ed8b73443b68d8a5f3fb4e498807dcc6f3aa88e120b1467adede86990f85a07776459e7bd0f1224ec8f79b2c1595074ef978
diff --git a/app-i18n/kcc/files/kcc-exit.diff b/app-i18n/kcc/files/kcc-exit.diff
new file mode 100644
index 00000000000..478977a8825
--- /dev/null
+++ b/app-i18n/kcc/files/kcc-exit.diff
@@ -0,0 +1,10 @@
+--- a/kcc.c
++++ b/kcc.c
+@@ -27,6 +27,7 @@
+ #endif
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
diff --git a/app-i18n/kcc/files/kcc-gcc3-gentoo.diff b/app-i18n/kcc/files/kcc-gcc3-gentoo.diff
new file mode 100644
index 00000000000..88f08e20161
--- /dev/null
+++ b/app-i18n/kcc/files/kcc-gcc3-gentoo.diff
@@ -0,0 +1,47 @@
+--- a/kcc.c
++++ b/kcc.c
+@@ -134,7 +134,11 @@
+ extern unsigned short hiragana[];
+ unsigned short *kanatbl = katakana;
+
++#ifdef __STDC__
++void error(char *format, ...);
++#else
+ void error();
++#endif
+
+ /**********************************************************************
+ * *
+@@ -364,14 +368,30 @@
+ NAME
+ error - print formatted error message on stderr and die
+ ---------------------------------------------------------------------*/
++#ifdef __STDC__
++#include <stdarg.h>
++#else
+ #include <varargs.h>
++#endif
+
+-void error(va_alist)
+- va_dcl
++void
++#ifdef __STDC__
++error(char *format, ...)
++#else
++error(va_alist) va_dcl
++#endif
+ {
+ va_list args;
+
++#ifdef __STDC__
++ va_start(args, format);
++#else
++ char *format;
++
+ va_start(args);
++ /* extract the fixed argument */
++ format = va_arg(args, char *);
++#endif
+ fprintf(stderr, "%s: ", progname);
+ vfprintf(stderr, va_arg(args, char *), args);
+ putc('\n', stderr);
diff --git a/app-i18n/kcc/kcc-1.0.ebuild b/app-i18n/kcc/kcc-1.0.ebuild
new file mode 100644
index 00000000000..850711cc64d
--- /dev/null
+++ b/app-i18n/kcc/kcc-1.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A Kanji code converter"
+HOMEPAGE="http://www2s.biglobe.ne.jp/~Nori/ruby/"
+SRC_URI="ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/${PN}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-gcc3-gentoo.diff"
+ epatch "${FILESDIR}/${PN}-exit.diff"
+ sed -i "s:\(-o kcc\):\$(LDFLAGS) \1:" Makefile
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin kcc
+ dodoc README
+ cp -f kcc.jman kcc.1 || die
+ doman -i18n=ja kcc.1
+}
diff --git a/app-i18n/kcc/metadata.xml b/app-i18n/kcc/metadata.xml
new file mode 100644
index 00000000000..cb36a2fd8c7
--- /dev/null
+++ b/app-i18n/kcc/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/kcm-fcitx/Manifest b/app-i18n/kcm-fcitx/Manifest
new file mode 100644
index 00000000000..54f743a503a
--- /dev/null
+++ b/app-i18n/kcm-fcitx/Manifest
@@ -0,0 +1,3 @@
+DIST kcm-fcitx-0.4.2.tar.xz 63796 SHA256 f681c1a4172b74a63c36094f860eff4ea778422e1062b00fd03509eda745ed66 SHA512 51ccc5b03f076e73cda7852b1bb1598e56114fe1a7733f3eb0a731c0249cbaa2ac7f4c27115929d236cc94a3f131fc790933cddff624387d050fecf3e170842e WHIRLPOOL 6c0f3e4d345c7570ee519878c141ba2f708c85e0dc8a171058af291e6a02b48cdd3965335b9eb766f9a149b31d5fccc0334f8bb7352eb978625367af064e6b17
+DIST kcm-fcitx-0.4.3.tar.xz 56864 SHA256 b7e9ad4569c0940f9654d58de1f13281fcbcab56febbd346951edcfa0a86e208 SHA512 d311699a5d99f75d353899b7fba0a950491ee8b891724b855033449900ec4b3db9408bb1b80e60ceb0dbb0ce91072162062261a497f83a2a683214b71c3f4713 WHIRLPOOL 04aec049436a120362d02ba900a0d8639feb359b4cc6b99a871c7ffa8d9660270c321828b8660c718890a7f0ea308ea584711ed712762aab712fe8d7e72a205a
+DIST kcm-fcitx-0.5.0.tar.xz 55964 SHA256 079b309aea4b354d081d45d3dde6d754b24717eb7653344055633453cb328b33 SHA512 219b962c4b6f1763b389dc20d22a671d960a884f5c3f0faddbd4919b61dd6d93e600cbf440b15bc42f63cb383ed5ca65e657fa835c520196c8bd9d64a160baa3 WHIRLPOOL df9db7b5198130409986c4805a7771b6df4bd44d532071499ec6eb522af7bfdd9d576fbdf3664720e47a02a57e35409c69fff962152423ac59bab71d8c1e0947
diff --git a/app-i18n/kcm-fcitx/kcm-fcitx-0.4.2.ebuild b/app-i18n/kcm-fcitx/kcm-fcitx-0.4.2.ebuild
new file mode 100644
index 00000000000..34b95e949f3
--- /dev/null
+++ b/app-i18n/kcm-fcitx/kcm-fcitx-0.4.2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit kde4-base
+
+DESCRIPTION="KDE configuration module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7[qt4]
+ x11-libs/libxkbfile"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
diff --git a/app-i18n/kcm-fcitx/kcm-fcitx-0.4.3.ebuild b/app-i18n/kcm-fcitx/kcm-fcitx-0.4.3.ebuild
new file mode 100644
index 00000000000..24407d44be6
--- /dev/null
+++ b/app-i18n/kcm-fcitx/kcm-fcitx-0.4.3.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit kde4-base
+
+DESCRIPTION="KDE configuration module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8[qt4]
+ x11-libs/libxkbfile"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
diff --git a/app-i18n/kcm-fcitx/kcm-fcitx-0.5.0.ebuild b/app-i18n/kcm-fcitx/kcm-fcitx-0.5.0.ebuild
new file mode 100644
index 00000000000..283188e82b5
--- /dev/null
+++ b/app-i18n/kcm-fcitx/kcm-fcitx-0.5.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit kde5
+
+DESCRIPTION="KDE configuration module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="5"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ app-i18n/fcitx-qt5
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ $(add_frameworks_dep extra-cmake-modules)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kcmutils)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemviews)
+ $(add_frameworks_dep knewstuff)
+ $(add_frameworks_dep kwidgetsaddons)
+ sys-devel/gettext
+ x11-libs/libxkbfile"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ # po directory is empty, making the build fail
+ comment_add_subdirectory po
+}
diff --git a/app-i18n/kcm-fcitx/metadata.xml b/app-i18n/kcm-fcitx/metadata.xml
new file mode 100644
index 00000000000..cb36a2fd8c7
--- /dev/null
+++ b/app-i18n/kcm-fcitx/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/kde-l10n-scripts/kde-l10n-scripts-9999.ebuild b/app-i18n/kde-l10n-scripts/kde-l10n-scripts-9999.ebuild
new file mode 100644
index 00000000000..e3fc376d2aa
--- /dev/null
+++ b/app-i18n/kde-l10n-scripts/kde-l10n-scripts-9999.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+EGIT_REPO_URI="git://github.com/vpelcak/kde-scripts.git"
+[[ ${PV} == 9999 ]] && inherit git-2
+
+DESCRIPTION="Set of scripts to manage KDE translation files"
+HOMEPAGE="https://github.com/vpelcak/kde-scripts"
+[[ ${PV} == 9999 ]] || SRC_URI=""
+
+LICENSE="LGPL-3"
+SLOT="0"
+[[ ${PV} == 9999 ]] || \
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ app-crypt/md5deep
+ app-i18n/pology
+ app-shells/bash:*
+ dev-vcs/subversion
+ kde-apps/poxml[extras]
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e "s:/usr/local:/usr:" \
+ Makefile || die
+}
diff --git a/app-i18n/kde-l10n-scripts/metadata.xml b/app-i18n/kde-l10n-scripts/metadata.xml
new file mode 100644
index 00000000000..c8d8de0993a
--- /dev/null
+++ b/app-i18n/kde-l10n-scripts/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>scarabeus@gentoo.org</email>
+ <name>Tom叩邸 Chv叩tal</name>
+ </maintainer>
+ <herd>kde</herd>
+ <upstream>
+ <remote-id type="github">vpelcak/kde-scripts</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/kimera/Manifest b/app-i18n/kimera/Manifest
new file mode 100644
index 00000000000..99c8bf06023
--- /dev/null
+++ b/app-i18n/kimera/Manifest
@@ -0,0 +1 @@
+DIST kimera-2.11.tar.gz 106010 SHA256 4c3ccb532be1d50fa37963a0f0dfa661d92c9c13fcf618c17c9c5dbd66217d98 SHA512 b03ca2a665010e2d63100e367c42ebf1b1e68178093b78955bbeb5a73ebb6305f4292f925494e484edd574836ce66375f74766bd43445901c388e8db8d3a8e5b WHIRLPOOL 826f753c8370e4656e2cc500b02b37e17906fc08402eb0f023b4b3ea7d73fe69b65fc96685cb7cf17143713f4294ad3618e5118d4cae82359e253afdb33b19c7
diff --git a/app-i18n/kimera/files/kimera-2.11-underlinking.patch b/app-i18n/kimera/files/kimera-2.11-underlinking.patch
new file mode 100644
index 00000000000..dab4b63e7c1
--- /dev/null
+++ b/app-i18n/kimera/files/kimera-2.11-underlinking.patch
@@ -0,0 +1,13 @@
+diff --git a/kimera.pro b/kimera.pro
+index 0d4f0be..a2b63da 100644
+--- a/kimera.pro
++++ b/kimera.pro
+@@ -90,7 +90,7 @@ SOURCES = \
+ isEmpty( no_anthy ) {
+ HEADERS += src/anthyengine.h
+ SOURCES += src/anthyengine.cpp
+-# LIBS += -ldl
++ LIBS += $$QMAKE_LIBS_DYNLOAD
+ isEmpty( default_kanjiengine ) {
+ default_kanjiengine = Anthy
+ }
diff --git a/app-i18n/kimera/kimera-2.11-r1.ebuild b/app-i18n/kimera/kimera-2.11-r1.ebuild
new file mode 100644
index 00000000000..f4dd8e3d39e
--- /dev/null
+++ b/app-i18n/kimera/kimera-2.11-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+inherit qt4-r2 eutils multilib
+
+DESCRIPTION="A Japanese input method which supports the XIM protocol"
+SRC_URI="mirror://sourceforge.jp/kimera/37271/${P}.tar.gz"
+HOMEPAGE="http://kimera.sourceforge.jp/"
+
+SLOT="0"
+LICENSE="GPL-3"
+KEYWORDS="amd64 x86"
+IUSE="+anthy"
+
+DEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qt3support:4
+ anthy? ( app-i18n/anthy )
+ !anthy? ( app-i18n/canna )"
+RDEPEND="${DEPEND}"
+
+DOCS="AUTHORS README*"
+
+src_configure() {
+ local myconf="target.path=/usr/$(get_libdir)/${P}"
+ use anthy || myconf="${myconf} no_anthy=1"
+ eqmake4 kimera.pro ${myconf}
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-underlinking.patch
+}
diff --git a/app-i18n/kimera/metadata.xml b/app-i18n/kimera/metadata.xml
new file mode 100644
index 00000000000..62f7c5a6079
--- /dev/null
+++ b/app-i18n/kimera/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription>
+Kimera is a Qt-based Japanese input method bridge.
+Currently it supports Canna and Anthy.
+</longdescription>
+ <use>
+ <flag name="anthy">Support for Anthy input method</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge-jp">kimera</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/kinput2/Manifest b/app-i18n/kinput2/Manifest
new file mode 100644
index 00000000000..fac30f30861
--- /dev/null
+++ b/app-i18n/kinput2/Manifest
@@ -0,0 +1 @@
+DIST kinput2-v3.1.tar.gz 512177 SHA256 2815c35181f9e9b866fb6e7f3d9bb8814b98312aad703ce5c7560d449eb60a9a SHA512 5950f7294fa2bf915e6591290a3deb2c95f27706f3a180a084d14fbc008f3cf363b155b29c8103a8b999e44ae98182ff35bcfda85725b2c565f3e37f54788731 WHIRLPOOL 620c7d619c9f2c9ba0b51b6a544f59be357598687d79888da30ff75ff9a85288cff08d208764d2918852f0233e6dabf26ad37bfa5a5db3b225fae8a0c72b9add
diff --git a/app-i18n/kinput2/files/kinput2-3.1-r1-gentoo.diff b/app-i18n/kinput2/files/kinput2-3.1-r1-gentoo.diff
new file mode 100644
index 00000000000..d4c03d527c4
--- /dev/null
+++ b/app-i18n/kinput2/files/kinput2-3.1-r1-gentoo.diff
@@ -0,0 +1,125 @@
+diff -Naur kinput2-v3.1.orig/Kinput2.conf kinput2-v3.1/Kinput2.conf
+--- kinput2-v3.1.orig/Kinput2.conf 2002-10-03 18:35:26.000000000 +0900
++++ kinput2-v3.1/Kinput2.conf 2003-08-13 15:51:21.000000000 +0900
+@@ -17,8 +17,8 @@
+
+ /* #define UseWnn */ /* define if you are going to use Wnn (v4, v6 or v7) */
+ /* #define UseWnn6 */ /* define if you are going to use Wnn6 or above */
+-#define UseCanna /* define if you are going to use Canna */
+-#define UseSj3 /* define if you are going to use Sj3 */
++/* #define UseCanna */ /* define if you are going to use Canna */
++/* #define UseSj3 */ /* define if you are going to use Sj3 */
+ /* #define UseAtok */ /* define if you are going to use Atok */
+
+
+@@ -34,7 +34,7 @@
+ * You have to define WnnLibDir if Wnn4 configuration files
+ * are not installed in /usr/local/lib/wnn (which is the default).
+ */
+-/* #define WnnLibDir /some/peculiar/directory/wnn */
++#define WnnLibDir /usr/lib/wnn
+
+ /* for convenience.. */
+ #if defined(UseWnn6) && !defined(UseWnn)
+@@ -52,17 +52,17 @@
+ * WnnLibDir above.
+ */
+ XCOMM use installed header files
+-XCOMM WNNINCDIR = /usr/X11R6/include/wnn
++WNNINCDIR = /usr/include/wnn
+ XCOMM use installed library
+-XCOMM WNNLIB = -lwnn
++WNNLIB = -lwnn
+
+ /*
+ * Or, use library in the source tree..
+ */
+ XCOMM use library in the source tree
+-WNNSRC = $(CONTRIBSRC)/programs/Xsi/Wnn
+-WNNINCDIR = $(WNNSRC)/include
+-WNNLIB = $(WNNSRC)/jlib/libwnn.a
++XCOMM WNNSRC = $(CONTRIBSRC)/programs/Xsi/Wnn
++XCOMM WNNINCDIR = $(WNNSRC)/include
++XCOMM WNNLIB = $(WNNSRC)/jlib/libwnn.a
+
+
+ XCOMM Canna configuration
+@@ -78,17 +78,17 @@
+ * If you have already installed Canna header files and libraries..
+ */
+ XCOMM use installed headers/libraries
+-XCOMM CANNAINSTDIR = /usr/local/canna
+-XCOMM CANNASRC = $(CANNAINSTDIR)/include
+-XCOMM CANNALIB = -lcanna16
++CANNAINSTDIR = /usr
++CANNASRC = $(CANNAINSTDIR)/include
++CANNALIB = -lcanna16
+
+ /*
+ * If you have compiled Canna that came with X11R6 (contrib/programs/Canna),
+ * but not installed yet..
+ */
+ XCOMM use headers/libraries in the source tree
+-CANNASRC = $(CONTRIBSRC)/programs/Canna32
+-CANNALIB = -L$(CANNASRC)/lib/canna16 -lcanna16
++XCOMM CANNASRC = $(CONTRIBSRC)/programs/Canna32
++XCOMM CANNALIB = -L$(CANNASRC)/lib/canna16 -lcanna16
+
+
+ XCOMM SJ3 configuration
+@@ -100,7 +100,7 @@
+ * definition files are to be installed
+ */
+
+-SJ3DEF_DIR = $(LIBDIR)/sj3def
++XCOMM SJ3DEF_DIR = $(LIBDIR)/sj3def
+
+ /*
+ * If you have installed SJ3 library and header file,
+@@ -117,8 +117,8 @@
+ * Use compiled library in the source tree..
+ */
+ XCOMM use library in the source tree
+-SJ3SRC = $(CONTRIBSRC)/programs/sj3
+-SJ3LIB = $(SJ3SRC)/sj3lib/libsj3lib.a
++XCOMM SJ3SRC = $(CONTRIBSRC)/programs/sj3
++XCOMM SJ3LIB = $(SJ3SRC)/sj3lib/libsj3lib.a
+
+
+ XCOMM Atok configuration
+@@ -133,8 +133,8 @@
+ */
+ XCOMM use installed headers/libraries
+ XCOMM ATOKINCDIR = /usr/include/atok
+-XCOMM ATOKLIBDIR = /usr/jp/lib
+-ATOKLIB = -latok12n -latok12util
++XCOMM ATOKLIBDIR = /var/lib/atok
++XCOMM ATOKLIB = -latok12n -latok12util
+
+
+ /**
+diff -Naur kinput2-v3.1.orig/cmd/kinput2.c kinput2-v3.1/cmd/kinput2.c
+--- kinput2-v3.1.orig/cmd/kinput2.c 2002-10-03 18:35:26.000000000 +0900
++++ kinput2-v3.1/cmd/kinput2.c 2003-08-13 15:51:21.000000000 +0900
+@@ -644,3 +644,8 @@
+ return n;
+ }
+ #endif
++
++#if defined(linux) && defined(PPC)
++/* avoid nusty gcc bug */
++void _XtInherit() {}
++#endif
+diff -Naur kinput2-v3.1.orig/lib/imlib/imconv.c kinput2-v3.1/lib/imlib/imconv.c
+--- kinput2-v3.1.orig/lib/imlib/imconv.c 2002-10-03 18:35:30.000000000 +0900
++++ kinput2-v3.1/lib/imlib/imconv.c 2003-08-13 15:55:54.000000000 +0900
+@@ -591,6 +591,9 @@
+ }
+ }
+ IMFinishRequest(conn, offset);
++ #ifdef STATUS_SYNC
++ IMFlush(conn);
++ #endif /* STATUS_SYNC */
+ }
+
+ /*- preeditCaret: do actual preedit caret -*/
diff --git a/app-i18n/kinput2/files/xinput-kinput2 b/app-i18n/kinput2/files/xinput-kinput2
new file mode 100644
index 00000000000..16de07ca4f7
--- /dev/null
+++ b/app-i18n/kinput2/files/xinput-kinput2
@@ -0,0 +1,5 @@
+XIM=kinput2
+XIM_PROGRAM=@EPREFIX@/usr/bin/kinput2
+XIM_ARGS="-@SERVER@ +kinput -xim"
+GTK_IM_MODULE=xim
+QT_IM_MODULE=xim
diff --git a/app-i18n/kinput2/kinput2-3.1-r1.ebuild b/app-i18n/kinput2/kinput2-3.1-r1.ebuild
new file mode 100644
index 00000000000..c83c9efc8ca
--- /dev/null
+++ b/app-i18n/kinput2/kinput2-3.1-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+MY_P="${PN}-v${PV}"
+DESCRIPTION="A Japanese input server which supports the XIM protocol"
+HOMEPAGE="http://www.nec.co.jp/canna/"
+SRC_URI="ftp://ftp.sra.co.jp/pub/x11/${PN}/${MY_P}.tar.gz"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="x86 ppc sparc amd64 ppc64"
+IUSE="freewnn"
+
+RDEPEND="freewnn? ( >=app-i18n/freewnn-1.1.1_alpha19 )
+ !freewnn? ( >=app-i18n/canna-3.5_beta2-r1 )
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXmu
+ x11-libs/libXp
+ x11-libs/libXt"
+
+DEPEND="${RDEPEND}
+ x11-misc/gccmakedep
+ x11-misc/imake
+ app-text/rman"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ local mysed=""
+
+ unpack ${A}
+ epatch "${FILESDIR}/${PF}-gentoo.diff"
+
+ if use freewnn; then
+ sed -i -e '/\/\* #define UseWnn/s:^:#define UseWnn\n:' "${S}/Kinput2.conf"
+ else
+ sed -i -e '/\/\* #define UseCanna/s:^:#define UseCanna\n:' "${S}/Kinput2.conf"
+ fi
+}
+
+src_compile() {
+ xmkmf -a || die
+ emake \
+ XAPPLOADDIR="/usr/share/X11/app-defaults/" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" \
+ || die
+}
+
+src_install() {
+ emake XAPPLOADDIR="/usr/share/X11/app-defaults/" DESTDIR="${D}" install || die
+ rm -rf "${D}/usr/lib/X11"
+
+ dodoc README NEWS doc/*
+ newman cmd/${PN}.man ${PN}.1
+}
diff --git a/app-i18n/kinput2/kinput2-3.1-r2.ebuild b/app-i18n/kinput2/kinput2-3.1-r2.ebuild
new file mode 100644
index 00000000000..86aae3e9275
--- /dev/null
+++ b/app-i18n/kinput2/kinput2-3.1-r2.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit eutils
+
+MY_P="${PN}-v${PV}"
+DESCRIPTION="A Japanese input server which supports the XIM protocol"
+HOMEPAGE="http://www.nec.co.jp/canna/"
+SRC_URI="ftp://ftp.sra.co.jp/pub/x11/${PN}/${MY_P}.tar.gz"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86"
+IUSE="freewnn"
+
+RDEPEND="freewnn? ( >=app-i18n/freewnn-1.1.1_alpha19 )
+ !freewnn? ( >=app-i18n/canna-3.5_beta2-r1 )
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXmu
+ x11-libs/libXp
+ x11-libs/libXt"
+
+DEPEND="${RDEPEND}
+ x11-misc/gccmakedep
+ x11-misc/imake
+ app-text/rman"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-r1-gentoo.diff"
+
+ if use freewnn; then
+ sed -i -e '/\/\* #define UseWnn/s:^:#define UseWnn\n:' Kinput2.conf || die
+ else
+ sed -i -e '/\/\* #define UseCanna/s:^:#define UseCanna\n:' Kinput2.conf || die
+ fi
+}
+
+src_configure() {
+ xmkmf -a || die
+}
+
+src_compile() {
+ emake \
+ XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults/" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" \
+ || die
+}
+
+src_install() {
+ emake XAPPLOADDIR="/usr/share/X11/app-defaults/" DESTDIR="${D}" install || die
+ rm -rf "${ED}/usr/lib/X11" || die
+
+ local server
+ if use freewnn; then
+ server="wnn"
+ else
+ server="canna"
+ fi
+
+ insinto /etc/X11/xinit/xinput.d
+ sed \
+ -e "s:@EPREFIX@:${EPREFIX}:g" \
+ -e "s:@SERVER@:${server}:g" \
+ "${FILESDIR}/xinput-kinput2" > "${T}/kinput2.conf" || die
+ doins "${T}/kinput2.conf" || die
+
+ dodoc README NEWS doc/* || die
+ newman cmd/${PN}.man ${PN}.1 || die
+}
diff --git a/app-i18n/kinput2/metadata.xml b/app-i18n/kinput2/metadata.xml
new file mode 100644
index 00000000000..2d5852c16c6
--- /dev/null
+++ b/app-i18n/kinput2/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/libcangjie/Manifest b/app-i18n/libcangjie/Manifest
new file mode 100644
index 00000000000..0e05223dc7a
--- /dev/null
+++ b/app-i18n/libcangjie/Manifest
@@ -0,0 +1,2 @@
+DIST libcangjie-1.1.tar.xz 573924 SHA256 2909722abb9d85e83ad43c8ebd555d057c079014eb8e883c8d0f69b72d23031a SHA512 99c2dd055830bbaf6e2ef26cc285dd3edec780561af0799b450cc2fa44c8590217bbf38cd3d087c01cca1b467c7fff722c548b83fcb7c9177cd7c681a22f2901 WHIRLPOOL 9f5c72769dff9a09231ae3209b53e3427ad4e2b92a0143f4c43803624540038d4e58505b7bdc417e70f7bb53edcc11cdea31f8a2ecc5eadc578223cbf6bb3380
+DIST libcangjie-1.3.tar.xz 575240 SHA256 f4b9a0cf8673f49adb22b675992360799d66eb8d5bce2bd603358de78509d30b SHA512 216ad965cb265d700cc94e6b7892dd9a7d814eba364b7700870b7e704d17d8dc75be4c7af0a7a7fc0088a32e389e62822a05d089f1df714c5ffd347ece8b9f35 WHIRLPOOL 6f83df0dc10630f52ecbab5178c520dabcb19511fcac673484512193eeb5542d8d7daea1b5671f856f2898d4c6d97f1cc3125bc90c3567bfba46fe5da214fa0c
diff --git a/app-i18n/libcangjie/libcangjie-1.1.ebuild b/app-i18n/libcangjie/libcangjie-1.1.ebuild
new file mode 100644
index 00000000000..9604ed7dc1f
--- /dev/null
+++ b/app-i18n/libcangjie/libcangjie-1.1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="The library implementing the Cangjie input method"
+HOMEPAGE="http://cangjians.github.io"
+SRC_URI="http://cangjians.github.io/downloads/libcangjie/libcangjie-${PV}.tar.xz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-db/sqlite:3="
+
+RDEPEND="${DEPEND}"
diff --git a/app-i18n/libcangjie/libcangjie-1.3.ebuild b/app-i18n/libcangjie/libcangjie-1.3.ebuild
new file mode 100644
index 00000000000..f7afc0e582d
--- /dev/null
+++ b/app-i18n/libcangjie/libcangjie-1.3.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="The library implementing the Cangjie input method"
+HOMEPAGE="http://cangjians.github.io"
+SRC_URI="https://github.com/Cangjians/libcangjie/releases/download/v${PV}/libcangjie-${PV}.tar.xz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-db/sqlite:3="
+
+RDEPEND="${DEPEND}"
diff --git a/app-i18n/libcangjie/metadata.xml b/app-i18n/libcangjie/metadata.xml
new file mode 100644
index 00000000000..bab0395fc92
--- /dev/null
+++ b/app-i18n/libcangjie/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>brendan@horan.hk</email>
+ <name>Brendan Horan</name>
+ <description>Proxy - Maintainer. Assign bugs to him</description>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Cangjians/libcangjie</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/libguess/Manifest b/app-i18n/libguess/Manifest
new file mode 100644
index 00000000000..c63be4fc037
--- /dev/null
+++ b/app-i18n/libguess/Manifest
@@ -0,0 +1,2 @@
+DIST libguess-1.1.tar.bz2 79915 SHA256 733e4782817666f108d6e8fd5c117e36a006779e049866b6814a8bce9b4d5af7 SHA512 8f817da7f05ff53886395183134d3dae40b2d31bf2296f1614c08d87d68b389e18dbaf9327d9c31cf5d4fff04a89edc6af2476d3a92384c57d6d2b0147525084 WHIRLPOOL 3c2a00e8512aade473252b5a918d74e88213bfc2ff120944a306ca4cdb2b9d4af074eadfb584f82cbb41b75a7d98f1ab24468759573265b8d2f4a5e84238da69
+DIST libguess-1.2.tar.bz2 79685 SHA256 8019a16bdc7ca9d2efbdcc1429d48d033d5053d42e45fccea10abf98074f05f8 SHA512 a17269e42e12b81e0201a27e41d9e290ac7351000473ddfcb968d5fc6e09cb5753d0534277ec257d43224cb675c8d563849853ab68ab6079a35480d6c40fb053 WHIRLPOOL 13214225ce44ec8f5f717eef3dbf402a5522a4de835bffd3d12607c16f2187d14bf0f7e6cea0e94d7a4c7142422170085a268ad30538b50186e278d11264fb6a
diff --git a/app-i18n/libguess/libguess-1.1.ebuild b/app-i18n/libguess/libguess-1.1.ebuild
new file mode 100644
index 00000000000..3be3a3f4f8c
--- /dev/null
+++ b/app-i18n/libguess/libguess-1.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+DESCRIPTION="A high-speed character set detection library"
+HOMEPAGE="http://www.atheme.org/project/libguess"
+SRC_URI="http://distfiles.atheme.org/${P}.tar.bz2"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ~ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="examples"
+
+RDEPEND="
+ >=dev-libs/libmowgli-0.7.0:0"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_configure() {
+ econf $(use_enable examples) \
+ || die "econf failed"
+}
+
+src_test() {
+ cd src/tests
+ make || die "test failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README
+}
diff --git a/app-i18n/libguess/libguess-1.2.ebuild b/app-i18n/libguess/libguess-1.2.ebuild
new file mode 100644
index 00000000000..4d1c2337d4d
--- /dev/null
+++ b/app-i18n/libguess/libguess-1.2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="A high-speed character set detection library"
+HOMEPAGE="http://www.atheme.org/project/libguess"
+SRC_URI="http://rabbit.dereferenced.org/~nenolod/distfiles/${P}.tar.bz2"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="examples"
+
+RDEPEND="
+ >=dev-libs/libmowgli-0.7.0:0"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_configure() {
+ econf $(use_enable examples) \
+ || die "econf failed"
+}
+
+src_test() {
+ cd src/tests
+ make || die "test failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README
+}
diff --git a/app-i18n/libguess/metadata.xml b/app-i18n/libguess/metadata.xml
new file mode 100644
index 00000000000..7803cdb5825
--- /dev/null
+++ b/app-i18n/libguess/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/libhangul/Manifest b/app-i18n/libhangul/Manifest
new file mode 100644
index 00000000000..be1d718c73a
--- /dev/null
+++ b/app-i18n/libhangul/Manifest
@@ -0,0 +1,2 @@
+DIST libhangul-0.0.12.tar.gz 2879381 SHA256 97b5ffbb9df2ddeb7ba5890824555236ed3db8bf7b78456ca7fe538bc63027c8 SHA512 5d7b84e5872fb89f7ad5f8c1a813aa6e650929eca821cf0e2b0ad831dac541f1108dd1290aa17b6dc738c40088f75ee1d1fb969f6c11ad09222c817ce50b8ade WHIRLPOOL 5727e578557e70647d2da08163dc9701a19e167cbe52ccde97f6721add6ee7d7843165f07d9a6a8049c77b15e7610e1e659d6428d7f71680354d99ae7a7a10cb
+DIST libhangul-0.1.0.tar.gz 2899845 SHA256 5905aa5c557d8d46e190fec1afdd75babf3bc086ef286b42007572703658295a SHA512 cf84850bf7a41e743457300513c5efdf7b3e18d168f4fdc324aaa8e1be78743752fcb98385764f94c707777ab82cc9444e076808e61fdbd915c9c0d7ea93c534 WHIRLPOOL 898c355f587d2943dc9044ffb46a4e4215922a8e2a7c6c36853927e924efb7e47f88ad46741fbb70a1d68547872f2a3db77926cfe9c78ed6171095cd0a466f28
diff --git a/app-i18n/libhangul/libhangul-0.0.12.ebuild b/app-i18n/libhangul/libhangul-0.0.12.ebuild
new file mode 100644
index 00000000000..00facf07994
--- /dev/null
+++ b/app-i18n/libhangul/libhangul-0.0.12.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+DESCRIPTION="libhangul is a generalized and portable library for processing hangul"
+HOMEPAGE="http://kldp.net/projects/hangul/"
+SRC_URI="http://kldp.net/frs/download.php/5855/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE="nls static-libs test"
+
+RDEPEND="nls? ( virtual/libintl )"
+DEPEND="nls? ( sys-devel/gettext )
+ virtual/pkgconfig
+ test? ( dev-libs/check )"
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable static-libs static) || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/libhangul/libhangul-0.1.0.ebuild b/app-i18n/libhangul/libhangul-0.1.0.ebuild
new file mode 100644
index 00000000000..f149e3b4e60
--- /dev/null
+++ b/app-i18n/libhangul/libhangul-0.1.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="libhangul is a generalized and portable library for processing hangul"
+HOMEPAGE="http://code.google.com/p/libhangul/"
+SRC_URI="http://libhangul.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 x86"
+IUSE="nls static-libs test"
+
+RDEPEND="nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ test? ( dev-libs/check )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ rm -f "${ED}"/usr/lib*/libhangul.la
+}
diff --git a/app-i18n/libhangul/metadata.xml b/app-i18n/libhangul/metadata.xml
new file mode 100644
index 00000000000..7264771eb8f
--- /dev/null
+++ b/app-i18n/libhangul/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">libhangul</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/libpinyin/Manifest b/app-i18n/libpinyin/Manifest
new file mode 100644
index 00000000000..e9feef4e742
--- /dev/null
+++ b/app-i18n/libpinyin/Manifest
@@ -0,0 +1,4 @@
+DIST libpinyin-0.8.0.tar 2682880 SHA256 42fdb08a880a8c42a25712267463704f988293e0bec20871a306022aefb08290 SHA512 762686b9e2fc95e8071832735764c54cb6252fa40bd5d3eb1e15445a267795b775288cef41f671bf4680f13c0a8b44377b12696ade832b80684300e1dd8787a0 WHIRLPOOL 0be6445e6e39c2f8f9124d0f549d11421092364d55c9345f2862f465ba78044b01df9e338acba055818a7d735e0c41e8e71b3f2f03830a14dd196a9dfe2c9107
+DIST libpinyin-1.0.0.tar 2744320 SHA256 ba72c5a71f373771086198b844470d7384cb25b293f962212b02f8f4d718e40c SHA512 577d6d3d3e647a4a5047e3fc019d0e5b7778f49a229eabbf71da9ea73f6d8b935e6ca673698ddfb7d677e1634e05fb2dd0d3811f7b64e7b1184504160af42b87 WHIRLPOOL ad0b975b17010bcb5481eb3aa7304880fe97a682c8fcd0944a9070cf5148130c90714205fb16c440476667876b9f30834eaeec0ec6ef948a5dd59a1bf8a10454
+DIST model.text.tar.gz 10285854 SHA256 a4924c5b5923c3ff9ce55456a417486d07d3b2f7afc194f4338a1221fe36b533 SHA512 d3f137c7de0f357950abbb1e00c0f5d62fb5b4b0ea9f3a6dff29bf6bb2e4f5293319321abf1bad88742868563f65d74f0226f433ba4bcfdfe2c23fef6fea7c74 WHIRLPOOL fd1d637cfcecbbbd7506d15fd107106e578013aa9ca4c0be1aab110fb49ebcb2dbf1493953349e7cf7b0a8a5a0c2c216d993278d8ae78b42f5c703363b4efe60
+DIST model7.text.tar.gz 19666966 SHA256 c9a3c38e6439302603b5c3772ea9dae280b4ef46bd6e8762ed40452dc400af78 SHA512 74a56a23cdca24124037f688ed85a921089155a1b9a0b61e646f805b2bb698c56682c5d6a47ff86657c8b131a831dbee9d5cc5165d4c1f235b77fcd5b2e480ad WHIRLPOOL 5285398bb6bd431caa3449b9540a1c08dad785456d9152fc44f6303866891de5538da4c5945eb8e8a0b64a081a58e7e6d25caacd05e2e3a7219e4335f0414986
diff --git a/app-i18n/libpinyin/libpinyin-0.8.0.ebuild b/app-i18n/libpinyin/libpinyin-0.8.0.ebuild
new file mode 100644
index 00000000000..534625a3cca
--- /dev/null
+++ b/app-i18n/libpinyin/libpinyin-0.8.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="Library for Chinese pinyin input methods"
+HOMEPAGE="https://github.com/libpinyin/libpinyin"
+SRC_URI="mirror://github/${PN}/${PN}/${PN}-lite-${PV}.tar.gz -> ${P}.tar
+ mirror://github/${PN}/${PN}/model.text.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND="=sys-libs/db-4*
+ dev-libs/glib:2"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_prepare() {
+ ln -s "${DISTDIR}"/model.text.tar.gz data || die
+ sed -e '/wget/d' -i data/Makefile.am || die
+ epatch_user
+ eautoreconf
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/app-i18n/libpinyin/libpinyin-1.0.0.ebuild b/app-i18n/libpinyin/libpinyin-1.0.0.ebuild
new file mode 100644
index 00000000000..dfaa3a58e4d
--- /dev/null
+++ b/app-i18n/libpinyin/libpinyin-1.0.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils
+
+MODELV=7
+
+DESCRIPTION="Library for Chinese pinyin input methods"
+HOMEPAGE="https://github.com/libpinyin/libpinyin"
+SRC_URI="mirror://sourceforge/${PN}/${PN}/${PN}-lite-${PV}.tar.gz -> ${P}.tar
+ mirror://sourceforge/${PN}/models/model${MODELV}.text.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm64 ~ppc ppc64 x86"
+IUSE=""
+
+RDEPEND="=sys-libs/db-4*
+ dev-libs/glib:2"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_prepare() {
+ ln -s "${DISTDIR}"/model${MODELV}.text.tar.gz data || die
+ sed -e '/wget/d' -i data/Makefile.am || die
+ epatch_user
+ eautoreconf
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/app-i18n/libpinyin/metadata.xml b/app-i18n/libpinyin/metadata.xml
new file mode 100644
index 00000000000..de511148539
--- /dev/null
+++ b/app-i18n/libpinyin/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="github">libpinyin/libpinyin</remote-id>
+ <remote-id type="sourceforge">libpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/librime/Manifest b/app-i18n/librime/Manifest
new file mode 100644
index 00000000000..4d07fbcad05
--- /dev/null
+++ b/app-i18n/librime/Manifest
@@ -0,0 +1,2 @@
+DIST librime-0.9.9.tar.gz 2548968 SHA256 e828acc853a5d9e3ca191d065112c410183aadb5bd1d021704f82a8644ff6fd8 SHA512 71b39e713d5bbb73441dfb3038be6dc04518d2169df336e7fcb19b4c3b19a48d7db7c230fb1107148f3b7d95342851d23569617ff8138200c7ef1d750060c00f WHIRLPOOL fb5798491352eb1682a2bed7a73486df153a2479eef0adadc00726ab958b50606e32d59bfa8ded86c3aa35bac5e120e4251903fcb54326936251f1f3af726f92
+DIST librime-1.2.tar.gz 5199581 SHA256 fb04a7e0a4eeb2f25031c9a366cedfdab641ab06960f50c42febef5195de9381 SHA512 75a771916a58b1ab678dbf05ac074a651cea077e81d25e4dfd0ea839fabe6cf606135851e72c19d6a8a9c6ed66b89928b90785f282e8786c375bc1d393059227 WHIRLPOOL 44a821fc4e1a562cb01ce7c28efc5a4fd3ca8e9d2d4e55ddda3434b677a17b59d7114a634bfd95ae53072f0e6f2e5f027b2c81ab70fa51b011934c7c39fbcf51
diff --git a/app-i18n/librime/files/librime-1.1-BOOST_NO_SCOPED_ENUMS.patch b/app-i18n/librime/files/librime-1.1-BOOST_NO_SCOPED_ENUMS.patch
new file mode 100644
index 00000000000..3f33efdcdda
--- /dev/null
+++ b/app-i18n/librime/files/librime-1.1-BOOST_NO_SCOPED_ENUMS.patch
@@ -0,0 +1,224 @@
+Index: librime-1.1git20140306/include/rime/lever/customizer.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/lever/customizer.h
++++ librime-1.1git20140306/include/rime/lever/customizer.h
+@@ -8,6 +8,9 @@
+ #define RIME_CUSTOMIZER_H_
+
+ #include <string>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #define BOOST_NO_CXX11_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>;
+
+Index: librime-1.1git20140306/include/rime/lever/switcher_settings.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/lever/switcher_settings.h
++++ librime-1.1git20140306/include/rime/lever/switcher_settings.h
+@@ -9,6 +9,9 @@
+
+ #include <string>
+ #include <vector>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include "custom_settings.h"
+
+Index: librime-1.1git20140306/include/rime/lever/user_dict_manager.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/lever/user_dict_manager.h
++++ librime-1.1git20140306/include/rime/lever/user_dict_manager.h
+@@ -9,6 +9,9 @@
+
+ #include <string>
+ #include <vector>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+
+ namespace rime {
+Index: librime-1.1git20140306/src/core_module.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/core_module.cc
++++ librime-1.1git20140306/src/core_module.cc
+@@ -5,6 +5,9 @@
+ // 2013-10-17 GONG Chen <chen.sst@gmail.com>
+ //
+
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime_api.h>
+ #include <rime/common.h>
+Index: librime-1.1git20140306/src/dict/db.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/dict/db.cc
++++ librime-1.1git20140306/src/dict/db.cc
+@@ -5,6 +5,9 @@
+ // 2011-11-02 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime_version.h>
+ #include <rime/common.h>
+Index: librime-1.1git20140306/src/dict/dict_compiler.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/dict/dict_compiler.cc
++++ librime-1.1git20140306/src/dict/dict_compiler.cc
+@@ -7,6 +7,9 @@
+ #include <fstream>
+ #include <map>
+ #include <set>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime/algo/algebra.h>
+ #include <rime/algo/utilities.h>
+Index: librime-1.1git20140306/src/dict/dictionary.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/dict/dictionary.cc
++++ librime-1.1git20140306/src/dict/dictionary.cc
+@@ -5,6 +5,9 @@
+ // 2011-07-05 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <utility>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime/common.h>
+ #include <rime/schema.h>
+Index: librime-1.1git20140306/src/dict/mapped_file.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/dict/mapped_file.cc
++++ librime-1.1git20140306/src/dict/mapped_file.cc
+@@ -7,6 +7,9 @@
+ // 2011-06-30 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <fstream>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/interprocess/file_mapping.hpp>
+ #include <boost/interprocess/mapped_region.hpp>
+Index: librime-1.1git20140306/src/dict/preset_vocabulary.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/dict/preset_vocabulary.cc
++++ librime-1.1git20140306/src/dict/preset_vocabulary.cc
+@@ -4,6 +4,9 @@
+ //
+ // 2011-11-27 GONG Chen <chen.sst@gmail.com>
+ //
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/lexical_cast.hpp>
+ #include <utf8.h>
+Index: librime-1.1git20140306/src/dict/tree_db.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/dict/tree_db.cc
++++ librime-1.1git20140306/src/dict/tree_db.cc
+@@ -4,6 +4,9 @@
+ //
+ // 2011-11-02 GONG Chen <chen.sst@gmail.com>
+ //
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #if defined(_MSC_VER)
+ #pragma warning(disable: 4244)
+Index: librime-1.1git20140306/src/gear/simplifier.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/gear/simplifier.cc
++++ librime-1.1git20140306/src/gear/simplifier.cc
+@@ -7,6 +7,9 @@
+ #include <string>
+ #include <vector>
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <opencc/opencc.h>
+ #include <stdint.h>
+Index: librime-1.1git20140306/src/lever/custom_settings.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/lever/custom_settings.cc
++++ librime-1.1git20140306/src/lever/custom_settings.cc
+@@ -5,6 +5,9 @@
+ // 2012-02-26 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime/config.h>
+ #include <rime/deployer.h>
+Index: librime-1.1git20140306/src/lever/deployment_tasks.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/lever/deployment_tasks.cc
++++ librime-1.1git20140306/src/lever/deployment_tasks.cc
+@@ -5,6 +5,9 @@
+ // 2011-12-10 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #define BOOST_NO_CXX11_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/uuid/random_generator.hpp>
+Index: librime-1.1git20140306/src/lever/switcher_settings.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/lever/switcher_settings.cc
++++ librime-1.1git20140306/src/lever/switcher_settings.cc
+@@ -6,6 +6,9 @@
+ //
+ #include <utility>
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime/config.h>
+ #include <rime/deployer.h>
+Index: librime-1.1git20140306/src/lever/user_dict_manager.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/lever/user_dict_manager.cc
++++ librime-1.1git20140306/src/lever/user_dict_manager.cc
+@@ -6,6 +6,9 @@
+ //
+ #include <fstream>
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/scope_exit.hpp>
+ #include <rime/common.h>
+Index: librime-1.1git20140306/src/lever/userdb_recovery_task.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/lever/userdb_recovery_task.cc
++++ librime-1.1git20140306/src/lever/userdb_recovery_task.cc
+@@ -5,6 +5,9 @@
+ // 2013-04-22 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/scope_exit.hpp>
+ #include <rime/deployer.h>
diff --git a/app-i18n/librime/files/librime-1.1-gcc53613.patch b/app-i18n/librime/files/librime-1.1-gcc53613.patch
new file mode 100644
index 00000000000..28dfb1ec36b
--- /dev/null
+++ b/app-i18n/librime/files/librime-1.1-gcc53613.patch
@@ -0,0 +1,367 @@
+Index: librime-1.1git20140306/include/rime/algo/calculus.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/algo/calculus.h
++++ librime-1.1git20140306/include/rime/algo/calculus.h
+@@ -22,11 +22,12 @@ class Calculation {
+ using Factory = Calculation* (const std::vector<std::string>& args);
+
+ Calculation() = default;
+- virtual ~Calculation() = default;
++ virtual ~Calculation();
+ virtual bool Apply(Spelling* spelling) = 0;
+ virtual bool addition() { return true; }
+ virtual bool deletion() { return true; }
+ };
++inline Calculation::~Calculation() = default;
+
+ class Calculus {
+ public:
+Index: librime-1.1git20140306/include/rime/dict/db.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/dict/db.h
++++ librime-1.1git20140306/include/rime/dict/db.h
+@@ -18,7 +18,7 @@ class DbAccessor {
+ DbAccessor() = default;
+ explicit DbAccessor(const std::string& prefix)
+ : prefix_(prefix) {}
+- virtual ~DbAccessor() = default;
++ virtual ~DbAccessor();
+
+ virtual bool Reset() = 0;
+ virtual bool Jump(const std::string &key) = 0;
+@@ -30,11 +30,12 @@ class DbAccessor {
+
+ std::string prefix_;
+ };
++inline DbAccessor::~DbAccessor() = default;
+
+ class Db : public Class<Db, const std::string&> {
+ public:
+ explicit Db(const std::string& name);
+- virtual ~Db() = default;
++ virtual ~Db();
+
+ bool Exists() const;
+ bool Remove();
+@@ -72,11 +73,12 @@ class Db : public Class<Db, const std::s
+ bool readonly_ = false;
+ bool disabled_ = false;
+ };
++inline Db::~Db() = default;
+
+ class Transactional {
+ public:
+ Transactional() = default;
+- virtual ~Transactional() = default;
++ virtual ~Transactional();
+ virtual bool BeginTransaction() { return false; }
+ virtual bool AbortTransaction() { return false; }
+ virtual bool CommitTransaction() { return false; }
+@@ -84,12 +86,14 @@ class Transactional {
+ protected:
+ bool in_transaction_ = false;
+ };
++inline Transactional::~Transactional() = default;
+
+ class Recoverable {
+ public:
+- virtual ~Recoverable() = default;
++ virtual ~Recoverable();
+ virtual bool Recover() = 0;
+ };
++inline Recoverable::~Recoverable() = default;
+
+ } // namespace rime
+
+Index: librime-1.1git20140306/include/rime/algo/encoder.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/algo/encoder.h
++++ librime-1.1git20140306/include/rime/algo/encoder.h
+@@ -24,7 +24,7 @@ class RawCode : public std::vector<std::
+ class PhraseCollector {
+ public:
+ PhraseCollector() = default;
+- virtual ~PhraseCollector() = default;
++ virtual ~PhraseCollector();
+
+ virtual void CreateEntry(const std::string& phrase,
+ const std::string& code_str,
+@@ -33,13 +33,14 @@ class PhraseCollector {
+ virtual bool TranslateWord(const std::string& word,
+ std::vector<std::string>* code) = 0;
+ };
++inline PhraseCollector::~PhraseCollector() = default;
+
+ class Config;
+
+ class Encoder {
+ public:
+ Encoder(PhraseCollector* collector) : collector_(collector) {}
+- virtual ~Encoder() = default;
++ virtual ~Encoder();
+
+ virtual bool LoadSettings(Config* config) {
+ return false;
+@@ -53,7 +54,7 @@ class Encoder {
+ protected:
+ PhraseCollector* collector_;
+ };
+-
++inline Encoder::~Encoder() = default;
+ // Aa : code at index 0 for character at index 0
+ // Az : code at index -1 for character at index 0
+ // Za : code at index 0 for character at index -1
+Index: librime-1.1git20140306/include/rime/candidate.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/candidate.h
++++ librime-1.1git20140306/include/rime/candidate.h
+@@ -21,7 +21,7 @@ class Candidate {
+ size_t end,
+ double quality = 0.)
+ : type_(type), start_(start), end_(end), quality_(quality) {}
+- virtual ~Candidate() = default;
++ virtual ~Candidate();
+
+ static shared_ptr<Candidate>
+ GetGenuineCandidate(const shared_ptr<Candidate>& cand);
+@@ -53,6 +53,7 @@ class Candidate {
+ size_t end_ = 0;
+ double quality_ = 0.;
+ };
++inline Candidate::~Candidate() = default;
+
+ using CandidateList = std::vector<shared_ptr<Candidate>>;
+
+Index: librime-1.1git20140306/include/rime/component.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/component.h
++++ librime-1.1git20140306/include/rime/component.h
+@@ -16,8 +16,9 @@ namespace rime {
+ class ComponentBase {
+ public:
+ ComponentBase() = default;
+- virtual ~ComponentBase() = default;
++ virtual ~ComponentBase();
+ };
++inline ComponentBase::~ComponentBase() = default;
+
+ template <class T, class Arg>
+ struct Class {
+Index: librime-1.1git20140306/include/rime/config.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/config.h
++++ librime-1.1git20140306/include/rime/config.h
+@@ -22,7 +22,7 @@ class ConfigItem {
+ enum ValueType { kNull, kScalar, kList, kMap };
+
+ ConfigItem() = default; // null
+- virtual ~ConfigItem() = default;
++ virtual ~ConfigItem();
+
+ ValueType type() const { return type_; }
+
+@@ -31,6 +31,7 @@ class ConfigItem {
+
+ ValueType type_ = kNull;
+ };
++inline ConfigItem::~ConfigItem() = default;
+
+ using ConfigItemPtr = shared_ptr<ConfigItem>;
+
+Index: librime-1.1git20140306/include/rime/deployer.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/deployer.h
++++ librime-1.1git20140306/include/rime/deployer.h
+@@ -25,10 +25,11 @@ using TaskInitializer = boost::any;
+ class DeploymentTask : public Class<DeploymentTask, TaskInitializer> {
+ public:
+ DeploymentTask() = default;
+- virtual ~DeploymentTask() = default;
++ virtual ~DeploymentTask();
+
+ virtual bool Run(Deployer* deployer) = 0;
+ };
++inline DeploymentTask::~DeploymentTask() = default;
+
+ class Deployer : public Messenger {
+ public:
+Index: librime-1.1git20140306/include/rime/filter.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/filter.h
++++ librime-1.1git20140306/include/rime/filter.h
+@@ -22,7 +22,7 @@ class Filter : public Class<Filter, cons
+ public:
+ explicit Filter(const Ticket& ticket)
+ : engine_(ticket.engine), name_space_(ticket.name_space) {}
+- virtual ~Filter() = default;
++ virtual ~Filter();
+
+ virtual void Apply(CandidateList* recruited,
+ CandidateList* candidates) = 0;
+@@ -35,6 +35,7 @@ class Filter : public Class<Filter, cons
+ Engine* engine_;
+ std::string name_space_;
+ };
++inline Filter::~Filter() = default;
+
+ } // namespace rime
+
+Index: librime-1.1git20140306/include/rime/formatter.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/formatter.h
++++ librime-1.1git20140306/include/rime/formatter.h
+@@ -20,7 +20,7 @@ class Formatter : public Class<Formatter
+ public:
+ Formatter(const Ticket& ticket)
+ : engine_(ticket.engine), name_space_(ticket.name_space) {}
+- virtual ~Formatter() = default;
++ virtual ~Formatter();
+
+ virtual void Format(std::string* text) = 0;
+
+@@ -28,6 +28,7 @@ class Formatter : public Class<Formatter
+ Engine* engine_;
+ std::string name_space_;
+ };
++inline Formatter::~Formatter() = default;
+
+ } // namespace rime
+
+Index: librime-1.1git20140306/include/rime/lever/custom_settings.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/lever/custom_settings.h
++++ librime-1.1git20140306/include/rime/lever/custom_settings.h
+@@ -19,7 +19,7 @@ class CustomSettings {
+ CustomSettings(Deployer* deployer,
+ const std::string& config_id,
+ const std::string& generator_id);
+- virtual ~CustomSettings() = default;
++ virtual ~CustomSettings();
+
+ virtual bool Load();
+ virtual bool Save();
+@@ -39,6 +39,7 @@ class CustomSettings {
+ Config config_;
+ Config custom_config_;
+ };
++inline CustomSettings::~CustomSettings() = default;
+
+ } // namespace rime
+
+Index: librime-1.1git20140306/include/rime/processor.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/processor.h
++++ librime-1.1git20140306/include/rime/processor.h
+@@ -25,7 +25,7 @@ class Processor : public Class<Processor
+ public:
+ explicit Processor(const Ticket& ticket)
+ : engine_(ticket.engine), name_space_(ticket.name_space) {}
+- virtual ~Processor() = default;
++ virtual ~Processor();
+
+ virtual ProcessResult ProcessKeyEvent(const KeyEvent& key_event) {
+ return kNoop;
+@@ -35,6 +35,7 @@ class Processor : public Class<Processor
+ Engine* engine_;
+ std::string name_space_;
+ };
++inline Processor::~Processor() = default;
+
+ } // namespace rime
+
+Index: librime-1.1git20140306/include/rime/segmentor.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/segmentor.h
++++ librime-1.1git20140306/include/rime/segmentor.h
+@@ -19,7 +19,7 @@ class Segmentor : public Class<Segmentor
+ public:
+ explicit Segmentor(const Ticket& ticket)
+ : engine_(ticket.engine), name_space_(ticket.name_space) {}
+- virtual ~Segmentor() = default;
++ virtual ~Segmentor();
+
+ virtual bool Proceed(Segmentation* segmentation) = 0;
+
+@@ -27,6 +27,7 @@ class Segmentor : public Class<Segmentor
+ Engine* engine_;
+ std::string name_space_;
+ };
++inline Segmentor::~Segmentor() = default;
+
+ } // namespace rime
+
+Index: librime-1.1git20140306/include/rime/translation.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/translation.h
++++ librime-1.1git20140306/include/rime/translation.h
+@@ -19,7 +19,7 @@ namespace rime {
+ class Translation {
+ public:
+ Translation() = default;
+- virtual ~Translation() = default;
++ virtual ~Translation();
+
+ // A translation may contain multiple results, looks
+ // something like a generator of candidates.
+@@ -40,6 +40,7 @@ class Translation {
+ private:
+ bool exhausted_ = false;
+ };
++inline Translation::~Translation() = default;
+
+ class UniqueTranslation : public Translation {
+ public:
+Index: librime-1.1git20140306/include/rime/translator.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/translator.h
++++ librime-1.1git20140306/include/rime/translator.h
+@@ -23,7 +23,7 @@ class Translator : public Class<Translat
+ public:
+ explicit Translator(const Ticket& ticket)
+ : engine_(ticket.engine), name_space_(ticket.name_space) {}
+- virtual ~Translator() = default;
++ virtual ~Translator();
+
+ virtual shared_ptr<Translation> Query(const std::string& input,
+ const Segment& segment,
+@@ -33,6 +33,7 @@ class Translator : public Class<Translat
+ Engine* engine_;
+ std::string name_space_;
+ };
++inline Translator::~Translator() = default;
+
+ } // namespace rime
+
+Index: librime-1.1git20140306/include/rime/dict/db_utils.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/dict/db_utils.h
++++ librime-1.1git20140306/include/rime/dict/db_utils.h
+@@ -14,17 +14,18 @@ namespace rime {
+
+ class Sink {
+ public:
+- virtual ~Sink() = default;
++ virtual ~Sink();
+ virtual bool MetaPut(const std::string& key, const std::string& value) = 0;
+ virtual bool Put(const std::string& key, const std::string& value) = 0;
+
+ template <class SourceType>
+ int operator<< (SourceType& source);
+ };
++inline Sink::~Sink() = default;
+
+ class Source {
+ public:
+- virtual ~Source() = default;
++ virtual ~Source();
+ virtual bool MetaGet(std::string* key, std::string* value) = 0;
+ virtual bool Get(std::string* key, std::string* value) = 0;
+
+@@ -33,6 +34,7 @@ class Source {
+
+ int Dump(Sink* sink);
+ };
++inline Source::~Source() = default;
+
+ template <class SourceType>
+ int Sink::operator<< (SourceType& source) {
diff --git a/app-i18n/librime/files/librime-1.2-BOOST_NO_SCOPED_ENUMS.patch b/app-i18n/librime/files/librime-1.2-BOOST_NO_SCOPED_ENUMS.patch
new file mode 100644
index 00000000000..71c1e9a9621
--- /dev/null
+++ b/app-i18n/librime/files/librime-1.2-BOOST_NO_SCOPED_ENUMS.patch
@@ -0,0 +1,224 @@
+diff --git a/include/rime/lever/customizer.h b/include/rime/lever/customizer.h
+index 8418410..f6811d9 100644
+--- a/include/rime/lever/customizer.h
++++ b/include/rime/lever/customizer.h
+@@ -8,6 +8,9 @@
+ #define RIME_CUSTOMIZER_H_
+
+ #include <string>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+
+ namespace rime {
+diff --git a/include/rime/lever/switcher_settings.h b/include/rime/lever/switcher_settings.h
+index 8263e14..f7c9d1e 100644
+--- a/include/rime/lever/switcher_settings.h
++++ b/include/rime/lever/switcher_settings.h
+@@ -9,6 +9,9 @@
+
+ #include <string>
+ #include <vector>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include "custom_settings.h"
+
+diff --git a/include/rime/lever/user_dict_manager.h b/include/rime/lever/user_dict_manager.h
+index e971ad8..e765678 100644
+--- a/include/rime/lever/user_dict_manager.h
++++ b/include/rime/lever/user_dict_manager.h
+@@ -9,6 +9,9 @@
+
+ #include <string>
+ #include <vector>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+
+ namespace rime {
+diff --git a/src/core_module.cc b/src/core_module.cc
+index 785c22f..4d078ae 100644
+--- a/src/core_module.cc
++++ b/src/core_module.cc
+@@ -5,6 +5,9 @@
+ // 2013-10-17 GONG Chen <chen.sst@gmail.com>
+ //
+
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime_api.h>
+ #include <rime/common.h>
+diff --git a/src/dict/db.cc b/src/dict/db.cc
+index b8c46a6..eadacb9 100644
+--- a/src/dict/db.cc
++++ b/src/dict/db.cc
+@@ -5,6 +5,9 @@
+ // 2011-11-02 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime_version.h>
+ #include <rime/common.h>
+diff --git a/src/dict/dict_compiler.cc b/src/dict/dict_compiler.cc
+index 2bd9aa4..f383f7e 100644
+--- a/src/dict/dict_compiler.cc
++++ b/src/dict/dict_compiler.cc
+@@ -7,6 +7,9 @@
+ #include <fstream>
+ #include <map>
+ #include <set>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime/algo/algebra.h>
+ #include <rime/algo/utilities.h>
+diff --git a/src/dict/dictionary.cc b/src/dict/dictionary.cc
+index 66306b5..b0d755d 100644
+--- a/src/dict/dictionary.cc
++++ b/src/dict/dictionary.cc
+@@ -5,6 +5,9 @@
+ // 2011-07-05 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <utility>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime/common.h>
+ #include <rime/schema.h>
+diff --git a/src/dict/mapped_file.cc b/src/dict/mapped_file.cc
+index 6fd21a6..cd46994 100644
+--- a/src/dict/mapped_file.cc
++++ b/src/dict/mapped_file.cc
+@@ -7,6 +7,9 @@
+ // 2011-06-30 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <fstream>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/interprocess/file_mapping.hpp>
+ #include <boost/interprocess/mapped_region.hpp>
+diff --git a/src/dict/preset_vocabulary.cc b/src/dict/preset_vocabulary.cc
+index f74ea58..136f9fa 100644
+--- a/src/dict/preset_vocabulary.cc
++++ b/src/dict/preset_vocabulary.cc
+@@ -4,6 +4,9 @@
+ //
+ // 2011-11-27 GONG Chen <chen.sst@gmail.com>
+ //
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/lexical_cast.hpp>
+ #include <utf8.h>
+diff --git a/src/dict/tree_db.cc b/src/dict/tree_db.cc
+index 4b6ed2e..542fe83 100644
+--- a/src/dict/tree_db.cc
++++ b/src/dict/tree_db.cc
+@@ -4,6 +4,9 @@
+ //
+ // 2011-11-02 GONG Chen <chen.sst@gmail.com>
+ //
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #if defined(_MSC_VER)
+ #pragma warning(disable: 4244)
+diff --git a/src/gear/simplifier.cc b/src/gear/simplifier.cc
+index 6bb8524..d02b979 100644
+--- a/src/gear/simplifier.cc
++++ b/src/gear/simplifier.cc
+@@ -7,6 +7,9 @@
+ #include <string>
+ #include <vector>
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <opencc/opencc.h>
+ #include <stdint.h>
+diff --git a/src/lever/custom_settings.cc b/src/lever/custom_settings.cc
+index 0153830..0713cbc 100644
+--- a/src/lever/custom_settings.cc
++++ b/src/lever/custom_settings.cc
+@@ -5,6 +5,9 @@
+ // 2012-02-26 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime/config.h>
+ #include <rime/deployer.h>
+diff --git a/src/lever/deployment_tasks.cc b/src/lever/deployment_tasks.cc
+index 495066f..589c883 100644
+--- a/src/lever/deployment_tasks.cc
++++ b/src/lever/deployment_tasks.cc
+@@ -5,6 +5,9 @@
+ // 2011-12-10 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/uuid/random_generator.hpp>
+ #include <boost/uuid/uuid.hpp>
+diff --git a/src/lever/switcher_settings.cc b/src/lever/switcher_settings.cc
+index 4ee7d57..bb4dbd0 100644
+--- a/src/lever/switcher_settings.cc
++++ b/src/lever/switcher_settings.cc
+@@ -6,6 +6,9 @@
+ //
+ #include <utility>
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime/config.h>
+ #include <rime/deployer.h>
+diff --git a/src/lever/user_dict_manager.cc b/src/lever/user_dict_manager.cc
+index 601cfc2..e087739 100644
+--- a/src/lever/user_dict_manager.cc
++++ b/src/lever/user_dict_manager.cc
+@@ -6,6 +6,9 @@
+ //
+ #include <fstream>
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/scope_exit.hpp>
+ #include <rime/common.h>
+diff --git a/src/lever/userdb_recovery_task.cc b/src/lever/userdb_recovery_task.cc
+index 818e2fd..2a25efd 100644
+--- a/src/lever/userdb_recovery_task.cc
++++ b/src/lever/userdb_recovery_task.cc
+@@ -5,6 +5,9 @@
+ // 2013-04-22 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/scope_exit.hpp>
+ #include <rime/deployer.h>
diff --git a/app-i18n/librime/files/librime-dictionary.patch b/app-i18n/librime/files/librime-dictionary.patch
new file mode 100644
index 00000000000..b8ce53f3992
--- /dev/null
+++ b/app-i18n/librime/files/librime-dictionary.patch
@@ -0,0 +1,13 @@
+diff --git a/data/test/dictionary_test.dict.yaml b/data/test/dictionary_test.dict.yaml
+index c0b6d65..7e362b1 100644
+--- a/data/test/dictionary_test.dict.yaml
++++ b/data/test/dictionary_test.dict.yaml
+@@ -5,7 +5,7 @@
+ # http://android.git.kernel.org/?p=platform/packages/inputmethods/PinyinIME.git
+
+ ---
+-name: luna_pinyin
++name: dictionary_test
+ version: "0.1"
+ sort: by_weight # by_weight / original
+ ...
diff --git a/app-i18n/librime/files/librime-test.patch b/app-i18n/librime/files/librime-test.patch
new file mode 100644
index 00000000000..b890cabfbb3
--- /dev/null
+++ b/app-i18n/librime/files/librime-test.patch
@@ -0,0 +1,42 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 82cd141..bdb5169 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -10,6 +10,7 @@ set(LIBRIME_SOVERSION 0)
+ option(BUILD_SHARED_LIBS "Build Rime as shared library" ON)
+ option(BUILD_STATIC "Build Rime using static libraries" OFF)
+ option(BUILD_DATA "Build data for Rime" OFF)
++option(BUILD_TEST "Build gtest framwork for Rime" OFF)
+
+ SET(RIME_DATA_DIR "/share/rime-data" CACHE STRING "Target directory for Rime data")
+
+@@ -47,10 +48,14 @@ if(Glog_FOUND)
+ endif(Glog_FOUND)
+
+ find_package(Threads)
+-find_package(GTest)
++
++if(BUILD_TEST)
++ find_package(GTest REQUIRED)
+ if(GTEST_FOUND)
++ enable_testing()
+ include_directories(${GTEST_INCLUDE_DIRS})
+ endif(GTEST_FOUND)
++endif(BUILD_TEST)
+
+ find_package(YamlCpp REQUIRED)
+ if(YamlCpp_FOUND)
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+index 05db7bd..205b1c9 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -19,8 +19,5 @@ file(COPY ${PROJECT_SOURCE_DIR}/data/test/dictionary_test.dict.yaml
+
+ if(NOT MSVC AND NOT XCODE_VERSION)
+ set(RIME_TEST_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/rime_test${EXT})
+-add_custom_command(TARGET rime_test
+- POST_BUILD
+- COMMAND ${RIME_TEST_EXECUTABLE}
+- WORKING_DIRECTORY ${EXECUTABLE_OUTPUT_PATH})
++add_test(rime_test ${RIME_TEST_EXECUTABLE})
+ endif(NOT MSVC AND NOT XCODE_VERSION)
diff --git a/app-i18n/librime/librime-0.9.9.ebuild b/app-i18n/librime/librime-0.9.9.ebuild
new file mode 100644
index 00000000000..c5ba06b09e9
--- /dev/null
+++ b/app-i18n/librime/librime-0.9.9.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils multilib
+
+DESCRIPTION="Rime Input Method Engine library"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+SRC_URI="http://rimeime.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE="static-libs test"
+
+RDEPEND="app-i18n/opencc
+ dev-cpp/glog
+ >=dev-cpp/yaml-cpp-0.5.0
+ dev-db/kyotocabinet
+ >=dev-libs/boost-1.46.0[threads(+)]
+ sys-libs/zlib
+ x11-proto/xproto"
+DEPEND="${RDEPEND}
+ test? ( dev-cpp/gtest )"
+
+S="${WORKDIR}/${PN}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-test.patch"
+ "${FILESDIR}/${PN}-dictionary.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_build static-libs STATIC)
+ -DBUILD_DATA=OFF
+ $(cmake-utils_use_build test TEST)
+ -DLIB_INSTALL_DIR=/usr/$(get_libdir)
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/librime/librime-1.2.ebuild b/app-i18n/librime/librime-1.2.ebuild
new file mode 100644
index 00000000000..b4bd200f9da
--- /dev/null
+++ b/app-i18n/librime/librime-1.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils multilib versionator toolchain-funcs
+
+DESCRIPTION="Rime Input Method Engine library"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+SRC_URI="http://dl.bintray.com/lotem/rime/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE="static-libs test"
+
+RDEPEND="app-i18n/opencc
+ dev-cpp/glog
+ >=dev-cpp/yaml-cpp-0.5.0
+ dev-db/kyotocabinet
+ dev-libs/marisa
+ >=dev-libs/boost-1.46.0[threads(+)]
+ sys-libs/zlib
+ x11-proto/xproto"
+DEPEND="${RDEPEND}
+ test? ( dev-cpp/gtest )"
+
+S="${WORKDIR}/${PN}"
+
+#bug 496080, backport patch for <gcc-4.8
+PATCHES=(
+ "${FILESDIR}/${PN}-1.2-BOOST_NO_SCOPED_ENUMS.patch"
+ "${FILESDIR}/${PN}-1.1-gcc53613.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_build static-libs STATIC)
+ -DBUILD_DATA=OFF
+ -DBUILD_SEPARATE_LIBS=OFF
+ $(cmake-utils_use_build test TEST)
+ -DLIB_INSTALL_DIR=/usr/$