summaryrefslogtreecommitdiff
path: root/app-i18n
diff options
context:
space:
mode:
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/anthy/Manifest8
-rw-r--r--app-i18n/anthy/anthy-9100h-r1.ebuild62
-rw-r--r--app-i18n/anthy/anthy-9100h-r2.ebuild59
-rw-r--r--app-i18n/anthy/files/50anthy-gentoo.el2
-rw-r--r--app-i18n/anthy/files/anthy-anthy_context_t.patch11
-rw-r--r--app-i18n/anthy/metadata.xml24
-rw-r--r--app-i18n/atokx3/Manifest8
-rw-r--r--app-i18n/atokx3/atokx3-3.0.0-r12.ebuild209
-rw-r--r--app-i18n/atokx3/files/xinput-iiimf11
-rw-r--r--app-i18n/atokx3/metadata.xml8
-rw-r--r--app-i18n/bidiv/Manifest9
-rw-r--r--app-i18n/bidiv/bidiv-1.5-r1.ebuild35
-rw-r--r--app-i18n/bidiv/bidiv-1.5_p4.ebuild47
-rw-r--r--app-i18n/bidiv/files/bidiv-1.5-fribidi.patch46
-rw-r--r--app-i18n/bidiv/metadata.xml8
-rw-r--r--app-i18n/canfep/Manifest9
-rw-r--r--app-i18n/canfep/canfep-1.0-r1.ebuild44
-rw-r--r--app-i18n/canfep/canfep-1.0.ebuild39
-rw-r--r--app-i18n/canfep/files/canfep-posix-pty.patch67
-rw-r--r--app-i18n/canfep/files/canfep-termcap.patch266
-rw-r--r--app-i18n/canfep/metadata.xml8
-rw-r--r--app-i18n/canna/Manifest18
-rw-r--r--app-i18n/canna/canna-3.7_p3-r1.ebuild98
-rw-r--r--app-i18n/canna/canna-3.7_p3-r2.ebuild128
-rw-r--r--app-i18n/canna/canna-3.7_p3-r3.ebuild154
-rw-r--r--app-i18n/canna/files/canna-Wformat-security.patch199
-rw-r--r--app-i18n/canna/files/canna-Wformat.patch11
-rw-r--r--app-i18n/canna/files/canna-canuum.patch34
-rw-r--r--app-i18n/canna/files/canna-gentoo.patch146
-rw-r--r--app-i18n/canna/files/canna-kpdef.patch18
-rw-r--r--app-i18n/canna/files/canna-overflow.patch20
-rw-r--r--app-i18n/canna/files/canna-posix-sort.patch11
-rw-r--r--app-i18n/canna/files/canna.confd7
-rw-r--r--app-i18n/canna/files/canna.hosts1
-rw-r--r--app-i18n/canna/files/canna.initd31
-rw-r--r--app-i18n/canna/files/update-canna-dics_dir36
-rw-r--r--app-i18n/canna/metadata.xml14
-rw-r--r--app-i18n/cstools/Manifest5
-rw-r--r--app-i18n/cstools/cstools-3.42.ebuild20
-rw-r--r--app-i18n/cstools/metadata.xml13
-rw-r--r--app-i18n/dbskkd-cdb/Manifest9
-rw-r--r--app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild61
-rw-r--r--app-i18n/dbskkd-cdb/dbskkd-cdb-3.00.ebuild61
-rw-r--r--app-i18n/dbskkd-cdb/files/dbskkd-cdb-gentoo.patch24
-rw-r--r--app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd11
-rw-r--r--app-i18n/dbskkd-cdb/metadata.xml11
-rw-r--r--app-i18n/enca/Manifest5
-rw-r--r--app-i18n/enca/enca-1.19-r1.ebuild82
-rw-r--r--app-i18n/enca/metadata.xml11
-rw-r--r--app-i18n/fbiterm/Manifest7
-rw-r--r--app-i18n/fbiterm/fbiterm-0.5-r2.ebuild62
-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.xml8
-rw-r--r--app-i18n/fbterm/Manifest6
-rw-r--r--app-i18n/fbterm/fbterm-1.7-r3.ebuild59
-rw-r--r--app-i18n/fbterm/files/fbterm-gcc6.patch72
-rw-r--r--app-i18n/fbterm/metadata.xml11
-rw-r--r--app-i18n/fcitx-anthy/Manifest9
-rw-r--r--app-i18n/fcitx-anthy/fcitx-anthy-0.1.1.ebuild28
-rw-r--r--app-i18n/fcitx-anthy/fcitx-anthy-0.2.1.ebuild29
-rw-r--r--app-i18n/fcitx-anthy/fcitx-anthy-0.2.2.ebuild29
-rw-r--r--app-i18n/fcitx-anthy/metadata.xml12
-rw-r--r--app-i18n/fcitx-chewing/Manifest10
-rw-r--r--app-i18n/fcitx-chewing/fcitx-chewing-0.2.0.ebuild19
-rw-r--r--app-i18n/fcitx-chewing/fcitx-chewing-0.2.2.ebuild19
-rw-r--r--app-i18n/fcitx-chewing/fcitx-chewing-0.2.3.ebuild41
-rw-r--r--app-i18n/fcitx-chewing/fcitx-chewing-4.9999.ebuild41
-rw-r--r--app-i18n/fcitx-chewing/metadata.xml15
-rw-r--r--app-i18n/fcitx-cloudpinyin/Manifest7
-rw-r--r--app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.1.ebuild22
-rw-r--r--app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.4.ebuild22
-rw-r--r--app-i18n/fcitx-cloudpinyin/metadata.xml15
-rw-r--r--app-i18n/fcitx-configtool/Manifest12
-rw-r--r--app-i18n/fcitx-configtool/fcitx-configtool-0.4.10.ebuild43
-rw-r--r--app-i18n/fcitx-configtool/fcitx-configtool-0.4.6.ebuild33
-rw-r--r--app-i18n/fcitx-configtool/fcitx-configtool-0.4.8.ebuild32
-rw-r--r--app-i18n/fcitx-configtool/fcitx-configtool-0.4.9.ebuild43
-rw-r--r--app-i18n/fcitx-configtool/fcitx-configtool-4.9999.ebuild43
-rw-r--r--app-i18n/fcitx-configtool/metadata.xml18
-rw-r--r--app-i18n/fcitx-hangul/Manifest7
-rw-r--r--app-i18n/fcitx-hangul/fcitx-hangul-0.2.1.ebuild28
-rw-r--r--app-i18n/fcitx-hangul/fcitx-hangul-0.3.0.ebuild28
-rw-r--r--app-i18n/fcitx-hangul/metadata.xml12
-rw-r--r--app-i18n/fcitx-libpinyin/Manifest17
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.2.1.ebuild29
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.1.ebuild38
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.3.ebuild43
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.1.ebuild66
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.2.ebuild68
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.3.ebuild68
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-4.9999.ebuild68
-rw-r--r--app-i18n/fcitx-libpinyin/metadata.xml18
-rw-r--r--app-i18n/fcitx-m17n/Manifest8
-rw-r--r--app-i18n/fcitx-m17n/fcitx-m17n-0.2.3.ebuild37
-rw-r--r--app-i18n/fcitx-m17n/fcitx-m17n-0.2.4.ebuild33
-rw-r--r--app-i18n/fcitx-m17n/fcitx-m17n-4.9999.ebuild33
-rw-r--r--app-i18n/fcitx-m17n/files/fcitx-m17n-0.2.3-memory_leak.patch20
-rw-r--r--app-i18n/fcitx-m17n/metadata.xml15
-rw-r--r--app-i18n/fcitx-qt5/Manifest13
-rw-r--r--app-i18n/fcitx-qt5/fcitx-qt5-1.0.5.ebuild43
-rw-r--r--app-i18n/fcitx-qt5/fcitx-qt5-1.0.6.ebuild39
-rw-r--r--app-i18n/fcitx-qt5/fcitx-qt5-1.1.0.ebuild39
-rw-r--r--app-i18n/fcitx-qt5/fcitx-qt5-1.1.1.ebuild39
-rw-r--r--app-i18n/fcitx-qt5/fcitx-qt5-4.9999.ebuild40
-rw-r--r--app-i18n/fcitx-qt5/files/fcitx-qt5-1.0.5-ucs4.patch86
-rw-r--r--app-i18n/fcitx-qt5/metadata.xml15
-rw-r--r--app-i18n/fcitx-rime/Manifest7
-rw-r--r--app-i18n/fcitx-rime/fcitx-rime-0.2.0.ebuild33
-rw-r--r--app-i18n/fcitx-rime/fcitx-rime-0.3.1.ebuild33
-rw-r--r--app-i18n/fcitx-rime/metadata.xml20
-rw-r--r--app-i18n/fcitx-sayura/Manifest7
-rw-r--r--app-i18n/fcitx-sayura/fcitx-sayura-0.1.1.ebuild33
-rw-r--r--app-i18n/fcitx-sayura/fcitx-sayura-0.1.2.ebuild41
-rw-r--r--app-i18n/fcitx-sayura/fcitx-sayura-4.9999.ebuild41
-rw-r--r--app-i18n/fcitx-sayura/metadata.xml15
-rw-r--r--app-i18n/fcitx-sunpinyin/Manifest8
-rw-r--r--app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.0.ebuild33
-rw-r--r--app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.1.ebuild29
-rw-r--r--app-i18n/fcitx-sunpinyin/files/fcitx-sunpinyin-0.4.0-gcc46-compatible.patch27
-rw-r--r--app-i18n/fcitx-sunpinyin/metadata.xml15
-rw-r--r--app-i18n/fcitx-table-extra/Manifest9
-rw-r--r--app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.3.ebuild26
-rw-r--r--app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.6.ebuild26
-rw-r--r--app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.7.ebuild26
-rw-r--r--app-i18n/fcitx-table-extra/metadata.xml12
-rw-r--r--app-i18n/fcitx-unikey/Manifest14
-rw-r--r--app-i18n/fcitx-unikey/fcitx-unikey-0.2.0.ebuild38
-rw-r--r--app-i18n/fcitx-unikey/fcitx-unikey-0.2.4.ebuild33
-rw-r--r--app-i18n/fcitx-unikey/fcitx-unikey-0.2.5.ebuild63
-rw-r--r--app-i18n/fcitx-unikey/fcitx-unikey-0.2.6.ebuild54
-rw-r--r--app-i18n/fcitx-unikey/fcitx-unikey-4.9999.ebuild55
-rw-r--r--app-i18n/fcitx-unikey/files/fcitx-unikey-0.2.0-cmake-qt-option.patch56
-rw-r--r--app-i18n/fcitx-unikey/files/fcitx-unikey-0.2.5-c++11.patch264
-rw-r--r--app-i18n/fcitx-unikey/metadata.xml18
-rw-r--r--app-i18n/fcitx/Manifest21
-rw-r--r--app-i18n/fcitx/fcitx-4.2.9.1.ebuild153
-rw-r--r--app-i18n/fcitx/fcitx-4.2.9.2.ebuild147
-rw-r--r--app-i18n/fcitx/fcitx-4.2.9.3.ebuild147
-rw-r--r--app-i18n/fcitx/fcitx-4.2.9.4.ebuild144
-rw-r--r--app-i18n/fcitx/fcitx-4.9999.ebuild144
-rw-r--r--app-i18n/fcitx/files/fcitx-4.2.9.1-qt-4_ucs4.patch95
-rw-r--r--app-i18n/fcitx/files/fcitx-4.2.9.1-tray_icon.patch145
-rw-r--r--app-i18n/fcitx/files/fcitx-4.2.9.2-scripts.patch60
-rw-r--r--app-i18n/fcitx/files/fcitx-4.2.9.3-restart.patch13
-rw-r--r--app-i18n/fcitx/metadata.xml25
-rw-r--r--app-i18n/freewnn/Manifest13
-rw-r--r--app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch318
-rw-r--r--app-i18n/freewnn/files/freewnn-Wformat-security.patch143
-rw-r--r--app-i18n/freewnn/files/freewnn-uum-EUC-JP.patch13
-rw-r--r--app-i18n/freewnn/files/freewnn.confd-r11
-rw-r--r--app-i18n/freewnn/files/freewnn.initd16
-rw-r--r--app-i18n/freewnn/files/freewnn.initd-r117
-rw-r--r--app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild54
-rw-r--r--app-i18n/freewnn/freewnn-1.1.1_alpha23.ebuild72
-rw-r--r--app-i18n/freewnn/metadata.xml14
-rw-r--r--app-i18n/ibus-anthy/Manifest7
-rw-r--r--app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild62
-rw-r--r--app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild63
-rw-r--r--app-i18n/ibus-anthy/metadata.xml15
-rw-r--r--app-i18n/ibus-cangjie/Manifest5
-rw-r--r--app-i18n/ibus-cangjie/ibus-cangjie-2.4.ebuild49
-rw-r--r--app-i18n/ibus-cangjie/metadata.xml20
-rw-r--r--app-i18n/ibus-chewing/Manifest8
-rw-r--r--app-i18n/ibus-chewing/files/ibus-chewing-test.patch45
-rw-r--r--app-i18n/ibus-chewing/ibus-chewing-1.5.1-r1.ebuild65
-rw-r--r--app-i18n/ibus-chewing/ibus-chewing-1.6.1.ebuild63
-rw-r--r--app-i18n/ibus-chewing/metadata.xml18
-rw-r--r--app-i18n/ibus-fbterm/Manifest5
-rw-r--r--app-i18n/ibus-fbterm/ibus-fbterm-1.0.1.ebuild19
-rw-r--r--app-i18n/ibus-fbterm/metadata.xml11
-rw-r--r--app-i18n/ibus-handwrite/Manifest9
-rw-r--r--app-i18n/ibus-handwrite/files/ibus-handwrite-headers.patch20
-rw-r--r--app-i18n/ibus-handwrite/files/ibus-handwrite-link.patch11
-rw-r--r--app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild44
-rw-r--r--app-i18n/ibus-handwrite/ibus-handwrite-3.0.0.ebuild34
-rw-r--r--app-i18n/ibus-handwrite/metadata.xml11
-rw-r--r--app-i18n/ibus-hangul/Manifest5
-rw-r--r--app-i18n/ibus-hangul/ibus-hangul-1.5.0.ebuild43
-rw-r--r--app-i18n/ibus-hangul/metadata.xml13
-rw-r--r--app-i18n/ibus-input-pad/Manifest3
-rw-r--r--app-i18n/ibus-input-pad/ibus-input-pad-1.4.99_pre20140916.ebuild27
-rw-r--r--app-i18n/ibus-input-pad/metadata.xml15
-rw-r--r--app-i18n/ibus-kkc/Manifest3
-rw-r--r--app-i18n/ibus-kkc/ibus-kkc-1.5.22.ebuild36
-rw-r--r--app-i18n/ibus-kkc/metadata.xml15
-rw-r--r--app-i18n/ibus-libpinyin/Manifest13
-rw-r--r--app-i18n/ibus-libpinyin/ibus-libpinyin-1.6.92.ebuild45
-rw-r--r--app-i18n/ibus-libpinyin/ibus-libpinyin-1.7.4.ebuild46
-rw-r--r--app-i18n/ibus-libpinyin/ibus-libpinyin-1.9.0.ebuild53
-rw-r--r--app-i18n/ibus-libpinyin/ibus-libpinyin-1.9.1.ebuild53
-rw-r--r--app-i18n/ibus-libpinyin/ibus-libpinyin-1.9.2.ebuild53
-rw-r--r--app-i18n/ibus-libpinyin/metadata.xml26
-rw-r--r--app-i18n/ibus-m17n/Manifest7
-rw-r--r--app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild37
-rw-r--r--app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild37
-rw-r--r--app-i18n/ibus-m17n/metadata.xml21
-rw-r--r--app-i18n/ibus-pinyin/Manifest7
-rw-r--r--app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch185
-rw-r--r--app-i18n/ibus-pinyin/files/ibus-pinyin-boost.patch15
-rw-r--r--app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r2.ebuild50
-rw-r--r--app-i18n/ibus-pinyin/metadata.xml22
-rw-r--r--app-i18n/ibus-qt/Manifest6
-rw-r--r--app-i18n/ibus-qt/files/ibus-qt-doc.patch11
-rw-r--r--app-i18n/ibus-qt/ibus-qt-1.3.3.ebuild53
-rw-r--r--app-i18n/ibus-qt/metadata.xml14
-rw-r--r--app-i18n/ibus-rime/Manifest9
-rw-r--r--app-i18n/ibus-rime/ibus-rime-0.9.9.ebuild28
-rw-r--r--app-i18n/ibus-rime/ibus-rime-1.1.ebuild28
-rw-r--r--app-i18n/ibus-rime/ibus-rime-1.2.ebuild28
-rw-r--r--app-i18n/ibus-rime/metadata.xml20
-rw-r--r--app-i18n/ibus-skk/Manifest7
-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.2.ebuild36
-rw-r--r--app-i18n/ibus-skk/metadata.xml15
-rw-r--r--app-i18n/ibus-sunpinyin/Manifest5
-rw-r--r--app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild49
-rw-r--r--app-i18n/ibus-sunpinyin/metadata.xml11
-rw-r--r--app-i18n/ibus-table-chinese/Manifest7
-rw-r--r--app-i18n/ibus-table-chinese/ibus-table-chinese-1.4.6.ebuild24
-rw-r--r--app-i18n/ibus-table-chinese/ibus-table-chinese-1.8.2.ebuild30
-rw-r--r--app-i18n/ibus-table-chinese/metadata.xml10
-rw-r--r--app-i18n/ibus-table-extraphrase/Manifest5
-rw-r--r--app-i18n/ibus-table-extraphrase/ibus-table-extraphrase-1.3.9.20110826.ebuild17
-rw-r--r--app-i18n/ibus-table-extraphrase/metadata.xml12
-rw-r--r--app-i18n/ibus-table-latin/Manifest5
-rw-r--r--app-i18n/ibus-table-latin/ibus-table-latin-1.2.0.20100305.ebuild17
-rw-r--r--app-i18n/ibus-table-latin/metadata.xml12
-rw-r--r--app-i18n/ibus-table-others/Manifest3
-rw-r--r--app-i18n/ibus-table-others/ibus-table-others-1.3.9.ebuild17
-rw-r--r--app-i18n/ibus-table-others/metadata.xml27
-rw-r--r--app-i18n/ibus-table/Manifest7
-rw-r--r--app-i18n/ibus-table/ibus-table-1.5.0-r1.ebuild42
-rw-r--r--app-i18n/ibus-table/ibus-table-1.9.18.ebuild42
-rw-r--r--app-i18n/ibus-table/metadata.xml14
-rw-r--r--app-i18n/ibus-tutcode/Manifest10
-rw-r--r--app-i18n/ibus-tutcode/ibus-tutcode-1.0.0.ebuild23
-rw-r--r--app-i18n/ibus-tutcode/ibus-tutcode-1.0.1.ebuild23
-rw-r--r--app-i18n/ibus-tutcode/ibus-tutcode-1.0.2-r1.ebuild33
-rw-r--r--app-i18n/ibus-tutcode/ibus-tutcode-1.0.2.ebuild26
-rw-r--r--app-i18n/ibus-tutcode/metadata.xml14
-rw-r--r--app-i18n/ibus-typing-booster/Manifest3
-rw-r--r--app-i18n/ibus-typing-booster/ibus-typing-booster-1.5.32.ebuild35
-rw-r--r--app-i18n/ibus-typing-booster/metadata.xml11
-rw-r--r--app-i18n/ibus-unikey/Manifest6
-rw-r--r--app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild35
-rw-r--r--app-i18n/ibus-unikey/metadata.xml18
-rw-r--r--app-i18n/ibus/Manifest9
-rw-r--r--app-i18n/ibus/ibus-1.5.12.ebuild166
-rw-r--r--app-i18n/ibus/ibus-1.5.15.ebuild167
-rw-r--r--app-i18n/ibus/ibus-1.5.16.ebuild182
-rw-r--r--app-i18n/ibus/metadata.xml22
-rw-r--r--app-i18n/im-canna/Manifest7
-rw-r--r--app-i18n/im-canna/files/im-canna-gentoo.patch35
-rw-r--r--app-i18n/im-canna/im-canna-0.3.2.2-r1.ebuild43
-rw-r--r--app-i18n/im-canna/im-canna-0.3.2.2.ebuild29
-rw-r--r--app-i18n/im-canna/metadata.xml8
-rw-r--r--app-i18n/im-chooser/Manifest5
-rw-r--r--app-i18n/im-chooser/im-chooser-1.7.0.ebuild44
-rw-r--r--app-i18n/im-chooser/metadata.xml18
-rw-r--r--app-i18n/im-freewnn/Manifest10
-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-gentoo.patch112
-rw-r--r--app-i18n/im-freewnn/files/im-freewnn-headers.patch30
-rw-r--r--app-i18n/im-freewnn/files/im-freewnn-wnnenvrc.patch11
-rw-r--r--app-i18n/im-freewnn/im-freewnn-0.0.2-r2.ebuild48
-rw-r--r--app-i18n/im-freewnn/im-freewnn-0.0.2-r3.ebuild48
-rw-r--r--app-i18n/im-freewnn/metadata.xml8
-rw-r--r--app-i18n/imhangul/Manifest18
-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-2.0.0.ebuild86
-rw-r--r--app-i18n/imhangul/imhangul-2.1.0.ebuild82
-rw-r--r--app-i18n/imhangul/imhangul-3.1.1.ebuild63
-rw-r--r--app-i18n/imhangul/metadata.xml11
-rw-r--r--app-i18n/imsettings/Manifest5
-rw-r--r--app-i18n/imsettings/imsettings-1.7.2.ebuild71
-rw-r--r--app-i18n/imsettings/metadata.xml18
-rw-r--r--app-i18n/jfbterm/Manifest9
-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/files/jfbterm-0.4.7-wrong-inline-gcc5.patch24
-rw-r--r--app-i18n/jfbterm/jfbterm-0.4.7-r4.ebuild52
-rw-r--r--app-i18n/jfbterm/metadata.xml18
-rw-r--r--app-i18n/kakasi/Manifest5
-rw-r--r--app-i18n/kakasi/kakasi-2.3.4-r1.ebuild26
-rw-r--r--app-i18n/kakasi/metadata.xml8
-rw-r--r--app-i18n/kanjipad/Manifest7
-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.ebuild40
-rw-r--r--app-i18n/kanjipad/metadata.xml8
-rw-r--r--app-i18n/kcc/Manifest7
-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.ebuild34
-rw-r--r--app-i18n/kcc/metadata.xml8
-rw-r--r--app-i18n/kcm-fcitx/Manifest13
-rw-r--r--app-i18n/kcm-fcitx/kcm-fcitx-0.4.3.ebuild47
-rw-r--r--app-i18n/kcm-fcitx/kcm-fcitx-0.5.3.ebuild60
-rw-r--r--app-i18n/kcm-fcitx/kcm-fcitx-0.5.4.ebuild66
-rw-r--r--app-i18n/kcm-fcitx/kcm-fcitx-0.5.5.ebuild56
-rw-r--r--app-i18n/kcm-fcitx/kcm-fcitx-4.4.9999.ebuild47
-rw-r--r--app-i18n/kcm-fcitx/kcm-fcitx-4.5.9999.ebuild56
-rw-r--r--app-i18n/kcm-fcitx/metadata.xml15
-rw-r--r--app-i18n/kde-l10n-scripts/Manifest4
-rw-r--r--app-i18n/kde-l10n-scripts/kde-l10n-scripts-9999.ebuild32
-rw-r--r--app-i18n/kde-l10n-scripts/metadata.xml11
-rw-r--r--app-i18n/kimera/Manifest8
-rw-r--r--app-i18n/kimera/files/kimera-underlinking.patch11
-rw-r--r--app-i18n/kimera/files/xinput-kimera4
-rw-r--r--app-i18n/kimera/kimera-2.11-r1.ebuild38
-rw-r--r--app-i18n/kimera/kimera-2.11-r2.ebuild44
-rw-r--r--app-i18n/kimera/metadata.xml18
-rw-r--r--app-i18n/kinput2/Manifest12
-rw-r--r--app-i18n/kinput2/files/kinput2-gentoo.patch99
-rw-r--r--app-i18n/kinput2/files/kinput2-headers.patch101
-rw-r--r--app-i18n/kinput2/files/kinput2-ppc.patch11
-rw-r--r--app-i18n/kinput2/files/kinput2-segfault.patch12
-rw-r--r--app-i18n/kinput2/files/kinput2-wnn.patch51
-rw-r--r--app-i18n/kinput2/files/xinput-kinput25
-rw-r--r--app-i18n/kinput2/kinput2-3.1-r1.ebuild70
-rw-r--r--app-i18n/kinput2/kinput2-3.1-r2.ebuild77
-rw-r--r--app-i18n/kinput2/metadata.xml8
-rw-r--r--app-i18n/libcangjie/Manifest7
-rw-r--r--app-i18n/libcangjie/libcangjie-1.1.ebuild16
-rw-r--r--app-i18n/libcangjie/libcangjie-1.3.ebuild16
-rw-r--r--app-i18n/libcangjie/metadata.xml20
-rw-r--r--app-i18n/libchewing/Manifest9
-rw-r--r--app-i18n/libchewing/files/0.3.3-strncat-fix.patch13
-rw-r--r--app-i18n/libchewing/libchewing-0.3.3.ebuild47
-rw-r--r--app-i18n/libchewing/libchewing-0.4.0-r1.ebuild40
-rw-r--r--app-i18n/libchewing/libchewing-0.5.1.ebuild52
-rw-r--r--app-i18n/libchewing/libchewing-9999.ebuild52
-rw-r--r--app-i18n/libchewing/metadata.xml11
-rw-r--r--app-i18n/libguess/Manifest7
-rw-r--r--app-i18n/libguess/libguess-1.1.ebuild34
-rw-r--r--app-i18n/libguess/libguess-1.2.ebuild34
-rw-r--r--app-i18n/libguess/metadata.xml8
-rw-r--r--app-i18n/libhangul/Manifest5
-rw-r--r--app-i18n/libhangul/libhangul-0.1.0.ebuild32
-rw-r--r--app-i18n/libhangul/metadata.xml11
-rw-r--r--app-i18n/libkkc/Manifest3
-rw-r--r--app-i18n/libkkc/libkkc-0.3.5.ebuild47
-rw-r--r--app-i18n/libkkc/metadata.xml11
-rw-r--r--app-i18n/libpinyin/Manifest19
-rw-r--r--app-i18n/libpinyin/libpinyin-0.8.0.ebuild33
-rw-r--r--app-i18n/libpinyin/libpinyin-1.0.0.ebuild35
-rw-r--r--app-i18n/libpinyin/libpinyin-1.3.0-r1.ebuild35
-rw-r--r--app-i18n/libpinyin/libpinyin-2.0.92.ebuild38
-rw-r--r--app-i18n/libpinyin/libpinyin-2.1.0.ebuild61
-rw-r--r--app-i18n/libpinyin/libpinyin-9999.ebuild61
-rw-r--r--app-i18n/libpinyin/metadata.xml12
-rw-r--r--app-i18n/librime/Manifest13
-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.ebuild42
-rw-r--r--app-i18n/librime/librime-1.2.9.ebuild38
-rw-r--r--app-i18n/librime/librime-1.2.ebuild45
-rw-r--r--app-i18n/librime/metadata.xml21
-rw-r--r--app-i18n/libskk/Manifest7
-rw-r--r--app-i18n/libskk/libskk-1.0.1.ebuild47
-rw-r--r--app-i18n/libskk/libskk-1.0.2.ebuild47
-rw-r--r--app-i18n/libskk/metadata.xml11
-rw-r--r--app-i18n/libtabe/Manifest10
-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.ebuild60
-rw-r--r--app-i18n/libtabe/libtabe-0.2.6.ebuild51
-rw-r--r--app-i18n/libtabe/metadata.xml8
-rw-r--r--app-i18n/man-pages-da/Manifest5
-rw-r--r--app-i18n/man-pages-da/man-pages-da-0.1.2.ebuild25
-rw-r--r--app-i18n/man-pages-da/metadata.xml5
-rw-r--r--app-i18n/man-pages-de/Manifest10
-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.15.ebuild52
-rw-r--r--app-i18n/man-pages-de/man-pages-de-1.16.ebuild52
-rw-r--r--app-i18n/man-pages-de/man-pages-de-1.21.ebuild48
-rw-r--r--app-i18n/man-pages-de/metadata.xml13
-rw-r--r--app-i18n/man-pages-fr/Manifest7
-rw-r--r--app-i18n/man-pages-fr/man-pages-fr-3.40.1.ebuild23
-rw-r--r--app-i18n/man-pages-fr/man-pages-fr-3.70.ebuild23
-rw-r--r--app-i18n/man-pages-fr/metadata.xml5
-rw-r--r--app-i18n/man-pages-it/Manifest7
-rw-r--r--app-i18n/man-pages-it/man-pages-it-2.80-r1.ebuild28
-rw-r--r--app-i18n/man-pages-it/man-pages-it-4.00.ebuild24
-rw-r--r--app-i18n/man-pages-it/metadata.xml22
-rw-r--r--app-i18n/man-pages-ja/Manifest8
-rw-r--r--app-i18n/man-pages-ja/man-pages-ja-20130215.ebuild92
-rw-r--r--app-i18n/man-pages-ja/man-pages-ja-20131015.ebuild94
-rw-r--r--app-i18n/man-pages-ja/metadata.xml18
-rw-r--r--app-i18n/man-pages-nl/Manifest5
-rw-r--r--app-i18n/man-pages-nl/man-pages-nl-0.13.3.ebuild20
-rw-r--r--app-i18n/man-pages-nl/metadata.xml5
-rw-r--r--app-i18n/man-pages-pl/Manifest7
-rw-r--r--app-i18n/man-pages-pl/man-pages-pl-0.6.ebuild26
-rw-r--r--app-i18n/man-pages-pl/man-pages-pl-0_pre20070628-r2.ebuild42
-rw-r--r--app-i18n/man-pages-pl/metadata.xml16
-rw-r--r--app-i18n/man-pages-ro/Manifest5
-rw-r--r--app-i18n/man-pages-ro/man-pages-ro-0.2.ebuild22
-rw-r--r--app-i18n/man-pages-ro/metadata.xml5
-rw-r--r--app-i18n/man-pages-ru/Manifest5
-rw-r--r--app-i18n/man-pages-ru/man-pages-ru-4.08.2329.2329.20170422.ebuild27
-rw-r--r--app-i18n/man-pages-ru/metadata.xml15
-rw-r--r--app-i18n/man-pages-zh_CN/Manifest5
-rw-r--r--app-i18n/man-pages-zh_CN/man-pages-zh_CN-1.5.ebuild32
-rw-r--r--app-i18n/man-pages-zh_CN/metadata.xml5
-rw-r--r--app-i18n/mecab-skkserv/Manifest8
-rw-r--r--app-i18n/mecab-skkserv/files/mecab-skkserv-cflags.patch13
-rw-r--r--app-i18n/mecab-skkserv/files/mecab-skkserv-dicrc.patch7
-rw-r--r--app-i18n/mecab-skkserv/files/mecab-skkserv.xinetd11
-rw-r--r--app-i18n/mecab-skkserv/mecab-skkserv-0.03.ebuild39
-rw-r--r--app-i18n/mecab-skkserv/metadata.xml8
-rw-r--r--app-i18n/metadata.xml34
-rw-r--r--app-i18n/mozc/Manifest28
-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-2.20.2673.102-system_libraries.patch291
-rw-r--r--app-i18n/mozc/files/mozc-2.20.2673.102-tests_build.patch27
-rw-r--r--app-i18n/mozc/files/mozc-2.20.2673.102-tests_skipping.patch70
-rw-r--r--app-i18n/mozc/files/mozc-ibus-1.5.4.patch299
-rw-r--r--app-i18n/mozc/metadata.xml28
-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/mozc/mozc-2.20.2673.102.ebuild311
-rw-r--r--app-i18n/mozc/mozc-9999.ebuild311
-rw-r--r--app-i18n/multiskkserv/Manifest8
-rw-r--r--app-i18n/multiskkserv/files/multiskkserv-cdb.patch52
-rw-r--r--app-i18n/multiskkserv/files/multiskkserv.confd10
-rw-r--r--app-i18n/multiskkserv/files/multiskkserv.initd12
-rw-r--r--app-i18n/multiskkserv/metadata.xml8
-rw-r--r--app-i18n/multiskkserv/multiskkserv-20100128.ebuild41
-rw-r--r--app-i18n/nabi/Manifest10
-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.xml11
-rw-r--r--app-i18n/nabi/nabi-0.99.11.ebuild52
-rw-r--r--app-i18n/nabi/nabi-1.0.0.ebuild61
-rw-r--r--app-i18n/nkf/Manifest9
-rw-r--r--app-i18n/nkf/files/nkf-2.1.3-strip.patch9
-rw-r--r--app-i18n/nkf/metadata.xml11
-rw-r--r--app-i18n/nkf/nkf-2.1.3-r1.ebuild73
-rw-r--r--app-i18n/nkf/nkf-2.1.3.ebuild68
-rw-r--r--app-i18n/opencc/Manifest10
-rw-r--r--app-i18n/opencc/files/opencc-1.0.4-cmake-libdir.patch13
-rw-r--r--app-i18n/opencc/files/opencc-test.patch11
-rw-r--r--app-i18n/opencc/metadata.xml15
-rw-r--r--app-i18n/opencc/opencc-1.0.4.ebuild32
-rw-r--r--app-i18n/opencc/opencc-1.0.5.ebuild44
-rw-r--r--app-i18n/opencc/opencc-9999.ebuild44
-rw-r--r--app-i18n/poedit/Manifest10
-rw-r--r--app-i18n/poedit/files/poedit-1.5.5-wx28.patch22
-rw-r--r--app-i18n/poedit/metadata.xml12
-rw-r--r--app-i18n/poedit/poedit-1.5.5.ebuild46
-rw-r--r--app-i18n/poedit/poedit-1.8.5.ebuild72
-rw-r--r--app-i18n/poedit/poedit-1.8.7.ebuild67
-rw-r--r--app-i18n/pology/Manifest8
-rw-r--r--app-i18n/pology/metadata.xml8
-rw-r--r--app-i18n/pology/pology-0.11-r1.ebuild63
-rw-r--r--app-i18n/pology/pology-0.12.ebuild60
-rw-r--r--app-i18n/pology/pology-9999.ebuild60
-rw-r--r--app-i18n/pyzy/Manifest9
-rw-r--r--app-i18n/pyzy/files/pyzy-boost.patch15
-rw-r--r--app-i18n/pyzy/files/pyzy-db.patch17
-rw-r--r--app-i18n/pyzy/files/pyzy-opencc-1.0.0.patch56
-rw-r--r--app-i18n/pyzy/metadata.xml20
-rw-r--r--app-i18n/pyzy/pyzy-0.1.0-r2.ebuild59
-rw-r--r--app-i18n/qimhangul/Manifest5
-rw-r--r--app-i18n/qimhangul/metadata.xml8
-rw-r--r--app-i18n/qimhangul/qimhangul-0.2.0.ebuild17
-rw-r--r--app-i18n/qkc/Manifest5
-rw-r--r--app-i18n/qkc/metadata.xml8
-rw-r--r--app-i18n/qkc/qkc-1.00.ebuild34
-rw-r--r--app-i18n/rime-data/Manifest9
-rw-r--r--app-i18n/rime-data/metadata.xml20
-rw-r--r--app-i18n/rime-data/rime-data-0.22.ebuild19
-rw-r--r--app-i18n/rime-data/rime-data-0.32.ebuild19
-rw-r--r--app-i18n/rime-data/rime-data-0.35.ebuild19
-rw-r--r--app-i18n/scim-anthy/Manifest6
-rw-r--r--app-i18n/scim-anthy/metadata.xml16
-rw-r--r--app-i18n/scim-anthy/scim-anthy-1.2.7-r1.ebuild46
-rw-r--r--app-i18n/scim-bridge/Manifest10
-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.xml11
-rw-r--r--app-i18n/scim-bridge/scim-bridge-0.4.16-r3.ebuild94
-rw-r--r--app-i18n/scim-hangul/Manifest10
-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.xml11
-rw-r--r--app-i18n/scim-hangul/scim-hangul-0.3.2.ebuild46
-rw-r--r--app-i18n/scim-hangul/scim-hangul-0.4.0.ebuild52
-rw-r--r--app-i18n/scim-input-pad/Manifest7
-rw-r--r--app-i18n/scim-input-pad/metadata.xml36
-rw-r--r--app-i18n/scim-input-pad/scim-input-pad-0.1.3.1.ebuild55
-rw-r--r--app-i18n/scim-input-pad/scim-input-pad-0.1.3.ebuild55
-rw-r--r--app-i18n/scim-m17n/Manifest5
-rw-r--r--app-i18n/scim-m17n/metadata.xml11
-rw-r--r--app-i18n/scim-m17n/scim-m17n-0.2.3.ebuild33
-rw-r--r--app-i18n/scim-pinyin/Manifest11
-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.xml11
-rw-r--r--app-i18n/scim-pinyin/scim-pinyin-0.5.91-r3.ebuild47
-rw-r--r--app-i18n/scim-pinyin/scim-pinyin-0.5.92.ebuild38
-rw-r--r--app-i18n/scim-sayura/Manifest6
-rw-r--r--app-i18n/scim-sayura/files/scim-sayura-0.3.3-gcc45.patch15
-rw-r--r--app-i18n/scim-sayura/metadata.xml11
-rw-r--r--app-i18n/scim-sayura/scim-sayura-0.3.3.ebuild31
-rw-r--r--app-i18n/scim-sunpinyin/Manifest6
-rw-r--r--app-i18n/scim-sunpinyin/files/scim-sunpinyin-2.0.3-force-switch.patch34
-rw-r--r--app-i18n/scim-sunpinyin/metadata.xml11
-rw-r--r--app-i18n/scim-sunpinyin/scim-sunpinyin-2.0.3-r2.ebuild31
-rw-r--r--app-i18n/scim-tables/Manifest7
-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.xml11
-rw-r--r--app-i18n/scim-tables/scim-tables-0.5.13.ebuild64
-rw-r--r--app-i18n/scim-tomoe/Manifest8
-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-r3.ebuild35
-rw-r--r--app-i18n/scim-tomoe/scim-tomoe-0.6.0.ebuild22
-rw-r--r--app-i18n/scim-uim/Manifest7
-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.xml11
-rw-r--r--app-i18n/scim-uim/scim-uim-0.2.0-r2.ebuild40
-rw-r--r--app-i18n/scim-wijesekera/Manifest6
-rw-r--r--app-i18n/scim-wijesekera/files/scim-wijesekera-0.3.3-gcc43.patch22
-rw-r--r--app-i18n/scim-wijesekera/metadata.xml11
-rw-r--r--app-i18n/scim-wijesekera/scim-wijesekera-0.3.3-r1.ebuild30
-rw-r--r--app-i18n/scim-wnn/Manifest8
-rw-r--r--app-i18n/scim-wnn/files/scim-wnn-1.0.0-gcc43.patch22
-rw-r--r--app-i18n/scim-wnn/metadata.xml8
-rw-r--r--app-i18n/scim-wnn/scim-wnn-0.2.4.ebuild46
-rw-r--r--app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild57
-rw-r--r--app-i18n/scim/Manifest10
-rw-r--r--app-i18n/scim/files/xinput-scim9
-rw-r--r--app-i18n/scim/metadata.xml14
-rw-r--r--app-i18n/scim/scim-1.4.14.ebuild105
-rw-r--r--app-i18n/scim/scim-1.4.16.ebuild98
-rw-r--r--app-i18n/scim/scim-1.4.17.ebuild98
-rw-r--r--app-i18n/skk-jisyo/Manifest6
-rw-r--r--app-i18n/skk-jisyo/metadata.xml8
-rw-r--r--app-i18n/skk-jisyo/skk-jisyo-201605.ebuild66
-rw-r--r--app-i18n/skk-jisyo/skk-jisyo-999999.ebuild85
-rw-r--r--app-i18n/skkfep/Manifest8
-rw-r--r--app-i18n/skkfep/files/skkfep-annotation.patch29
-rw-r--r--app-i18n/skkfep/files/skkfep-gentoo.patch75
-rw-r--r--app-i18n/skkfep/files/skkfep-system-dic.patch13
-rw-r--r--app-i18n/skkfep/metadata.xml8
-rw-r--r--app-i18n/skkfep/skkfep-0.87-r1.ebuild46
-rw-r--r--app-i18n/skkserv/Manifest9
-rw-r--r--app-i18n/skkserv/files/skkserv-headers.patch19
-rw-r--r--app-i18n/skkserv/files/skkserv-segfault.patch15
-rw-r--r--app-i18n/skkserv/files/skkserv-suffix.patch13
-rw-r--r--app-i18n/skkserv/files/skkserv.initd19
-rw-r--r--app-i18n/skkserv/metadata.xml8
-rw-r--r--app-i18n/skkserv/skkserv-9.6-r3.ebuild34
-rw-r--r--app-i18n/skktools/Manifest7
-rw-r--r--app-i18n/skktools/files/50skktools-gentoo.el2
-rw-r--r--app-i18n/skktools/metadata.xml11
-rw-r--r--app-i18n/skktools/skktools-1.3.3_p20150901.ebuild67
-rw-r--r--app-i18n/skktools/skktools-1.3.3_p20170305.ebuild67
-rw-r--r--app-i18n/sunpinyin-data/Manifest9
-rw-r--r--app-i18n/sunpinyin-data/files/SLM-inst.mk62
-rw-r--r--app-i18n/sunpinyin-data/metadata.xml11
-rw-r--r--app-i18n/sunpinyin-data/sunpinyin-data-20121025.ebuild37
-rw-r--r--app-i18n/sunpinyin-data/sunpinyin-data-20130220.ebuild37
-rw-r--r--app-i18n/sunpinyin/Manifest14
-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/files/sunpinyin-2.0.4-pod2man.patch17
-rw-r--r--app-i18n/sunpinyin/files/sunpinyin-2.0.4_pre20130108-gcc6-use-float.patch17
-rw-r--r--app-i18n/sunpinyin/metadata.xml11
-rw-r--r--app-i18n/sunpinyin/sunpinyin-2.0.3-r1.ebuild64
-rw-r--r--app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108-r1.ebuild47
-rw-r--r--app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild46
-rw-r--r--app-i18n/tagainijisho/Manifest6
-rw-r--r--app-i18n/tagainijisho/files/tagainijisho-1.0.3-sqlite.patch15
-rw-r--r--app-i18n/tagainijisho/metadata.xml23
-rw-r--r--app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild52
-rw-r--r--app-i18n/tegaki-zinnia-japanese/Manifest5
-rw-r--r--app-i18n/tegaki-zinnia-japanese/metadata.xml8
-rw-r--r--app-i18n/tegaki-zinnia-japanese/tegaki-zinnia-japanese-0.3.ebuild25
-rw-r--r--app-i18n/tomoe-gtk/Manifest3
-rw-r--r--app-i18n/tomoe-gtk/metadata.xml12
-rw-r--r--app-i18n/tomoe-gtk/tomoe-gtk-0.6.0-r4.ebuild45
-rw-r--r--app-i18n/tomoe/Manifest10
-rw-r--r--app-i18n/tomoe/files/tomoe-export-symbols.patch240
-rw-r--r--app-i18n/tomoe/files/tomoe-gentoo.patch22
-rw-r--r--app-i18n/tomoe/files/tomoe-glib-2.32.patch33
-rw-r--r--app-i18n/tomoe/files/tomoe-ruby19.patch84
-rw-r--r--app-i18n/tomoe/metadata.xml15
-rw-r--r--app-i18n/tomoe/tomoe-0.6.0-r2.ebuild70
-rw-r--r--app-i18n/tomoe/tomoe-0.6.0-r3.ebuild93
-rw-r--r--app-i18n/transifex-client/Manifest9
-rw-r--r--app-i18n/transifex-client/metadata.xml12
-rw-r--r--app-i18n/transifex-client/transifex-client-0.10.ebuild20
-rw-r--r--app-i18n/transifex-client/transifex-client-0.12.2.ebuild20
-rw-r--r--app-i18n/transifex-client/transifex-client-0.12.4.ebuild26
-rw-r--r--app-i18n/translate-shell/Manifest4
-rw-r--r--app-i18n/translate-shell/metadata.xml24
-rw-r--r--app-i18n/translate-shell/translate-shell-0.9.6.2.ebuild33
-rw-r--r--app-i18n/uchardet/Manifest4
-rw-r--r--app-i18n/uchardet/metadata.xml15
-rw-r--r--app-i18n/uchardet/uchardet-0.0.6.ebuild31
-rw-r--r--app-i18n/uchardet/uchardet-9999.ebuild27
-rw-r--r--app-i18n/uim-tomoe-gtk/Manifest5
-rw-r--r--app-i18n/uim-tomoe-gtk/metadata.xml11
-rw-r--r--app-i18n/uim-tomoe-gtk/uim-tomoe-gtk-0.6.0.ebuild22
-rw-r--r--app-i18n/uim/Manifest11
-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/uim-1.8.6-libressl.patch79
-rw-r--r--app-i18n/uim/files/xinput-uim6
-rw-r--r--app-i18n/uim/metadata.xml25
-rw-r--r--app-i18n/uim/uim-1.8.6-r1.ebuild223
-rw-r--r--app-i18n/uim/uim-1.8.6-r2.ebuild227
-rw-r--r--app-i18n/unicode-cldr/Manifest3
-rw-r--r--app-i18n/unicode-cldr/metadata.xml8
-rw-r--r--app-i18n/unicode-cldr/unicode-cldr-31.0.1.ebuild21
-rw-r--r--app-i18n/unicode-data/Manifest9
-rw-r--r--app-i18n/unicode-data/metadata.xml8
-rw-r--r--app-i18n/unicode-data/unicode-data-10.0.0.ebuild31
-rw-r--r--app-i18n/unicode-data/unicode-data-9.0.0.ebuild31
-rw-r--r--app-i18n/unicode-emoji/Manifest7
-rw-r--r--app-i18n/unicode-emoji/metadata.xml8
-rw-r--r--app-i18n/unicode-emoji/unicode-emoji-5.0.ebuild32
-rw-r--r--app-i18n/xcin/Manifest10
-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.xml8
-rw-r--r--app-i18n/xcin/xcin-2.5.3_pre3-r2.ebuild70
-rw-r--r--app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild76
-rw-r--r--app-i18n/xsunpinyin/Manifest9
-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.xml11
-rw-r--r--app-i18n/xsunpinyin/xsunpinyin-2.0.3-r3.ebuild31
-rw-r--r--app-i18n/xsunpinyin/xsunpinyin-2.0.4_pre20130108.ebuild42
-rw-r--r--app-i18n/xvnkb/Manifest10
-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.xml11
-rw-r--r--app-i18n/xvnkb/xvnkb-0.2.8a-r1.ebuild68
-rw-r--r--app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild64
-rw-r--r--app-i18n/yaskkserv/Manifest8
-rw-r--r--app-i18n/yaskkserv/files/yaskkserv-gentoo.patch93
-rw-r--r--app-i18n/yaskkserv/files/yaskkserv.confd10
-rw-r--r--app-i18n/yaskkserv/files/yaskkserv.initd13
-rw-r--r--app-i18n/yaskkserv/files/yaskkserv.service12
-rw-r--r--app-i18n/yaskkserv/metadata.xml11
-rw-r--r--app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild82
-rw-r--r--app-i18n/zhcon/Manifest14
-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.xml16
-rw-r--r--app-i18n/zhcon/zhcon-0.2.6-r2.ebuild53
-rw-r--r--app-i18n/zinnia-tomoe/Manifest5
-rw-r--r--app-i18n/zinnia-tomoe/metadata.xml12
-rw-r--r--app-i18n/zinnia-tomoe/zinnia-tomoe-0.6.0_p20080911.ebuild31
-rw-r--r--app-i18n/zinnia/Manifest8
-rw-r--r--app-i18n/zinnia/files/zinnia-0.06-c++-2011.patch11
-rw-r--r--app-i18n/zinnia/files/zinnia-0.06-flags.patch18
-rw-r--r--app-i18n/zinnia/files/zinnia-0.06-perl_build.patch11
-rw-r--r--app-i18n/zinnia/metadata.xml12
-rw-r--r--app-i18n/zinnia/zinnia-0.06-r3.ebuild85
698 files changed, 24908 insertions, 0 deletions
diff --git a/app-i18n/anthy/Manifest b/app-i18n/anthy/Manifest
new file mode 100644
index 000000000000..6d9931b6791d
--- /dev/null
+++ b/app-i18n/anthy/Manifest
@@ -0,0 +1,8 @@
+AUX 50anthy-gentoo.el 63 SHA256 7a1e9904ba583fce8e3275d8e73cc3f5a171099b8abe416b74d65e31aee60341 SHA512 ca11bd44d092da07278905555513e8b5215413af64c46cfb9213cbd27948727133c06fb1fcfc1a48d67d196c693ed2835e8dbae142a52ff4dbd5ea8d49e6e65a WHIRLPOOL 10539b489f842b542aa25856807fb9da6262d1a41c46fd775d07802e03636c97f9e9d657f0143ba7023f579ad256e1ff8945549ef34882592cbe3841a267550a
+AUX anthy-anthy_context_t.patch 174 SHA256 9caf62c425cf537704599da459676ce42cb6a2fb5deca80439ba3be7948652bc SHA512 3f252628f77f53dd96eac50f08a36bb782f0ddc37446c1bdd5bd94fffa3454b9adcaff7118d76fdc7e8bc3f86b1a84e9830da5b67b2b0d281847b26ff62cdee3 WHIRLPOOL 6329db64e6cd3c5487d647f860d3802b19b14e34504c35de69222031f2c73cba3db235f9bb0f2300c15b6e4ba29ff061c977684ef35050e4bf169ff78db53401
+DIST anthy-9100h.tar.gz 4446148 SHA256 d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2275547 SHA512 315ebd9e1af208f3ecaeaa13620213b35f004e47edb54e60c3e02c2997444cd2326cc58b725dd2d0bd6a723130884d946ea193ea3d92418082256b59ecc8d88b WHIRLPOOL dfdaa96e19dbd53ad627c40521922c7df74858e9836a770059dbd6005a09e3978bcd46bcd40380360708c4234e91e77d91161064614596047f53020c2c571245
+EBUILD anthy-9100h-r1.ebuild 1319 SHA256 a78e82f1363d090099d22e1ee5eb0121564209d23d475e810c9488010687cfed SHA512 ad8723d14c9269670c8f46131b92f0646fffdc1e8b20be6bef387e8fdb0168b6f715ebc4a39f0de5e74afbb3fd9619eca755023adfc46e06946f21576b443baa WHIRLPOOL e545556f3c90d6e800a99c4a8b0d4160d25b7c9d06a7bffb5e9cd65e40e3788d4a38695ad9ddaad6ca1e5bc9b13c874bf4f4190c9cc6a305726c9f3794219475
+EBUILD anthy-9100h-r2.ebuild 1273 SHA256 b2c333ecfb20a472f1fbd111c2a8ca37262cad8cce082f87efd32e9084f81fe7 SHA512 88a4ac35a38baba020d3762cab2e7e716dcf8f19901c8c03d85bc69a02f949895d7df49adf0f437a4f7b1fc65c88ba15532b3c594a7bc049d3dd3db32f0cd9a0 WHIRLPOOL 9b978c8e18290dcf1f57ae8b30ff6fc1071adb01e6ce01313c8b30757fa38ea35aa05b819427ef4b00148b56c58b7cb43d215988d48e7e6156647b9adbf67b97
+MISC ChangeLog 2636 SHA256 40fc27d15ed3932047aa3a2a2f8c0ae1c8fab243864a8fe24f935108c2346f63 SHA512 a6ed41a2e4b303e8d58dad1ab1d616457fd5d2f95ec9df8e87600bc35d56b4124e6ef7a87d0655d0d1c0b555328c4963eb06e2468fdb740b6dadba8d990a0616 WHIRLPOOL 7b5c14bfb04aeaa34b35a057b5f505cbadbbf866b7e7b16ada17c050bb8e6ce94d1811b47e4a95be1dfb6397f5a6bb8f61c0a7e77f1261bd85d2f7be3a4bbb04
+MISC ChangeLog-2015 16940 SHA256 64c550bf8282c0c7739ec8a26a8d6f54b9d4f6fda50e9ebe6486728b9902a6ec SHA512 c919a2643933290b77c6f4940ea8f6242e4914426f10e2a401c316054b8627836347d4d395f73bb21fa13bb34dabb1671859638b01b6e8b72ebbe10278731c4b WHIRLPOOL 437cb056e614b7917f2b686d94758d488bea1e4e090f4250f063c62b096498af426898b9cbec03041760271cf6997d153d145bdecce0d623ab1789f2431a8cb5
+MISC metadata.xml 903 SHA256 ca6cf4e8cb82690a02e746deef29a2c6d388b9571e82cbad29082c943876b25d SHA512 6fed9f2dd2b723292db8348fa4977659600b2d755f74bdfd7d9007b60d2c505473af01f5277d41155e9cdee6243d6e8faf9254c9e6963787509ea4a3f37117c9 WHIRLPOOL 3a7c86c9792ed93937dcc90bc93d0c486fc6e9869abee789a4ba17a9a9d50ba7f8f9b780f4373e87e2d0094245ec47fc108886dfe6d8746551ea633b4d73c964
diff --git a/app-i18n/anthy/anthy-9100h-r1.ebuild b/app-i18n/anthy/anthy-9100h-r1.ebuild
new file mode 100644
index 000000000000..2f19573106ff
--- /dev/null
+++ b/app-i18n/anthy/anthy-9100h-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit elisp-common eutils
+
+DESCRIPTION="Anthy -- free and secure Japanese input system"
+HOMEPAGE="http://anthy.osdn.jp/"
+SRC_URI="mirror://sourceforge.jp/${PN}/37536/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="canna-2ch emacs static-libs"
+
+RDEPEND="canna-2ch? ( app-dicts/canna-2ch )
+ emacs? ( virtual/emacs )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-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/anthy-9100h-r2.ebuild b/app-i18n/anthy/anthy-9100h-r2.ebuild
new file mode 100644
index 000000000000..7b639dd72147
--- /dev/null
+++ b/app-i18n/anthy/anthy-9100h-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit elisp-common ltprune
+
+DESCRIPTION="Anthy -- free and secure Japanese input system"
+HOMEPAGE="http://anthy.osdn.jp/"
+SRC_URI="mirror://sourceforge.jp/${PN}/37536/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="canna-2ch emacs static-libs"
+
+RDEPEND="canna-2ch? ( app-dicts/canna-2ch )
+ emacs? ( virtual/emacs )"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-anthy_context_t.patch )
+DOCS=( AUTHORS ChangeLog DIARY NEWS README )
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+ default
+
+ if use canna-2ch; then
+ einfo "Adding nichan.ctd to anthy.dic."
+ sed -i "/set_input_encoding eucjp/aread ${EPREFIX}/var/lib/canna/dic/canna/nichan.ctd" mkworddic/dict.args.in
+ fi
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ EMACS=$(usex emacs "${EMACS}")
+}
+
+src_install() {
+ default
+ prune_libtool_files
+
+ if use emacs; then
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE}
+ fi
+
+ rm -f doc/Makefile*
+ dodoc -r doc
+}
+
+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 000000000000..ab154f8d4eff
--- /dev/null
+++ b/app-i18n/anthy/files/50anthy-gentoo.el
@@ -0,0 +1,2 @@
+(set-language-info "Japanese" 'input-method "japanese-anthy")
+
diff --git a/app-i18n/anthy/files/anthy-anthy_context_t.patch b/app-i18n/anthy/files/anthy-anthy_context_t.patch
new file mode 100644
index 000000000000..aab4ab749ea0
--- /dev/null
+++ b/app-i18n/anthy/files/anthy-anthy_context_t.patch
@@ -0,0 +1,11 @@
+--- a/anthy/input.h
++++ b/anthy/input.h
+@@ -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 000000000000..0b8350b78af9
--- /dev/null
+++ b/app-i18n/anthy/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </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/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/atokx3/Manifest b/app-i18n/atokx3/Manifest
new file mode 100644
index 000000000000..3cfbc0a01a61
--- /dev/null
+++ b/app-i18n/atokx3/Manifest
@@ -0,0 +1,8 @@
+AUX xinput-iiimf 259 SHA256 e8464e950ddc11e17ba53c7e6c1aeb169044c9d80151a75e03b83f81cb91859c SHA512 bbc852628d17c56124cf977c8fba28d9819944ca1bc7994da38222707ac9f785aafe9d854a70fec968d87382be053753ae599f0d47d666d133c49c62096eb3cd WHIRLPOOL 9480ec0b14b250a48d432817bf649c880ac4f9732f8dd09146e97d1ab9a21781bec28c8aaac572e9c838ab2933b6781add215afe7fb749640f74e172b103fdaa
+DIST a20y1406lx.tgz 8491493 SHA256 df19a3fc57c2a3cd09d5de8694f68b1e05826a67103d970815249ac5e5a8de73 SHA512 bf350be4f15db63b384ff10ec7e362c469a836d052e8885aac1bab049f7d4f0b04dacaecbe5c1303211405938bc3f674136ba5ae3b55ff31aa5e4f14dbec0273 WHIRLPOOL 747cbed162028853ab9f19f66eb039ab09827aa7665daa92814d2af3ae49865f749b0fe3f098e2a4780b69bbaddc4f1af594bd7b975062e9a056bb87e2c1feab
+DIST atokx3gtk216.tar.gz 69246 SHA256 cd81d0e85872274135d94511ee71eda3f29f00ed299c1dacbdf024b9d96c62e2 SHA512 39c0ff01807626f417f34ef02e4be2fe07c52edc931775299e90fd8725d9c870c3473005fc87be5023d089e94fb4700f9ad36a10ad3373be22ec35e2a418eddd WHIRLPOOL 9bdad5de28564d0c7e3e1b3d67bc0fea09e2b1e9af5fb301ebbb90bc41e58fee405468020a06c84b0d97e3bbab28d7e421a0d9d293d9b957230fa476f823302d
+DIST atokx3up2.tar.gz 8427265 SHA256 d9aae2b3917c3370bd40a3f0f767ad15a09a586986e906835952264cd5c1d28e SHA512 b4ce05882418a18e6a0ab58d805a1edeca69187bfa16a98b8f79d749ec0cfdc1b838de30f3049d3b8b0929214164c4c2054dbe283dce0f18a1ab2daa181e306d WHIRLPOOL 43b5e32e62cba0122e918f497a5c5d1da1b303721af8eb00b70a840431cc2aa0ffa7a7009cb4253caab690445a9921741aa6a6394044c4907e1acd1376c6c76e
+EBUILD atokx3-3.0.0-r12.ebuild 6720 SHA256 eae685c718fd41698092ef78a38d984cf044fa895130389eb01019d816c3b82b SHA512 1edcff3e2b30fb9e44db5a9ffeb76361678179a1528df76ec2c7d67c1ebdaea67cc5182b1e3a1e1f739bc75f4df0f8bfd156f3f47fcf3957a07950f4ddd22401 WHIRLPOOL 345f003a7d6d670eefc7533789991ac1663098ecb852e6c60e057e11cca6e6faac9157a8a0fbafaddeed3a2454ecdeb9d4e25637990ba0ba41905e32251218ed
+MISC ChangeLog 2453 SHA256 3fccf9c2aff010961e408ee5e7673246d22693e8c91e2f2820851a15661d9533 SHA512 af39f1812009e4098abe63cff1d71758a73f99a8fc95e2b3fc214648def5a79d440afa5fc1c504ea947b5cb0dbb531f0cee8c93371bddeade93f4ed504ba7f6a WHIRLPOOL e9fd88d14d312cd64cdd7de12c4d392df4f4180698cbbcc5c232795ad68a01e1537d97bf67dc19383e71c04faa379119d4ff22759926c43f3c6bd8fdafc58bb1
+MISC ChangeLog-2015 4660 SHA256 56995b121f04901b58831c702e289d61b3e4102dd950f85c3cc08e9d431f23e4 SHA512 8dfd73cbba9cf748a07e11e6baf8c39a33e3aadb64713f3729fb0a49d529b67c103cb2bd795e47266bd07266a1312a6455944beae80fc09926390f8ade6d1535 WHIRLPOOL ca4dff636c203ed640578c2cf799fdb65f4def42adb144a5012aa65d55a1ee6ef6bd746730c75efe957dcb52028b9a5f890033d4498d2927ed985b1fd6684d85
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/atokx3/atokx3-3.0.0-r12.ebuild b/app-i18n/atokx3/atokx3-3.0.0-r12.ebuild
new file mode 100644
index 000000000000..00345250cc31
--- /dev/null
+++ b/app-i18n/atokx3/atokx3-3.0.0-r12.ebuild
@@ -0,0 +1,209 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+MULTILIB_COMPAT=( abi_x86_{32,64} )
+
+inherit cdrom eutils gnome2-utils multilib-build
+
+MY_UPDATE_P="${PN}up2"
+MY_UPDATE_GTK="${PN}gtk216"
+MY_ZIPCODE_P="a20y1406lx"
+
+DESCRIPTION="ATOK X3 for Linux - The most famous Japanese Input Method Engine"
+HOMEPAGE="http://www.justsystems.com/jp/products/atok_linux/"
+SRC_URI="https://gate.justsystems.com/download/atok/up/lin/${MY_UPDATE_P}.tar.gz
+ https://gate.justsystems.com/download/atok/up/lin/${MY_UPDATE_GTK}.tar.gz
+ https://gate.justsystems.com/download/zipcode/up/lin/${MY_ZIPCODE_P}.tgz"
+
+LICENSE="ATOK MIT"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="strip mirror"
+
+RDEPEND="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
+ amd64? (
+ >=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(-)]
+ )"
+S="${WORKDIR}"
+
+EMULTILIB_PKG="true"
+
+pkg_setup() {
+ if ! cdrom_get_cds ${PN}index ; then
+ die "Please mount ATOK for Linux CD-ROM or set CD_ROOT variable to the directory containing ATOK X3 for Linux."
+ fi
+
+ QA_PREBUILT="opt/${PN}/lib/server/*
+ opt/${PN}/lib/client/xaux/*
+ opt/${PN}/lib/client/*
+ opt/${PN}/bin/*
+ usr/libexec/*
+ usr/bin/*
+ usr/$(get_libdir)/*
+ usr/$(get_libdir)/gtk-2.0/immodules/*
+ usr/$(get_libdir)/iiim/le/${PN}/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/${PN}/*"
+}
+
+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 abi_x86_64 ; then
+ 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+=" ATOK/atokxup-20.0-*.0.0.i386.tar.gz"
+
+ unpack ${MY_UPDATE_P}.tar.gz
+
+ local i
+ 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
+ die "${i} not found."
+ fi
+ done
+ unpack ${MY_UPDATE_GTK}.tar.gz
+ unpack ${MY_ZIPCODE_P}.tgz
+}
+
+src_prepare() {
+ if use abi_x86_64 ; 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/${PN}" || die
+ mv "usr/${lib32}/iiim/le/${PN}/64" "usr/${lib64}/iiim/le/${PN}/64" || die
+ rm "usr/${lib32}/iiim/le/${PN}/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() {
+ DOCS=( ${MY_UPDATE_P}/README_UP2.txt "${CDROM_ROOT}"/doc/atok.pdf )
+ HTML_DOCS=( "${CDROM_ROOT}"/readme.html )
+ einstalldocs
+ rm -rf ${MY_UPDATE_P}
+
+ cp -dpR * "${ED}" || die
+
+ # amd64 hack
+ if use abi_x86_64 ; then
+ local lib32="$(ABI=x86 get_libdir)"
+ local lib64="$(get_libdir)"
+ if [[ "${lib32}" != "${lib64}" ]] ; then
+ local f
+ 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 ${PN}aux.so ${PN}.so ; do
+ dosym "${EPREFIX}/usr/${lib32}/iiim/le/${PN}/${f}" "/usr/${lib64}/iiim/le/${PN}/${f}"
+ done
+ dosym "${EPREFIX}/usr/${lib64}/iiim/le/${PN}/64" "/usr/${lib32}/iiim/le/${PN}/64"
+ dosym "${EPREFIX}/usr/${lib64}/iiim/le/${PN}/64" "/usr/${lib32}/iiim/le/${PN}/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"
+}
+
+pkg_preinst() {
+ # bug #343325
+ if use abi_x86_64 && 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/${PN}/bin/${PN}start.sh"
+ elog
+ multilib_foreach_abi gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ multilib_foreach_abi 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 000000000000..bc2330c49970
--- /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 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/atokx3/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/bidiv/Manifest b/app-i18n/bidiv/Manifest
new file mode 100644
index 000000000000..ac2ee477dffd
--- /dev/null
+++ b/app-i18n/bidiv/Manifest
@@ -0,0 +1,9 @@
+AUX bidiv-1.5-fribidi.patch 1164 SHA256 aa9dc8c6030f86be2c0931b1c02737c4bef648117dd4eca9b9fb58b693cde919 SHA512 0f2bbf5b2f337c335c009cf4672b896ff7b7dcdc94a839544aa5af1f80d43d64b373387b49e21f5bbd5111fc7f7014e0f058973a70154f1ad913ba8d7228c1be WHIRLPOOL 583f62a5c5951ab65e18e2d2cff9db938bee39443e788939e929e1bf460e42e9dd39bf478844848d205800c2da202871d9d72fe7bff7aeff6a1b161bfe539894
+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
+EBUILD bidiv-1.5-r1.ebuild 631 SHA256 6b30f1c28cf8f158368f33200baee839ee8b5ea053ad60072301492c6bc71dd4 SHA512 89f0a57e7f3bb741e41d4c416cef6d3ef76dcfe1b3bccf314f71b325d3703945e4e7e898fdbc2ce4699c0b5243c0809c97e29e13fae9471744b69a0a9cbd2f1b WHIRLPOOL a20a07206c6f977be172444d15b3facff8f780f0681ac7b86a6a5dbf2ae6569b6e7428f9df047e60f10ea6956d8bc2f0dd3dde713fbac402ba4982a04669ef72
+EBUILD bidiv-1.5_p4.ebuild 1061 SHA256 4b7e7b5d0016c8ec218773a60d51a1d7f70684b544b6b6128da7ef071b4eeb44 SHA512 c86d3fdd1a5b924acef7a1588e5abdb786849d7ada0ab2535116a3a3cbb2d70ca2fd12db419d02512ab732050244881e2e382cc14a008cf115fe9cc3bbf02e34 WHIRLPOOL 24e10693b83b22a533435b4dc217593233650950953906f5ab9af043a04b2397fe04f303498d51d233f14f7f8f085de45d97efd7294461b55426b613bc6ae8f8
+MISC ChangeLog 2505 SHA256 df31df5bf11921e472b96bef71d1697d7880fc1a48b2ded35e64954017518925 SHA512 4f250157a301b4eed0177b7d8e83c39d5f2285db5265ab5eaa588d28239ba52caa2771e962532942a9ef83f62c257b30ad581b9e28b79e7683a9f48dbe98435c WHIRLPOOL d5c659cdfa839444eabedac0d453820a2b9b718736ab52723646e379fd2555d355dfe591f35fb91d59335a36af837017aeb5089a878e451375e586cd1cb035e6
+MISC ChangeLog-2015 2530 SHA256 b11928fcc6589e2bf5fe00d179c21a3fa9f3edea195ea80e0bc0247dad311130 SHA512 ceaefe07cca80b14c70d2254a8aa452e539e534e349e84a5f22f7ee4058b86510db57bc894061ce0b651e822f2e57e34f44dd72a492c45edf5d7c69811e44725 WHIRLPOOL 84a919252b9ce7da9831c5d91328422fda9a461b12d74281bd10700edc456a1ff75cf1a52fdb5f007852c336d1d836beed5adf3c4b5c3e99a88c2570287470da
+MISC metadata.xml 230 SHA256 5fc421627b578ee2d1317320525119c0b406026597bb1d054f96254a241bf96a SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 WHIRLPOOL b3c1363540645200abd5bf0b5b7fb3cae0b738bfd359f7b13b56d97650f9381fccede1e3f867dbc736461ee7c7906725a3c53eabd9ac99929d5c7c520a831082
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 000000000000..86d05fe04bf0
--- /dev/null
+++ b/app-i18n/bidiv/bidiv-1.5-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..9635bec349c9
--- /dev/null
+++ b/app-i18n/bidiv/bidiv-1.5_p4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+PATCH_LEVEL=4
+
+DESCRIPTION="A commandline tool displaying logical Hebrew/Arabic"
+HOMEPAGE="https://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 000000000000..0223329cbe5e
--- /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 000000000000..c921b96adf6c
--- /dev/null
+++ b/app-i18n/bidiv/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-i18n/canfep/Manifest b/app-i18n/canfep/Manifest
new file mode 100644
index 000000000000..7c75f77355f1
--- /dev/null
+++ b/app-i18n/canfep/Manifest
@@ -0,0 +1,9 @@
+AUX canfep-posix-pty.patch 1674 SHA256 c5cbe8b90ca37eac0348585db0c3ee67ca13a801cd2f2720625315046e83cced SHA512 dc02c9fca1e964f04c7fc223fee7935d5e68d25699bb279327904ac2ce042a9cf9fc02e4f1c4e59515c931a6a157861d113e685a8484242b791c367d132d5f7b WHIRLPOOL 883c2f7e5973d7a116e120165933f171770eb661e96dba1c77a42a6045c8917b8055ee6cf5d9e9b1bc0a1712b636088fbd30f4814bc450951fd3e163adf732f0
+AUX canfep-termcap.patch 6533 SHA256 be272bc9823da3eeec109f6efbedc3e81bb02cc7c13243c9a961f705b8831ef8 SHA512 7ebaf5745bdc8b1aa1bd07879fe51c3c6410c1475f9e44535bf863f9ab0b7ee6ac0f3dca852c22036ae2ecfababfd976a0c3027ad9d33e3aae7e289c00bd60bc WHIRLPOOL e235a2770edf344599c8c128b2e2f5749f2313c9523c146bef1de49fbde1346433fbbcc480e0bae69d318fa9a93758d23a3047ab21d321796ab6ffac17d157b8
+DIST canfep-1.0.tar.gz 8067 SHA256 124a204b56a70b0ec1f6c96f32cc499065020910f12e4f9749d29c9c2fdb2d4f SHA512 0fd7c8ca56282fa537b76fe33f46e03d4f0f4727528ccad95cd4726888372da9158fc8bed2cdc67d645defb479040cd4a4d0999f69d38fd8b4080f7ece4e67d6 WHIRLPOOL 49b44552073d90b6079bb9141b885095203a662042eaa24ccc09e14120b2aa3f0a384ac38a94dbdeecb29979d41ff3db63360676567df1832f13f1cbca3e1574
+DIST canfep_utf8.diff 7152 SHA256 d1f0210354bbc2d21caed5fb521d90eea65674c8251c32df8fe070d6b7965da8 SHA512 32d946b8b78efd3b95736738497fe46a7d0e2383f2b665c8af79270d7b0d1404ca051e63fc67375f0b953b8f604475c8d6b2d683089bc97b098fa9524b89208c WHIRLPOOL 97c6cae11c6839460c5d8364c54e5ffaaad486e888b72fa8dd8cf1f98dce3dd62026ab23bfd1262ffab82eda08d46a0efc0fc8fc6d806d7d6504b1df5241cf85
+EBUILD canfep-1.0-r1.ebuild 980 SHA256 2bedab8ae2cba662fe36dfbb667b50b3598e9c404ab46024d2ad5ba8c3662656 SHA512 57c102baccceafdbbf894576a9e0b338c8c0213b1d51cd41e93f8a9414aae37881e1101e9a05cbadac35ce31e6f4d57c49cd60f980987932a7415df408492054 WHIRLPOOL ef1d9fe333fa5a1082e1f7cfb2d62baf626f7b9352063775a581152ef674648aa2fbd58074f92ae59c4846560aa5a5f8d76616fee92525325863eacd19628fe3
+EBUILD canfep-1.0.ebuild 893 SHA256 a72ee99f4dae429acdd2616942e6b947614324ca061afbc7f1b72a4f15bbece7 SHA512 7970b0c9ce1fdd16e933c5f3c5b82216f9ab212433881ff51d0020e13fb05d4d96dd150ba0c305701e9c9029575aa5c52875bb61049962a47c5cb3c45f68b939 WHIRLPOOL 509b925d1c36ad688000596318e67da0573147629c325b524d0fb69cb4ae18e35d6076d4e5a18fd259b0eb0a46529d9db7d6e719cd73e518306078d450139dca
+MISC ChangeLog 2420 SHA256 80496a2054c82b9b617f5ed70a1a49731cf1cfc4a5f5798dbb849ae657b94748 SHA512 fc242e8c79a1f448b34b72ec5d634bccab5e64d388c75b8d7745eadabcafaddb73b4e05564d2bfb851e16dbf030bcf7177cbef8ee7b824826943b67569934c08 WHIRLPOOL 64683a2d97245eca9a9801cf8b09f94e53253f53f8c0d46b9ec1de6d415afc7605dfdb2b681af270f8245e12b96facdd3dd79c4698b390eedc3bf1ec7a47e6fe
+MISC ChangeLog-2015 861 SHA256 17fd952169c330e2a387c51751c1600abea7aa6f36ac4d99e3aba9b5e43b004b SHA512 d40e1f4ffcc2743cccd4d077adfa333ce1239950c8bf5d9ec6e58c93e94c4bef8aae874ab89fe865a3b6ecc7cb5d2d968f96ac77f60c35cb6ac600b63adaea7b WHIRLPOOL 92a7c93131dc8fa077ba27f9336e10aba56e3ac2111b39a81d88e9eb642e473a5654dbb749e18cff3d9106087360e1d2ad727420bf3a1dbeef20858a678787ed
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/canfep/canfep-1.0-r1.ebuild b/app-i18n/canfep/canfep-1.0-r1.ebuild
new file mode 100644
index 000000000000..d46bf3258374
--- /dev/null
+++ b/app-i18n/canfep/canfep-1.0-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit 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/${PN}/${P}.tar.gz
+ unicode? ( http://hp.vector.co.jp/authors/VA020411/patches/${PN}_utf8.diff )"
+
+LICENSE="canfep"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE="unicode"
+
+RDEPEND="app-i18n/canna
+ sys-libs/ncurses:="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-posix-pty.patch
+ "${FILESDIR}"/${PN}-termcap.patch
+)
+
+src_prepare() {
+ use unicode && eapply "${DISTDIR}"/${PN}_utf8.diff
+ sed -i 's/$(CFLAGS)/$(CFLAGS) $(LDFLAGS)/' Makefile
+
+ default
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCXX)" \
+ LIBS="-lcanna $(pkg-config --libs ncurses)"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc 00{changes,readme}
+}
diff --git a/app-i18n/canfep/canfep-1.0.ebuild b/app-i18n/canfep/canfep-1.0.ebuild
new file mode 100644
index 000000000000..a290748825da
--- /dev/null
+++ b/app-i18n/canfep/canfep-1.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit 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/${PN}/${P}.tar.gz
+ unicode? ( http://hp.vector.co.jp/authors/VA020411/patches/${PN}_utf8.diff )"
+
+LICENSE="canfep"
+SLOT="0"
+KEYWORDS="-alpha ~amd64 ppc ~sparc x86"
+IUSE="unicode"
+
+RDEPEND="app-i18n/canna
+ sys-libs/ncurses:="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ use unicode && eapply "${DISTDIR}"/${PN}_utf8.diff
+ sed -i 's/$(CFLAGS)/$(CFLAGS) $(LDFLAGS)/' Makefile
+
+ default
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCXX)" \
+ LIBS="-lcanna $(pkg-config --libs ncurses)"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc 00{changes,readme}
+}
diff --git a/app-i18n/canfep/files/canfep-posix-pty.patch b/app-i18n/canfep/files/canfep-posix-pty.patch
new file mode 100644
index 000000000000..caa451232ef4
--- /dev/null
+++ b/app-i18n/canfep/files/canfep-posix-pty.patch
@@ -0,0 +1,67 @@
+https://bugs.gentoo.org/show_bug.cgi?id=212709
+
+Author: OKUMURA N. Shin-ya <oku.ns@dream.com>
+
+--- a/pty.C
++++ b/pty.C
+@@ -257,6 +257,23 @@
+ }
+ }
+
++#if defined(_POSIX_C_SOURCE)
++ // BSD pty ¤¬³«¤±¤Ê¤¤¤Î¤Ç¡¢POSIX ¤ÎÊýË¡¤ò»î¤¹
++ if ((master = posix_openpt(O_RDWR)) >= 0) {
++ if (grantpt(master) == 0 && unlockpt(master) == 0) {
++ // ¥Þ¥¹¥¿¥Ç¥Ð¥¤¥¹Ì¾¤Ï¸ÇÄê
++ strcpy(line, "/dev/ptmx");
++ tcgetattr(0, &tt);
++ tt.c_iflag &= ~ISTRIP;
++ ioctl(0, TIOCGWINSZ, (char*) &win);
++ return;
++ }
++ close(master);
++ } else {
++ perror("/dev/ptmx");
++ }
++#endif // _POSIX_C_SOURCE
++
+ printf("Out of pty's\n");
+ fail();
+ }
+@@ -265,12 +282,36 @@
+ void
+ Pty::getslave()
+ {
++#if defined(_POSIX_C_SOURCE)
++ // ¥Þ¥¹¥¿¥Ç¥Ð¥¤¥¹¤¬ POSIX Êý¼°¤Î¾ì¹ç
++ if (strcmp(line, "/dev/ptmx") == 0) {
++ char *slave_devname = ptsname(master);
++ if (slave_devname == NULL) {
++ perror("ptsname");
++ fail();
++ }
++ slave = open(slave_devname, O_RDWR);
++ if (slave < 0) {
++ perror(slave_devname);
++ fail();
++ }
++ strcpy(line, slave_devname);
++ } else {
++ line[strlen("/dev/")] = 't';
++ slave = open(line, O_RDWR);
++ if (slave < 0) {
++ perror(line);
++ fail();
++ }
++ }
++#else // ! _POSIX_C_SOURCE
+ line[strlen("/dev/")] = 't';
+ slave = open(line, O_RDWR);
+ if (slave < 0) {
+ perror(line);
+ fail();
+ }
++#endif // _POSIX_C_SOURCE
+ tcsetattr(slave, TCSAFLUSH, &tt);
+ if (!hs)
+ win.ws_row--;
diff --git a/app-i18n/canfep/files/canfep-termcap.patch b/app-i18n/canfep/files/canfep-termcap.patch
new file mode 100644
index 000000000000..afd215b07e79
--- /dev/null
+++ b/app-i18n/canfep/files/canfep-termcap.patch
@@ -0,0 +1,266 @@
+--- a/pty.C
++++ b/pty.C
+@@ -4,9 +4,18 @@
+ int Pty::child = 0;
+ struct termios Pty::tt;
+ int Pty::wfd = 0;
++char Pty::buf[] = "";
++char Pty::funcstr[] = "";
+ int Pty::hs = 0;
++char* Pty::so = 0;
++char* Pty::se = 0;
++char* Pty::us = 0;
++char* Pty::ue = 0;
++char* Pty::sc = 0;
++char* Pty::rc = 0;
+ char* Pty::ce = 0;
+ char* Pty::ts = 0;
++char* Pty::fs = 0;
+ char* Pty::ds = 0;
+ char Pty::endstr[] = "";
+ char Pty::endmsg[] = "";
+@@ -14,88 +23,7 @@
+ // ¥³¥ó¥¹¥È¥é¥¯¥¿¤À¤è¤ó
+ Pty::Pty(int ac, char** av, char* amsg, char* emsg)
+ {
+- // ´Ä¶­ÊÑ¿ô TERM ¤Î¥¨¥ó¥È¥ê¤ò¼èÆÀ
+- char buff[BUFSIZ];
+- char* term = getenv("TERM");
+- if (!term)
+- term = "vt100";
+- int ret = tgetent(buff, term);
+- if (ret != 1) {
+- tgetent(buff, "vt100");
+- putenv("TERM=vt100");
+- }
+-
+- // termcap ¤«¤éÁõ¾þÍѤΥ¨¥ó¥È¥ê¤ò¼è¤Ã¤Æ¤¯¤ë
+- char funcstr[BUFSIZ];
+- char* pt = funcstr;
+-
+- // ¥¹¥¿¥ó¥É¥¢¥¦¥È (ȿž)
+- so = tgetstr("so", &pt);
+- adjstr(so);
+- se = tgetstr("se", &pt);
+- adjstr(se);
+-
+- // ¥¢¥ó¥À¡¼¥é¥¤¥ó (²¼Àþ)
+- us = tgetstr("us", &pt);
+- adjstr(us);
+- ue = tgetstr("ue", &pt);
+- adjstr(ue);
+-
+- // ¥«¡¼¥½¥ë°ÌÃÖ¤ÎÊݸ¡¤Êݸ¤·¤¿°ÌÃ֤ؤÎÉüµ¢
+- sc = tgetstr("sc", &pt);
+- adjstr(sc);
+- rc = tgetstr("rc", &pt);
+- adjstr(rc);
+-
+- // ¥«¡¼¥½¥ë°ÌÃÖ¤«¤é¹Ô¤ÎºÇ¸å¤Þ¤Ç¤òºï½ü¤¹¤ë
+- ce = tgetstr("ce", &pt);
+- adjstr(ce);
+-
+- // ¥¹¥Æ¡¼¥¿¥¹¥é¥¤¥ó¤ò»ý¤Ã¤Æ¤¤¤ë¤«¤É¤¦¤«
+- hs = tgetflag("hs");
+-
+- // kon ¤È jfbterm ¤Ç¤Ï¥¹¥Æ¡¼¥¿¥¹¥é¥¤¥ó¤ò»È¤ï¤Ê¤¤
+- if (strcmp(term, "kon") == 0)
+- hs = 0;
+- if (strcmp(term, "jfbterm") == 0)
+- hs = 0;
+-
+- // ¥¹¥Æ¡¼¥¿¥¹¥é¥¤¥ó¤Ø°ÜÆ°¡¤Ìá¤ë
+- if (hs) {
+- ts = tgoto(tgetstr("ts", &pt), 0, 0);
+- adjstr(ts);
+- fs = tgetstr("fs", &pt);
+- adjstr(fs);
+- ds = tgetstr("ds", &pt);
+- adjstr(ds);
+- if (ds) {
+- strcat(endstr, ds);
+- strcat(endstr, ce);
+- }
+- }
+- else {
+- char* cs = tgoto(tgetstr("cs", &pt), tgetnum("li") - 2, 0);
+- adjstr(cs);
+- if (cs) {
+- write(1, ce, strlen(ce));
+- write(1, cs, strlen(cs));
+- }
+- char* cl = tgetstr("cl", &pt);
+- adjstr(cl);
+- if (cl) {
+- write(1, cl, strlen(cl));
+- strcat(endstr, cl);
+- }
+- ds = tgoto(tgetstr("cs", &pt), tgetnum("li") - 1, 0);
+- adjstr(ds);
+- if (ds) {
+- strcat(endstr, ds);
+- strcat(endstr, ce);
+- }
+- ts = tgoto(tgetstr("cm", &pt), 0, tgetnum("li") - 1);
+- adjstr(ts);
+- fs = rc;
+- }
++ gettermcap();
+
+ // ³«»Ï¤È½ªÎ»¤Î¥á¥Ã¥»¡¼¥¸
+ if (amsg && ac == 1)
+@@ -209,21 +137,75 @@
+ done();
+ }
+
+-// termcap ¥¨¥ó¥È¥ê¤«¤é¥Ñ¥Ç¥£¥ó¥°¤òºï½ü¤¹¤ë
+ void
+-Pty::adjstr(char* str)
++Pty::gettermcap()
+ {
+- char* sp = strdup(str);
+- char* p = sp;
+- while (*p != '\0') {
+- if (strncmp(p, "$<", 2) == 0) {
+- while (*p != '>')
+- p++;
+- *p = '\0';
++ // ´Ä¶­ÊÑ¿ô TERM ¤Î¥¨¥ó¥È¥ê¤ò¼èÆÀ
++ char* term = getenv("TERM");
++ if (!term)
++ term = "vt100";
++ int ret = tgetent(buf, term);
++ if (ret != 1) {
++ tgetent(buf, "vt100");
++ putenv("TERM=vt100");
++ }
++
++ // termcap ¤«¤éÁõ¾þÍѤΥ¨¥ó¥È¥ê¤ò¼è¤Ã¤Æ¤¯¤ë
++ char* pt = funcstr;
++
++ // ¥¹¥¿¥ó¥É¥¢¥¦¥È (ȿž)
++ so = tgetstr("so", &pt);
++ se = tgetstr("se", &pt);
++
++ // ¥¢¥ó¥À¡¼¥é¥¤¥ó (²¼Àþ)
++ us = tgetstr("us", &pt);
++ ue = tgetstr("ue", &pt);
++
++ // ¥«¡¼¥½¥ë°ÌÃÖ¤ÎÊݸ¡¤Êݸ¤·¤¿°ÌÃ֤ؤÎÉüµ¢
++ sc = tgetstr("sc", &pt);
++ rc = tgetstr("rc", &pt);
++
++ // ¥«¡¼¥½¥ë°ÌÃÖ¤«¤é¹Ô¤ÎºÇ¸å¤Þ¤Ç¤òºï½ü¤¹¤ë
++ ce = tgetstr("ce", &pt);
++
++ // ¥¹¥Æ¡¼¥¿¥¹¥é¥¤¥ó¤ò»ý¤Ã¤Æ¤¤¤ë¤«¤É¤¦¤«
++ hs = tgetflag("hs");
++
++ // kon ¤È jfbterm ¤Ç¤Ï¥¹¥Æ¡¼¥¿¥¹¥é¥¤¥ó¤ò»È¤ï¤Ê¤¤
++ if (strcmp(term, "kon") == 0)
++ hs = 0;
++ if (strcmp(term, "jfbterm") == 0)
++ hs = 0;
++
++ // ¥¹¥Æ¡¼¥¿¥¹¥é¥¤¥ó¤Ø°ÜÆ°¡¤Ìá¤ë
++ if (hs) {
++ ts = tgoto(tgetstr("ts", &pt), 0, 0);
++ fs = tgetstr("fs", &pt);
++ ds = tgetstr("ds", &pt);
++ if (ds) {
++ strcat(endstr, ds);
++ strcat(endstr, ce);
+ }
+- *str++ = *p++;
+ }
+- free(sp);
++ else {
++ char* cs = tgoto(tgetstr("cs", &pt), tgetnum("li") - 2, 0);
++ if (cs) {
++ write(1, ce, strlen(ce));
++ write(1, cs, strlen(cs));
++ }
++ char* cl = tgetstr("cl", &pt);
++ if (cl) {
++ write(1, cl, strlen(cl));
++ strcat(endstr, cl);
++ }
++ ds = tgoto(tgetstr("cs", &pt), tgetnum("li") - 1, 0);
++ if (ds) {
++ strcat(endstr, ds);
++ strcat(endstr, ce);
++ }
++ ts = tgoto(tgetstr("cm", &pt), 0, tgetnum("li") - 1);
++ fs = rc;
++ }
+ }
+
+ // ¥Þ¥¹¥¿¥Ç¥Ð¥¤¥¹¤ò¼è¤ë
+@@ -327,34 +309,7 @@
+ {
+ signal(SIGWINCH, SIG_IGN);
+
+- // ¥¹¥Æ¡¼¥¿¥¹¥é¥¤¥ó¤¬»È¤¨¤Ê¤¤¾ì¹ç¤Ï cs/ds/ts ¤ò¼è¤êľ¤¹
+- if (!hs) {
+- char buff[BUFSIZ];
+- char* term = getenv("TERM");
+- tgetent(buff, term);
+- char funcstr[BUFSIZ];
+- char* pt = funcstr;
+- char* cs = tgoto(tgetstr("cs", &pt), tgetnum("li") - 2, 0);
+- adjstr(cs);
+- if (cs) {
+- write(1, ce, strlen(ce));
+- write(1, cs, strlen(cs));
+- }
+- char* cl = tgetstr("cl", &pt);
+- adjstr(cl);
+- if (cl) {
+- write(1, cl, strlen(cl));
+- strcpy(endstr, cl);
+- }
+- ds = tgoto(tgetstr("cs", &pt), tgetnum("li") - 1, 0);
+- adjstr(ds);
+- if (ds) {
+- strcat(endstr, ds);
+- strcat(endstr, ce);
+- }
+- ts = tgoto(tgetstr("cm", &pt), 0, tgetnum("li") - 1);
+- adjstr(ts);
+- }
++ gettermcap();
+
+ // ¥¦¥£¥ó¥É¥¦¤Î¥µ¥¤¥º¤òÀßÄꤷľ¤¹ (stty -a ¤Î ¹Ô¿ô/·å¿ô Åù)
+ struct winsize win;
+--- a/pty.H
++++ b/pty.H
+@@ -50,18 +50,21 @@
+ int rfd;
+ static int wfd;
+ private:
+- static void adjstr(char* str);
++ static char buf[BUFSIZ];
++ static char funcstr[BUFSIZ];
++private:
++ static void gettermcap();
+ protected:
+ static int hs;
+- char* so;
+- char* se;
+- char* us;
+- char* ue;
+- char* sc;
+- char* rc;
++ static char* so;
++ static char* se;
++ static char* us;
++ static char* ue;
++ static char* sc;
++ static char* rc;
+ static char* ce;
+ static char* ts;
+- char* fs;
++ static char* fs;
+ static char* ds;
+ private:
+ static void finish();
diff --git a/app-i18n/canfep/metadata.xml b/app-i18n/canfep/metadata.xml
new file mode 100644
index 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/canfep/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/canna/Manifest b/app-i18n/canna/Manifest
new file mode 100644
index 000000000000..401e1861c362
--- /dev/null
+++ b/app-i18n/canna/Manifest
@@ -0,0 +1,18 @@
+AUX canna-Wformat-security.patch 4545 SHA256 2535e6e2b9bfa458c03355df1991f57c851194598a084db0f8e52f05f36f0e31 SHA512 7c2649d98b5eac8d625586b245fff7e07b19616395e754a59443d7858e818f3651fb5e03e97ebcacb5ff4b2c1cb0f0c45aa0838ae85350e0c24906faa3a36102 WHIRLPOOL 74d6324dfd28cdfe1b7124d182b9b61b798d6e875c376e802497c41de26e8e2e4688ea5f30024b697ed8b3e5b77c6ecffe3d25c614701fa6991cb9f7dfe407d3
+AUX canna-Wformat.patch 340 SHA256 765aa02a9c9795a87af6a83a63f1147c5c4314c756ae374bdbea576c43edd56f SHA512 38b2cc703ff69f29352b1c2bc4bc01c3387edaada98f724344525c68ee5a8ae1490ba0ce84fac53b00ca89b7cab201640631638ee578fb00211cc59d4d968bcd WHIRLPOOL 13972103f4d3fb794afe78da958783b2b4360f8214b0e81700ac0926aac2f23f0348fbdf4f2b24dacfeb4d4646bc476c65cb239f9bf98b77d6ce1205b50cd3bb
+AUX canna-canuum.patch 779 SHA256 1fcc2f5301e4b99792af080250c7b7abf7854db29adbb81d82283902261150ba SHA512 62005fe564b7c6cb627c10af136e4ad15bfd6f2d17cd71093ae34b9e7f7f47c582ff5c32fadf5068fdaa5c685dd2b898cccb71ccd86b19b429e34f57c290cdd6 WHIRLPOOL 7326080ae3953a9e5d12e0847fc86c844193ada9d8c25b41880fe5ce6572b3a829e09827f0357d3abe8a529819d1134b94db4d44e354f33cb61849bf3579fa04
+AUX canna-gentoo.patch 4310 SHA256 0c4986fc02792a511323ca36868d2d8d3ade4537b2be98bf30e988c7ebae4f4d SHA512 31d893ba6fe873d1b9ceb5106c87d027b31013e049ed673d14e7f32232bf259b44a1fa397c133fa0b5a39252a61d400d4d1951a4448e4aaffad649f648652e6b WHIRLPOOL 53b630897450be0fcb8aff1b37a1e8acadf85098a88bdc3475695234aa23554b97ff4a0f9ef99dabe173bcc83019084df8d37af2f448999c2bc3856d9218e0cc
+AUX canna-kpdef.patch 202 SHA256 87f293ba5b27b85c2b378e31ce38eb464ea53d33c42c693aec59b5d5b69e2138 SHA512 f258be22226109b63df7e2aae3a42fb42d13d9f3ca4b92ad9a15f477ac0a4906bf5af3065f4ebfc69a49165073451f310a6b8c43ad57cb772d9af6ece74a50df WHIRLPOOL c78a26740739bf3d99729a0dec9c4bf05f5a87692da694154538bc57b73f49956941abbe6e2d394e08bc9202f77f2c165cc998785a0f0e14281b1a6a81d16ddf
+AUX canna-overflow.patch 788 SHA256 c081d7642274163c6299fe4c039cb733d76372c14a6266fb0185171dd33db7c7 SHA512 7caaf95c9e01277247036488e3f154abca6e7811e17a2c7d1dd34f3a1906ee780ed2cd03a0435d051098d99521b55350d3332e218cebfdebf2391e1f38da541c WHIRLPOOL 9b5201be87346676e3abf4e85cc414eda88453c7d3bccd6f71c09052cfa6c8fcd273bceb0bbff5aacabb1fe0bc9e9f43838e70214619ea9b9964c8dfa974da70
+AUX canna-posix-sort.patch 282 SHA256 2a83ab2024690a1763b456646497a1f119258c364ed15fda30d88e149f0b447e SHA512 310b16878d8f2fb0fa35d45ac43709186a70a36d4fba86abe78a6ccc7df410ddba38f7113effa69da4a5afe1ecf9d81175d285338e59793fee352eca93069d5d WHIRLPOOL 318effe373aae6352ffaf6b4bc5d02ba36a4dd402a673e623c9af4b57a4554323444e206be1286fe9746dde9085d2e7aa1cb0a5912ac3c21c9e875b415a77a70
+AUX canna.confd 129 SHA256 83f91394fbe141fcbb0955343f9d673ec904bd4eb1e22dd1f84c79f915d2136a SHA512 401fdca224f3ab85ceff0786865efdda01c121481f9f084c3983f806d5e5543b706a844676d65529fd06a19d264877499c01c1ecc2b4a7dcb94e686c20d34a41 WHIRLPOOL 0fbf41f67f0b083b508049c0a0870bd20da147ddd4dcbceb7560c70882880d9e379c371dd9c4c57df72443c12ef5018f4502d0938e32db6b6b007f7e64c568c9
+AUX canna.hosts 5 SHA256 d66f691617a7b447171b7586b8f16741a023a810f1307542c254053318f19ca0 SHA512 88cabd1d372defd4bed25c23bafa0a883b13c1184be0287717df6a0946de0d39b73cdbda3660432f787cded46b57bd187106b12969e960760a9cc2db76e5b497 WHIRLPOOL b08e717760c5656ed3f8b83cd118fc1681994ad64333c8ccb1e04a87cf68370c91610f34151d91c015d20f72e4a16a7c4fa9bf2b41f154a682b205d193771b57
+AUX canna.initd 782 SHA256 1f6751544da0e87878224229bfa783304c255d9f018510324c60de03b0beff8d SHA512 1fd348f2aa4139bbe6154b157b75bf8a39a8ddf36a9a072088279c88241981a9af9024df71aa777ca4e93270d53d0bea8363b31cfb07d229d4a37c48828779e6 WHIRLPOOL a01e112daa5a9a2cdc6e29d02222c4fa197cb8b95e2b30feb55577c3963385b3b8eb73df6c14dd69406806155a369b29ada8c96554f13dbdd71d72854f9588d4
+AUX update-canna-dics_dir 1101 SHA256 d1114dce288e815f897b20eabd177bb5b77e0d479bcb4b7eff9afb0d65607f11 SHA512 135fdabf3995ddf82d3f14aece908e952f3d514fd83e2f86d8113b1026b7dcaea2156225be251a6d9a74a35ee075d5ebb32c05d9deb85905120287d0af1f4207 WHIRLPOOL 50566b5212f039a62cf39a8914078cbe97ca5bb40f416c6cf01900976220fdea5e3b86d14a6bb5d3af98d283a228011fdbb700f10d0e0bc3d6ff2483c2a517ba
+DIST Canna37p3.tar.bz2 1263065 SHA256 7d98d925043d3af24f99a8a2a09e3b4d6dfe881efc1303ef4a7f495a0f4542a7 SHA512 82846f2393aa2654dd2c97a93178098b8bd11e5409b584447f1b6fdf303adacc9802e2293cafd98b68af8b69622625ed00aa9712bf270feaa119adfdf4211158 WHIRLPOOL 14433083257ab705bc55b0be5972b9dcce2476209a5c48cdfc53d1f4af6bc739fac2d5fd2f42e7a6e94951a35e1a3e6ca21dd0ec7db6ef307f7d285dc881fbc5
+EBUILD canna-3.7_p3-r1.ebuild 2258 SHA256 eb9a3617e9d7faf0c3c2b1acb7f42c3a63a34cec8f40987e4ec85db89a444f45 SHA512 77a8ab7a8a8ffef263500364aa5fec7f888f2c55b9d5adea10c531852b8317872dfbfb807e9f92daacefee2a0bb725cd8a86f53f648964d672edfe8e0b238458 WHIRLPOOL 83d7042a9262ae2ffe0510fe2f28bac8f363903ea5925b28c1631782481078adfe4ab18e8a36f341f6b9545e2dcdfe8a34137b8f56a39bf7b502e6c7188e3b59
+EBUILD canna-3.7_p3-r2.ebuild 2893 SHA256 388e6ad978237796ca308154fc5be5b2e56ca2f3270b6d8740195cc2be6ebb8c SHA512 8c5a7660f2be089841953914fa8863d0ba9190b88c23d8266d5181c1da9e17f313e36b4448ec8009a65802b203d69c72428a640a3a2e0bf01049dffac3f12bba WHIRLPOOL 564ffaaa5fd2823be9e64fd06d3729ffc9dcc10a40df3f920e9f835c05cddabed1fc3c3ee7f8101e7b76eb4b19d241837930923de55c61952120fc81e789d5fd
+EBUILD canna-3.7_p3-r3.ebuild 3290 SHA256 0191e6bfcc4c3c6739a28e23b400869e9e488eecef0d69ebbd5a1e196f59bbba SHA512 548033faf332008e16b901c5ba555b4f9fbf5ba1acb272c13d357d108222479b13e0e7e33d425d9c365a18121be3f29c001eb9ebd995759b7e35dc19ca910924 WHIRLPOOL 6f4ca3a89553dc8fe883bb7a53e5728db84b2c89b472bb2d23aecf1e5d9ff5eac5cf1f8b7b0fd0a711e43edfe239714a0ad650f6739cebde539219fcbee783f1
+MISC ChangeLog 3376 SHA256 dbe27846a91ef80a559bfa5a5b922eaed6122f0ba6e2a244eb7b347f124970f0 SHA512 838b969c15f343c9163594fb7945bbfdb909e891b91887eab3e8b47c9d7c79765ae566ee19ac2b7096aa26f254fa780a5106eab1e96dd12fca228404a77b6e7e WHIRLPOOL 0505f575427ff2edcc37a8c265b2fe9f40883f615013a62f52fda4dddaf42406065cbb19d7fe37f8323b4db871902674471b1788c56052049d4e6ed39174ac07
+MISC ChangeLog-2015 11154 SHA256 a47f93ca4f5d4b2b893b2aba767abbbb3a5fb54eb059f427b553ef55950992d3 SHA512 e5da79d661c4b1630c01b5bb8c305ba4ccd763e771185306a0fcd63f1947dfbf7216b089f02140f219a214d8b5100c5e225d760b02a229510feeb5802389b5f3 WHIRLPOOL e5c3a3c508b0fe383f265226cff778057a35cc7e8eee07f7347279e04bd0e51444d4be064a5991ac46540b156d2ce6c22d6678826efc43702756a5dc9b76b3df
+MISC metadata.xml 383 SHA256 904d4e37dd39968855d48c3620b93d7ca7d41c33fe880892c32101c8a9a70fa2 SHA512 8affc10d697147ea5430d73c40eb4e7621ee9a06d444725566d4e16a28ccab4f53aed3025905894fe6cba0ea874dcf0d2d583d3dcedf3a0ccc8b139af02e5e98 WHIRLPOOL 5216d21d70c727534c7305a844b2391e7b9b137177a0c80fd7b0b6bf762d0abed8b79593346076616824387a7bcea1e4cde1c641819842978e795632a7145308
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 000000000000..e38caaff6fb5
--- /dev/null
+++ b/app-i18n/canna/canna-3.7_p3-r1.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cannadic toolchain-funcs
+
+MY_P="Canna${PV//[._]/}"
+
+DESCRIPTION="A client-server based Kana-Kanji conversion system"
+HOMEPAGE="http://canna.osdn.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="x11-misc/gccmakedep
+ x11-misc/imake"
+RDEPEND=""
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-gentoo.patch
+ "${FILESDIR}"/${PN}-kpdef.patch
+ "${FILESDIR}"/${PN}-overflow.patch
+ "${FILESDIR}"/${PN}-posix-sort.patch
+ "${FILESDIR}"/${PN}-Wformat.patch
+ "${FILESDIR}"/${PN}-Wformat-security.patch
+)
+DOCS="*CHANGES* ChangeLog INSTALL* README* RKCCONF* WHATIS*"
+
+src_prepare() {
+ default
+
+ find . -name '*.man' -o -name '*.jmn' | xargs sed -i.bak -e 's/1M/8/g' || die
+
+ # Multilib-strict fix for amd64
+ sed -i "/DefLibCannaDir/s:/lib$:/$(get_libdir):" Canna.conf
+}
+
+src_configure() {
+ xmkmf -a || die
+}
+
+src_compile() {
+ # bug #279706
+ emake -j1 \
+ CC="$(tc-getCC)" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" \
+ SHLIBGLOBALSFLAGS="${LDFLAGS}" \
+ ${PN}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install install.man
+ einstalldocs
+
+ dodir /usr/share/man{,/ja}/man8
+ local man mandir
+ 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
+
+ # for backward compatibility
+ dosbin "${FILESDIR}"/update-canna-dics_dir
+
+ keepdir /var/lib/${PN}/dic/{user,group}
+ fowners bin:bin /var/lib/${PN}/dic/{user,group}
+ fperms 0775 /var/lib/${PN}/dic/{user,group}
+
+ insinto /var/lib/${PN}/dic/dics.d
+ newins "${ED}"/var/lib/${PN}/dic/${PN}/dics.dir 00${PN}.dics.dir
+
+ keepdir /var/log/${PN}
+
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+
+ insinto /etc
+ newins "${FILESDIR}"/${PN}.hosts hosts.${PN}
+}
+
+pkg_postinst() {
+ update-cannadic-dir
+
+ if ! locale -a | grep -iq "ja_JP.eucjp"; then
+ elog "Some dictionary tools in this package require ja_JP.EUC-JP locale."
+ elog
+ elog "# echo 'ja_JP.EUC-JP EUC-JP' >> /etc/locale.gen"
+ elog "# locale-gen"
+ elog
+ 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 000000000000..a06d55f21d76
--- /dev/null
+++ b/app-i18n/canna/canna-3.7_p3-r2.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cannadic toolchain-funcs
+
+MY_P="Canna${PV//[._]/}"
+
+DESCRIPTION="A client-server based Kana-Kanji conversion system"
+HOMEPAGE="http://canna.osdn.jp/"
+SRC_URI="mirror://sourceforge.jp/canna/9565/${MY_P}.tar.bz2"
+
+LICENSE="MIT GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc ipv6"
+
+DEPEND="x11-misc/gccmakedep
+ x11-misc/imake
+ doc? (
+ app-text/ghostscript-gpl
+ dev-texlive/texlive-langjapanese
+ dev-texlive/texlive-latexrecommended
+ )"
+RDEPEND=""
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-gentoo.patch
+ "${FILESDIR}"/${PN}-kpdef.patch
+ "${FILESDIR}"/${PN}-overflow.patch
+ "${FILESDIR}"/${PN}-posix-sort.patch
+ "${FILESDIR}"/${PN}-Wformat.patch
+ "${FILESDIR}"/${PN}-Wformat-security.patch
+)
+DOCS="*CHANGES* ChangeLog INSTALL* README* RKCCONF* WHATIS*"
+
+src_prepare() {
+ default
+
+ find . -name '*.man' -o -name '*.jmn' | xargs sed -i.bak -e 's/1M/8/g' || die
+
+ sed -i \
+ -e "/DefLibCannaDir/s:/lib$:/$(get_libdir):" \
+ -e "/UseInet6/s:0:$(usex ipv6 1 0):" \
+ Canna.conf
+}
+
+src_configure() {
+ xmkmf -a || die
+
+ if use doc; then
+ cd doc/man/guide/tex
+ xmkmf -a || die
+ cd - > /dev/null
+ fi
+}
+
+src_compile() {
+ # bug #279706
+ emake -j1 \
+ CC="$(tc-getCC)" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" \
+ SHLIBGLOBALSFLAGS="${LDFLAGS}" \
+ ${PN}
+
+ if use doc; then
+ # NOTE: build fails if infinality enabled in fontconfig
+ einfo "Compiling DVI, PS, and PDF documents"
+ # bug #223077
+ emake -C doc/man/guide/tex -j1 \
+ JLATEXCMD="platex -kanji=euc" \
+ DVI2PSCMD="dvips" \
+ VARTEXFONTS="${T}"/fonts \
+ ${PN}.ps \
+ ${PN}.pdf
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install install.man
+ einstalldocs
+
+ dodir /usr/share/man{,/ja}/man8
+ local man mandir
+ 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
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins doc/man/guide/tex/${PN}.{dvi,ps,pdf}
+ fi
+
+ # for backward compatibility
+ dosbin "${FILESDIR}"/update-canna-dics_dir
+
+ keepdir /var/lib/${PN}/dic/{user,group}
+ fowners bin:bin /var/lib/${PN}/dic/{user,group}
+ fperms 0775 /var/lib/${PN}/dic/{user,group}
+
+ insinto /var/lib/${PN}/dic/dics.d
+ newins "${ED}"/var/lib/${PN}/dic/${PN}/dics.dir 00${PN}.dics.dir
+
+ keepdir /var/log/${PN}
+
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+
+ insinto /etc
+ newins "${FILESDIR}"/${PN}.hosts hosts.${PN}
+}
+
+pkg_postinst() {
+ update-cannadic-dir
+
+ if ! locale -a | grep -iq "ja_JP.eucjp"; then
+ elog "Some dictionary tools in this package require ja_JP.EUC-JP locale."
+ elog
+ elog "# echo 'ja_JP.EUC-JP EUC-JP' >> /etc/locale.gen"
+ elog "# locale-gen"
+ elog
+ fi
+}
diff --git a/app-i18n/canna/canna-3.7_p3-r3.ebuild b/app-i18n/canna/canna-3.7_p3-r3.ebuild
new file mode 100644
index 000000000000..beb1f7613d3d
--- /dev/null
+++ b/app-i18n/canna/canna-3.7_p3-r3.ebuild
@@ -0,0 +1,154 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools cannadic toolchain-funcs
+
+MY_P="Canna${PV//[._]/}"
+
+DESCRIPTION="A client-server based Kana-Kanji conversion system"
+HOMEPAGE="http://canna.osdn.jp/"
+SRC_URI="mirror://sourceforge.jp/${PN}/9565/${MY_P}.tar.bz2"
+
+LICENSE="MIT GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="canuum doc ipv6"
+
+RDEPEND="canuum? (
+ dev-libs/libspt
+ sys-libs/ncurses:=
+ )"
+DEPEND="${RDEPEND}
+ x11-misc/gccmakedep
+ x11-misc/imake
+ canuum? ( virtual/pkgconfig )
+ doc? (
+ app-text/ghostscript-gpl
+ dev-texlive/texlive-langjapanese
+ dev-texlive/texlive-latexrecommended
+ )"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-gentoo.patch
+ "${FILESDIR}"/${PN}-canuum.patch
+ "${FILESDIR}"/${PN}-kpdef.patch
+ "${FILESDIR}"/${PN}-overflow.patch
+ "${FILESDIR}"/${PN}-posix-sort.patch
+ "${FILESDIR}"/${PN}-Wformat.patch
+ "${FILESDIR}"/${PN}-Wformat-security.patch
+)
+DOCS="*CHANGES* ChangeLog INSTALL* README* RKCCONF* WHATIS*"
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "/DefLibCannaDir/s:/lib$:/$(get_libdir):" \
+ -e "/UseInet6/s:0:$(usex ipv6 1 0):" \
+ ${PN^c}.conf
+
+ if use canuum; then
+ cd canuum
+ mv configure.{in,ac}
+ eautoreconf
+ cd - > /dev/null
+ fi
+}
+
+src_configure() {
+ xmkmf -a || die
+
+ if use canuum; then
+ cd canuum
+ xmkmf -a || die
+ # workaround for sys-libs/ncurses[tinfo]
+ sed -i "/^TERMCAP_LIB/s:=.*:=$(pkg-config --libs ncurses):" Makefile
+ cd - > /dev/null
+ fi
+
+ if use doc; then
+ cd doc/man/guide/tex
+ xmkmf -a || die
+ cd - > /dev/null
+ fi
+}
+
+src_compile() {
+ # bug #279706
+ emake -j1 \
+ CC="$(tc-getCC)" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" \
+ SHLIBGLOBALSFLAGS="${LDFLAGS}" \
+ ${PN}
+
+ if use canuum; then
+ einfo "Compiling canuum"
+ emake -C canuum -j1 \
+ CC="$(tc-getCC)" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" \
+ canuum
+ fi
+
+ if use doc; then
+ # NOTE: build fails if infinality enabled in fontconfig
+ einfo "Compiling DVI, PS, and PDF documents"
+ # bug #223077
+ emake -C doc/man/guide/tex -j1 \
+ JLATEXCMD="platex -kanji=euc" \
+ DVI2PSCMD="dvips" \
+ VARTEXFONTS="${T}"/fonts \
+ ${PN}.ps \
+ ${PN}.pdf
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install install.man
+ einstalldocs
+
+ if use canuum; then
+ emake -C canuum DESTDIR="${D}" install install.man
+ docinto canuum
+ dodoc README.jp
+ fi
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}
+ doins doc/man/guide/tex/${PN}.{dvi,ps,pdf}
+ fi
+
+ # for backward compatibility
+ dosbin "${FILESDIR}"/update-canna-dics_dir
+
+ keepdir /var/lib/${PN}/dic/{user,group}
+ fowners bin:bin /var/lib/${PN}/dic/{user,group}
+ fperms 0775 /var/lib/${PN}/dic/{user,group}
+
+ insinto /var/lib/${PN}/dic/dics.d
+ newins "${ED}"/var/lib/${PN}/dic/${PN}/dics.dir 00${PN}.dics.dir
+
+ keepdir /var/log/${PN}
+
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+
+ insinto /etc
+ newins "${FILESDIR}"/${PN}.hosts hosts.${PN}
+}
+
+pkg_postinst() {
+ update-cannadic-dir
+
+ if ! locale -a | grep -iq "ja_JP.eucjp"; then
+ elog "Some dictionary tools in this package require ja_JP.EUC-JP locale."
+ elog
+ elog "# echo 'ja_JP.EUC-JP EUC-JP' >> /etc/locale.gen"
+ elog "# locale-gen"
+ elog
+ fi
+}
diff --git a/app-i18n/canna/files/canna-Wformat-security.patch b/app-i18n/canna/files/canna-Wformat-security.patch
new file mode 100644
index 000000000000..c83552b5cba5
--- /dev/null
+++ b/app-i18n/canna/files/canna-Wformat-security.patch
@@ -0,0 +1,199 @@
+--- a/cmd/catdic/can.c
++++ b/cmd/catdic/can.c
+@@ -1236,7 +1236,7 @@
+ break;
+ default:
+ if (init[0] == '/') {
+- (void)fprintf(stderr,msg_abnl);
++ (void)fprintf(stderr,"%s",msg_abnl);
+ } else {
+ (void)fprintf(stderr,msg_abnls,init);
+ }
+@@ -1297,11 +1297,11 @@
+
+ if ( opt_fq ) {
+ if ( opt_s ) {
+- (void) fprintf(stderr,msg_sfq);
++ (void) fprintf(stderr,"%s",msg_sfq);
+ exit(ERR_VALUE) ;
+ }
+ if ( opt_l || opt_std ) {
+- (void) fprintf(stderr,msg_l);
++ (void) fprintf(stderr,"%s",msg_l);
+ exit(ERR_VALUE) ;
+ }
+ mode = mode | PL_DIC ;
+@@ -1491,7 +1491,7 @@
+ break;
+ default:
+ if(init[0] == '/') {
+- fprintf(stderr,msg_abnl );
++ fprintf(stderr,"%s",msg_abnl );
+ }
+ else {
+ fprintf(stderr,msg_abnls,init);
+--- a/cmd/catdic/rutil.c
++++ b/cmd/catdic/rutil.c
+@@ -271,7 +271,7 @@
+ "Dictionary \"%s\" does not exist.\n"), dicname);
+ break;
+ case NOTALC :
+- (void)fprintf(stderr, msg_mem);
++ (void)fprintf(stderr, "%s", msg_mem);
+ break;
+ case BADF :
+ (void)fprintf(stderr, gettxt("cannacmd:196",
+@@ -297,7 +297,7 @@
+ (void)fprintf(stderr,msg_abnls,init);
+ }
+ else {
+- (void)fprintf(stderr,msg_abnl);
++ (void)fprintf(stderr,"%s",msg_abnl);
+ }
+ break;
+ }
+@@ -321,7 +321,7 @@
+ (void)fprintf(stderr, msg_abnls, init);
+ }
+ else {
+- (void)fprintf(stderr, msg_abnl);
++ (void)fprintf(stderr, "%s", msg_abnl);
+ }
+ ret = -1;
+ return ret;
+@@ -332,13 +332,13 @@
+ (void)fprintf(stderr, msg_mnts, init);
+ }
+ else {
+- (void)fprintf(stderr, msg_mnt);
++ (void)fprintf(stderr, "%s", msg_mnt);
+ }
+ ret = -1;
+ return ret;
+ }
+ if ((mode & PL_DIC) == PL_DIC ) {
+- (void)fprintf(stderr,msg_fq);
++ (void)fprintf(stderr,"%s",msg_fq);
+ ret = -1 ;
+ return ret ;
+ }
+@@ -359,7 +359,7 @@
+ ret = 0;
+ break;
+ case NOTALC :
+- (void)fprintf(stderr, msg_mem);
++ (void)fprintf(stderr, "%s", msg_mem);
+ ret = -1;
+ break;
+ case BADF :
+@@ -421,7 +421,7 @@
+ ret = -1;
+ break;
+ case BADCONT :
+- (void)fprintf(stderr,msg_cnt);
++ (void)fprintf(stderr,"%s",msg_cnt);
+ ret = -1;
+ break;
+ default:
+@@ -429,7 +429,7 @@
+ (void)fprintf(stderr, msg_abnls, init);
+ }
+ else {
+- (void)fprintf(stderr, msg_abnl);
++ (void)fprintf(stderr, "%s", msg_abnl);
+ }
+ exit(ERR_VALUE);
+ break;
+@@ -448,7 +448,7 @@
+ ret = 0;
+ break;
+ case NOTALC :
+- (void)fprintf(stderr, msg_mem);
++ (void)fprintf(stderr, "%s", msg_mem);
+ ret = -1;
+ break;
+ case BADF :
+@@ -509,11 +509,11 @@
+ ret = -1;
+ break;
+ case BADARG :
+- (void)fprintf(stderr,msg_fq);
++ (void)fprintf(stderr,"%s",msg_fq);
+ ret = -1;
+ break;
+ case BADCONT :
+- (void)fprintf(stderr,msg_cnt);
++ (void)fprintf(stderr,"%s",msg_cnt);
+ ret = -1;
+ break;
+ case NOENT : /* 91.12.03 */
+@@ -526,7 +526,7 @@
+ (void)fprintf(stderr, msg_abnls, init);
+ }
+ else {
+- (void)fprintf(stderr, msg_abnl);
++ (void)fprintf(stderr, "%s", msg_abnl);
+ }
+ exit(ERR_VALUE);
+ break;
+@@ -556,7 +556,7 @@
+ (void)fprintf(stderr, msg_abnls,init);
+ }
+ else {
+- (void)fprintf(stderr, msg_abnl);
++ (void)fprintf(stderr, "%s", msg_abnl);
+ }
+ ret = -1;
+ return ret;
+@@ -567,13 +567,13 @@
+ (void)fprintf(stderr, msg_mnts, init);
+ }
+ else {
+- (void)fprintf(stderr, msg_mnt);
++ (void)fprintf(stderr, "%s", msg_mnt);
+ }
+ ret = -1;
+ return ret;
+ }
+ if ((mode & PL_DIC) == PL_DIC ) {
+- (void)fprintf(stderr, msg_fq);
++ (void)fprintf(stderr, "%s", msg_fq);
+ ret = -1 ;
+ return ret ;
+ }
+@@ -608,7 +608,7 @@
+ ret = -2; /* 93.03.03 */
+ break;
+ case BADCONT :
+- (void)fprintf(stderr, msg_cnt);
++ (void)fprintf(stderr, "%s", msg_cnt);
+ ret = -1;
+ break;
+ default:
+@@ -616,7 +616,7 @@
+ (void)fprintf(stderr, msg_abnls, init);
+ }
+ else {
+- (void)fprintf(stderr, msg_abnl);
++ (void)fprintf(stderr, "%s", msg_abnl);
+ }
+ ret = -1;
+ break;
+@@ -651,7 +651,7 @@
+ ret = -2; /* 93.03.03 */
+ break;
+ case BADCONT :
+- (void)fprintf(stderr, msg_cnt);
++ (void)fprintf(stderr, "%s", msg_cnt);
+ ret = -1;
+ break;
+ default:
+@@ -659,7 +659,7 @@
+ (void)fprintf(stderr, msg_abnls, init);
+ }
+ else {
+- (void)fprintf(stderr, msg_abnl);
++ (void)fprintf(stderr, "%s", msg_abnl);
+ }
+ ret = -1;
+ break;
diff --git a/app-i18n/canna/files/canna-Wformat.patch b/app-i18n/canna/files/canna-Wformat.patch
new file mode 100644
index 000000000000..a8f5aa37163e
--- /dev/null
+++ b/app-i18n/canna/files/canna-Wformat.patch
@@ -0,0 +1,11 @@
+--- a/doc/man/guide/tex/cannaindex.c
++++ b/doc/man/guide/tex/cannaindex.c
+@@ -198,7 +198,7 @@
+ }
+ inf = fopen(argv[1], "r");
+ if (!inf) {
+- fprintf(stderr, "%s: Can not open file \"%s\".\n", argv[1]);
++ fprintf(stderr, "%s: Can not open file \"%s\".\n", program, argv[1]);
+ exit(1);
+ }
+ pages = readindex(inf, entries);
diff --git a/app-i18n/canna/files/canna-canuum.patch b/app-i18n/canna/files/canna-canuum.patch
new file mode 100644
index 000000000000..293ffbb54c90
--- /dev/null
+++ b/app-i18n/canna/files/canna-canuum.patch
@@ -0,0 +1,34 @@
+--- a/canuum/configure.in
++++ b/canuum/configure.in
+@@ -401,7 +401,7 @@
+ dnl
+ olibs="$LIBS"
+ AC_MSG_CHECKING(--with-term-libs argument)
+-AC_ARG_WITH(tlib,
++AC_ARG_WITH(term-libs,
+ [ --with-term-libs=-lLIB terminal library to be used ],)
+ if test -n "$with_term_libs"; then
+ AC_MSG_RESULT($with_term_libs)
+--- a/canuum/wnn_config.h
++++ b/canuum/wnn_config.h
+@@ -149,8 +149,8 @@
+ #define TTY_KCODE J_EUJIS
+ #define PTY_KCODE J_EUJIS
+ # else /* !DGUX */
+-#define TTY_KCODE J_JIS
+-#define PTY_KCODE J_JIS
++#define TTY_KCODE J_EUJIS
++#define PTY_KCODE J_EUJIS
+ # endif
+ #endif
+
+--- a/canuum/wnn_os.h
++++ b/canuum/wnn_os.h
+@@ -41,6 +41,7 @@
+ #include <signal.h>
+ #if STDC_HEADERS
+ # include <stdlib.h>
++# include <string.h>
+ # include <limits.h>
+ #endif /* STDC_HEADERS */
+
diff --git a/app-i18n/canna/files/canna-gentoo.patch b/app-i18n/canna/files/canna-gentoo.patch
new file mode 100644
index 000000000000..7ecfb4b9cd84
--- /dev/null
+++ b/app-i18n/canna/files/canna-gentoo.patch
@@ -0,0 +1,146 @@
+--- a/Canna.conf
++++ b/Canna.conf
+@@ -109,12 +109,12 @@
+ # define DefErrDir $(cannaPrefix)/log
+ # define DefLibCannaDir $(cannaExecPrefix)/lib
+ #else
+-# define DefCannaPrefix /usr/local/canna
++# define DefCannaPrefix $(EPREFIX)/usr
+ # ifdef ObsoleteInstallDir
+ # define DefErrDir /usr/spool/canna
+ # define DefLibCannaDir /usr/lib
+ # else
+-# define DefErrDir /var/log
++# define DefErrDir $(EPREFIX)/var/log/$(PN)
+ # define DefLibCannaDir $(cannaExecPrefix)/lib
+ # endif
+ #endif
+@@ -123,7 +123,7 @@
+ # define DefCannaLibDir $(cannaPrefix)/lib
+ #else
+ # define DefCannaSrvDir $(cannaExecPrefix)/sbin
+-# define DefCannaLibDir $(cannaPrefix)/share/canna
++# define DefCannaLibDir $(cannaPrefix)/share/$(PN)
+ #endif
+
+ #if defined(LinuxArchitecture) || defined(FreeBSDArchitecture) \
+@@ -147,9 +147,11 @@
+ XCOMM cannaLibDir = /var/lib/canna
+ XCOMM cannaLibDir = /var/db/canna
+ cannaLibDir = DefCannaLibDir
+-XCOMM cannaManDir = $(cannaPrefix)/share/man
+-cannaManDir = $(cannaPrefix)/man
+-cannaIncDir = $(cannaPrefix)/include/canna
++cannaManDir = $(cannaPrefix)/share/man
++XCOMM cannaManDir = $(cannaPrefix)/man
++cannaIncDir = $(cannaPrefix)/include/$(PN)
++cannaShareDir = $(cannaPrefix)/share/$(PN)
++cannaDocDir = $(cannaPrefix)/share/doc/$(PF)
+
+ libCannaDir = DefLibCannaDir
+ ErrDir = DefErrDir
+@@ -237,7 +239,7 @@
+ /* #define UseInstalledLibCanna YES */
+ #define UseInstalledLibCanna NO
+
+-DicDir = $(cannaLibDir)/dic
++DicDir = $(EPREFIX)/var/lib/$(PN)/dic
+
+ /* ¤³¤³¤«¤é²¼¤ÏÊѹ¹ÉÔÍפǤ¹ */
+
+--- a/Imakefile
++++ b/Imakefile
+@@ -87,6 +87,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)"; \
+--- a/dic/phono/Imakefile
++++ b/dic/phono/Imakefile
+@@ -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))
+--- a/lib/canna/romaji.c
++++ b/lib/canna/romaji.c
+@@ -427,7 +427,6 @@
+ }
+ }
+
+-#if 0 /* currently CANNASHAREDDIR is not defined */
+ if (retval == (struct RkRxDic *)NULL) { /* added for Debian by ISHIKAWA Mutsumi <ishikawa@linux.or.jp> */
+ extern jrUserInfoStruct *uinfo;
+
+@@ -450,7 +449,6 @@
+ }
+ }
+ }
+-#endif
+
+ if (retval == (struct RkRxDic *)NULL) { /* Á´Éô¥ª¡¼¥×¥ó¤Ç¤­¤Ê¤¤ */
+ sprintf(rdic,
+--- a/misc/Imakefile
++++ b/misc/Imakefile
+@@ -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(is.c,$(cannaDocDir)/sample/src)
+
+ clean::
+ $(RM) $(PROGRAMS)
+--- a/misc/initfiles/Imakefile
++++ b/misc/initfiles/Imakefile
+@@ -6,7 +6,7 @@
+ #endif
+
+ CANNAROOT = ../..
+- SAMPLEDIR = $(cannaLibDir)/sample
++ SAMPLEDIR = $(cannaDocDir)/sample
+
+ all::
+
+--- a/server/Imakefile
++++ b/server/Imakefile
+@@ -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-kpdef.patch b/app-i18n/canna/files/canna-kpdef.patch
new file mode 100644
index 000000000000..b0b71b4442c8
--- /dev/null
+++ b/app-i18n/canna/files/canna-kpdef.patch
@@ -0,0 +1,18 @@
+--- a/dic/phono/default.kpdef
++++ b/dic/phono/default.kpdef
+@@ -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-overflow.patch b/app-i18n/canna/files/canna-overflow.patch
new file mode 100644
index 000000000000..ef3b6ad1b95d
--- /dev/null
+++ b/app-i18n/canna/files/canna-overflow.patch
@@ -0,0 +1,20 @@
+--- a/cmd/catdic/rutil.c
++++ b/cmd/catdic/rutil.c
+@@ -384,7 +384,7 @@
+ (void)fprintf(stderr,gettxt("cannacmd:205",
+ "Specified dictionary \"%s\" already exists. Do you overwrite it ? (y/n)"),
+ dicname);
+- fgets(ans,80,stdin);
++ fgets(ans,sizeof(ans),stdin);
+ } else {
+ (void)fprintf(stderr,gettxt("cannacmd:206",
+ "Specified dictionary \"%s\" already exists."),dicname);
+@@ -474,7 +474,7 @@
+ if (isatty(fileno(stdin)) != 0) {
+ (void)fprintf(stderr,gettxt("cannacmd:216",
+ "Personal learning file of dictionary \"%s\" exists. Do you overwrite it ? (y/n)"),dicname);
+- fgets(ans,80,stdin);
++ fgets(ans,sizeof(ans),stdin);
+ } else {
+ (void)fprintf(stderr,gettxt("cannacmd:217",
+ "Personal learning file of system dictionary \"%s\" already exists."),
diff --git a/app-i18n/canna/files/canna-posix-sort.patch b/app-i18n/canna/files/canna-posix-sort.patch
new file mode 100644
index 000000000000..1f98aaf5efdd
--- /dev/null
+++ b/app-i18n/canna/files/canna-posix-sort.patch
@@ -0,0 +1,11 @@
+--- a/cmd/mkbindic/mkbindic.cpp
++++ b/cmd/mkbindic/mkbindic.cpp
+@@ -40,7 +40,7 @@
+ bck_text=;
+ flag=;
+ compat_flag=;
+-sortcmd="sort -d -s +0 -1"
++sortcmd="sort -d -s -k 1,1"
+ usage="usage: mkbindic [-m|-s] [-name dicname] [-c version] textfile [cpp-args ...]";
+ : ${TMPDIR:=/tmp}
+
diff --git a/app-i18n/canna/files/canna.confd b/app-i18n/canna/files/canna.confd
new file mode 100644
index 000000000000..d3fdce5425a2
--- /dev/null
+++ b/app-i18n/canna/files/canna.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.hosts b/app-i18n/canna/files/canna.hosts
new file mode 100644
index 000000000000..509143d86315
--- /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 000000000000..97dac733fa94
--- /dev/null
+++ b/app-i18n/canna/files/canna.initd
@@ -0,0 +1,31 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/sbin/${RC_SVCNAME}server"
+command_args="${CANNASERVER_OPTS}"
+
+# CANNASERVER_OPTS and CANNASERVER_OWNER is defined in /etc/conf.d/canna
+CANNASERVER_LOGFILE="/var/log/${RC_SVCNAME}/CANNA0msgs"
+
+depend() {
+ use logger
+ need net
+}
+
+start_pre() {
+ if [ "${CANNASERVER_ENABLE_SYSLOG}" = "yes" ]; then
+ command_args="${command_args} -syslog"
+ elif [ -z "${CANNASERVER_OWNER}" ]; then
+ checkpath "${CANNASERVER_LOGFILE}"
+ else
+ checkpath -o "${CANNASERVER_OWNER}" "${CANNASERVER_LOGFILE}"
+ command_args="${command_args} -u ${CANNASERVER_OWNER}"
+ fi
+}
+
+stop() {
+ ebegin "Stopping ${name:-${RC_SVCNAME}}"
+ /usr/sbin/${RC_SVCNAME}kill
+ eend ${?}
+}
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 000000000000..a57290ec3bad
--- /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 000000000000..af8866b3beb0
--- /dev/null
+++ b/app-i18n/canna/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <use>
+ <flag name="canuum">Build canuum</flag>
+ </use>
+ <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 000000000000..9b9a83000d14
--- /dev/null
+++ b/app-i18n/cstools/Manifest
@@ -0,0 +1,5 @@
+DIST Cstools-3.42.tar.gz 30650 SHA256 a47a25df1d9bdda3cff209992163bd416634e7728b70cc2c822c86d7687136ca SHA512 78f2f95b5cfde77d23249550085a895abc35965b02ff26382b248d4e713c90c113ad7909b916713dff55c9ee210f13672d609d794b3caf9985fcb207a071f19f WHIRLPOOL a4812da7ec30141b3d8ab09d60d374a49dbc30650aca807bf043f71e83710ccbc0e1f6bd967000a253bb4e2021678944f19885df73e89480e50fcdc66081886c
+EBUILD cstools-3.42.ebuild 482 SHA256 af832bb7f170bedc10ac1c2947d6d08cf5c233816ba6c7dd6d2c4c014d2016e3 SHA512 3882d805f41646bd2073fbb7add3603f441252b12ea70d88144850cbf52cdb432d189bcb0e58f4498da2f441f3ccaa9ee6c543044f3dad9e87956371183d9bdd WHIRLPOOL 50a9643ecac23c26c72a00c3e309be5edba995fa204f47b95099dbc1bbcd9ec411a57176de5d4cc5fd84366a1306357f49e25681901cbe96949de4068e9f266d
+MISC ChangeLog 2520 SHA256 931f71014f35080099386a3e781eec7de9707fa04a9bb22d284e95b046e0bb13 SHA512 bdd3bb7c2b8018321b932db92e4409627d8dc231a51257d759d09187e31448aa4e6babc5b1d96dc3a54fe65cb89b93f8bccd36f5d8280f93a86483c37c9ffe29 WHIRLPOOL 2615b14a717dad86fbb0654c1a93e3f03faa11ed23a11c5bb7b758f5637bd4e45e65aa52e08669c92291bcf22c632668ef9734bbad5aa122877d8398ed02630a
+MISC ChangeLog-2015 1279 SHA256 f83d506b8be6c1d7cf2f1959d3f9758862d882d376f231a228967cb68a5ec63f SHA512 62882a4363b49bac4077b5d40ab2760386336c32906b2b6887d82dc6952607e6d4f4bcd89d1dccfa6e1c7b12bf1afd821b6c593e85fd711b2f1cc6132e3aa4ed WHIRLPOOL f615e36a7d243b071908e0201e783ba221f56ddee817236aaf93cc2af963de72bd211421ed68fd9ae74f1a5ac155d460f6485ad3e1998c74c933c8007cc56530
+MISC metadata.xml 630 SHA256 7d10d0abb269f7806c667db73b763d7a2323eb5ccada1e7798f5cff0a8e79489 SHA512 9fc60f84d9cdc0ae1fd60e9443126e618bbe8b029a2a6b44696754164cadbad61714b2ce8e8847f8b70486ad7c62f8e7edc52ecd16410220ce577e376729e0b3 WHIRLPOOL e28da0c4b00e6a8e4c8292d497126d6953706e3251f34247435926971bd71fef583d99c9e19a94cb4c34d77751c507a9dedb1c7813cdfa7f29289853a43f8efc
diff --git a/app-i18n/cstools/cstools-3.42.ebuild b/app-i18n/cstools/cstools-3.42.ebuild
new file mode 100644
index 000000000000..167c6b963042
--- /dev/null
+++ b/app-i18n/cstools/cstools-3.42.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit perl-app
+
+MY_P="Cstools-${PV}"
+DESCRIPTION="A charset conversion tool cstocs and two 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 000000000000..cef9b13e3ce9
--- /dev/null
+++ b/app-i18n/cstools/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <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 000000000000..64623fe2eff2
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/Manifest
@@ -0,0 +1,9 @@
+AUX dbskkd-cdb-gentoo.patch 505 SHA256 34643f671039ff20986e8f329cd7ec105130de429123544f65874e8ad2d05ad8 SHA512 015ffd8bb191ef1d16ce367fb9e8dd6cbade11f5fe24e4302f9781b679f07bd37376bee1a04e34e439f1b8858c4dda4a39a008bd421cca7097cb6762389dcadf WHIRLPOOL 63c157a5b55de28f52fc0b618721001a801449bd7f2f0fcf68fefb88ca384923f0d9362836f7a12593b1d798eeb8f5f94d28ed709f8c79af792b194d8133a919
+AUX dbskkd-cdb.xinetd 239 SHA256 1d3b087d54b12011f1993e7f28412fb206945dd6b5ec0747fa18d28ff75c7294 SHA512 a7efd15b7676b857b2adcc23df023f5af8d29a7357b77ab3fcb494fe6cbd401b28caf51f4f3ded5432bed0a3f1d29b0cc65148f3a8e083ebce70a0aca0437915 WHIRLPOOL 265e0fd623d18490e09051dd5c734972ff61263d2a455877244cbbb428636a9838ac517c5d66affdf898839224feec709acae528761c6b907c447ef69a8fb327
+DIST dbskkd-cdb-2.00.tar.gz 9296 SHA256 0e434e72153dde3131aeeeafbb40eba0054d0d37cab47b1561e4cf6dda6da8bb SHA512 3582728d2a1917c00437b273208fa150a5a32dcd462752c6751ddbd574ca7f1476b2aca0d2613471a800bd17f80e2c4b60846f9056ae621996f8f5a5592fa22a WHIRLPOOL 028849c4ab2d74338b6fcaed02f3c7b1ecea6315274499233e8097e4dab0bfd6d97a693657a1db8408d4e87933f804e253fa5a2e55a96ec47ba98bc45014e603
+DIST dbskkd-cdb-3.00.tar.gz 9380 SHA256 e92ef7162c2c50a441dd864dbf21510d746174b9f1f484bfbbdca1b31c055286 SHA512 a3fe5a0f2e96828d22a75e4daf36eecaa8d903efe8c8a5f6972178f52dc01cac5df5f3e1d8a2cf684d6b78a9c10c207b655a296ceb456dec9f0e502142de094b WHIRLPOOL 67b143c9fc13182f12fdbaa8f73ac743bc0c82f6393648acea2a80081bb4f8cf5625bbe5f083e44bfacb95e8445f8e559a03a3991cd44de7d7f5d863e710499a
+EBUILD dbskkd-cdb-2.00.ebuild 1225 SHA256 202e291d7a63a735fc96733ce5fe7b645ed9c69593552020dcf90f91657844f3 SHA512 89a38d92e9573336aca31c3e0f2cca6398d864c1790703aa5691ac8c10cc9260603dcb192863c9fbeaeacc1618ff0163c1ea8c037f3e82155553025956a7d6ed WHIRLPOOL 518878942f1b6934acf8335946181cb57dec78904debbcbae0d78d8b9d35f6a95a9de6e0114ee57458844b4710a2895f306e6c8753befa558b69db80f7009329
+EBUILD dbskkd-cdb-3.00.ebuild 1179 SHA256 ece0932d6390e886160f57be09dd798a158e1b14b428027e42d821b61a4da722 SHA512 84b38add6d9befc6280e1cdb6265a54902b505b939e4c9c39d41bbfa131934a9d7c30edac39c7a65faaf5fdb2ee0a150a419647c36d2aa6277f5480eef4dba2d WHIRLPOOL 05ded490453524229544ed3c01bcb3c61d75bbd30b023dcd3f3dae5058b2828c129649a42090ff6529eff57de28cf900575c41570f2aea1c74b33d1e9d4b444a
+MISC ChangeLog 2664 SHA256 e357671cfb0bea190f02df754581b7e9361fe23264d4d59f6afae7e6541a2a46 SHA512 f1e4a0f089da860fa7e2ecfa8386a44a866342f29d13ae7e980790c857001c53d222640eb4b7edeb3c0e42d6c94da9d7a7561eccbd7c3e2d872f3888c3ea11ea WHIRLPOOL 9190765e07eda0dd3678ed7085864104f58432364291d836c8bf136f667872a44d6c1802138bfdcd679e2ef319706d753c0177dbb4e0b70bf880701483dd380d
+MISC ChangeLog-2015 3131 SHA256 70902419b3fd532ba953a7b0a2cce4f04b4ec2d34fb3f66fb4ff1839d156d0f3 SHA512 c1a754af9b7b30ee4ceca02468a127771fddb6292220d725b8d4c027fb7b43b0c10e74d49a79234d8d3949953674ffcde857d4b0d63d6569e3ccd61ea52a35d5 WHIRLPOOL bda23e64d16677bfcc0e9dc26e6eb154a72e891f725080a8b0482a3720322201b57eba8b2258b444cd121a370e7b081ead617d47cc3383af578add854607d608
+MISC metadata.xml 326 SHA256 097b66626f8b7e6ce65f15c77e03ac09cd353dede5e1f67da75b036646cbf8db SHA512 56d019cc1f6e39d358e431b910f36dced992bb1f202bf7ef405979633383301751e853e19eaaaa84408a71699bcf63480575a081a5981a49022a0fc0d32cda2f WHIRLPOOL 6fe805f28b448a0a6ccf1f47003d8b62594df6efce256730f75dfd0b3a0f24073fdccb7f7dba2741a9f09574bc4a453c9a0ea7a49f578805ea81b477d717bb9c
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 000000000000..a1acbae2b9ab
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit flag-o-matic toolchain-funcs user
+
+DESCRIPTION="SKK dictionary server based on cdb"
+HOMEPAGE="https://github.com/jj1bdx/dbskkd-cdb"
+SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="|| (
+ dev-db/tinycdb
+ dev-db/cdb
+ )"
+RDEPEND="app-i18n/skk-jisyo[cdb]
+ sys-apps/xinetd"
+
+PATCHES=( "${FILESDIR}"/${PN}-gentoo.patch )
+DOCS="CHANGES README* *.txt"
+
+pkg_setup() {
+ enewuser dbskkd -1 -1 -1
+}
+
+src_prepare() {
+ default
+
+ local cdblib=()
+ if has_version dev-db/cdb; then
+ append-cflags -I"${EPREFIX}"/usr/include/cdb
+ local a
+ for a in cdb.a alloc.a buffer.a byte.a unix.a; do
+ cdblib+=( "${EPREFIX}"/usr/$(get_libdir)/${a} )
+ done
+ else
+ cdblib+=( -lcdb )
+ fi
+
+ sed -i "/^CDBLIB/s|=.*$|= ${cdblib[*]}|" Makefile
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ COMPAT="-DJISYO_FILE=\\\"${EPREFIX}/usr/share/skk/SKK-JISYO.L.cdb\\\""
+}
+
+src_install() {
+ exeinto /usr/libexec
+ doexe ${PN}
+ einstalldocs
+
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/${PN}.xinetd ${PN}
+}
diff --git a/app-i18n/dbskkd-cdb/dbskkd-cdb-3.00.ebuild b/app-i18n/dbskkd-cdb/dbskkd-cdb-3.00.ebuild
new file mode 100644
index 000000000000..d8cb4b874391
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/dbskkd-cdb-3.00.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit flag-o-matic toolchain-funcs user
+
+DESCRIPTION="SKK dictionary server based on cdb"
+HOMEPAGE="https://github.com/jj1bdx/dbskkd-cdb"
+SRC_URI="https://github.com/jj1bdx/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="|| (
+ dev-db/tinycdb
+ dev-db/cdb
+ )"
+RDEPEND="app-i18n/skk-jisyo[cdb]
+ sys-apps/xinetd"
+
+PATCHES=( "${FILESDIR}"/${PN}-gentoo.patch )
+DOCS="*.md"
+
+pkg_setup() {
+ enewuser dbskkd -1 -1 -1
+}
+
+src_prepare() {
+ default
+
+ local cdblib=()
+ if has_version dev-db/cdb; then
+ append-cflags -I"${EPREFIX}"/usr/include/cdb
+ local a
+ for a in cdb.a alloc.a buffer.a byte.a unix.a; do
+ cdblib+=( "${EPREFIX}"/usr/$(get_libdir)/${a} )
+ done
+ else
+ cdblib+=( -lcdb )
+ fi
+
+ sed -i "/^CDBLIB/s|=.*$|= ${cdblib[*]}|" Makefile
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ COMPAT="-DJISYO_FILE=\\\"${EPREFIX}/usr/share/skk/SKK-JISYO.L.cdb\\\""
+}
+
+src_install() {
+ exeinto /usr/libexec
+ doexe ${PN}
+ einstalldocs
+
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/${PN}.xinetd ${PN}
+}
diff --git a/app-i18n/dbskkd-cdb/files/dbskkd-cdb-gentoo.patch b/app-i18n/dbskkd-cdb/files/dbskkd-cdb-gentoo.patch
new file mode 100644
index 000000000000..0fe0b8a31ea3
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/files/dbskkd-cdb-gentoo.patch
@@ -0,0 +1,24 @@
+--- a/Makefile
++++ b/Makefile
+@@ -6,7 +6,7 @@
+ INSTALLDIR = /usr/local/libexec
+
+ .c.o:
+- $(CC) $(COMPAT) $(PRIVATE) -c $*.c
++ $(CC) $(CFLAGS) $(COMPAT) $(PRIVATE) -c $*.c
+
+ all: dbskkd-cdb
+
+@@ -14,11 +14,10 @@
+ /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
+
+ error.o: error.c error.h
+
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 000000000000..98b1b501ef7e
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd
@@ -0,0 +1,11 @@
+service skkserv
+{
+ disable = yes
+ socket_type = stream
+ wait = no
+ user = dbskkd
+ server = /usr/libexec/dbskkd-cdb
+ only_from = 127.0.0.1
+ log_on_failure += USERID
+ port = 1178
+}
diff --git a/app-i18n/dbskkd-cdb/metadata.xml b/app-i18n/dbskkd-cdb/metadata.xml
new file mode 100644
index 000000000000..e6d1445169e6
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">jj1bdx/dbskkd-cdb</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/enca/Manifest b/app-i18n/enca/Manifest
new file mode 100644
index 000000000000..0f86f256ebdd
--- /dev/null
+++ b/app-i18n/enca/Manifest
@@ -0,0 +1,5 @@
+DIST enca-1.19.tar.xz 465412 SHA256 3a487eca40b41021e2e4b7a6440b97d822e6532db5464471f572ecf77295e8b8 SHA512 6678639992685180457bbef7b0da6e475071ec6935dfd672188fc242ef80b906e75eff9a206e07989893d0ef4ae5eb500f1d0bbd6b4d58146c94bb143b5fb296 WHIRLPOOL 56a4ed0027ae2f68d769f1bf3201b57127be5b7e42ca35fa2e92dd755cf0691163ec0fbc7cdee57e6a2b528b36d0471bdd1666a42224e82e1d157b4f92598c1d
+EBUILD enca-1.19-r1.ebuild 2105 SHA256 1ef7f3557613487c0578bd9db55051d0339be729a211a9d813444b3f4eb4aacd SHA512 eb96e486d1c7d2a50872bc88f40d1fa8a1c92452b2d1e28d5e6507e6c37dc56af75c6b86e5b63f2bc8478966968e33cbefb9062f792bd07c38964743916d9bd6 WHIRLPOOL 85f8e91c14d6b8a1a1562d8a31abeea3668e4edc160136c4d0fb54976c77f3f0f0e2e71d601e65bc1dba802b7fdaabed09d73a4992099faf6dedaf62e21943a5
+MISC ChangeLog 5257 SHA256 3e0fbf9ab18ce2a4ffec1e0e63a8a2be5ddfd0e9a03deb0c87c67d6e9327742d SHA512 dc4e7bac41acb45a0300621f913ea744a5151e370cebaf0496d372276e84bd6563e12f948d222c13be4d9f4a1f9151d907a7eba2d7344067fcc24d235e624ad8 WHIRLPOOL d8cae2ab84af62f1a77317e42ddbc2d6720445a6631c338286c7c2bef12dc0aa3e6cf5a1145e178720e3ff3fa20f5effb35f251e87415581eee861732ab1b5ec
+MISC ChangeLog-2015 13061 SHA256 71cb843a906c4b9901a6b5e40d7eda4324c80054d73d21f1666e18f493ded43d SHA512 5696e2b25be0a7643494932a5cf680562d8133ebf05274447f58a116fb9b52728019598b8ad29b933ca2f2320864cbeda7d73741ed9a8cf9f0953423125dfaa0 WHIRLPOOL c5eee2fe66f5a249e309ee7eb2d11e3c066c9c43eb1cca040741037f84b3fd9a029077f0dcc7f314f232d47028af376dc165b1ed41408cb627adcfcef2f249c3
+MISC metadata.xml 324 SHA256 9c57719c5c5e86e31e1ee8ba9877ab8962de5434d83911e5a039a3e83383a8ba SHA512 b10801cd8a372709601915899abe03282148aa9a0519160963f5a7734fbeadc082f5493e46ecfb887a16c4b9b5f28424b3b2b87ab4b34708b77cdf3cd4eba03f WHIRLPOOL 3a45146b95de5de46da2a70abf63bad53f97e70c8b399aaf219d04f3cdc074caf601ebb543ffc743b6a510b4437972f16fa933b40da57fa77411431bf64e7dbe
diff --git a/app-i18n/enca/enca-1.19-r1.ebuild b/app-i18n/enca/enca-1.19-r1.ebuild
new file mode 100644
index 000000000000..d1567c61b8be
--- /dev/null
+++ b/app-i18n/enca/enca-1.19-r1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils flag-o-matic multilib-minimal toolchain-funcs
+
+DESCRIPTION="Detect and convert encoding of text files"
+HOMEPAGE="https://cihar.com/software/enca/"
+SRC_URI="https://dl.cihar.com/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="doc +iconv recode static-libs"
+
+RDEPEND="
+ iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )
+ recode? ( app-text/recode[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ doc? ( dev-util/gtk-doc )
+"
+
+pkg_pretend() {
+ if tc-is-cross-compiler && use iconv; then
+ die "${PN} can't be cross built with iconv USE enabled. See Gentoo bug 593220."
+ fi
+}
+
+src_prepare() {
+ default_src_prepare
+
+ # Disable unconditional documentation build.
+ sed -i -e '/SUBDIRS/s/ devel-docs//g' Makefile.am || die
+
+ eautoreconf
+}
+
+multilib_src_configure() {
+ # Workaround GCC-4.8 brokenness. See Gentoo bug 501386.
+ if tc-is-gcc && [[ $(gcc-version) == "4.8" ]]; then
+ replace-flags -O[3-9] -O2
+ fi
+
+ local myeconfargs=(
+ --enable-external
+ $(use_enable doc gtk-doc)
+ $(use_enable static-libs static)
+ $(use_with iconv libiconv-prefix "${EPREFIX}/usr")
+ $(use_with recode librecode "${EPREFIX}/usr")
+ )
+
+ # Workaround automagic virtual/libiconv dependency.
+ use iconv || export am_cv_func_iconv=no
+
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_compile() {
+ # Workaround cross compilation issues. See Gentoo bug 424473.
+ tc-is-cross-compiler && tc-env_build emake -e -C tools
+
+ if ! multilib_is_native_abi; then
+ emake -C lib
+ else
+ emake
+ use doc && emake -C devel-docs docs
+ fi
+}
+
+multilib_src_install() {
+ if ! multilib_is_native_abi; then
+ emake -C lib DESTDIR="${D}" install
+ emake DESTDIR="${D}" install-pkgconfigDATA
+ else
+ emake DESTDIR="${D}" install
+ use doc && emake -C devel-docs DESTDIR="${D}" install
+ fi
+ prune_libtool_files
+}
diff --git a/app-i18n/enca/metadata.xml b/app-i18n/enca/metadata.xml
new file mode 100644
index 000000000000..095f5a5eb044
--- /dev/null
+++ b/app-i18n/enca/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nijel/enca</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fbiterm/Manifest b/app-i18n/fbiterm/Manifest
new file mode 100644
index 000000000000..f47c57b0f0ee
--- /dev/null
+++ b/app-i18n/fbiterm/Manifest
@@ -0,0 +1,7 @@
+AUX fbiterm-0.5-cflags.patch 545 SHA256 f8a88c126f368843b71e1c44796063bc0a505a49b2d3ba7e2613a6315b32fbf7 SHA512 53f3ece39acf0436d77963235aefd2ef5d988b4d6272b454d2070ee7c75a7dfe98680650f1257a280bcba519d213ef30848412a337813c862d4529ea58c89329 WHIRLPOOL 57ea5df0cd3651a90035915eb8865609463f138263f4d2e41feb9e03b5185c1c25ecd5429b478318880e282a9f27554f467e055bfb10f4c70c5600b2ac62c1b0
+AUX fbiterm-0.5-r2-gentoo.diff 1139 SHA256 86cd5e2e6dcd0a54d5a5858bd4cff6398d248acdf0032833c79212587c252cb7 SHA512 760057a258b026bba463db65aeaf7a880e9a842e9437d29d9e8db1bf531bc3df6a28806edd4b2e2eac0f962f52438cb1a4c66e9571dd467c08f7dc2758e32632 WHIRLPOOL 4536cd030c3cd1714d4fc85d888c96dc8fcbc938e8322959163252547f5d793af89bff866ecd11eabbaa3101b77510fe8f3581f4a0572b206b9440ea4f20ae6a
+DIST iterm-0.5.tar.gz 608170 SHA256 4b0d2310f5e4a42bfe90c394cae51a26d2a9437716b7e4eee6a5202db9ef1424 SHA512 5b25abe9320fe3317e69048ee49b80e8b341952ac89df83d14ba2bd3893396b4348c257e0dd64ca00914485efc622dac2fbb6d2546b6360774777872a71a3695 WHIRLPOOL 9110e2a894a87fb108f93087583185117098d8be634530cf7162760e50531deb5649bd2dd4da4734effb1523a0eb8c5a7ebeccd57a67918726c7e445c9be9c58
+EBUILD fbiterm-0.5-r2.ebuild 1588 SHA256 04aa5e95c44bab9b3afeaa2571347b1ddcb469ce99e24bb610661fc3007759a1 SHA512 a2b756d3bbe14168a079ca4d4231b9a5cb1b1b1457c39723947591a28c4c5676b83badec376696778169cf5e75d00949609c5464411646d6148f524474360d46 WHIRLPOOL b7ac151851679c844f6cc196117d2cb62179dd6386f4c94338badfd712182d822ddeb5f85203a417ba7c4cca3897c4a375d0e7775e1e25a29fed842fa398bfc6
+MISC ChangeLog 2499 SHA256 e47251410acdd2a970370bf702adadd807f5f942c0240207d7f94e48e0bb41ef SHA512 0c808af2df90a9eac565321e679cebbcb71ebde5bd6add042b60f4126409ab4d88e70a37b965f46b7ff19ea5f4499bbd12c043797d0e7be5161cb7b0f6b2e0bb WHIRLPOOL 93f630ef59a13cb7040e5b256ef520146c4f75e62b8c803f096211249428ea26bcf1bcd3da7cb3fc69c99889cba7a078a4f448ee1d990632df251d37f6166079
+MISC ChangeLog-2015 1635 SHA256 7649841cb810eb39fb5f9ac6e533821ea60fb764778c67e81306af50bb743fb9 SHA512 1fcd133a9edd0efca1abbf119b1862e19b7b655e26b743185a98a1f6343dd209bb9b712593ecc42abe564dc958d050b012d693af464700d334bb8cbdc339fa39 WHIRLPOOL b160a424ea42e03523f1f80b7b688359e90e032ba29b32b5b85ccaca00ae559cf70598129dba0e1f2c716ffda903dd6cd741395046663bd6da91aa46a75f3c72
+MISC metadata.xml 230 SHA256 5fc421627b578ee2d1317320525119c0b406026597bb1d054f96254a241bf96a SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 WHIRLPOOL b3c1363540645200abd5bf0b5b7fb3cae0b738bfd359f7b13b56d97650f9381fccede1e3f867dbc736461ee7c7906725a3c53eabd9ac99929d5c7c520a831082
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 000000000000..cddb50fd4e66
--- /dev/null
+++ b/app-i18n/fbiterm/fbiterm-0.5-r2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..ae738c814202
--- /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 000000000000..7a63ebce786b
--- /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 000000000000..c921b96adf6c
--- /dev/null
+++ b/app-i18n/fbiterm/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-i18n/fbterm/Manifest b/app-i18n/fbterm/Manifest
new file mode 100644
index 000000000000..64d35266b68e
--- /dev/null
+++ b/app-i18n/fbterm/Manifest
@@ -0,0 +1,6 @@
+AUX fbterm-gcc6.patch 1627 SHA256 7eb1eee9b77571b64f2da8487295fb037b558445e83fd390984c3f4b2e8eb2ec SHA512 742969c5b568006d0592e1c71480f38d63437f50ec4a213f561325ba7570f5ed7d7d6e700b4973bda4d74b8c4992e25f731fb69efb450eff2ed97fcd49d713b9 WHIRLPOOL 041306865c9cc6f0b3af32afa22e64435206f33be0753d89ac317780642e5c446573a54ffeef9e9eb9bb0d3954095c43ba17143ee1739ec044435ea40af4530f
+DIST fbterm-1.7.0.tar.gz 188642 SHA256 720f600817217257aa4c822e67814495dcb6c8d6326cdde5fe3ba1e457d9915d SHA512 ba78b5118b5e4c65046f7f91ce88cb4f828e2debb34358df8518e1907a8d601a2be4dfcf144e84494dc30e4828d333574debe8dd3ffb59e2169c3e48ba1f6a10 WHIRLPOOL 7e01fff188974218a71c4083a4185d52a188431bbd1d282b8d9ca79189854ba5dc942476c83f543fbbe449ddc22f223166be2f6617b04c0d0e0acd240b762c11
+EBUILD fbterm-1.7-r3.ebuild 1303 SHA256 a224a1efa66547ba879eb8347bbd5df8d32cd3a2420f3eab9f495276e7cd5853 SHA512 3773a4a119c3c73803cf6c3dec3d91195388aa0048cadf23cbe51c85b4d371f62e432ca4efb5d02b2c4190e996e0936d3590a9719d4c6f9cdc5a02e212a58c50 WHIRLPOOL 73edfa1dd82015b6ac482406b92590367dc2a7b34c9c5de6c61d3c32f75c37b094f9c29857ea353da855f24b076d6bddb4de914aeba0d30c00ea5467c6323a07
+MISC ChangeLog 3143 SHA256 63ab0b51936073245111504da81e5c22baba86d89185b89573a0801907e37dc4 SHA512 667789391eba5028f13e407a4d9ac09ffa999713fa62bdf94d01c3c19071b79924aacbcb7a67e16aa8d0df18586d834111d033102ccb4bd316df22b395b2e92b WHIRLPOOL f8d4236ebd670d5fe99ad49f8b1516160abefc2ae035023ee56b2a896a38a598ce3400f7d183db92385685e8957cec89c724513575207028de00b887c7258574
+MISC ChangeLog-2015 635 SHA256 d8a8cac55826e555eb03eeaa887907840a6ed47af2ba6dec8faecfe56150f6c2 SHA512 92e76ed2ea2f9d33d2c84c66bc30815651f9ea073dbda3cd44643cc0df77c4c5c4cdb7a62463295dec584f6b118c607e2db0d961eeea52bd6a60b286650456ed WHIRLPOOL 32f8742b17e41434112e58302ad42daaa130132ba45626a32c39838ea5082e569e5cc9ab1e8a17c3127f492c01b187acf367269c1926cdae78b8911ae2739977
+MISC metadata.xml 320 SHA256 8cbf865b7f3500e718b8d76f222c83de7fadced4bdbb808f635242f774f3e665 SHA512 c6a430df744723fb4a59ea103f5a379d7d533b84a4286573dc29acb61cba3210b48f31c2b30b3c190bf0135a475f69fe51309ea68f10709715007e3d37646892 WHIRLPOOL 23d7dfca347a44831b569ce53bc526e2a297b283ab10900e82e6be76850725aac217ca48ad18c012394ffe50144ca3c63478c24ef006c86a470185025e19da68
diff --git a/app-i18n/fbterm/fbterm-1.7-r3.ebuild b/app-i18n/fbterm/fbterm-1.7-r3.ebuild
new file mode 100644
index 000000000000..2138ece5ef1e
--- /dev/null
+++ b/app-i18n/fbterm/fbterm-1.7-r3.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools fcaps
+
+DESCRIPTION="Fast terminal emulator for the Linux framebuffer"
+HOMEPAGE="https://code.google.com/p/fbterm"
+SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${P}.0.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="gpm video_cards_vesa"
+
+RDEPEND="media-libs/fontconfig
+ media-libs/freetype:2
+ gpm? ( sys-libs/gpm )
+ video_cards_vesa? ( dev-libs/libx86 )"
+DEPEND="${RDEPEND}
+ sys-libs/ncurses
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${PN}-gcc6.patch )
+
+FILECAPS=(
+ cap_sys_tty_config+ep usr/bin/${PN}
+)
+
+src_prepare() {
+ sed -i "s|tic|tic -o '\$(DESTDIR)\$(datadir)/terminfo'|" terminfo/Makefile.am
+
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable gpm) \
+ $(use_enable video_cards_vesa vesa)
+}
+
+src_install() {
+ dodir /usr/share/terminfo
+ default
+
+ use filecaps || fperms u+s /usr/bin/${PN}
+}
+
+pkg_postinst() {
+ fcaps_pkg_postinst
+
+ elog "${PN} won't work with vga16fb. You have to use other native"
+ elog "framebuffer drivers or vesa driver."
+ elog "See ${EPREFIX}/usr/share/doc/${P}/README for details."
+ elog
+ elog "To use ${PN}, ensure you are in video group."
+}
diff --git a/app-i18n/fbterm/files/fbterm-gcc6.patch b/app-i18n/fbterm/files/fbterm-gcc6.patch
new file mode 100644
index 000000000000..aa19fac96723
--- /dev/null
+++ b/app-i18n/fbterm/files/fbterm-gcc6.patch
@@ -0,0 +1,72 @@
+https://bugs.gentoo.org/show_bug.cgi?id=594308
+
+Author: Peter Levine <plevine457@gmail.com>
+
+--- a/src/lib/vterm_states.cpp
++++ b/src/lib/vterm_states.cpp
+@@ -39,14 +39,14 @@
+ { 0x1B, 0, ESesc },
+ { 0x7F, 0, ESkeep },
+ { 0x9B, 0, ESsquare },
+- { -1}
++ { (u16) -1}
+ };
+
+ const VTerm::Sequence VTerm::escape_sequences[] = {
+ { 0, 0, ESnormal },
+
+ // ESnormal
+- { -1 },
++ { (u16) -1 },
+
+ // ESesc
+ { '[', &VTerm::clear_param, ESsquare },
+@@ -65,7 +65,7 @@
+ { '8', &VTerm::restore_cursor, ESnormal },
+ { '>', &VTerm::keypad_numeric, ESnormal },
+ { '=', &VTerm::keypad_application, ESnormal },
+- { -1 },
++ { (u16) -1 },
+
+ // ESsquare
+ { '[', 0, ESfunckey },
+@@ -104,7 +104,7 @@
+ { '`', &VTerm::cursor_position_col, ESnormal },
+ { ']', &VTerm::linux_specific, ESnormal },
+ { '}', &VTerm::fbterm_specific, ESnormal },
+- { -1 },
++ { (u16) -1 },
+
+ // ESnonstd
+ { '0' | ADDSAME(9), &VTerm::set_palette, ESkeep },
+@@ -112,25 +112,25 @@
+ { 'a' | ADDSAME(5), &VTerm::set_palette, ESkeep },
+ { 'P', &VTerm::begin_set_palette, ESkeep },
+ { 'R', &VTerm::reset_palette, ESnormal },
+- { -1 },
++ { (u16) -1 },
+
+ // ESpercent
+ { '@', &VTerm::clear_utf8, ESnormal },
+ { 'G', &VTerm::set_utf8, ESnormal },
+ { '8', &VTerm::set_utf8, ESnormal },
+- { -1 },
++ { (u16) -1 },
+
+ // EScharset
+ { '0', &VTerm::set_charset, ESnormal },
+ { 'B', &VTerm::set_charset, ESnormal },
+ { 'U', &VTerm::set_charset, ESnormal },
+ { 'K', &VTerm::set_charset, ESnormal },
+- { -1 },
++ { (u16) -1 },
+
+ // EShash
+ { '8', &VTerm::screen_align, ESnormal },
+- { -1 },
++ { (u16) -1 },
+
+ // ESfunckey
+- { -1 },
++ { (u16) -1 },
+ };
diff --git a/app-i18n/fbterm/metadata.xml b/app-i18n/fbterm/metadata.xml
new file mode 100644
index 000000000000..165c6df0ed29
--- /dev/null
+++ b/app-i18n/fbterm/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">fbterm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-anthy/Manifest b/app-i18n/fcitx-anthy/Manifest
new file mode 100644
index 000000000000..5a6effd0134b
--- /dev/null
+++ b/app-i18n/fcitx-anthy/Manifest
@@ -0,0 +1,9 @@
+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
+DIST fcitx-anthy-0.2.2.tar.xz 72360 SHA256 c8dd54fee3ada834d6ed0df561a95210256ea2a17fa5e00d9ae09892bafbd92b SHA512 a4b1eeba813481cc40617e70bd5ee97d1921dc92bab15cf0bdc059d689c239e46caf9e8aba3403ff6374acfbdea565261a948444fe40fa18d5513797eccbd28d WHIRLPOOL 7427384e8e12d7e35027a4a149cc758828fb9664204490d35f7b43ad083cc8545c4b52164af716065bccdd4a347f047e34c80cac32699641798fd2e21dccc8ea
+EBUILD fcitx-anthy-0.1.1.ebuild 546 SHA256 604f0821ab837ab5e365960809210dff7252088783a3460f10491e720bd16285 SHA512 3fece6bb17e588880cab84dd6f53842fe7aae0e91d9c008412ec601c7552c27714e3641b63f3b74a55f7bb1d9535f9868d6508cb0e3f72f8ecdb3622b77e5c7d WHIRLPOOL 75b35b054f9ecae858ef8bc61d2492f4d3be6caf9a011ba23d5b05ae5e70b27a956d0d51a5fa5f3a917aa1e7906763fbf5eaab193cf50fc9276349463fdaf982
+EBUILD fcitx-anthy-0.2.1.ebuild 555 SHA256 22d3604c182a54f5b8b4eb10abad7248cae45857f99e9e82c364f2c49f8a2339 SHA512 0a3ca967059895b76ee2b1f60ed1e28e2646deca2988a62241035017ccf264f0cebe920c18ffb23e33916e11fcbb2f274f0a0ad234f192b5b2ecbde88c6e3161 WHIRLPOOL b9a7e34c1db46f9e68a0d3ecc2b5d5dafed5f1c1dada3a8c95122603c9ff49cf5d271713bd2991725ac3e44e97c283d9a7c3f4d238d8b645c4a34d85dd02077c
+EBUILD fcitx-anthy-0.2.2.ebuild 557 SHA256 4c1b1635958e41150673e8539c561b2370c464110d7f47ac928a714b99ebfa7f SHA512 0143cadaa44bae98e47f5539ee9cc6d762840cf4c786994d2ad6928c5d5aee723e6a9fc3e05f981d77d8cfdf0da33c0a4b41c50b0a5de7d53920fc0e372b61d4 WHIRLPOOL 54104a3d53bfe2c14b5c80db53b500956d4d7bec8d37b08b8a5f04cdc41e8e383fd6d10d19f527cd9811ebbc27b1c64cef3ff6accf9db2cb1ab50dc47e2efce3
+MISC ChangeLog 3097 SHA256 fb61e0b1c955292d73a91f9be30e9c30ef985eb8d4516001a7457d3bb6ae0f3c SHA512 1c28ac10816fa72549225b86a10a130ebf768e998ad4508fff09018a45f0039e50ad123da4f16d46aff2842b1174e8fdd91efa025e18d5d156de8d565c5284a0 WHIRLPOOL c8f7a53020c3555be3cf1a943918295246bc1367852327323d6792e0108a2fce0e3eeb6c1cd963050f78be8f413b8dad884ee2c08015beb1cee54985a637e16e
+MISC ChangeLog-2015 1546 SHA256 bb0fe2c154f94786e5c0f6644ce7c5b43cae2c70aeb05b461178c57320cdafc8 SHA512 484fdd99f466dd0bda039a267cfdc5e51fc1a240b152a157ea73946046f8d3fc3811399ca031f82453645e76773803399c8f84fd2a42b643a4559553ab8da2a7 WHIRLPOOL c807284e9424a581e9b76344d3b654a0b40591ac0070fb7600a697272b8ec453234b5fe8235e87659857f8c4ea593b5dd134a8bfe435c5f2219e8704c97a4645
+MISC metadata.xml 368 SHA256 35771713c1279c6a6256b587a24bc95638761053755ebe871015e0a62bdb3d72 SHA512 02412f1f558f3b859d1327a440038b9d9ce6d2430510ef98bdb2ddd2b2ccb9ae682f76e76fdefc47e903ba08e93f6e46e9aabffe6cdfb4e57d33daaa63dde29f WHIRLPOOL ce52e2c48610b125b418018b4043cb24b09c1bc9a959275610a0af5a76c5da179703b20fc3aa938434834f8be6ad79339baf3cc4295f2c11a26a17eafad0719a
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 000000000000..25918894af39
--- /dev/null
+++ b/app-i18n/fcitx-anthy/fcitx-anthy-0.1.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Japanese Anthy module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="https://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="4"
+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 000000000000..f46787be50e6
--- /dev/null
+++ b/app-i18n/fcitx-anthy/fcitx-anthy-0.2.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8[X,xml]
+ 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.2.ebuild b/app-i18n/fcitx-anthy/fcitx-anthy-0.2.2.ebuild
new file mode 100644
index 000000000000..4bb55b3b1f6c
--- /dev/null
+++ b/app-i18n/fcitx-anthy/fcitx-anthy-0.2.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8[X,xml]
+ 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 000000000000..49f2185b80dc
--- /dev/null
+++ b/app-i18n/fcitx-anthy/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 type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-chewing/Manifest b/app-i18n/fcitx-chewing/Manifest
new file mode 100644
index 000000000000..7cf4752da1f1
--- /dev/null
+++ b/app-i18n/fcitx-chewing/Manifest
@@ -0,0 +1,10 @@
+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
+DIST fcitx-chewing-0.2.3.tar.xz 19804 SHA256 b313c7134eb173668f42535b0eb6e985eb94fdf5d2fe705940a6cbfdcbadbaf0 SHA512 3492ad6ecaf00bb1ea07b76c9c23da075615597c1a68434a2da003cbe410d12172510d4306379777a1d04a359b017c49d278c002a7230b030693b668b6030bfd WHIRLPOOL 32475349ac0cd89b0741e64a0ba02ef854d42dee51ac96ad7b9134afff8b81901eadb5acf338b018a936bb5fe2a675d4f15beb4d98c261832d95641ca86f4492
+EBUILD fcitx-chewing-0.2.0.ebuild 422 SHA256 236a9eef500dc8407c54de9f982932dff873fef870f3246818cb5840b6417095 SHA512 b3f4b15d0a726d20bef5f13e326f22adea8f3bc5666ca322d1f359f51333d9872f0bb89ea53ce2f876c084d1fbb7ddea693b637371cf692ad36c5e252fe81ca1 WHIRLPOOL 107f4412e8ce1ab9a709fa8982520306615a8d718a9e17a94df21417e7816b5a8b2c1bfe9f0e80722572d7eadf5a933d5e5b91d1db061a5c81a07f53224ebf99
+EBUILD fcitx-chewing-0.2.2.ebuild 431 SHA256 29513957489ee054d055c1e2020a2b32f25fc742da8e7cce26fee01e53f50e69 SHA512 235757c6b38fc73a8720af771adb2b200ec95ee3b0a9aa454ecb2a8ecdb5cd4401ab51d089efb96b076c990c99e91c8ad68401a0b5d44acd5821f9a7bbb1210f WHIRLPOOL 428237d80a8fc69b1f550b295a5c3c546b94a6d802124804161d295285e264f9d3625e6b1c4bd4feee7fe624b6b1914c6b17c9e4da206bf4e0dd82d9edff90c2
+EBUILD fcitx-chewing-0.2.3.ebuild 808 SHA256 14267af25284d48b749a0839ae2f68ab8667a0cb2f662cda39ee4d17c1e45789 SHA512 7662cb384d13b58319df772f4668e91e611b2000214236ce6a3caf186b1b7ad6b706a730f4e39b23d7ba08f6c173e5cbe32636f3815f7e3ec534afdcf42b2cae WHIRLPOOL ef79a831653b70e0970c5932b151e810e4101d542bd9e85cd066666e67ddfae3f9007f8b8bd0b3dbc83125279af1735b027fe8f4550198b89003d7bd5bbaff3e
+EBUILD fcitx-chewing-4.9999.ebuild 785 SHA256 81e2d56d6c425439de06a7ae8b67e47b8315693c6e8d004eff6a586a560c3733 SHA512 0f294bfd3c8d5b071f1035eff39e802b4f51aa00034f83507c6b30bca975da223b010f1ad933cd9326ee81efb837918bd4031523b455cab46730a6b44b1836f3 WHIRLPOOL ae556836f9297c0d98af0067631062ec1e7e899ea39bc725d87fb587346fda264155b339f149117ca601a2121e76e24a126ab2d3bd22605dfe0a3a14b44bf877
+MISC ChangeLog 2900 SHA256 84dc0cbc006e11cdd9d74ec8eba129999eb6e4e30073f56ce33550038dcdffb3 SHA512 b0512b343a0f78bec2214b952c727f50db0cf3af55a397d80682587975fd3fd7f7095411862fd5e336a57ed9cbf497551627849afbd0ef769bd46417f6ac1b22 WHIRLPOOL ed31c7f74995e547687108c73ad1bb719905695015c5c6074db228bb579d9f152343e39bf2c9751f5e8c00c3ac0788c87c00702a3a17120879e9069d052a614d
+MISC ChangeLog-2015 1578 SHA256 ab8b2bb320e933efe283b864402860cb4a022d3b5d4d9017710b382d0d8f3e80 SHA512 f08dd10e27e0b3410d30012dba075e504315ce217b956be84187efe051f6afbacb5903fd573c7ecefc7fb81c83eece6df8b85b8ff22a36b4ff79f9c38f8478f3 WHIRLPOOL fc557d9e3ae21e19718e54d34fe6fa2b259f555f7eed08fbec58efcaa0dc58d6744b2f96daa9cce7e70852c39fef4ea0452e465d94418bf7109cd79ce0476fbd
+MISC metadata.xml 452 SHA256 fbb664179b1e8eade755aea7c1c98bc51bab3b2b4cbdccb0c86f63bd1344c79a SHA512 b4a1540d3993d402fb63dcf4e4f45d5812bcec85ce0635830af088afb74a1214a81e75dfdbf6ba408b3ec2ecc9b98b6e6f76298e5f818f945b7ce88717be62e5 WHIRLPOOL 8bacfb24157f6d61737be9cb847f712f464c97c8f201772428f7f79f60ef0171ea5e1d1e89575968e446178f74e3c3474af2d7bb7c12dbf8b89d7f28920fbf20
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 000000000000..d7d21c5424da
--- /dev/null
+++ b/app-i18n/fcitx-chewing/fcitx-chewing-0.2.0.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="Chewing module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="https://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="4"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ app-i18n/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 000000000000..15954fb3655a
--- /dev/null
+++ b/app-i18n/fcitx-chewing/fcitx-chewing-0.2.2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ >=app-i18n/libchewing-0.4.0"
+DEPEND="${RDEPEND}
+ virtual/libintl"
diff --git a/app-i18n/fcitx-chewing/fcitx-chewing-0.2.3.ebuild b/app-i18n/fcitx-chewing/fcitx-chewing-0.2.3.ebuild
new file mode 100644
index 000000000000..c6ba5224f161
--- /dev/null
+++ b/app-i18n/fcitx-chewing/fcitx-chewing-0.2.3.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-chewing"
+fi
+
+DESCRIPTION="Chinese Chewing input method for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-chewing"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ >=app-i18n/libchewing-0.5.0:=
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=(AUTHORS)
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-chewing/fcitx-chewing-4.9999.ebuild b/app-i18n/fcitx-chewing/fcitx-chewing-4.9999.ebuild
new file mode 100644
index 000000000000..81658f7c3209
--- /dev/null
+++ b/app-i18n/fcitx-chewing/fcitx-chewing-4.9999.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-chewing"
+fi
+
+DESCRIPTION="Chinese Chewing input method for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-chewing"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ >=app-i18n/libchewing-0.5.0:=
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=(AUTHORS)
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-chewing/metadata.xml b/app-i18n/fcitx-chewing/metadata.xml
new file mode 100644
index 000000000000..c3d61612ede3
--- /dev/null
+++ b/app-i18n/fcitx-chewing/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 type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">fcitx/fcitx-chewing</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-cloudpinyin/Manifest b/app-i18n/fcitx-cloudpinyin/Manifest
new file mode 100644
index 000000000000..2e4d5d412ba0
--- /dev/null
+++ b/app-i18n/fcitx-cloudpinyin/Manifest
@@ -0,0 +1,7 @@
+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
+EBUILD fcitx-cloudpinyin-0.3.1.ebuild 494 SHA256 06319b12c38901a0a276fe9f0ddfc8994a1a5d0beb8dcefc11890377c6be069c SHA512 a4048142501cc6683b4427127c7c0fa188c99f3e33dfd04783007ccc87a967e86923a8ec17cdfe835d53184bd3628e482ac0f52e75d12af2e5e1ada09ff569aa WHIRLPOOL 31dd82509b63801d291fd8efc375267c6b6a743e3c1da7318f43f9d6c419bf1236422d21c2773ac6d72532e2b3090120bdb2b61be7a1770ed2ff736eb0e145fc
+EBUILD fcitx-cloudpinyin-0.3.4.ebuild 495 SHA256 bfc67b0472a86fa30c80ea532098e8f2c87eb08d1e3fdbfb433fb8143634246f SHA512 37d21184dbba30e7a33c802f8bd22077d97608d882b55f441e273a568bfff2fe0dcd60c6794a93d0595b767555dafbc1e52f9f56ab4e7ccf6344b276554cb7c0 WHIRLPOOL 1d32187c86ba56592ebb724f5465a8faaa0bc107efd8bde9fadf494a08fe9aa10ed2e0c9ca5bbe583340a83c7d5004697a7f6a4f548c442feefa151e23614d43
+MISC ChangeLog 2816 SHA256 1c57c6d043a47016e5fa851b087276cf3f40d7385bb974339c2e012180fa7ab9 SHA512 37a408b59e24acaf682c6435c41a74e7cde0b30717a7e620456940cf8caa237842bc926b3d9bfbd3587e28b1c955c00809a57d31494678b68c69f6310630d3bd WHIRLPOOL d876a0b9d7964fb10070fdd437f8d51a90a245e92ff590dc90c00140d43618fb443eb3a7fafee28ce286e401a8c55b8f6f69f3f47406349f4793b62c934b1568
+MISC ChangeLog-2015 2532 SHA256 66cb3e178ffe129233216cfeaf3788696589cb04705715da287110cf1f2f1ea6 SHA512 6e287439e794d9bd0e8674947a00826a8d321cba9077c4a5246fd51104b8af6a1dd17fd3042917fcfc4dab439bed2268f37765ce784e3c2704c47a143b38890f WHIRLPOOL edb5bec01dbc08ed5cdbacdd132e36047eefff9e400e7de3373ef148af0eef6a048ae35aee0a5dacdb5d9077835f264b430e23443122c4d8e652064b40abe86d
+MISC metadata.xml 443 SHA256 9aaa0c4737141ef1fa241b4fbca896f5537fa38823a175d3c00245fb18d5d7d3 SHA512 01d63563a2a52e619e9b329c5ab806deb4ac204fe9d45c4db879d30466a7a6d20565dd1698e8d1573a59a075187149b7e7dc06ecfa36ad18faf8fbd64c762a7f WHIRLPOOL 218c00c3019efb331b141b46cbd633151ca252b8e858d3f5a59ced7c8ff42e0ffcbdb2c0b30c60352e9324bf6540e140ecf1584b4ecfd38818c83c23fce16ffb
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 000000000000..2a6d5f8ceccb
--- /dev/null
+++ b/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="https://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="4"
+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 000000000000..3b0a7938c0be
--- /dev/null
+++ b/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.4.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+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 000000000000..e4f3812b18b2
--- /dev/null
+++ b/app-i18n/fcitx-cloudpinyin/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 type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <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 000000000000..2845b5ad9602
--- /dev/null
+++ b/app-i18n/fcitx-configtool/Manifest
@@ -0,0 +1,12 @@
+DIST fcitx-configtool-0.4.10.tar.xz 50440 SHA256 bcc4976976bfbddbfec3f689f38927fbabc7f7fa611ea252a789583ea14cd1fb SHA512 1c1267e9de694bbd5f258b5bba1e7514c4f8556cdc82a1cce5eafd8a4ec571955285dade0acd02f128eca01f867a30c5c6264ee7e91d32a333eba6e4d275fe8f WHIRLPOOL bbbc2a5c9d2247312b00c75a2469ec11f2992d8ca9d5b6bc7fec7b395973dd64fb3c7aed796682ea2a819f227daddb371a565cbedab7ba2b08838a74051c8417
+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
+DIST fcitx-configtool-0.4.9.tar.xz 48796 SHA256 592075d28224f8ce5304281c507ab2f9a9dd93f118eeec30d442ff3db214f9fa SHA512 800c731b370ace833179560260df7ffc9c0235c4f3257e8a99a0194f2fd06b71f738e6c77985871c3368179f944da2165dac5d4a8f7ba083519cb2509a9eb62b WHIRLPOOL ae5157178cbaedd66512da6548e79b0a09dd11e4ce8797ae3387c698cd33b51facf1153dca0d3e16cbf77a01959d01251a5dcd7fb6b30f119807d56a2a0f8470
+EBUILD fcitx-configtool-0.4.10.ebuild 821 SHA256 9808baa69ae7781ea39436debeb4132370550ff0444ed74f54a13f067d650453 SHA512 46083691aee4639d47437fa177920829361656f3a5bc94f9cdc3abe75d86d0cec1330d100297eeeecda6d35e7ad0a66f920f83c8ad1970446153beeb217e8bd2 WHIRLPOOL 8cf7d0c228664f71e119fa159a0c335d8421a303d82b146152d26ada1b309f74a8f44e6f683e7e8e5841ee7a46e4b9163510151a76e41d0a36059ba058128ba1
+EBUILD fcitx-configtool-0.4.6.ebuild 735 SHA256 ec6c0a585b4a3d6ae21c13b772ef3cd0a271270af71870a4e394dc905ebdb124 SHA512 901003da2ddfef080860b1a4365b95952aac85c0364738b40398daf71fc32f69c3f1477f3a5cac21bd4260f5aca162fe21209564711a8f254b2ae03b8ba8d0a7 WHIRLPOOL 0e828b325ed0e854b4c5f41cd239656d71541310f4f8c02d46721c72c576f4a857fd183c227798e0f9c36d5916537a97ed54720ff54a76986b3b9b010cfc42e9
+EBUILD fcitx-configtool-0.4.8.ebuild 735 SHA256 77adf1ecaffaa2de165be71a7fa64cd0ad1e12614725a8450306a2eced5a2da5 SHA512 71b4fdfbe5fad660ef83fa3941bd704ae8c71dc62fc42619958d376c33f6bd5235b41951a55700fd1d4004564dfaf896bad18c9d47800c79a5a593157d5ae977 WHIRLPOOL e3146c685c8682c59042daab087f24ad9f52ed786bccdbfc9853e2deec135995119daf4e538ec030b0783c34b2b0006a1c6b6780da38184d689e0ca89b3f6752
+EBUILD fcitx-configtool-0.4.9.ebuild 809 SHA256 69b7d71c36cc631f09d8544aa43a4594651544ffba04bb767eba92425274d37f SHA512 d67406a9d177b1e44d70f84b54887d268d3db2c71dd2bed3373943e08e953aeb8ea664cf861c3ddc394b2f41d58de86422b24984e3329280318bcac3ff9c1e6a WHIRLPOOL a09226ec4d5a8e2f0b3b4d47fec65286d1a1050c9d533054f840a2d12a990cc2889f071fd63fb586b0853af1f7607447a0dff740e96a5190fb096b4c92a3595c
+EBUILD fcitx-configtool-4.9999.ebuild 798 SHA256 353e141aa507dee86a985e30b65577247197d6cba4ad112e3a8d56ebd23b5574 SHA512 2e9b181ad32938da641082dddf1e662c44aea874cd3973003ace447045db844b6abadec824d9fbc862e627c10c0df14a3b8d5ed1220d1987b30481b20a5d53e7 WHIRLPOOL c5f8225f23133defa058edc1b8b8315534510d569239d8d3bc0f80265a700b109ed36d395c8fbcc85d330fe42147e63a2a91aba92132381f3e821f0dd80ffffa
+MISC ChangeLog 2810 SHA256 5d25f29c04b8c255dd517ab9d6ecd0e6aa1dc82d368c24027e12a37f569f154c SHA512 deedcba5c6e5e54bbdffc2f216ad4e599661b743e1ef913821442efd4736cc3069d5bc97b86f34e18a55f21597852bee8b2373aecd5b7e3fd42d9fe317bebb97 WHIRLPOOL fbef04be83d1faf237e8a01d52c09fae029bc52b870b0a0eabb6be3e81f78d1d5b7dd1dcfeb8d0941e0420d1ea168c61fe7a865def53d3f95862bb25c98924f9
+MISC ChangeLog-2015 4140 SHA256 3fb8f913ef8c9e6247e9448533d12100068e80be5f1cbaee681a733db0833507 SHA512 79a7093f5d416af55fe8eb4b3231b7daba39db02f553e4ce7341cc0d80996b825e46e95b0102233b576312c2796f8e03cb6f0d9c649305520b258f4c1b1ecff8 WHIRLPOOL 64835068e1eb6987ccccf7a850f885f131ab929d27e2a6f5ae9eb65406a204f27295a427f232858dec42e7e763b23d22be9e3396b80401e62e8c8935d443594d
+MISC metadata.xml 520 SHA256 0148eb17ee9f34fe10f6c7948a22aedc14a9de571537a38aa46dc0145610aaff SHA512 3c6521342c319563317575bbd5ad69c3f904ed7e0354ebfb059e20c64be93b5b89c62f9b05537524af02e90a8a3ed39abefd46fae331dc3be7b1180febc916b3 WHIRLPOOL b29fbc4498cca6a7ce0a3e8d1c147ce23839b4febe9e9d4956a9065621942878d8c99635ee746c918321f8bce6a2fa2341163163ee24f7d504d82b0c9f745419
diff --git a/app-i18n/fcitx-configtool/fcitx-configtool-0.4.10.ebuild b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.10.ebuild
new file mode 100644
index 000000000000..0b23abbbe065
--- /dev/null
+++ b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.10.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-configtool"
+fi
+
+DESCRIPTION="GTK+ GUI configuration tool for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-configtool"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ app-text/iso-codes
+ dev-libs/glib:2
+ x11-libs/gtk+:3"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=()
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_GTK2=OFF
+ -DENABLE_GTK3=ON
+ )
+
+ cmake-utils_src_configure
+}
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 000000000000..1bef6d8f0e68
--- /dev/null
+++ b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.6.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="A GTK+ GUI configuration tool for fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="https://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="4"
+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 000000000000..3a94d897cdae
--- /dev/null
+++ b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.8.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+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/fcitx-configtool-0.4.9.ebuild b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.9.ebuild
new file mode 100644
index 000000000000..871b14fd1c26
--- /dev/null
+++ b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.9.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-configtool"
+fi
+
+DESCRIPTION="GTK+ GUI configuration tool for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-configtool"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ app-text/iso-codes
+ dev-libs/glib:2
+ x11-libs/gtk+:3"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=()
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_GTK2=OFF
+ -DENABLE_GTK3=ON
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/fcitx-configtool/fcitx-configtool-4.9999.ebuild b/app-i18n/fcitx-configtool/fcitx-configtool-4.9999.ebuild
new file mode 100644
index 000000000000..aa0e86bd5706
--- /dev/null
+++ b/app-i18n/fcitx-configtool/fcitx-configtool-4.9999.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-configtool"
+fi
+
+DESCRIPTION="GTK+ GUI configuration tool for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-configtool"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ app-text/iso-codes
+ dev-libs/glib:2
+ x11-libs/gtk+:3"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=()
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_GTK2=OFF
+ -DENABLE_GTK3=ON
+ )
+
+ 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 000000000000..16a37e906ad6
--- /dev/null
+++ b/app-i18n/fcitx-configtool/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <use>
+ <flag name="gtk3">Use GTK+3 instead of 2</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">fcitx/fcitx-configtool</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-hangul/Manifest b/app-i18n/fcitx-hangul/Manifest
new file mode 100644
index 000000000000..55fe652d8e16
--- /dev/null
+++ b/app-i18n/fcitx-hangul/Manifest
@@ -0,0 +1,7 @@
+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
+EBUILD fcitx-hangul-0.2.1.ebuild 549 SHA256 a8596dc997324a21d8c01b3aeb377efe1a5e32afd90fb6188aa6ce514f4f971b SHA512 af4427e1a59ab8a963e585f2e9363feba2e2e4fa206b2fac848c011a88c1a3ff6ed569394ec4f6f9078895981ded64cc658427177f9f274574f8952a8b147d0c WHIRLPOOL 4785060a3af6ace7f9dd1740d8df2fba0b77c7ac279a18fbf34c6f8e0307294bec4e16c25d54b4f9166ed746e4400a29e5bf24cb83e393d655749ac820e1139b
+EBUILD fcitx-hangul-0.3.0.ebuild 550 SHA256 7f3f6390dadd1970cf55fba2b305547330ea71e6853b3a25cc4b6e81d21d9298 SHA512 2fc1d3fe285052e91d49bcbc303107261fdb3532c71c0403b47875cd191d0fd9b01eb9ea204f0669a2fddb19dccaaf436d2ff9b3ebe00e7187f4005c3c9f5a1f WHIRLPOOL 9818ec64601a0639b1446b072403f61fba5e6ebacf4187ed4f7013e9a981bd7db17edff5944547c780abf14e9dcf65ac626ba2d61a074cfeed81224eac1a5bed
+MISC ChangeLog 2894 SHA256 f030d5048536285757ae46a20b63127d7e91f8fd6b61346fb59cbd78c8f96683 SHA512 6cfeeeb148d8d31292bc2398d3dfb42933dbe7290c16b8a3c9d6cff02807bc597feaa938c341a41839132dd052cf14600a91b13d0f21bf4c861d6c169f2cd8c7 WHIRLPOOL a62d09a57eef912c07c6761343743dc38f829cac3eef65754559f99f9ff4598e6e08797735a8d93d832905929a71fce9926a8fc9d99fdad89fec7b4d307a0d06
+MISC ChangeLog-2015 1244 SHA256 82c3df1337eeaf0d06de5b5a3e64618d4d6b522b73ce3e5239c3d2c5c78d8524 SHA512 f00ce6b69d5429345a6ee783cdf0209b8c3f3667428f4f2735c095a792f923c5243e2deb1f0cf4c35044ad8099ced25d0cd1afb87c77ee11549588f90ae578d4 WHIRLPOOL 801aea08d6653cf65a240a60224986bd7b395fe4fd5f84551d9f7a5ac94429b6a9ea12c5a17db45527d8846cc6fe4be0dada77d27c42fd89d247621924dc213a
+MISC metadata.xml 368 SHA256 35771713c1279c6a6256b587a24bc95638761053755ebe871015e0a62bdb3d72 SHA512 02412f1f558f3b859d1327a440038b9d9ce6d2430510ef98bdb2ddd2b2ccb9ae682f76e76fdefc47e903ba08e93f6e46e9aabffe6cdfb4e57d33daaa63dde29f WHIRLPOOL ce52e2c48610b125b418018b4043cb24b09c1bc9a959275610a0af5a76c5da179703b20fc3aa938434834f8be6ad79339baf3cc4295f2c11a26a17eafad0719a
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 000000000000..9037363340e6
--- /dev/null
+++ b/app-i18n/fcitx-hangul/fcitx-hangul-0.2.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Korean Hangul module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="https://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="4"
+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 000000000000..73218760c8ad
--- /dev/null
+++ b/app-i18n/fcitx-hangul/fcitx-hangul-0.3.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+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 000000000000..49f2185b80dc
--- /dev/null
+++ b/app-i18n/fcitx-hangul/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 type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-libpinyin/Manifest b/app-i18n/fcitx-libpinyin/Manifest
new file mode 100644
index 000000000000..73563cd78a1c
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/Manifest
@@ -0,0 +1,17 @@
+DIST fcitx-data-model.text.20161206.tar.gz 15099931 SHA256 5c7024e5735389c471f54b867eda0d98c5a40a5e5e75333a9febac107508f704 SHA512 26450e347b7a211e5abd94acbb9befc8cee7d8fc20e5161ef11b8b9b1ad47cde4f1add5c41484d9af04e4dde2aa748090e297e799ee7f6d2f9fcec3873eee429 WHIRLPOOL ed5ee634d8904ed6578f4e6547eb58762d43e8323d755e9c9dd8562737c652395bec3774124c754a7196df9016ffd4dc51052f07185a30f1d75275b894802c8f
+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
+DIST fcitx-libpinyin-0.3.3_dict.tar.xz 15145448 SHA256 cac02fb2ac19d9072d58e2d9383297e21942caf71b528aee8fa36c55c899d1e1 SHA512 1d77bb0a73ef2f94058ad8f991c628097c87b0ea9c7c4480d23c972ff20ea8ea2653113c8100f1611911606fe84a470650e1a2e9cc6d596d3e80960bb00900c2 WHIRLPOOL ea9f470a92ad55fbdc561d0df1ba51414c716fac158c8db28cccd18d2f106339ee8dc9eba03067f2473289f485dd1118ffedee6ea5b0fbcd0517f6ef5e68abb8
+DIST fcitx-libpinyin-0.5.1_dict.tar.xz 15147796 SHA256 9464ff6bcff8ff5f89059845a26ece5fe2659b66f65fd0c4a092ee818752adc7 SHA512 85d26e5c036f5fb82005c677d8924e68236f52fab2ddf0e19472e84ca4ae66d9e8e7ec7a84cc7b7cb1da796df2e51f267336640b7957b5caf91ea13e273da411 WHIRLPOOL 676d9f71e2daf76a2b7677f381b32adb28cf3c4034ba949008b95b0fd9df9cd55ec5dfd86a3ae289e86b7e0758d72586e5d6e93267309e49ed1b2627dadb4ec7
+DIST fcitx-libpinyin-0.5.2_dict.tar.xz 15149780 SHA256 26e916d39db952901c95d97d8a6bd22f0a2dd004549553f58562dec04823f66f SHA512 9ff0d55d78f6ef7967df685c494351bc61ee3f6b47924cf265c781bb7ec2d109ddc92f310b65315f4ccbca8e65eb21fa410fb0b255eec52bb3247dc7e5e04368 WHIRLPOOL d9577baa908a7a14d6d70f9fc213f8e85af671aacbd8b9cdd5fabc77b965c03be8fb5acca93df25657739e5667e3ad211782d9a203d05e45eaf913d313982d3d
+DIST fcitx-libpinyin-0.5.3_dict.tar.xz 15149856 SHA256 fccd408b9fad8becebf7f736e3309e775d045d6383742892385b69be91f89b4c SHA512 d132e0c007bd62286cfa89f6605a5315b6f5ae94a75bdd389fff1061e1547ad64c615fb0b75189d8cf35fa289a53e5d485911e06e368b2bf3af7b5a996fcd08a WHIRLPOOL 0bd75c39e148056bce90ddaff9e949b9d43093f56ec80ca0b972e40a005da8f39e481726af9d4fef993149c50287af2069fc27ae9bc3493fd7a4523f2569f6ff
+EBUILD fcitx-libpinyin-0.2.1.ebuild 574 SHA256 2585f85b809664527981dc7a214dcc3fdf8f9624544de644535ae9945e200a7e SHA512 6f62f8b50fdd62cfef0db8992e2769b6779559ba97321a5a2bb22f75aed4babbac443b0efbbc4bf0d9d26dbfc1e12a6af19cf13506215465f666e3639da207ae WHIRLPOOL f15034ecc0b1b26adbf6d1db84edcb53c5dc9b3f6d4313867f040aee84f4836ec981ca0feaebb165fb43d5eb62f882d86a08db64317889e81f337a0d8a72ea28
+EBUILD fcitx-libpinyin-0.3.1.ebuild 818 SHA256 1b99e186c1f3002d1c35cc853e95fd02b3e4e9003151225739d5772e0fd53b6d SHA512 d708c83d3f619dd6cf6cb7f3aea2e59e57f5c49c7c7893b23b2ec1d39189aa00b49089122b6e21084afd101678ad4f4ca173047daf08f705d358c6cde041e2ab WHIRLPOOL a355f7572b17069bdd25617931516c85b7eb2fec6088a9510836f2c79c5d6bb12a03d8d3213647602a72e8dec47a22b83ebad31280f84faa7b023297dc6baf44
+EBUILD fcitx-libpinyin-0.3.3.ebuild 852 SHA256 a44f94db1297dc4f8e16140080a5e5d3360e2852f50890a32d2848a0cc87f76c SHA512 98a2eb59e38dca3ddbcfcbf6d800eeea056e3fd254a6abf7bf608e8351d131d4a2d02532bfb5e9176b6a3fdd8b1f8901ed5f71e23baf6e68581bd071d4bffde1 WHIRLPOOL 8d5046b5ddb8915e90336c2c9c8b3c5ace3f41a67c6173238e7e9634ad7842b6fc351a746ab7281d39b6fcad12c5118229bd3912e965eb9fa5dc4abb79238be8
+EBUILD fcitx-libpinyin-0.5.1.ebuild 1462 SHA256 3531962a31619508131237d0e026ef7d3fb30d4a49357011695249b2b1f8a091 SHA512 56c8f9431d430ffae74466cf63c4d694a41f479d18630d44baffb5ea1babd2841b8653869d3c8c0ea0ecfcbf11eb6e1b49e34c56c56b58f8e917c66f27edb55b WHIRLPOOL 66e03023a67bd5d5c163c64f0f021183799b449c4d7e4ae0114da009f736fed1d8dcfdb5210033efa76ec555494c8f97f245f67f47113147182b4d6a52f01218
+EBUILD fcitx-libpinyin-0.5.2.ebuild 1477 SHA256 6f279c149a52b9879ef3e832eb463433fd7f76a02e8c242c5361822717cc86c9 SHA512 f7b8c6bba8b572904778037f2e5d5a79312d11ba1f7402a73773276a3fff8cbe6e269e722d795f98619ae70871c2bf2e6a9f0c355eea2151892a9c9efbe2ba3a WHIRLPOOL 90b7cb9a22f9d98502be684a5bf88a279604da6a7f599d0b0be3354b2ab27607a8bf3510abca8908b5858feef3140e1cbee244e37ca1900b5ad89a730d49abb9
+EBUILD fcitx-libpinyin-0.5.3.ebuild 1496 SHA256 53321cc67ecf5e03a40829e3c098571a625fcc60a21ba77d08d4c5656843fa7f SHA512 7294c395ae9e5b91f9806a930b7ffb9698690a81ab74942d98763c03e2056eaaf798a3dc9453a5b85db758b78e4818d8fe20b2024531fcb447e587998a3dd35f WHIRLPOOL 3102f2373b6ae2d6255e7294f32bce36b9d7da3c16e6e1f8bd177cc594c29f435f6c70b36a297c0779816677a6cd08cb7462625f4ed08f2a72fadcb2db5e4774
+EBUILD fcitx-libpinyin-4.9999.ebuild 1473 SHA256 7f86aa4bcce91ba772d5ecef0171ac9e508ce5255b288ee8eeca306530be671e SHA512 fe16051864f4aba0516bb5e82602283bdacd100d900f64f3e5b71537825888ad2a269b1a4064008879cdd62ebd8df472edc881df4bbc312853c7d92a8505cffb WHIRLPOOL 0d579053f452af88e06c51c3f6dcf572b8c6ab35d9885c8d0376a899495a0943e8f8e7ee090110adb3ec20f95b6784ba4d6ca0db692ed4b080619bbdf3b317c6
+MISC ChangeLog 3620 SHA256 459e00ada72b01ab3ba4c6c7a27aac2208e009c43d19c6667d9445212de719b7 SHA512 933d74430cf7b67cee2b88fda6b88ad1972608f5dc55689c27c58b9f5f7e7e39706025a7c583da49f7083a0f98be24656b90237f8a94624b278b62c6b188c99f WHIRLPOOL 1a9c4578018fb009d0b8457f3ac83824cceaaf78638e604fd8d2e9c7f30029c1840c0ec4c6c7af18966094b244819fce2ac7f60b5e619e9b0e04b8dddba990f0
+MISC ChangeLog-2015 1654 SHA256 bbd29d6c349aad821a20e6ebf24629b2d4245d5a9e33aee46545dfa935313bcb SHA512 10bfb2b5237075cfd0f4a9fbcb2757bfee5337f16d4c00e6f71d60e6a971df1497d38f53b88324cf80946765009edf24a5bcab55d0f34b7f361f229682ad7419 WHIRLPOOL 62b5c4fdf25a716d93ae350e310a051cd0924451b5eab3e46ca171e14c299ea293e41d0dccea31cf805e1f6a86f9dda2bb9fab33fa04a0ce0da1bcd58cb5c8f1
+MISC metadata.xml 537 SHA256 370b994813471218e55db343507c6dbf30570881d71173b2c2aa0f694943cfe3 SHA512 32e4b2319df016e83055699ada867d1e1aba7b09d26308f03143df986e6aaadf77243da97894d33282ad7d1a7ee881723a4eadcac6f4573fce05ba3700a10609 WHIRLPOOL de7dda2942a0a946f9ae3c85ae6d000b0bbf69b240854cb173e6bb717d027a40b34565b4886df210d2bbfa0a7e4992f0836126be3971c1d158c2d7d2444ffb73
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 000000000000..da9a9373bedc
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.2.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Libpinyin module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="https://fcitx.googlecode.com/files/${P}_dict.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="4"
+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 000000000000..aced00e9f787
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE="dictionary-manager"
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ <app-i18n/libpinyin-1.3.0
+ dev-libs/glib:2
+ dictionary-manager? ( >=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 dictionary-manager QT)"
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.3.ebuild b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.3.ebuild
new file mode 100644
index 000000000000..6993a42056b1
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.3.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="dictionary-manager"
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ app-i18n/libpinyin
+ dev-libs/glib:2
+ sys-apps/dbus
+ virtual/libintl
+ dictionary-manager? (
+ >=app-i18n/fcitx-4.2.8[qt4]
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ dev-qt/qtwebkit:4
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs="$(cmake-utils_use_enable dictionary-manager QT)"
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.1.ebuild b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.1.ebuild
new file mode 100644
index 000000000000..78ea3d8dfe9e
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-libpinyin"
+fi
+
+DESCRIPTION="Chinese LibPinyin input methods for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-libpinyin"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI="https://download.fcitx-im.org/data/model.text.20161206.tar.gz -> fcitx-data-model.text.20161206.tar.gz"
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
+fi
+
+LICENSE="GPL-2+ GPL-3+"
+SLOT="4"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="dictionary-manager"
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ >=app-i18n/libpinyin-1.9.91:=
+ dev-libs/glib:2
+ sys-apps/dbus
+ virtual/libintl
+ dictionary-manager? (
+ >=app-i18n/fcitx-qt5-1.1
+ >=dev-qt/qtcore-5.7:5
+ >=dev-qt/qtdbus-5.7:5
+ >=dev-qt/qtgui-5.7:5
+ >=dev-qt/qtnetwork-5.7:5
+ >=dev-qt/qtwebengine-5.7:5[widgets]
+ >=dev-qt/qtwidgets-5.7:5
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ if [[ "${PV}" == "9999" ]]; then
+ ln -s "${DISTDIR}/fcitx-data-model.text.20161206.tar.gz" data/model.text.20161206.tar.gz || die
+ fi
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_QT=$(usex dictionary-manager)
+ )
+
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.2.ebuild b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.2.ebuild
new file mode 100644
index 000000000000..fa81ed5ad016
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-libpinyin"
+fi
+
+DESCRIPTION="Chinese LibPinyin input methods for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-libpinyin"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI="https://download.fcitx-im.org/data/model.text.20161206.tar.gz -> fcitx-data-model.text.20161206.tar.gz"
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
+fi
+
+LICENSE="GPL-2+ GPL-3+"
+SLOT="4"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="dictionary-manager"
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ >=app-i18n/libpinyin-2.1.0:=
+ dev-libs/glib:2
+ sys-apps/dbus
+ virtual/libintl
+ dictionary-manager? (
+ >=app-i18n/fcitx-qt5-1.1
+ >=dev-qt/qtcore-5.7:5
+ >=dev-qt/qtdbus-5.7:5
+ >=dev-qt/qtgui-5.7:5
+ >=dev-qt/qtnetwork-5.7:5
+ >=dev-qt/qtwebengine-5.7:5[widgets]
+ >=dev-qt/qtwidgets-5.7:5
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=(AUTHORS)
+
+src_prepare() {
+ if [[ "${PV}" == "9999" ]]; then
+ ln -s "${DISTDIR}/fcitx-data-model.text.20161206.tar.gz" data/model.text.20161206.tar.gz || die
+ fi
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_QT=$(usex dictionary-manager)
+ )
+
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.3.ebuild b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.3.ebuild
new file mode 100644
index 000000000000..8e48769ebe31
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.5.3.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-libpinyin"
+fi
+
+DESCRIPTION="Chinese LibPinyin input methods for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-libpinyin"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI="https://download.fcitx-im.org/data/model.text.20161206.tar.gz -> fcitx-data-model.text.20161206.tar.gz"
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
+fi
+
+LICENSE="GPL-2+ GPL-3+"
+SLOT="4"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="dictionary-manager"
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ >=app-i18n/libpinyin-2.1.0:=
+ dev-libs/glib:2
+ sys-apps/dbus
+ virtual/libintl
+ dictionary-manager? (
+ >=app-i18n/fcitx-qt5-1.1:4
+ >=dev-qt/qtcore-5.7:5
+ >=dev-qt/qtdbus-5.7:5
+ >=dev-qt/qtgui-5.7:5
+ >=dev-qt/qtnetwork-5.7:5
+ >=dev-qt/qtwebengine-5.7:5[widgets]
+ >=dev-qt/qtwidgets-5.7:5
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=(AUTHORS)
+
+src_prepare() {
+ if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ ln -s "${DISTDIR}/fcitx-data-model.text.20161206.tar.gz" data/model.text.20161206.tar.gz || die
+ fi
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_QT=$(usex dictionary-manager)
+ )
+
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-4.9999.ebuild b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-4.9999.ebuild
new file mode 100644
index 000000000000..aa74feb1b6d3
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-4.9999.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-libpinyin"
+fi
+
+DESCRIPTION="Chinese LibPinyin input methods for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-libpinyin"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI="https://download.fcitx-im.org/data/model.text.20161206.tar.gz -> fcitx-data-model.text.20161206.tar.gz"
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
+fi
+
+LICENSE="GPL-2+ GPL-3+"
+SLOT="4"
+KEYWORDS=""
+IUSE="dictionary-manager"
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ >=app-i18n/libpinyin-2.1.0:=
+ dev-libs/glib:2
+ sys-apps/dbus
+ virtual/libintl
+ dictionary-manager? (
+ >=app-i18n/fcitx-qt5-1.1:4
+ >=dev-qt/qtcore-5.7:5
+ >=dev-qt/qtdbus-5.7:5
+ >=dev-qt/qtgui-5.7:5
+ >=dev-qt/qtnetwork-5.7:5
+ >=dev-qt/qtwebengine-5.7:5[widgets]
+ >=dev-qt/qtwidgets-5.7:5
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=(AUTHORS)
+
+src_prepare() {
+ if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ ln -s "${DISTDIR}/fcitx-data-model.text.20161206.tar.gz" data/model.text.20161206.tar.gz || die
+ fi
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_QT=$(usex dictionary-manager)
+ )
+
+ 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 000000000000..2c68bea1e0eb
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <use>
+ <flag name="dictionary-manager">Install dictionary manager</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">fcitx/fcitx-libpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-m17n/Manifest b/app-i18n/fcitx-m17n/Manifest
new file mode 100644
index 000000000000..4d76e73da855
--- /dev/null
+++ b/app-i18n/fcitx-m17n/Manifest
@@ -0,0 +1,8 @@
+AUX fcitx-m17n-0.2.3-memory_leak.patch 473 SHA256 938952ec1a5e1842a65c6789393212584280cf901777c67b28e6a12d6de757b9 SHA512 e279f122ed3fd4bb2a665464e8cfac4def16ebbfd5ce36bd4d8b401147bbf88c0d6915ca7604907269b530e54fbb94da7953288114d0339fbc5fda3c0c762a8d WHIRLPOOL 2aef68ddca47c54f3783b53a2bc6066c1699778e13694e8aeddf909cc21958a082202221afc520f467c838e88c9a1e705e4ac1ae1da5ecb3b23f018d6c08fe9e
+DIST fcitx-m17n-0.2.3.tar.xz 33504 SHA256 84f9a9ac9e8c94db0c124d1c9cafa352191894b4d04d926611c5b0759e86de39 SHA512 6e78b70fb2e3139a59f49d25026c075893a8f192dd2083641ab3e56595a4f631ff13307dd647fd0eedd510dade690d97b44cbdeca96e086855f73910dc5d02af WHIRLPOOL e007a15f5908f37c115934e77ffbb446621ca132e87d13dea7aaed98e1cc566f1376229739572664b1cc90a9ef0ed6f4fafec719310a98815a4bc7d70625e5a3
+DIST fcitx-m17n-0.2.4.tar.xz 35076 SHA256 cf82158b907ba6b79aad3e4c26f9e0e2457a270619548adc31e9f77412144597 SHA512 b7c483e9c88e58a47ead294c36ed182558f09b41996e97faaba9fd3a96612f6a0fc240fdcb95db9a08c1546abe5fc97337957e2124844bd011363b7468f6e112 WHIRLPOOL 5559814bb1756b57e873eff4e5a2b36855da9fd84319bef091a931d8e7172b0fc519ca019c7a541e694d5dc3a26981d37d42d49e574dd654e0040e682bc650f3
+EBUILD fcitx-m17n-0.2.3.ebuild 727 SHA256 f5b3760bf7e8c35f7e12091d8dfd390fb56e539f3e2efcd35d42d65e5962ce83 SHA512 1543c23bc95a8a06814bb42d34cef341e8b93e02b9dd2ae33116b9edcf7ee17670d539f5f7caaeb4874e239bd162c7c96f6a60aa1c90d7e6c606a26c290f9c64 WHIRLPOOL 90aee8402378e5c167b093052d665d22eeb68de7ab4c558b9fdb4083cd517b3985a1ca0ee7f716a06c648aa556a77db2b83da0dabe737bd3a0399b2de69284c5
+EBUILD fcitx-m17n-0.2.4.ebuild 688 SHA256 4804060ea1f1d8b93256c3bfab28288067b609dff7f562107a36bc2c71f61845 SHA512 379e8d6ff715bbaec9bbfff8b4c4c428aff523506471cce7991d6da7a89b05fe85e55db1e52c834e8e57a34749d8aefef75f6e7d2a4464e0e2924c8dd699b757 WHIRLPOOL 9a3fa925d8731785104436cb2660a80fc185eac19d0794a7c6c75491881a4c3b2f71b4dcbfe04552cc88c2efce3f7583e646b187da089fb87710dcf8f2ac6dec
+EBUILD fcitx-m17n-4.9999.ebuild 659 SHA256 f3ebf706494a7d1e5a8771d3fca41296978e6520f3e0282125bff9bbb737c006 SHA512 8958033c23147637814528395f94bad019a3bb130270611a8cc4204cb503f34b6193fcb2a39532588831d99f24e5ead64f791d3e765875c2c108334a8123d694 WHIRLPOOL e23d8f44cfd1da20a176913434c0958da4b7863b17c993e53a75e59b9a5050e711eb595a1f340dcc013521d6e81fa348fbd9f911173f177ae5cce35e20a9fe23
+MISC ChangeLog 386 SHA256 5457c027f6b6736712daa22a671e64d95e77a343effd089194c766e9233200e1 SHA512 d391fb5a91adfe33b88a6f4a9f7ea4e965e2afd0dafb0d09e4e3b217b58535911975b00f98b3aaaa3108c12ea77333337fae898160e38e1f3361be45a1926fe2 WHIRLPOOL 7aac361fffbd53928bbd09dbb811930dc1c80e43e52bdc6347769ee20436bfa6a7662dbcf9895a39c27d1c7d0e852174b67aafa1594c3403ac59f0dfbe7154fb
+MISC metadata.xml 449 SHA256 e53bce354dc6eef291b8e405b9fcbbd1f9fa60b2924e5bb6eb3f51527976ea39 SHA512 97c79c2a23d736128429846b87000d52f815e3b32999ea0ca3ee1be2d6281ff6aeb2208d1340e74414a5b5e31e06e3675292e307960d088767c09c252f5d87ef WHIRLPOOL fa7d9546be08b622140b1b8a140fe337246eb6a908b74c2121c4d2ce5457acd58c2040626b9cc011c084242332eb3d9c1f52789df0cbddc81a100b224818a711
diff --git a/app-i18n/fcitx-m17n/fcitx-m17n-0.2.3.ebuild b/app-i18n/fcitx-m17n/fcitx-m17n-0.2.3.ebuild
new file mode 100644
index 000000000000..557010c245bf
--- /dev/null
+++ b/app-i18n/fcitx-m17n/fcitx-m17n-0.2.3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-m17n"
+fi
+
+DESCRIPTION="m17n-provided input methods for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-m17n"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="LGPL-2.1+"
+SLOT="4"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ dev-libs/m17n-lib
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=()
+
+PATCHES=(
+ "${FILESDIR}/${P}-memory_leak.patch"
+)
diff --git a/app-i18n/fcitx-m17n/fcitx-m17n-0.2.4.ebuild b/app-i18n/fcitx-m17n/fcitx-m17n-0.2.4.ebuild
new file mode 100644
index 000000000000..b88697a1c677
--- /dev/null
+++ b/app-i18n/fcitx-m17n/fcitx-m17n-0.2.4.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-m17n"
+fi
+
+DESCRIPTION="m17n-provided input methods for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-m17n"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="LGPL-2.1+"
+SLOT="4"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ dev-libs/m17n-lib
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=()
diff --git a/app-i18n/fcitx-m17n/fcitx-m17n-4.9999.ebuild b/app-i18n/fcitx-m17n/fcitx-m17n-4.9999.ebuild
new file mode 100644
index 000000000000..cf91063156a4
--- /dev/null
+++ b/app-i18n/fcitx-m17n/fcitx-m17n-4.9999.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-m17n"
+fi
+
+DESCRIPTION="m17n-provided input methods for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-m17n"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="LGPL-2.1+"
+SLOT="4"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ dev-libs/m17n-lib
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=()
diff --git a/app-i18n/fcitx-m17n/files/fcitx-m17n-0.2.3-memory_leak.patch b/app-i18n/fcitx-m17n/files/fcitx-m17n-0.2.3-memory_leak.patch
new file mode 100644
index 000000000000..ef89d35075a2
--- /dev/null
+++ b/app-i18n/fcitx-m17n/files/fcitx-m17n-0.2.3-memory_leak.patch
@@ -0,0 +1,20 @@
+https://github.com/fcitx/fcitx-m17n/commit/52d3d740c35845c78857ead8a0537eb7b0d4706f
+
+--- /im/fcitx-m17n.c
++++ /im/fcitx-m17n.c
+@@ -592,6 +592,7 @@
+ } else {
+ iconName = uniqueName;
+ }
++ m17n_object_unref(info);
+
+ FcitxIMIFace iface;
+ memset(&iface, 0, sizeof(FcitxIMIFace));
+@@ -619,6 +620,7 @@
+ free(uniqueName);
+ free(fxName);
+ }
++ m17n_object_unref(mimlist);
+
+ fcitx_utils_free(curlang);
+
diff --git a/app-i18n/fcitx-m17n/metadata.xml b/app-i18n/fcitx-m17n/metadata.xml
new file mode 100644
index 000000000000..fcddb15dd181
--- /dev/null
+++ b/app-i18n/fcitx-m17n/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 type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">fcitx/fcitx-m17n</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-qt5/Manifest b/app-i18n/fcitx-qt5/Manifest
new file mode 100644
index 000000000000..edf69f582a0b
--- /dev/null
+++ b/app-i18n/fcitx-qt5/Manifest
@@ -0,0 +1,13 @@
+AUX fcitx-qt5-1.0.5-ucs4.patch 3776 SHA256 f3ad90ebe52bbdab63d38feaeab06f463611b954d1260fafcc510929c456e4aa SHA512 8c604f95ab49e99cbbc701a5dff619d5940b3e7dceadad93ca16998f8d87eba9995f4ef55c51df2ba2894e4b38575c751617481d3de310da15f6398af53f61d5 WHIRLPOOL 8a3140ffe4518dbc7cafb834c64b0610a9c9901f827bee60d395f19b4a1728030060ecaaa619d06162e40843cb7d2986dceceb0ba3f211d3f310f6c3c8c2ac3c
+DIST fcitx-qt5-1.0.5.tar.xz 53584 SHA256 8cef90024ca84c3f607943b91f6bfe63fd077507bbe100e5a1936464095841de SHA512 f4da9ede8918cef7aa0dbacea534ab81024e3c6d812bedd287c4c4c9a8b9ca994d4708489c602967f3504ce057ec6e118674503f5d796883f1890e8ecc11c501 WHIRLPOOL 764190a5f523fc40ca5f937704d5bc1a7018232284f50b9b1b6a36b5dd41dfbebda5db337bdc49b08e601e94f51935f2a70d96dddbd4091744ec8c89a77f26b0
+DIST fcitx-qt5-1.0.6.tar.xz 53892 SHA256 a2aea7b49a9508e68d087ac5c9f3d1d1d414318e1aca14fed92a2f8a7e8848c8 SHA512 ea816a3bc324b838d77d7ee67a05853f7f07cbc3c0c1e0a3809fe72084f7e0db8e98623499299712b8b496922e46acb06cf3a1cbd3ff2ef1de92ca5a74d540da WHIRLPOOL aae4029ad2bd5120cd7910fa0a2644dca346acbf47da22d54d7fd3bdb70fab9bdbcf40207e8870f1bebee48de07d9c4a39d44ef04a56eb8472e31087cf6326d3
+DIST fcitx-qt5-1.1.0.tar.xz 55944 SHA256 9be3205e9bb730a23f28bf742d8c41a5035fcd8d91b51aaef875d888c12c0c65 SHA512 1f11c13162483957f0ff29dc8d05e8c781bfcc6f60d938037b94ae825be9c1bc47f594540a2d1d3ffa7185abcc9fd734522a64e36813d3116ec394b52f98135c WHIRLPOOL bbac0393b3e697d48b8bde3acec54a1f8d3daade53c31b8775418067c450c3960820c6ce2e2ec1583d1aa2263a7f7f13cf08d7b32deb1c1a851fc892e367f4e2
+DIST fcitx-qt5-1.1.1.tar.xz 56352 SHA256 4b062869dae011747ff257e6976debd1d69fb13e6121318ce725c0c240291b02 SHA512 ea7faa953561527fd0f6224a06ab97ab84a9e36a06d44f9807e38e6d8e537ab2c7126c4cda2d4718473ace1245709ce6175ac9431b6f0527a63b2d6e92feb18c WHIRLPOOL 385566104e215309dae5742ee4ed360b4b5a23b282fe64a4e50ac13a710478998262f2022320ceda2c4f423406292e7ded48dd2adec7e7b532d5e4bb8b524776
+EBUILD fcitx-qt5-1.0.5.ebuild 860 SHA256 d8cb4ee5dc2b7228a6960af1baf075585437c4fc630eb8749c4fcbb9ff2b473e SHA512 08f085874b6e2681846ba6abc3a88f8d21e13e009197e3b2955f920f74f8c6a5778d565ca5d8ec8a0ffcda130b4620b3c7b05f068704493f33a583fce366fb8c WHIRLPOOL afee0f3252f99a044bd7c54852f0b6ec976c05d63a3dcf5fc89b019dd7d93e415a5aea0beff8f1d39d3447ec822a9c090a6b2426a4b62da67acb38f1d94029f2
+EBUILD fcitx-qt5-1.0.6.ebuild 818 SHA256 0a296833bba8c1c01fea77e443b3e792d1c92201cf189ea1fbf2b9205769aa7b SHA512 47626df5ea35a0ed011d12589a95aaf71ef0c59f6070efcf310e64c0de8a3ff5fa77e014e6cfac2cad6694ace40a7fcb313de6d51cd92b83b3e44ba8fcfbd824 WHIRLPOOL 1970b80b93ab02f093998af92b1efc4f004b4382f0c102b86f0818b8cb4ea9bb5384c105a951def436429d45e89067c1f71858d6e9739d0896c6b4c39d6858a8
+EBUILD fcitx-qt5-1.1.0.ebuild 816 SHA256 2c8b0cd85dc0f4805fe1e608d15379ef980fdb42f83a31ec17f2a0e5a1972a22 SHA512 d25fb2bfb7706cba12f36a8cd40b420d94c01cfbd5f177b1dee41e8ad3d259fdefe4da1dd0aed40dd8016f9ebf7ec4364812f21678678ad07d8c771bb8e3dcee WHIRLPOOL 4af6e879bef817f5ff376eced3d7b97d32e3bc98ba339ed45600bb5f7597ec5301f9c78bce5dd05c6306ec7c28fcfd615058de4c9163b3bbdc4a44b30a678038
+EBUILD fcitx-qt5-1.1.1.ebuild 830 SHA256 72e83961bc9bd08d19ab4fcc3d19da3e92e3c188057ac71e5e0284eae338b66f SHA512 f9b4973a27a0f56b423571c78fde4b806d15466eb5bdb5ae172e895d883f152ec421642db7bfb1769bc4547196a5cfba8821f8b52d63344dbb16fb75b93cfbfa WHIRLPOOL 0e9d8c1ad865749f23831a37867ebd25c05b75677fff1d7f55a153a048dce80a1a13891304ae4c3f628c9c5994ee393b12d39dbc896132fb39f6fb78e9fa61c5
+EBUILD fcitx-qt5-4.9999.ebuild 829 SHA256 4a3acaba884861ab236a345f22e308af4f53fd7e777d73b91e9cc517ca0cd802 SHA512 ae82b2c5f6c1a035bbb71a545694b3a57e608de862a4b6d133f17fe3f99d9805806c17d99f11f42672fa4ed86ab1a614ca687abd0cc16eff1b7929a5f656aaa9 WHIRLPOOL be3cd46fadc5a2ba5ce54995c6756173c9d95d65894563b84b0485b6282f588c26d481ba27d7c4dff470ccdf015fda12164e6dd3a02568b64e0fd1229f3d6191
+MISC ChangeLog 4384 SHA256 261f8d3d58fa4dbf1d6ab5855c99b16dd16a4debd289a01ec3c7a197fd03eb1e SHA512 fb76c92b2cb205d781b12b3e11b80104fcf4cabd4c38e953f15ed4eb4bd4e659d7fb5a65748fe2a2e9fe512ce73e0b36eda2dc3dd6fe5be8fde94a356426821d WHIRLPOOL 9f93b04594daeaf416b2093b12ae5d39844968e7ef0d46a0645d688ba1e500973f87541c6cb7ee2a3a4535d137ff6eec905bfe088cf2e84c2f6ad1e9c916087f
+MISC ChangeLog-2015 843 SHA256 e89e001966ce223ad3334738870444dca20664da57c0b0d64b11de32fc26f3cb SHA512 714b955d8a859889a2af1d47882c3d06e5a056a8011a11b191c867997c91f90a8fcffc65bcc891b452a34d04feea31d75c8cb16ff9bff837ee6adab3bf648407 WHIRLPOOL 0e9661f71dfaaf03bf5b68167c5f8442112fc0d7f94b6c82f1cdb5ef0eb1e82a5ed81fd44dd859827fe61f83278b157c50cf4cbf9e840da9cc8d8c15bd38916b
+MISC metadata.xml 448 SHA256 51d64c2dd912603ad14ae9e3fc20014911082ebec23f27468f06c2d0a39ef05a SHA512 37fc515507954a58b16c0fc81ddfe1b24ac21db88b7cd858ef14167526ec48ddfaa144ac5653bf9c5fffdc148ecbeb82ae57b807822c8f85a5cf90d3c81bd6a4 WHIRLPOOL f521d77d9953ee344937204f7be001e5eccc201b7fe8b9be6139728367aa64b0665877ee706e9df989576ac6faa64480da0b068dae1fec7066bf431a86ddd6bc
diff --git a/app-i18n/fcitx-qt5/fcitx-qt5-1.0.5.ebuild b/app-i18n/fcitx-qt5/fcitx-qt5-1.0.5.ebuild
new file mode 100644
index 000000000000..4c3c996c6d6f
--- /dev/null
+++ b/app-i18n/fcitx-qt5/fcitx-qt5-1.0.5.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-qt5"
+fi
+
+DESCRIPTION="Fcitx input method module for Qt 5"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-qt5"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="amd64 ~hppa ~ppc64 x86"
+IUSE=""
+
+# Private headers of dev-qt/qtgui:5 used.
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5=
+ dev-qt/qtwidgets:5
+ virtual/libintl
+ x11-libs/libxkbcommon"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-ucs4.patch"
+)
+
+DOCS=()
diff --git a/app-i18n/fcitx-qt5/fcitx-qt5-1.0.6.ebuild b/app-i18n/fcitx-qt5/fcitx-qt5-1.0.6.ebuild
new file mode 100644
index 000000000000..7e1852577c1f
--- /dev/null
+++ b/app-i18n/fcitx-qt5/fcitx-qt5-1.0.6.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-qt5"
+fi
+
+DESCRIPTION="Fcitx input method module for Qt 5"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-qt5"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
+IUSE=""
+
+# Private headers of dev-qt/qtgui:5 used.
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5=
+ dev-qt/qtwidgets:5
+ virtual/libintl
+ x11-libs/libxkbcommon"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+DOCS=()
diff --git a/app-i18n/fcitx-qt5/fcitx-qt5-1.1.0.ebuild b/app-i18n/fcitx-qt5/fcitx-qt5-1.1.0.ebuild
new file mode 100644
index 000000000000..8668783c73fe
--- /dev/null
+++ b/app-i18n/fcitx-qt5/fcitx-qt5-1.1.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-qt5"
+fi
+
+DESCRIPTION="Fcitx input method module for Qt 5"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-qt5"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="amd64 ~hppa ~ppc64 x86"
+IUSE=""
+
+# Private headers of dev-qt/qtgui:5 used.
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5=
+ dev-qt/qtwidgets:5
+ virtual/libintl
+ x11-libs/libxkbcommon"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+DOCS=()
diff --git a/app-i18n/fcitx-qt5/fcitx-qt5-1.1.1.ebuild b/app-i18n/fcitx-qt5/fcitx-qt5-1.1.1.ebuild
new file mode 100644
index 000000000000..18564da597d7
--- /dev/null
+++ b/app-i18n/fcitx-qt5/fcitx-qt5-1.1.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-qt5"
+fi
+
+DESCRIPTION="Fcitx input method module for Qt 5"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-qt5"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
+IUSE=""
+
+# Private headers of dev-qt/qtgui:5 used.
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5=
+ dev-qt/qtwidgets:5
+ virtual/libintl
+ x11-libs/libxkbcommon"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+DOCS=()
diff --git a/app-i18n/fcitx-qt5/fcitx-qt5-4.9999.ebuild b/app-i18n/fcitx-qt5/fcitx-qt5-4.9999.ebuild
new file mode 100644
index 000000000000..b1b4481aedc5
--- /dev/null
+++ b/app-i18n/fcitx-qt5/fcitx-qt5-4.9999.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-qt5"
+fi
+
+DESCRIPTION="Fcitx input method module for Qt 5"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-qt5"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS=""
+IUSE=""
+
+# Private headers of dev-qt/qtgui:5 used.
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5=
+ dev-qt/qtwidgets:5
+ virtual/libintl
+ x11-libs/libxkbcommon"
+DEPEND="${RDEPEND}
+ dev-qt/qtconcurrent:5
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+DOCS=()
diff --git a/app-i18n/fcitx-qt5/files/fcitx-qt5-1.0.5-ucs4.patch b/app-i18n/fcitx-qt5/files/fcitx-qt5-1.0.5-ucs4.patch
new file mode 100644
index 000000000000..28cf78efc9c1
--- /dev/null
+++ b/app-i18n/fcitx-qt5/files/fcitx-qt5-1.0.5-ucs4.patch
@@ -0,0 +1,86 @@
+https://github.com/fcitx/fcitx-qt5/commit/31ecc9f2f9c8eb77082044944bbb6740d35ae7c3
+https://github.com/fcitx/fcitx-qt5/commit/8fc110e6125d85d3c50112bc20a6ed36395b2b21
+
+--- /platforminputcontext/qfcitxplatforminputcontext.cpp
++++ /platforminputcontext/qfcitxplatforminputcontext.cpp
+@@ -254,6 +254,12 @@
+ anchor = var2.toInt();
+ else
+ anchor = cursor;
++
++ // adjust it to real character size
++ QVector<uint> tempUCS4 = text.leftRef(cursor).toUcs4();
++ cursor = tempUCS4.size();
++ tempUCS4 = text.leftRef(anchor).toUcs4();
++ anchor = tempUCS4.size();
+ if (data.surroundingText != text) {
+ data.surroundingText = text;
+ proxy->SetSurroundingText(text, cursor, anchor);
+@@ -388,6 +394,7 @@
+ delete data.proxy;
+ }
+ data.proxy = new FcitxQtInputContextProxy(m_connection->serviceName(), path, *m_connection->connection(), this);
++ data.proxy->setProperty("icData", qVariantFromValue(static_cast<void*>(&data)));
+ connect(data.proxy, SIGNAL(CommitString(QString)), this, SLOT(commitString(QString)));
+ connect(data.proxy, SIGNAL(ForwardKey(uint, uint, int)), this, SLOT(forwardKey(uint, uint, int)));
+ connect(data.proxy, SIGNAL(UpdateFormattedPreedit(FcitxQtFormattedPreeditList,int)), this, SLOT(updateFormattedPreedit(FcitxQtFormattedPreeditList,int)));
+@@ -480,15 +487,56 @@
+ update(Qt::ImCursorRectangle);
+ }
+
+-void QFcitxPlatformInputContext::deleteSurroundingText(int offset, uint nchar)
++void QFcitxPlatformInputContext::deleteSurroundingText(int offset, uint _nchar)
+ {
+ QObject *input = qApp->focusObject();
+ if (!input)
+ return;
+
+ QInputMethodEvent event;
+- event.setCommitString("", offset, nchar);
+- QCoreApplication::sendEvent(input, &event);
++
++ FcitxQtInputContextProxy *proxy = qobject_cast<FcitxQtInputContextProxy*>(sender());
++ if (!proxy) {
++ return;
++ }
++
++ FcitxQtICData *data = static_cast<FcitxQtICData*>(proxy->property("icData").value<void *>());
++ QVector<uint> ucsText = data->surroundingText.toUcs4();
++
++ int cursor = data->surroundingCursor;
++ // make nchar signed so we are safer
++ int nchar = _nchar;
++ // Qt's reconvert semantics is different from gtk's. It doesn't count the current
++ // selection. Discard selection from nchar.
++ if (data->surroundingAnchor < data->surroundingCursor) {
++ nchar -= data->surroundingCursor - data->surroundingAnchor;
++ offset += data->surroundingCursor - data->surroundingAnchor;
++ cursor = data->surroundingAnchor;
++ } else if (data->surroundingAnchor > data->surroundingCursor) {
++ nchar -= data->surroundingAnchor - data->surroundingCursor;
++ cursor = data->surroundingCursor;
++ }
++
++ // validates
++ if (nchar >= 0 && cursor + offset >= 0 && cursor + offset + nchar < ucsText.size()) {
++ // order matters
++ QVector<uint> replacedChars = ucsText.mid(cursor + offset, nchar);
++ nchar = QString::fromUcs4(replacedChars.data(), replacedChars.size()).size();
++
++ int start, len;
++ if (offset >= 0) {
++ start = cursor;
++ len = offset;
++ } else {
++ start = cursor;
++ len = -offset;
++ }
++
++ QVector<uint> prefixedChars = ucsText.mid(start, len);
++ offset = QString::fromUcs4(prefixedChars.data(), prefixedChars.size()).size() * (offset >= 0 ? 1 : -1);
++ event.setCommitString("", offset, nchar);
++ QCoreApplication::sendEvent(input, &event);
++ }
+ }
+
+ void QFcitxPlatformInputContext::forwardKey(uint keyval, uint state, int type)
diff --git a/app-i18n/fcitx-qt5/metadata.xml b/app-i18n/fcitx-qt5/metadata.xml
new file mode 100644
index 000000000000..1a301afceb2d
--- /dev/null
+++ b/app-i18n/fcitx-qt5/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 type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">fcitx/fcitx-qt5</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-rime/Manifest b/app-i18n/fcitx-rime/Manifest
new file mode 100644
index 000000000000..7e21db09a38d
--- /dev/null
+++ b/app-i18n/fcitx-rime/Manifest
@@ -0,0 +1,7 @@
+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
+EBUILD fcitx-rime-0.2.0.ebuild 707 SHA256 25fbf68f0306aadaa989b00f135ac81064713d86092344a65a4a8184690bfcb1 SHA512 3d7c15177bb138a676dc388d2f4db78e58ed0df7458412a36f7957833d6b16858f95eaa34b8d68b1cab96e5b156a4b00b220f45ee8410ab251d1b074eae9d5f9 WHIRLPOOL 6b8c8721f1e18cd57f666896b067a19a25059a3fbf3e04f347d94be1cd861859c01db5d1ee7254470f9355bcd799b1ea89996127e03d16726073a144e76a3d1a
+EBUILD fcitx-rime-0.3.1.ebuild 716 SHA256 59b13adf544139c71e3521e337656b364cbacbd87e8c18994ad8a840b082ae79 SHA512 8e22c660c8cc0fd218a7a0ca735aee10f965013ee7e7e96b66d57afe197e474b7280406e0c1e3110fd2b512c21f5711774d5a01916efffd11f60ffe55cfcc359 WHIRLPOOL 8403b0672b03d2b9ad22ecc403ab892dfb4f85dca6e58cabee98b8cae30acaaf2af235023a211ff588fe09dc871fc733c78f1d36e7ea133371fe505980c14408
+MISC ChangeLog 2972 SHA256 71c10dd05ada26107340c89a2921d037f6caa3a106d2f6867c2a66c6aed77de5 SHA512 d6b9bdaced57ac9bb561ca9a188f7847cc7722f6bcf8e8bdc43b5ae9f150e91da8623276b53217959e7769777837044b1f1646e2141ede330bafe2472cdcd932 WHIRLPOOL 56a5fab9c08b5117fedf63c13c169cbed5b59afa26e5a6063629fcd37686a41e4008b85b0fcd51918586ffdbb53937210443c51cdba3aef2fe2fa2acd263b860
+MISC ChangeLog-2015 2201 SHA256 1c6a150b9716f4e1dbc3f6f2405cfb138f81b4c133a63d2ff605456362376f02 SHA512 5792009e10b17e5e3512c1347db541d925ecc35ad89ea14c03d0f75574195a6f4f3617a119056b616231a291bd0864527b31a9e30d9a98bed587821ce4b9d24c WHIRLPOOL f2652aa2be1cb2e47c43d16be1afdbeb482083ef017947c8dd4eb11ed886062269a49d2d6ab4a0f22492d46defb3d971b26d78a18834417909436539deb09d20
+MISC metadata.xml 613 SHA256 91ad7a62a0ef91b6004a0a24b90e0ea608e9fa17e0c81b9d4ba8cefa2c9d6deb SHA512 989964968974e71ee0ccbc9325bae9c26c44051327283ff48274ed98e3a329b159980c16809e2f80105d1a67d49f65760171dac16b8c17013ebe166fb0177d3d WHIRLPOOL 0e3a0507759d98ed786d6e5543d1d840a0db7b2bf2207f3636b990af3f8faf8b7d7b99b369414742461aefc1ee1f803f0f7e83cc812e3809a40ac04a96b25374
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 000000000000..9b139edf92ed
--- /dev/null
+++ b/app-i18n/fcitx-rime/fcitx-rime-0.2.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+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 000000000000..e5394485cf5e
--- /dev/null
+++ b/app-i18n/fcitx-rime/fcitx-rime-0.3.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8.1
+ >=app-i18n/librime-1.0
+ app-i18n/rime-data"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+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 000000000000..ace10f659bae
--- /dev/null
+++ b/app-i18n/fcitx-rime/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://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-sayura/Manifest b/app-i18n/fcitx-sayura/Manifest
new file mode 100644
index 000000000000..f09a60f2e6bc
--- /dev/null
+++ b/app-i18n/fcitx-sayura/Manifest
@@ -0,0 +1,7 @@
+DIST fcitx-sayura-0.1.1.tar.xz 18756 SHA256 36b5d79fed0cefaff7832c82473404e96d68cc8560b1d626884604b0aad7bea6 SHA512 1eda91ae985df65982cf6f4e67b676bb8eb7117cd1aad7c2a90e81c13fa2a806bbff5eda7bb7e797cb26cb46bbda51931ecffd50384a89ead24ad90777183dc3 WHIRLPOOL ddcec7ba970868795df0ccf4eb3ebacb9a9ec29f6f05762fb5253ca6cc59fab78459fc11cb715bcc53856e5093378fb99f572ccd615fe84bbe053574efa1b69f
+DIST fcitx-sayura-0.1.2.tar.xz 25400 SHA256 4cf1c26625efbcae05e6a741b6f955d85c4d4970ab0642fd9ecdb1ac6d757f74 SHA512 2118c95d4f831e5f4e0af0549ae3eb4f16bff8b30b03452837bd14f35fcb524f730b27ceb7c14cf6a4db7400a67070929a75465195b5524187e97c7ca02de466 WHIRLPOOL 1fb0146a639ae74b51185c2eef86bf7a5e5e424d5d3d4cb0c6c21357ca55c0ad527aade5a161d9cbcfadde3dee721fb444f6adf5cdc5ea8603bb33c3de948e66
+EBUILD fcitx-sayura-0.1.1.ebuild 674 SHA256 414111ff847ea2daa1bde0f524046d0f88c9429b39996476eab5cbfa8a06689d SHA512 8d1f1aa4ef1b6955058b460d4076af08383421a533c280827c22c32d9303b78e0ea4e3d174f9df332b5b85076563e211445b1c621967d27351c2d3c4ee9a9f4d WHIRLPOOL f5671f42377e241deff4e5708bc96bef13332ce6c3d56749fd6c4a4274e8ba6c3c2a7b59ce9ded32c32950e92630bde9c224e078aad9dfa2bf5dc1848b6e333a
+EBUILD fcitx-sayura-0.1.2.ebuild 791 SHA256 08f7747e8ad0571579174329e15e64ac0d0b1b572cde5e52b321d202713d00ae SHA512 f68a5531c1a0a7f905800dae9779689c7883f18f6c5fdbbf9c589d6e06f52d423a75142fbad91c8016f5c93b501a551840d920eeda23290b2f730545d227c83b WHIRLPOOL 98062dbb2a44be8cb48c704ce60b51d23033c8833c8978c20bd22fec4470f1c192877b22d2fda87ed142964cd94fbe416348ce3677b7245bf1d93aa5020d7816
+EBUILD fcitx-sayura-4.9999.ebuild 762 SHA256 177d54f30ac61da81eb0a2a659799dfef96dea94d0d1ad9a1a5dbeb8dd5aff6b SHA512 ff1ba3f4f2f96982e328c3911363999e7f3701ff6f9661a978d3e2aeca9aacc57b39dbf8aa4ab3cac763e4014271e945c7f099be6e29b9d52ddf4da02217530f WHIRLPOOL 66c688a94e179ef7946443df9123407f570dc675746bf729a84d29d840c487f0f9114a5f9aa56ede6126360a1a55b57aebd84db8bae029ed7afcfc19cd431c93
+MISC ChangeLog 351 SHA256 1e3488253b49cfcea299347e1ac9acede732feaa7ec966246b6ff642a6214c50 SHA512 a560020a47d2ac966df9d6fdf46ec26fa606e29e068e1331f36f5b80a07fe9d01520a650c9a18612ca9e7035f3698d58daafd58ec259eb59c811d6e5e54106c6 WHIRLPOOL bec4e2e0f7e29f04a9a0b0dd7488d5da356698997e4e2ffb3a3cae2e75d789e6798e6e8e95f3700111a5e1bd4209486e73e28b8c8d917e5732a2d0fd8f62a1e2
+MISC metadata.xml 451 SHA256 9a2b0e5a9512881a5e80e21c8bf24e3cea283612657df3a810353960cd426749 SHA512 d1ba4ff51b06d03e9ff7c13e3f9693c8f91cceaec228f4bd90b560a02be5b42e5fe3d8d7a885816c12b9ef123484537df67f572c0e7bd3d5555f0809132537f1 WHIRLPOOL f19153297a631026e44a1edab75c5d2384676fb3d8f3071cf839ad6ced123fa7daa7ab63b06920948a6d4ea21de612971bb2c3bc7438f10a6cbb3bd42ee9db5e
diff --git a/app-i18n/fcitx-sayura/fcitx-sayura-0.1.1.ebuild b/app-i18n/fcitx-sayura/fcitx-sayura-0.1.1.ebuild
new file mode 100644
index 000000000000..c4869ad58411
--- /dev/null
+++ b/app-i18n/fcitx-sayura/fcitx-sayura-0.1.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-sayura"
+fi
+
+DESCRIPTION="Sinhala Sayura input method for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-sayura"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="amd64 ~hppa ~ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ virtual/libiconv
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=()
diff --git a/app-i18n/fcitx-sayura/fcitx-sayura-0.1.2.ebuild b/app-i18n/fcitx-sayura/fcitx-sayura-0.1.2.ebuild
new file mode 100644
index 000000000000..725a094c5115
--- /dev/null
+++ b/app-i18n/fcitx-sayura/fcitx-sayura-0.1.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-sayura"
+fi
+
+DESCRIPTION="Sinhala Sayura input method for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-sayura"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ virtual/libiconv
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=()
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-sayura/fcitx-sayura-4.9999.ebuild b/app-i18n/fcitx-sayura/fcitx-sayura-4.9999.ebuild
new file mode 100644
index 000000000000..84cda092656d
--- /dev/null
+++ b/app-i18n/fcitx-sayura/fcitx-sayura-4.9999.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-sayura"
+fi
+
+DESCRIPTION="Sinhala Sayura input method for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-sayura"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ virtual/libiconv
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=()
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-sayura/metadata.xml b/app-i18n/fcitx-sayura/metadata.xml
new file mode 100644
index 000000000000..98c49b162783
--- /dev/null
+++ b/app-i18n/fcitx-sayura/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 type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">fcitx/fcitx-sayura</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-sunpinyin/Manifest b/app-i18n/fcitx-sunpinyin/Manifest
new file mode 100644
index 000000000000..258b6f258595
--- /dev/null
+++ b/app-i18n/fcitx-sunpinyin/Manifest
@@ -0,0 +1,8 @@
+AUX fcitx-sunpinyin-0.4.0-gcc46-compatible.patch 672 SHA256 e2de8ea64fa9507dbb040db09ebbb346c29bfaf325827ca333202f40cf87bd90 SHA512 67ef866cb6e0a2c16f53249e60ee6df4ba9fd5a5c796d66527efebe68fe32b7da6daa3fd5488a1b4c86523380cc5dd1b51e975261b38cdb6e49e982fe9b18c85 WHIRLPOOL a4b1f43463c35b79f5e222a7577cc7f3a8afc0487c47d654f9158aaaa72c620f3e4344fada23bb938caeb465dc7393a10fa8f72a5f1e445c29dbbe14b499580c
+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
+EBUILD fcitx-sunpinyin-0.4.0.ebuild 619 SHA256 ff07958c8a22c001b70ca4b47c00abca2b709e710b2638f0500fe614bbc454d1 SHA512 aed8dea96a1429e08d8f54ad7de27b7b49add7f126a23330230f13c5d0cbaf54a46f01d7569a52d0789b24bada7a0de72424c1b8252bdf7e91c8af8ea2bfe391 WHIRLPOOL 1783e5bae8d30d26406161edd550b005f8581c5067f50922147781b51283e7419801c5db7f2241f5a84299f3952e34390edea3483ec40525f73ad2e6306c9b37
+EBUILD fcitx-sunpinyin-0.4.1.ebuild 563 SHA256 e7f2f68d62170ab9e570941cb22420d01bbe670d503cbb0dbbbe26ef4c5b5db6 SHA512 e7042ad79158fd8d2b5d06643c75c15c5c676f4fb85ffc4a16041bb5f006b2d3e4f916115b95d73e5279c3c4f41b6c1cd98fbdc2b6058a645bc86460f3e823f2 WHIRLPOOL 59a0d72a90b565bf24ca00af94b62076c463137c91e1898af9c61fd804d1fe9c4353b2cb899f360b0e9575b30350a629a09c27675f8a644bfd0abf64bcd6e092
+MISC ChangeLog 2971 SHA256 ba05321b743405855a418c70b5007a87386e7eb2aa6f557eaf8a6442be0eb2c4 SHA512 f0bd7f7a401afd6bc1f66ce74cb1b7f06b038ae54a74ee2bcdfff346165eedede68014109cbca91e6561ac642e83671bbe8e9e13238c6113f42a2371188b8224 WHIRLPOOL fcfc7b2d9c256d31047f8fca68bafc7ba6373b9f0cffc55fd042d2120f4c59bebc1984224c17248633513304cf5e751a5add2981ed9d7a3d80679630a0bdbdec
+MISC ChangeLog-2015 1573 SHA256 2b9a8bb93c34c9f2eb045ba0d1a234d81b86d1d844d9e9d318376d8453bfe742 SHA512 06f44a72c7a4db6d41a3bfa4e6c73df90066c403d2ae78416534f79c67467b3e74e571c7b76ddaea1705b8a23c7fd13faebd47bd89a09a1445258b58ec6c3caa WHIRLPOOL 9cdac77d8db93b667a4153714691700576612bd826b57e62c837839430000818267b9cd6e8c0e6accd612b80b9fd392c4883153c8d9386a9cceb437a13487da0
+MISC metadata.xml 443 SHA256 9aaa0c4737141ef1fa241b4fbca896f5537fa38823a175d3c00245fb18d5d7d3 SHA512 01d63563a2a52e619e9b329c5ab806deb4ac204fe9d45c4db879d30466a7a6d20565dd1698e8d1573a59a075187149b7e7dc06ecfa36ad18faf8fbd64c762a7f WHIRLPOOL 218c00c3019efb331b141b46cbd633151ca252b8e858d3f5a59ced7c8ff42e0ffcbdb2c0b30c60352e9324bf6540e140ecf1584b4ecfd38818c83c23fce16ffb
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 000000000000..4eb55051b4d3
--- /dev/null
+++ b/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Sunpinyin module for fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="https://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="4"
+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 000000000000..f23931983c06
--- /dev/null
+++ b/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ >=app-i18n/sunpinyin-2.0.4_alpha
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+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 000000000000..42b6b91a3428
--- /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 000000000000..e4f3812b18b2
--- /dev/null
+++ b/app-i18n/fcitx-sunpinyin/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 type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <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 000000000000..185c63bf4b4c
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/Manifest
@@ -0,0 +1,9 @@
+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
+EBUILD fcitx-table-extra-0.3.3.ebuild 557 SHA256 32501d3a92ea3eaf2455cc10169052ba2d6cd68007a209b83b1dd03ce3f16522 SHA512 1f66edb469ae67b439bab0c7e01bb45c3f9429a2a8bde06857e7ee7d6d77571cb52334d96acd429d930558f283608f459c14a189d153b438817c1c54dd36072d WHIRLPOOL 87318adf90a0093c68d8867610e231453f0595b16d7cb54a4fa21e7688035d99c99da69228c37c0e4794b16b204099409ce2dcb4ea5cd4d94e4506c70c3542a6
+EBUILD fcitx-table-extra-0.3.6.ebuild 558 SHA256 3d33cf07c1810aaeca0d057e7046c250b1992d257b8df8cdfbe29a8a597702b0 SHA512 ad38be5004d137d8f2a6f2d8632e8ea88d374e37bdcd3b20f2b1f60e99125d9eb52294cd281fcfa60a712724fdcadaa3d79a9e9b7cc375754e1ad82a13e60060 WHIRLPOOL d7458f00f19692fa0141d45e0d8f3689d38a49e8d230a22fac891fd17bf3171a9a4be90aafbf8295f3b42ac9623e2ddddbbd9ae23b40fd7be662982de39e1e5b
+EBUILD fcitx-table-extra-0.3.7.ebuild 560 SHA256 51cb46dc9873cc1197ca55cc41c72e08f11ddd10a2025a59bdff69d23cd06d25 SHA512 1b6e89b0c97284531294808b00dc57147fa855388bf0c8de9e5e5c771e06c90b22260afbdac07cbff41d52fd9161fd1c9b186ee57e85137659306553966ad589 WHIRLPOOL 096d53446cac367716bd7ba7874611448d1c61aa3a3172ccf3368dfa2cef1d59ceaf54eeb0a67e72ba86c05bf446fdc81e3b04acd3f4971d71cf0c7edf122d56
+MISC ChangeLog 2998 SHA256 93143ba44cd8f6d7008dea5416fd7d030e22bcfbe6ab2c8e0826ceff4111cfa2 SHA512 37cd9fcfa3bba326ecadd83eb6f0a242dd7187b4325e13aeb333db95f05610d455df1bd4842232186eda6587c4dacaa00f0bf0c594100cf896c99ab10631e5bb WHIRLPOOL 953da75a052db060ef499ef9ee13db917c6cbed86e28d5f0d2b3aabaa137195a430cc7bd6f79811f403e60807b6cebdc8700f07aaebeb2684d7575d0ca956189
+MISC ChangeLog-2015 2023 SHA256 d3ad4d699cfeacb00ecbb0c3333d613d9fa3a37c721aaaa16468c475d6e88de6 SHA512 7dbad68694b52c1f0093177afcff773a02e9121e0008ce5045aed33e8ad791bb0e2d157a3a274cdf7feb6f0e0e253ca93fdd29bbfc17aab423af5c58153fa08d WHIRLPOOL d20c8ca309851ae2e37b87f888e00566d5337b12754a5118184d9164653a27a26b48c01a08d37fa50d6fbb930a254c7a3cb7baf6f8b1a5e15e9b71de331e8bbf
+MISC metadata.xml 368 SHA256 35771713c1279c6a6256b587a24bc95638761053755ebe871015e0a62bdb3d72 SHA512 02412f1f558f3b859d1327a440038b9d9ce6d2430510ef98bdb2ddd2b2ccb9ae682f76e76fdefc47e903ba08e93f6e46e9aabffe6cdfb4e57d33daaa63dde29f WHIRLPOOL ce52e2c48610b125b418018b4043cb24b09c1bc9a959275610a0af5a76c5da179703b20fc3aa938434834f8be6ad79339baf3cc4295f2c11a26a17eafad0719a
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 000000000000..ebf56355ca64
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.3.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="https://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="4"
+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 000000000000..db07468054e3
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.6.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+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 000000000000..79e435b0b422
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.7.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+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 000000000000..49f2185b80dc
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/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 type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-unikey/Manifest b/app-i18n/fcitx-unikey/Manifest
new file mode 100644
index 000000000000..13ff580f3a07
--- /dev/null
+++ b/app-i18n/fcitx-unikey/Manifest
@@ -0,0 +1,14 @@
+AUX fcitx-unikey-0.2.0-cmake-qt-option.patch 1664 SHA256 3f55747effba6e0fbed6edd0fd79a77b38be7bbab3314bf5d1f06affd50acd1b SHA512 873879e98423c992b2acfae979a7a08ba6ca54788de6f1c909c7aadb91cf29e2f461dfd3e9b32c5e6a348ba2af37a7649384901e68b1ca44be7610347abdaaa4 WHIRLPOOL ddf5cc93f920dabd71071275dda08c09b60dca62f8f05d4b4d3c5fde4676908d258021c82a8fb6ebd18ec06a21abfb0098fdfc2627179923f3ea57adde04d7d1
+AUX fcitx-unikey-0.2.5-c++11.patch 42596 SHA256 cb31f6e2da137bf3bfde91141285589ca9f02dd1e57c8887b31669983ca64411 SHA512 3b4c2fd307952d84b478e78fef92a70d32b71cb2c4f68227813344818dfd4825464fa7789a077a68ac649606cd89f476192aab96bc1724ec7cf1e49df86e0cae WHIRLPOOL 3ba9c803e9a0d9a4b911d3f18587e7811202397fa1a0a27f885a6c1984124870af4556fbee697fd014ce0be37d22fd532d95b61460472c892bd74d6feaad2431
+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
+DIST fcitx-unikey-0.2.5.tar.xz 72640 SHA256 8e0bc06d7771074e17acf7045f43aa3a6d9dc2c0e48f8d52548af9b393607b18 SHA512 b70cbc468c44677a6f831ab92539dc01386eec66d8b40eba57efc7130a3811548b5b1e8213c278fd26d1eac169d43913a5fe0f3728e925c874e7360ccd93636a WHIRLPOOL 5c223124a9750b1a060b9dc0f99236676f29f1280bc787e306d65a746671f667dfface3f23bb441d2122d9b33ed0d1a58491feea5c026c23dd91f51b71113c1b
+DIST fcitx-unikey-0.2.6.tar.xz 75124 SHA256 9830910f628d455d2701ba430e6cb5b41409a2ac2f9b098e5ed6aaa54d15a3cf SHA512 18efb387387c29bb059e1260bfb3c91e97f9989aedbe590596f1ad8659e9fad20777f048f20fb24e0fb5e2318eee1c25fc20a2d57ac846368c4c9bebf4eb2b90 WHIRLPOOL 6003fa47cba0908268f51ea50a55b62afe3dcd5a6c6f00ef773c3c68f914bce151c3103f5425050a1e79868a6ba383a5e7cd1b1d89221d9cc5c2dda9d46fe331
+EBUILD fcitx-unikey-0.2.0.ebuild 763 SHA256 5a5e9c5ed5d53f6da2fd6061d7098da31fc12313b34adfbb4c3b5fddd1a1b928 SHA512 9203c37b47e975074685483a0cbb5d4efbecb9d77201b20470a1d32e3164370a8ae55514386628a38f24e6b113c4888b1303df1fe2a0c72fb1e3e7e1cd22b12a WHIRLPOOL b0e404ea1b9bfacb467d336bc8f2198c0a680ec0b7b58dea79ea89e94e3430fe098c05827f2802cfaf1769ef8c5d5d9ef59d0e49571155acfe363aa94ad92a6f
+EBUILD fcitx-unikey-0.2.4.ebuild 634 SHA256 ff012bdc1e8a6da07ed0e076db384a49c5c894745216ece1ca0a093af9418466 SHA512 d219a6689d919411d0438eb6a2dca3e4865bd6b770c8a9692452343e0d44beba5651b1331c367de75590efc3f6aa04094fa52f7dec2e12bbc6ed0994999667bb WHIRLPOOL 1293b94ac166d1592106bbc4dba8dbfe8a77d071d82fd4294449024d4616905211eca99967abdad56042feabf99a98130d1cbc51026fbe8c3548d2191c201918
+EBUILD fcitx-unikey-0.2.5.ebuild 1091 SHA256 530d1189d400841074785694dafb8fe5d85cc02c0705ed4188778228fa88de52 SHA512 98fd05cceb73b062866b2b5213a31d0c9c4b918801c24b6704279a01ef97b77da9b75bf9a7d36f0c35eb01bc6082b35b347159398f31470f9a10745a2e40e201 WHIRLPOOL d40a9aa19c439ea98998259995a108cf5cbb2611fb48161d1d77450edba84f0e08d7570704d63d327fff7be3b137afa4def4eccb67325a659ba6b9a40e3ddd3c
+EBUILD fcitx-unikey-0.2.6.ebuild 1005 SHA256 c1e4b7d986c4ece8a18e8350fdafb9c887ef2be7eed896e41a63e0d35bf0ee33 SHA512 e5b1823b9fc206bb59bf86319b693a5f9fbb87ff85d5b1139282bf65556b4d34e92e2931caa31852738ba1536ac8ac8770f9fac5d643c7e79fbf75524e223624 WHIRLPOOL 50c699fb68f64d65c15b97a9fa6e53789707f24f5f5e20382d73b7ba266af3c69e279f0de300e0bf422cfa92a9df48bc64cf8911aec180834c8c3591d735c787
+EBUILD fcitx-unikey-4.9999.ebuild 1018 SHA256 c3264749e5f0fc910c33d538840fade8fae923018a6435ae85e6d574d810700c SHA512 82a8202c53cde4e3817f3780bb1acb02114da2aecd757dd4e7d73ce5c6a6c415ff94821bb7fa9c9b36de9d428d16ea88de7897b621b3387690276db74a824442 WHIRLPOOL 92a38c4b83a91e17526c0dec97cdcf11faade20658ca6a509a2e13a40f92ddf5a66b4e678bd1fed1bc0ec3b237fb3d0198aeedbb4c2815c7fb573994a244b612
+MISC ChangeLog 3730 SHA256 3ad3d71476fc38d185cddd8d08f03b9f9b2905f33139ac0f7e692a1af221710f SHA512 90dd32766574f2b0b7075fc21d7acd52751092746124aa84c291effdff60f93e175d9166687312d94a4b0488e0fff37beff5533a25890c6dd2679c10c123811e WHIRLPOOL cf32e04e60407a36df03f72807fdd4aaa4c73ecf6152eb65abe41ac457d03cc9fb3fd166b68453bf33228be3b47fd36b34ddb7040ffe2391f633b401aceb7195
+MISC ChangeLog-2015 1791 SHA256 38c01ea949713b3b27ddd895b931c8f190e31ab09501424f3a6294d85740ca45 SHA512 0c7f5bf6eaa51a4c93ee6c69574cd1cc8e09fabc94880d7999aa699b4d8b0bbd0cf4572ced25e4949fa16f724719bf87ee4710f2afe1f7969d67a7395fb3cad3 WHIRLPOOL 79cffc5361cfd803e3d840afb48f247c92dc5423f5a0d256f5ca073de8d37f62da908f05fa583f12a0e1c448d7500406821df574d48346eb4902bbcb3f412318
+MISC metadata.xml 522 SHA256 e00c80e6fa010f21898bc748bd20409051cf3ddef69368f9eb4b151c01a79712 SHA512 c08e14d4e9268a0c0608148117d50b77754f1f9d96433a28f243fd0643d7021a9e2b85ca57de9f4196bcee54eb05b3c5bee497a3dbf77ef9b279c1bff7814694 WHIRLPOOL 23cd95f211e27da846a863a607c35ceadc1d39e76773f6677f40880265b3149421e8726744ab2e7f5652daff8c89b77c8bc2de6955e514437c5de2229c3d99d2
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 000000000000..1d7c8021eef4
--- /dev/null
+++ b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Vietnamese Unikey module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="https://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="4"
+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 000000000000..33fddf6a450b
--- /dev/null
+++ b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.4.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="4"
+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/fcitx-unikey-0.2.5.ebuild b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.5.ebuild
new file mode 100644
index 000000000000..4fd6eaef07ed
--- /dev/null
+++ b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.5.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-unikey"
+fi
+
+DESCRIPTION="Vietnamese Unikey input methods for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-unikey"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+ GPL-3+"
+SLOT="4"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="+macro-editor"
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ virtual/libiconv
+ virtual/libintl
+ macro-editor? (
+ >=app-i18n/fcitx-4.2.8[qt4]
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ )"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-c++11.patch"
+)
+
+DOCS=()
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_QT=$(usex macro-editor)
+ )
+
+ cmake-utils_src_configure
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-unikey/fcitx-unikey-0.2.6.ebuild b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.6.ebuild
new file mode 100644
index 000000000000..09a76beb9094
--- /dev/null
+++ b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.6.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-unikey"
+fi
+
+DESCRIPTION="Vietnamese Unikey input methods for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-unikey"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+ GPL-3+"
+SLOT="4"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="+macro-editor"
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ virtual/libintl
+ macro-editor? (
+ >=app-i18n/fcitx-4.2.9:4[qt4]
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ )"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+DOCS=()
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_QT=$(usex macro-editor)
+ )
+
+ 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-4.9999.ebuild b/app-i18n/fcitx-unikey/fcitx-unikey-4.9999.ebuild
new file mode 100644
index 000000000000..5422ff219bfb
--- /dev/null
+++ b/app-i18n/fcitx-unikey/fcitx-unikey-4.9999.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-unikey"
+fi
+
+DESCRIPTION="Vietnamese Unikey input methods for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-unikey"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+ GPL-3+"
+SLOT="4"
+KEYWORDS=""
+IUSE="+macro-editor"
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ virtual/libintl
+ macro-editor? (
+ >=app-i18n/fcitx-qt5-1.1:4
+ >=dev-qt/qtcore-5.7:5
+ >=dev-qt/qtgui-5.7:5
+ >=dev-qt/qtwidgets-5.7:5
+ )"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+DOCS=()
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_QT=$(usex macro-editor)
+ )
+
+ 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 000000000000..2667b0cd0d11
--- /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/files/fcitx-unikey-0.2.5-c++11.patch b/app-i18n/fcitx-unikey/files/fcitx-unikey-0.2.5-c++11.patch
new file mode 100644
index 000000000000..cf811ea01e02
--- /dev/null
+++ b/app-i18n/fcitx-unikey/files/fcitx-unikey-0.2.5-c++11.patch
@@ -0,0 +1,264 @@
+https://github.com/fcitx/fcitx-unikey/commit/e1fd471a91baffd701c636038b81233bb38a8093
+
+--- /unikey/data.cpp
++++ /unikey/data.cpp
+@@ -96,145 +96,145 @@
+ unsigned char SingleByteTables[][TOTAL_VNCHARS] =
+
+ // TCVN3
+-{{'A','a','¸','¸','µ','µ','¶','¶','·','·','¹','¹', // 0: a
+- '¢','©','Ê','Ê','Ç','Ç','È','È','É','É','Ë','Ë', // 1: a^
+- '¡','¨','¾','¾','»','»','¼','¼','½','½','Æ','Æ', // 2: a(
+- 'B','b','C','c','D','d',
+- '§','®',
+- 'E','e','Ð','Ð','Ì','Ì','Î','Î','Ï','Ï','Ñ','Ñ', // 3: e
+- '£','ª','Õ','Õ','Ò','Ò','Ó','Ó','Ô','Ô','Ö','Ö', // 4: e^
+- 'F','f','G','g','H','h',
+- 'I','i','Ý','Ý','×','×','Ø','Ø','Ü','Ü','Þ','Þ', // 5: i
+- 'J','j','K','k','L','l','M','m','N','n',
+- 'O','o','ã','ã','ß','ß','á','á','â','â','ä','ä', // 6: o
+- '¤','«','è','è','å','å','æ','æ','ç','ç','é','é', // 7: o^
+- '¥','¬','í','í','ê','ê','ë','ë','ì','ì','î','î', // 8: o+
+- 'P','p','Q','q','R','r','S','s','T','t',
+- 'U','u','ó','ó','ï','ï','ñ','ñ','ò','ò','ô','ô', // 9: u
+- '¦','­','ø','ø','õ','õ','ö','ö','÷','÷','ù','ù', //10: u+
+- 'V','v','W','w','X','x',
+- 'Y','y','ý','ý','ú','ú','û','û','ü','ü','þ','þ', //11: y
+- 'Z','z',
++{{static_cast<unsigned char>('A'),static_cast<unsigned char>('a'),static_cast<unsigned char>('¸'),static_cast<unsigned char>('¸'),static_cast<unsigned char>('µ'),static_cast<unsigned char>('µ'),static_cast<unsigned char>('¶'),static_cast<unsigned char>('¶'),static_cast<unsigned char>('·'),static_cast<unsigned char>('·'),static_cast<unsigned char>('¹'),static_cast<unsigned char>('¹'), // 0: a
++ static_cast<unsigned char>('¢'),static_cast<unsigned char>('©'),static_cast<unsigned char>('Ê'),static_cast<unsigned char>('Ê'),static_cast<unsigned char>('Ç'),static_cast<unsigned char>('Ç'),static_cast<unsigned char>('È'),static_cast<unsigned char>('È'),static_cast<unsigned char>('É'),static_cast<unsigned char>('É'),static_cast<unsigned char>('Ë'),static_cast<unsigned char>('Ë'), // 1: a^
++ static_cast<unsigned char>('¡'),static_cast<unsigned char>('¨'),static_cast<unsigned char>('¾'),static_cast<unsigned char>('¾'),static_cast<unsigned char>('»'),static_cast<unsigned char>('»'),static_cast<unsigned char>('¼'),static_cast<unsigned char>('¼'),static_cast<unsigned char>('½'),static_cast<unsigned char>('½'),static_cast<unsigned char>('Æ'),static_cast<unsigned char>('Æ'), // 2: a(
++ static_cast<unsigned char>('B'),static_cast<unsigned char>('b'),static_cast<unsigned char>('C'),static_cast<unsigned char>('c'),static_cast<unsigned char>('D'),static_cast<unsigned char>('d'),
++ static_cast<unsigned char>('§'),static_cast<unsigned char>('®'),
++ static_cast<unsigned char>('E'),static_cast<unsigned char>('e'),static_cast<unsigned char>('Ð'),static_cast<unsigned char>('Ð'),static_cast<unsigned char>('Ì'),static_cast<unsigned char>('Ì'),static_cast<unsigned char>('Î'),static_cast<unsigned char>('Î'),static_cast<unsigned char>('Ï'),static_cast<unsigned char>('Ï'),static_cast<unsigned char>('Ñ'),static_cast<unsigned char>('Ñ'), // 3: e
++ static_cast<unsigned char>('£'),static_cast<unsigned char>('ª'),static_cast<unsigned char>('Õ'),static_cast<unsigned char>('Õ'),static_cast<unsigned char>('Ò'),static_cast<unsigned char>('Ò'),static_cast<unsigned char>('Ó'),static_cast<unsigned char>('Ó'),static_cast<unsigned char>('Ô'),static_cast<unsigned char>('Ô'),static_cast<unsigned char>('Ö'),static_cast<unsigned char>('Ö'), // 4: e^
++ static_cast<unsigned char>('F'),static_cast<unsigned char>('f'),static_cast<unsigned char>('G'),static_cast<unsigned char>('g'),static_cast<unsigned char>('H'),static_cast<unsigned char>('h'),
++ static_cast<unsigned char>('I'),static_cast<unsigned char>('i'),static_cast<unsigned char>('Ý'),static_cast<unsigned char>('Ý'),static_cast<unsigned char>('×'),static_cast<unsigned char>('×'),static_cast<unsigned char>('Ø'),static_cast<unsigned char>('Ø'),static_cast<unsigned char>('Ü'),static_cast<unsigned char>('Ü'),static_cast<unsigned char>('Þ'),static_cast<unsigned char>('Þ'), // 5: i
++ static_cast<unsigned char>('J'),static_cast<unsigned char>('j'),static_cast<unsigned char>('K'),static_cast<unsigned char>('k'),static_cast<unsigned char>('L'),static_cast<unsigned char>('l'),static_cast<unsigned char>('M'),static_cast<unsigned char>('m'),static_cast<unsigned char>('N'),static_cast<unsigned char>('n'),
++ static_cast<unsigned char>('O'),static_cast<unsigned char>('o'),static_cast<unsigned char>('ã'),static_cast<unsigned char>('ã'),static_cast<unsigned char>('ß'),static_cast<unsigned char>('ß'),static_cast<unsigned char>('á'),static_cast<unsigned char>('á'),static_cast<unsigned char>('â'),static_cast<unsigned char>('â'),static_cast<unsigned char>('ä'),static_cast<unsigned char>('ä'), // 6: o
++ static_cast<unsigned char>('¤'),static_cast<unsigned char>('«'),static_cast<unsigned char>('è'),static_cast<unsigned char>('è'),static_cast<unsigned char>('å'),static_cast<unsigned char>('å'),static_cast<unsigned char>('æ'),static_cast<unsigned char>('æ'),static_cast<unsigned char>('ç'),static_cast<unsigned char>('ç'),static_cast<unsigned char>('é'),static_cast<unsigned char>('é'), // 7: o^
++ static_cast<unsigned char>('¥'),static_cast<unsigned char>('¬'),static_cast<unsigned char>('í'),static_cast<unsigned char>('í'),static_cast<unsigned char>('ê'),static_cast<unsigned char>('ê'),static_cast<unsigned char>('ë'),static_cast<unsigned char>('ë'),static_cast<unsigned char>('ì'),static_cast<unsigned char>('ì'),static_cast<unsigned char>('î'),static_cast<unsigned char>('î'), // 8: o+
++ static_cast<unsigned char>('P'),static_cast<unsigned char>('p'),static_cast<unsigned char>('Q'),static_cast<unsigned char>('q'),static_cast<unsigned char>('R'),static_cast<unsigned char>('r'),static_cast<unsigned char>('S'),static_cast<unsigned char>('s'),static_cast<unsigned char>('T'),static_cast<unsigned char>('t'),
++ static_cast<unsigned char>('U'),static_cast<unsigned char>('u'),static_cast<unsigned char>('ó'),static_cast<unsigned char>('ó'),static_cast<unsigned char>('ï'),static_cast<unsigned char>('ï'),static_cast<unsigned char>('ñ'),static_cast<unsigned char>('ñ'),static_cast<unsigned char>('ò'),static_cast<unsigned char>('ò'),static_cast<unsigned char>('ô'),static_cast<unsigned char>('ô'), // 9: u
++ static_cast<unsigned char>('¦'),static_cast<unsigned char>('­'),static_cast<unsigned char>('ø'),static_cast<unsigned char>('ø'),static_cast<unsigned char>('õ'),static_cast<unsigned char>('õ'),static_cast<unsigned char>('ö'),static_cast<unsigned char>('ö'),static_cast<unsigned char>('÷'),static_cast<unsigned char>('÷'),static_cast<unsigned char>('ù'),static_cast<unsigned char>('ù'), //10: u+
++ static_cast<unsigned char>('V'),static_cast<unsigned char>('v'),static_cast<unsigned char>('W'),static_cast<unsigned char>('w'),static_cast<unsigned char>('X'),static_cast<unsigned char>('x'),
++ static_cast<unsigned char>('Y'),static_cast<unsigned char>('y'),static_cast<unsigned char>('ý'),static_cast<unsigned char>('ý'),static_cast<unsigned char>('ú'),static_cast<unsigned char>('ú'),static_cast<unsigned char>('û'),static_cast<unsigned char>('û'),static_cast<unsigned char>('ü'),static_cast<unsigned char>('ü'),static_cast<unsigned char>('þ'),static_cast<unsigned char>('þ'), //11: y
++ static_cast<unsigned char>('Z'),static_cast<unsigned char>('z'),
+ 0x80, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88,
+ 0x89, 0x8A, 0x8B, 0x8C, 0x8E, 0x91, 0x92, 0x93,
+ 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B,
+ 0x9C, 0x9E, 0x9F},
+ //VPS
+-{ 'A','a','Á','á','€','à','','ä','‚','ã','å','å',
+- 'Â','â','ƒ','Ã','„','À','…','Ä','Å','Å','Æ','Æ',
+- 'ˆ','æ','','¡','Ž','¢','','£','ð','¤','¥','¥',
+- 'B','b','C','c','D','d',
+- 'ñ','Ç',
+- 'E','e','É','é','×','è','Þ','È','þ','ë','Ë','Ë',
+- 'Ê','ê','','‰','“','Š','”','‹','•','Í','Œ','Œ',
+- 'F','f','G','g','H','h',
+- 'I','i','´','í','µ','ì','·','Ì','¸','ï','Î','Î',
+- 'J','j','K','k','L','l','M','m','N','n',
+- 'O','o','¹','ó','¼','ò','½','Õ','¾','õ','†','†',
+- 'Ô','ô','–','Ó','—','Ò','˜','°','™','‡','¶','¶',
+- '÷','Ö','','§','ž','©','Ÿ','ª','¦','«','®','®',
+- 'P','p','Q','q','R','r','S','s','T','t',
+- 'U','u','Ú','ú','¨','ù','Ñ','û','¬','Û','ø','ø',
+- 'Ð','Ü','­','Ù','¯','Ø','±','º','»','»','¿','¿',
+- 'V','v','W','w','X','x',
+- 'Y','y','Ý','š','²','ÿ','ý','›','³','Ï','œ','œ',
+- 'Z','z',
++{ static_cast<unsigned char>('A'),static_cast<unsigned char>('a'),static_cast<unsigned char>('Á'),static_cast<unsigned char>('á'),static_cast<unsigned char>('€'),static_cast<unsigned char>('à'),static_cast<unsigned char>(''),static_cast<unsigned char>('ä'),static_cast<unsigned char>('‚'),static_cast<unsigned char>('ã'),static_cast<unsigned char>('å'),static_cast<unsigned char>('å'),
++ static_cast<unsigned char>('Â'),static_cast<unsigned char>('â'),static_cast<unsigned char>('ƒ'),static_cast<unsigned char>('Ã'),static_cast<unsigned char>('„'),static_cast<unsigned char>('À'),static_cast<unsigned char>('…'),static_cast<unsigned char>('Ä'),static_cast<unsigned char>('Å'),static_cast<unsigned char>('Å'),static_cast<unsigned char>('Æ'),static_cast<unsigned char>('Æ'),
++ static_cast<unsigned char>('ˆ'),static_cast<unsigned char>('æ'),static_cast<unsigned char>(''),static_cast<unsigned char>('¡'),static_cast<unsigned char>('Ž'),static_cast<unsigned char>('¢'),static_cast<unsigned char>(''),static_cast<unsigned char>('£'),static_cast<unsigned char>('ð'),static_cast<unsigned char>('¤'),static_cast<unsigned char>('¥'),static_cast<unsigned char>('¥'),
++ static_cast<unsigned char>('B'),static_cast<unsigned char>('b'),static_cast<unsigned char>('C'),static_cast<unsigned char>('c'),static_cast<unsigned char>('D'),static_cast<unsigned char>('d'),
++ static_cast<unsigned char>('ñ'),static_cast<unsigned char>('Ç'),
++ static_cast<unsigned char>('E'),static_cast<unsigned char>('e'),static_cast<unsigned char>('É'),static_cast<unsigned char>('é'),static_cast<unsigned char>('×'),static_cast<unsigned char>('è'),static_cast<unsigned char>('Þ'),static_cast<unsigned char>('È'),static_cast<unsigned char>('þ'),static_cast<unsigned char>('ë'),static_cast<unsigned char>('Ë'),static_cast<unsigned char>('Ë'),
++ static_cast<unsigned char>('Ê'),static_cast<unsigned char>('ê'),static_cast<unsigned char>(''),static_cast<unsigned char>('‰'),static_cast<unsigned char>('“'),static_cast<unsigned char>('Š'),static_cast<unsigned char>('”'),static_cast<unsigned char>('‹'),static_cast<unsigned char>('•'),static_cast<unsigned char>('Í'),static_cast<unsigned char>('Œ'),static_cast<unsigned char>('Œ'),
++ static_cast<unsigned char>('F'),static_cast<unsigned char>('f'),static_cast<unsigned char>('G'),static_cast<unsigned char>('g'),static_cast<unsigned char>('H'),static_cast<unsigned char>('h'),
++ static_cast<unsigned char>('I'),static_cast<unsigned char>('i'),static_cast<unsigned char>('´'),static_cast<unsigned char>('í'),static_cast<unsigned char>('µ'),static_cast<unsigned char>('ì'),static_cast<unsigned char>('·'),static_cast<unsigned char>('Ì'),static_cast<unsigned char>('¸'),static_cast<unsigned char>('ï'),static_cast<unsigned char>('Î'),static_cast<unsigned char>('Î'),
++ static_cast<unsigned char>('J'),static_cast<unsigned char>('j'),static_cast<unsigned char>('K'),static_cast<unsigned char>('k'),static_cast<unsigned char>('L'),static_cast<unsigned char>('l'),static_cast<unsigned char>('M'),static_cast<unsigned char>('m'),static_cast<unsigned char>('N'),static_cast<unsigned char>('n'),
++ static_cast<unsigned char>('O'),static_cast<unsigned char>('o'),static_cast<unsigned char>('¹'),static_cast<unsigned char>('ó'),static_cast<unsigned char>('¼'),static_cast<unsigned char>('ò'),static_cast<unsigned char>('½'),static_cast<unsigned char>('Õ'),static_cast<unsigned char>('¾'),static_cast<unsigned char>('õ'),static_cast<unsigned char>('†'),static_cast<unsigned char>('†'),
++ static_cast<unsigned char>('Ô'),static_cast<unsigned char>('ô'),static_cast<unsigned char>('–'),static_cast<unsigned char>('Ó'),static_cast<unsigned char>('—'),static_cast<unsigned char>('Ò'),static_cast<unsigned char>('˜'),static_cast<unsigned char>('°'),static_cast<unsigned char>('™'),static_cast<unsigned char>('‡'),static_cast<unsigned char>('¶'),static_cast<unsigned char>('¶'),
++ static_cast<unsigned char>('÷'),static_cast<unsigned char>('Ö'),static_cast<unsigned char>(''),static_cast<unsigned char>('§'),static_cast<unsigned char>('ž'),static_cast<unsigned char>('©'),static_cast<unsigned char>('Ÿ'),static_cast<unsigned char>('ª'),static_cast<unsigned char>('¦'),static_cast<unsigned char>('«'),static_cast<unsigned char>('®'),static_cast<unsigned char>('®'),
++ static_cast<unsigned char>('P'),static_cast<unsigned char>('p'),static_cast<unsigned char>('Q'),static_cast<unsigned char>('q'),static_cast<unsigned char>('R'),static_cast<unsigned char>('r'),static_cast<unsigned char>('S'),static_cast<unsigned char>('s'),static_cast<unsigned char>('T'),static_cast<unsigned char>('t'),
++ static_cast<unsigned char>('U'),static_cast<unsigned char>('u'),static_cast<unsigned char>('Ú'),static_cast<unsigned char>('ú'),static_cast<unsigned char>('¨'),static_cast<unsigned char>('ù'),static_cast<unsigned char>('Ñ'),static_cast<unsigned char>('û'),static_cast<unsigned char>('¬'),static_cast<unsigned char>('Û'),static_cast<unsigned char>('ø'),static_cast<unsigned char>('ø'),
++ static_cast<unsigned char>('Ð'),static_cast<unsigned char>('Ü'),static_cast<unsigned char>('­'),static_cast<unsigned char>('Ù'),static_cast<unsigned char>('¯'),static_cast<unsigned char>('Ø'),static_cast<unsigned char>('±'),static_cast<unsigned char>('º'),static_cast<unsigned char>('»'),static_cast<unsigned char>('»'),static_cast<unsigned char>('¿'),static_cast<unsigned char>('¿'),
++ static_cast<unsigned char>('V'),static_cast<unsigned char>('v'),static_cast<unsigned char>('W'),static_cast<unsigned char>('w'),static_cast<unsigned char>('X'),static_cast<unsigned char>('x'),
++ static_cast<unsigned char>('Y'),static_cast<unsigned char>('y'),static_cast<unsigned char>('Ý'),static_cast<unsigned char>('š'),static_cast<unsigned char>('²'),static_cast<unsigned char>('ÿ'),static_cast<unsigned char>('ý'),static_cast<unsigned char>('›'),static_cast<unsigned char>('³'),static_cast<unsigned char>('Ï'),static_cast<unsigned char>('œ'),static_cast<unsigned char>('œ'),
++ static_cast<unsigned char>('Z'),static_cast<unsigned char>('z'),
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x8E, 0x91, 0x92, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x9E, 0x00},
+ //VISCII
+-{ 'A','a','Á','á','À','à','Ä','ä','Ã','ã','€','Õ',
+- 'Â','â','„','¤','…','¥','†','¦','ç','ç','‡','§',
+- 'Å','å','','¡','‚','¢','Æ','Æ','Ç','Ç','ƒ','£',
+- 'B','b','C','c','D','d',
+- 'Ð','ð',
+- 'E','e','É','é','È','è','Ë','ë','ˆ','¨','‰','©',
+- 'Ê','ê','Š','ª','‹','«','Œ','¬','','­','Ž','®',
+- 'F','f','G','g','H','h',
+- 'I','i','Í','í','Ì','ì','›','ï','Î','î','˜','¸',
+- 'J','j','K','k','L','l','M','m','N','n',
+- 'O','o','Ó','ó','Ò','ò','™','ö','õ','õ','š','÷',
+- 'Ô','ô','','¯','','°','‘','±','’','²','“','µ',
+- '´','½','•','¾','–','¶','—','·','³','Þ','”','þ',
+- 'P','p','Q','q','R','r','S','s','T','t',
+- 'U','u','Ú','ú','Ù','ù','œ','ü','','û','ž','ø',
+- '¿','ß','º','Ñ','»','×','¼','Ø','ÿ','æ','¹','ñ',
+- 'V','v','W','w','X','x',
+- 'Y','y','Ý','ý','Ÿ','Ï','Ö','Ö','Û','Û','Ü','Ü',
+- 'Z','z',
++{ static_cast<unsigned char>('A'),static_cast<unsigned char>('a'),static_cast<unsigned char>('Á'),static_cast<unsigned char>('á'),static_cast<unsigned char>('À'),static_cast<unsigned char>('à'),static_cast<unsigned char>('Ä'),static_cast<unsigned char>('ä'),static_cast<unsigned char>('Ã'),static_cast<unsigned char>('ã'),static_cast<unsigned char>('€'),static_cast<unsigned char>('Õ'),
++ static_cast<unsigned char>('Â'),static_cast<unsigned char>('â'),static_cast<unsigned char>('„'),static_cast<unsigned char>('¤'),static_cast<unsigned char>('…'),static_cast<unsigned char>('¥'),static_cast<unsigned char>('†'),static_cast<unsigned char>('¦'),static_cast<unsigned char>('ç'),static_cast<unsigned char>('ç'),static_cast<unsigned char>('‡'),static_cast<unsigned char>('§'),
++ static_cast<unsigned char>('Å'),static_cast<unsigned char>('å'),static_cast<unsigned char>(''),static_cast<unsigned char>('¡'),static_cast<unsigned char>('‚'),static_cast<unsigned char>('¢'),static_cast<unsigned char>('Æ'),static_cast<unsigned char>('Æ'),static_cast<unsigned char>('Ç'),static_cast<unsigned char>('Ç'),static_cast<unsigned char>('ƒ'),static_cast<unsigned char>('£'),
++ static_cast<unsigned char>('B'),static_cast<unsigned char>('b'),static_cast<unsigned char>('C'),static_cast<unsigned char>('c'),static_cast<unsigned char>('D'),static_cast<unsigned char>('d'),
++ static_cast<unsigned char>('Ð'),static_cast<unsigned char>('ð'),
++ static_cast<unsigned char>('E'),static_cast<unsigned char>('e'),static_cast<unsigned char>('É'),static_cast<unsigned char>('é'),static_cast<unsigned char>('È'),static_cast<unsigned char>('è'),static_cast<unsigned char>('Ë'),static_cast<unsigned char>('ë'),static_cast<unsigned char>('ˆ'),static_cast<unsigned char>('¨'),static_cast<unsigned char>('‰'),static_cast<unsigned char>('©'),
++ static_cast<unsigned char>('Ê'),static_cast<unsigned char>('ê'),static_cast<unsigned char>('Š'),static_cast<unsigned char>('ª'),static_cast<unsigned char>('‹'),static_cast<unsigned char>('«'),static_cast<unsigned char>('Œ'),static_cast<unsigned char>('¬'),static_cast<unsigned char>(''),static_cast<unsigned char>('­'),static_cast<unsigned char>('Ž'),static_cast<unsigned char>('®'),
++ static_cast<unsigned char>('F'),static_cast<unsigned char>('f'),static_cast<unsigned char>('G'),static_cast<unsigned char>('g'),static_cast<unsigned char>('H'),static_cast<unsigned char>('h'),
++ static_cast<unsigned char>('I'),static_cast<unsigned char>('i'),static_cast<unsigned char>('Í'),static_cast<unsigned char>('í'),static_cast<unsigned char>('Ì'),static_cast<unsigned char>('ì'),static_cast<unsigned char>('›'),static_cast<unsigned char>('ï'),static_cast<unsigned char>('Î'),static_cast<unsigned char>('î'),static_cast<unsigned char>('˜'),static_cast<unsigned char>('¸'),
++ static_cast<unsigned char>('J'),static_cast<unsigned char>('j'),static_cast<unsigned char>('K'),static_cast<unsigned char>('k'),static_cast<unsigned char>('L'),static_cast<unsigned char>('l'),static_cast<unsigned char>('M'),static_cast<unsigned char>('m'),static_cast<unsigned char>('N'),static_cast<unsigned char>('n'),
++ static_cast<unsigned char>('O'),static_cast<unsigned char>('o'),static_cast<unsigned char>('Ó'),static_cast<unsigned char>('ó'),static_cast<unsigned char>('Ò'),static_cast<unsigned char>('ò'),static_cast<unsigned char>('™'),static_cast<unsigned char>('ö'),static_cast<unsigned char>('õ'),static_cast<unsigned char>('õ'),static_cast<unsigned char>('š'),static_cast<unsigned char>('÷'),
++ static_cast<unsigned char>('Ô'),static_cast<unsigned char>('ô'),static_cast<unsigned char>(''),static_cast<unsigned char>('¯'),static_cast<unsigned char>(''),static_cast<unsigned char>('°'),static_cast<unsigned char>('‘'),static_cast<unsigned char>('±'),static_cast<unsigned char>('’'),static_cast<unsigned char>('²'),static_cast<unsigned char>('“'),static_cast<unsigned char>('µ'),
++ static_cast<unsigned char>('´'),static_cast<unsigned char>('½'),static_cast<unsigned char>('•'),static_cast<unsigned char>('¾'),static_cast<unsigned char>('–'),static_cast<unsigned char>('¶'),static_cast<unsigned char>('—'),static_cast<unsigned char>('·'),static_cast<unsigned char>('³'),static_cast<unsigned char>('Þ'),static_cast<unsigned char>('”'),static_cast<unsigned char>('þ'),
++ static_cast<unsigned char>('P'),static_cast<unsigned char>('p'),static_cast<unsigned char>('Q'),static_cast<unsigned char>('q'),static_cast<unsigned char>('R'),static_cast<unsigned char>('r'),static_cast<unsigned char>('S'),static_cast<unsigned char>('s'),static_cast<unsigned char>('T'),static_cast<unsigned char>('t'),
++ static_cast<unsigned char>('U'),static_cast<unsigned char>('u'),static_cast<unsigned char>('Ú'),static_cast<unsigned char>('ú'),static_cast<unsigned char>('Ù'),static_cast<unsigned char>('ù'),static_cast<unsigned char>('œ'),static_cast<unsigned char>('ü'),static_cast<unsigned char>(''),static_cast<unsigned char>('û'),static_cast<unsigned char>('ž'),static_cast<unsigned char>('ø'),
++ static_cast<unsigned char>('¿'),static_cast<unsigned char>('ß'),static_cast<unsigned char>('º'),static_cast<unsigned char>('Ñ'),static_cast<unsigned char>('»'),static_cast<unsigned char>('×'),static_cast<unsigned char>('¼'),static_cast<unsigned char>('Ø'),static_cast<unsigned char>('ÿ'),static_cast<unsigned char>('æ'),static_cast<unsigned char>('¹'),static_cast<unsigned char>('ñ'),
++ static_cast<unsigned char>('V'),static_cast<unsigned char>('v'),static_cast<unsigned char>('W'),static_cast<unsigned char>('w'),static_cast<unsigned char>('X'),static_cast<unsigned char>('x'),
++ static_cast<unsigned char>('Y'),static_cast<unsigned char>('y'),static_cast<unsigned char>('Ý'),static_cast<unsigned char>('ý'),static_cast<unsigned char>('Ÿ'),static_cast<unsigned char>('Ï'),static_cast<unsigned char>('Ö'),static_cast<unsigned char>('Ö'),static_cast<unsigned char>('Û'),static_cast<unsigned char>('Û'),static_cast<unsigned char>('Ü'),static_cast<unsigned char>('Ü'),
++ static_cast<unsigned char>('Z'),static_cast<unsigned char>('z'),
+ 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x8E, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x9E, 0x00},
+ // BKHCM1
+-{'A','a','€','¾','','¿','‚','À','ƒ','Á','„','Â',
+- 'Ÿ','Ý','~','Þ','¡','ß','¢','à','£','á','¤','â',
+- '™','×','š','Ø','›','Ù','œ','Ú','','Û','˜','Ü',
+- 'B','b','C','c','D','d',
+- '}','½',
+- 'E','e','…','Ã','†','Ä','‡','Å','ˆ','Æ','‰','Ç',
+- '¥','ã','¦','ä','§','å','¨','æ','©','ç','ª','è',
+- 'F','f','G','g','H','h',
+- 'I','i','Š','È','‹','É','Œ','Ê','','Ë','Ž','Ì',
+- 'J','j','K','k','L','l','M','m','N','n',
+- 'O','o','','Í','','Î','‘','Ï','’','Ð','“','Ñ',
+- '«','é','¬','ê','­','ë','®','ì','¯','í','°','î',
+- '±','ï','²','ð','³','ñ','´','ò','µ','ó','¶','ô',
+- 'P','p','Q','q','R','r','S','s','T','t',
+- 'U','u','”','Ò','•','Ó','–','Ô','—','Õ','˜','Ö',
+- '·','õ','¸','ö','¹','÷','º','ø','»','ù','¼','ú',
+- 'V','v','W','w','X','x',
+- 'Y','y','{','û','^','ü','`','ý','|','þ','Ž','ÿ',
+- 'Z','z',
++{static_cast<unsigned char>('A'),static_cast<unsigned char>('a'),static_cast<unsigned char>('€'),static_cast<unsigned char>('¾'),static_cast<unsigned char>(''),static_cast<unsigned char>('¿'),static_cast<unsigned char>('‚'),static_cast<unsigned char>('À'),static_cast<unsigned char>('ƒ'),static_cast<unsigned char>('Á'),static_cast<unsigned char>('„'),static_cast<unsigned char>('Â'),
++ static_cast<unsigned char>('Ÿ'),static_cast<unsigned char>('Ý'),static_cast<unsigned char>('~'),static_cast<unsigned char>('Þ'),static_cast<unsigned char>('¡'),static_cast<unsigned char>('ß'),static_cast<unsigned char>('¢'),static_cast<unsigned char>('à'),static_cast<unsigned char>('£'),static_cast<unsigned char>('á'),static_cast<unsigned char>('¤'),static_cast<unsigned char>('â'),
++ static_cast<unsigned char>('™'),static_cast<unsigned char>('×'),static_cast<unsigned char>('š'),static_cast<unsigned char>('Ø'),static_cast<unsigned char>('›'),static_cast<unsigned char>('Ù'),static_cast<unsigned char>('œ'),static_cast<unsigned char>('Ú'),static_cast<unsigned char>(''),static_cast<unsigned char>('Û'),static_cast<unsigned char>('˜'),static_cast<unsigned char>('Ü'),
++ static_cast<unsigned char>('B'),static_cast<unsigned char>('b'),static_cast<unsigned char>('C'),static_cast<unsigned char>('c'),static_cast<unsigned char>('D'),static_cast<unsigned char>('d'),
++ static_cast<unsigned char>('}'),static_cast<unsigned char>('½'),
++ static_cast<unsigned char>('E'),static_cast<unsigned char>('e'),static_cast<unsigned char>('…'),static_cast<unsigned char>('Ã'),static_cast<unsigned char>('†'),static_cast<unsigned char>('Ä'),static_cast<unsigned char>('‡'),static_cast<unsigned char>('Å'),static_cast<unsigned char>('ˆ'),static_cast<unsigned char>('Æ'),static_cast<unsigned char>('‰'),static_cast<unsigned char>('Ç'),
++ static_cast<unsigned char>('¥'),static_cast<unsigned char>('ã'),static_cast<unsigned char>('¦'),static_cast<unsigned char>('ä'),static_cast<unsigned char>('§'),static_cast<unsigned char>('å'),static_cast<unsigned char>('¨'),static_cast<unsigned char>('æ'),static_cast<unsigned char>('©'),static_cast<unsigned char>('ç'),static_cast<unsigned char>('ª'),static_cast<unsigned char>('è'),
++ static_cast<unsigned char>('F'),static_cast<unsigned char>('f'),static_cast<unsigned char>('G'),static_cast<unsigned char>('g'),static_cast<unsigned char>('H'),static_cast<unsigned char>('h'),
++ static_cast<unsigned char>('I'),static_cast<unsigned char>('i'),static_cast<unsigned char>('Š'),static_cast<unsigned char>('È'),static_cast<unsigned char>('‹'),static_cast<unsigned char>('É'),static_cast<unsigned char>('Œ'),static_cast<unsigned char>('Ê'),static_cast<unsigned char>(''),static_cast<unsigned char>('Ë'),static_cast<unsigned char>('Ž'),static_cast<unsigned char>('Ì'),
++ static_cast<unsigned char>('J'),static_cast<unsigned char>('j'),static_cast<unsigned char>('K'),static_cast<unsigned char>('k'),static_cast<unsigned char>('L'),static_cast<unsigned char>('l'),static_cast<unsigned char>('M'),static_cast<unsigned char>('m'),static_cast<unsigned char>('N'),static_cast<unsigned char>('n'),
++ static_cast<unsigned char>('O'),static_cast<unsigned char>('o'),static_cast<unsigned char>(''),static_cast<unsigned char>('Í'),static_cast<unsigned char>(''),static_cast<unsigned char>('Î'),static_cast<unsigned char>('‘'),static_cast<unsigned char>('Ï'),static_cast<unsigned char>('’'),static_cast<unsigned char>('Ð'),static_cast<unsigned char>('“'),static_cast<unsigned char>('Ñ'),
++ static_cast<unsigned char>('«'),static_cast<unsigned char>('é'),static_cast<unsigned char>('¬'),static_cast<unsigned char>('ê'),static_cast<unsigned char>('­'),static_cast<unsigned char>('ë'),static_cast<unsigned char>('®'),static_cast<unsigned char>('ì'),static_cast<unsigned char>('¯'),static_cast<unsigned char>('í'),static_cast<unsigned char>('°'),static_cast<unsigned char>('î'),
++ static_cast<unsigned char>('±'),static_cast<unsigned char>('ï'),static_cast<unsigned char>('²'),static_cast<unsigned char>('ð'),static_cast<unsigned char>('³'),static_cast<unsigned char>('ñ'),static_cast<unsigned char>('´'),static_cast<unsigned char>('ò'),static_cast<unsigned char>('µ'),static_cast<unsigned char>('ó'),static_cast<unsigned char>('¶'),static_cast<unsigned char>('ô'),
++ static_cast<unsigned char>('P'),static_cast<unsigned char>('p'),static_cast<unsigned char>('Q'),static_cast<unsigned char>('q'),static_cast<unsigned char>('R'),static_cast<unsigned char>('r'),static_cast<unsigned char>('S'),static_cast<unsigned char>('s'),static_cast<unsigned char>('T'),static_cast<unsigned char>('t'),
++ static_cast<unsigned char>('U'),static_cast<unsigned char>('u'),static_cast<unsigned char>('”'),static_cast<unsigned char>('Ò'),static_cast<unsigned char>('•'),static_cast<unsigned char>('Ó'),static_cast<unsigned char>('–'),static_cast<unsigned char>('Ô'),static_cast<unsigned char>('—'),static_cast<unsigned char>('Õ'),static_cast<unsigned char>('˜'),static_cast<unsigned char>('Ö'),
++ static_cast<unsigned char>('·'),static_cast<unsigned char>('õ'),static_cast<unsigned char>('¸'),static_cast<unsigned char>('ö'),static_cast<unsigned char>('¹'),static_cast<unsigned char>('÷'),static_cast<unsigned char>('º'),static_cast<unsigned char>('ø'),static_cast<unsigned char>('»'),static_cast<unsigned char>('ù'),static_cast<unsigned char>('¼'),static_cast<unsigned char>('ú'),
++ static_cast<unsigned char>('V'),static_cast<unsigned char>('v'),static_cast<unsigned char>('W'),static_cast<unsigned char>('w'),static_cast<unsigned char>('X'),static_cast<unsigned char>('x'),
++ static_cast<unsigned char>('Y'),static_cast<unsigned char>('y'),static_cast<unsigned char>('{'),static_cast<unsigned char>('û'),static_cast<unsigned char>('^'),static_cast<unsigned char>('ü'),static_cast<unsigned char>('`'),static_cast<unsigned char>('ý'),static_cast<unsigned char>('|'),static_cast<unsigned char>('þ'),static_cast<unsigned char>('Ž'),static_cast<unsigned char>('ÿ'),
++ static_cast<unsigned char>('Z'),static_cast<unsigned char>('z'),
+ 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x8E, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x9E, 0x00},
+ //Vietware-F
+-{ 'A','a','À','À','ª','ª','¶','¶','º','º','Á','Á',
+- '—','¡','Ê','Ê','Ç','Ç','È','È','É','É','Ë','Ë',
+- '–','Ÿ','Å','Å','Â','Â','Ã','Ã','Ä','Ä','Æ','Æ',
+- 'B','b','C','c','D','d',
+- '˜','¢',
+- 'E','e','Ï','Ï','Ì','Ì','Í','Í','Î','Î','Ñ','Ñ',
+- '™','£','Õ','Õ','Ò','Ò','Ó','Ó','Ô','Ô','Ö','Ö',
+- 'F','f','G','g','H','h',
+- 'I','i','Û','Û','Ø','Ø','Ù','Ù','Ú','Ú','Ü','Ü',
+- 'J','j','K','k','L','l','M','m','N','n',
+- 'O','o','â','â','ß','ß','à','à','á','á','ã','ã',
+- 'š','¤','ç','ç','ä','ä','å','å','æ','æ','è','è',
+- '›','¥','ì','ì','é','é','ê','ê','ë','ë','í','í',
+- 'P','p','Q','q','R','r','S','s','T','t',
+- 'U','u','ò','ò','î','î','ï','ï','ñ','ñ','ó','ó',
+- 'œ','§','÷','÷','ô','ô','õ','õ','ö','ö','ø','ø',
+- 'V','v','W','w','X','x',
+- 'Y','y','ü','ü','ù','ù','ú','ú','û','û','ÿ','ÿ',
+- 'Z','z',
++{ static_cast<unsigned char>('A'),static_cast<unsigned char>('a'),static_cast<unsigned char>('À'),static_cast<unsigned char>('À'),static_cast<unsigned char>('ª'),static_cast<unsigned char>('ª'),static_cast<unsigned char>('¶'),static_cast<unsigned char>('¶'),static_cast<unsigned char>('º'),static_cast<unsigned char>('º'),static_cast<unsigned char>('Á'),static_cast<unsigned char>('Á'),
++ static_cast<unsigned char>('—'),static_cast<unsigned char>('¡'),static_cast<unsigned char>('Ê'),static_cast<unsigned char>('Ê'),static_cast<unsigned char>('Ç'),static_cast<unsigned char>('Ç'),static_cast<unsigned char>('È'),static_cast<unsigned char>('È'),static_cast<unsigned char>('É'),static_cast<unsigned char>('É'),static_cast<unsigned char>('Ë'),static_cast<unsigned char>('Ë'),
++ static_cast<unsigned char>('–'),static_cast<unsigned char>('Ÿ'),static_cast<unsigned char>('Å'),static_cast<unsigned char>('Å'),static_cast<unsigned char>('Â'),static_cast<unsigned char>('Â'),static_cast<unsigned char>('Ã'),static_cast<unsigned char>('Ã'),static_cast<unsigned char>('Ä'),static_cast<unsigned char>('Ä'),static_cast<unsigned char>('Æ'),static_cast<unsigned char>('Æ'),
++ static_cast<unsigned char>('B'),static_cast<unsigned char>('b'),static_cast<unsigned char>('C'),static_cast<unsigned char>('c'),static_cast<unsigned char>('D'),static_cast<unsigned char>('d'),
++ static_cast<unsigned char>('˜'),static_cast<unsigned char>('¢'),
++ static_cast<unsigned char>('E'),static_cast<unsigned char>('e'),static_cast<unsigned char>('Ï'),static_cast<unsigned char>('Ï'),static_cast<unsigned char>('Ì'),static_cast<unsigned char>('Ì'),static_cast<unsigned char>('Í'),static_cast<unsigned char>('Í'),static_cast<unsigned char>('Î'),static_cast<unsigned char>('Î'),static_cast<unsigned char>('Ñ'),static_cast<unsigned char>('Ñ'),
++ static_cast<unsigned char>('™'),static_cast<unsigned char>('£'),static_cast<unsigned char>('Õ'),static_cast<unsigned char>('Õ'),static_cast<unsigned char>('Ò'),static_cast<unsigned char>('Ò'),static_cast<unsigned char>('Ó'),static_cast<unsigned char>('Ó'),static_cast<unsigned char>('Ô'),static_cast<unsigned char>('Ô'),static_cast<unsigned char>('Ö'),static_cast<unsigned char>('Ö'),
++ static_cast<unsigned char>('F'),static_cast<unsigned char>('f'),static_cast<unsigned char>('G'),static_cast<unsigned char>('g'),static_cast<unsigned char>('H'),static_cast<unsigned char>('h'),
++ static_cast<unsigned char>('I'),static_cast<unsigned char>('i'),static_cast<unsigned char>('Û'),static_cast<unsigned char>('Û'),static_cast<unsigned char>('Ø'),static_cast<unsigned char>('Ø'),static_cast<unsigned char>('Ù'),static_cast<unsigned char>('Ù'),static_cast<unsigned char>('Ú'),static_cast<unsigned char>('Ú'),static_cast<unsigned char>('Ü'),static_cast<unsigned char>('Ü'),
++ static_cast<unsigned char>('J'),static_cast<unsigned char>('j'),static_cast<unsigned char>('K'),static_cast<unsigned char>('k'),static_cast<unsigned char>('L'),static_cast<unsigned char>('l'),static_cast<unsigned char>('M'),static_cast<unsigned char>('m'),static_cast<unsigned char>('N'),static_cast<unsigned char>('n'),
++ static_cast<unsigned char>('O'),static_cast<unsigned char>('o'),static_cast<unsigned char>('â'),static_cast<unsigned char>('â'),static_cast<unsigned char>('ß'),static_cast<unsigned char>('ß'),static_cast<unsigned char>('à'),static_cast<unsigned char>('à'),static_cast<unsigned char>('á'),static_cast<unsigned char>('á'),static_cast<unsigned char>('ã'),static_cast<unsigned char>('ã'),
++ static_cast<unsigned char>('š'),static_cast<unsigned char>('¤'),static_cast<unsigned char>('ç'),static_cast<unsigned char>('ç'),static_cast<unsigned char>('ä'),static_cast<unsigned char>('ä'),static_cast<unsigned char>('å'),static_cast<unsigned char>('å'),static_cast<unsigned char>('æ'),static_cast<unsigned char>('æ'),static_cast<unsigned char>('è'),static_cast<unsigned char>('è'),
++ static_cast<unsigned char>('›'),static_cast<unsigned char>('¥'),static_cast<unsigned char>('ì'),static_cast<unsigned char>('ì'),static_cast<unsigned char>('é'),static_cast<unsigned char>('é'),static_cast<unsigned char>('ê'),static_cast<unsigned char>('ê'),static_cast<unsigned char>('ë'),static_cast<unsigned char>('ë'),static_cast<unsigned char>('í'),static_cast<unsigned char>('í'),
++ static_cast<unsigned char>('P'),static_cast<unsigned char>('p'),static_cast<unsigned char>('Q'),static_cast<unsigned char>('q'),static_cast<unsigned char>('R'),static_cast<unsigned char>('r'),static_cast<unsigned char>('S'),static_cast<unsigned char>('s'),static_cast<unsigned char>('T'),static_cast<unsigned char>('t'),
++ static_cast<unsigned char>('U'),static_cast<unsigned char>('u'),static_cast<unsigned char>('ò'),static_cast<unsigned char>('ò'),static_cast<unsigned char>('î'),static_cast<unsigned char>('î'),static_cast<unsigned char>('ï'),static_cast<unsigned char>('ï'),static_cast<unsigned char>('ñ'),static_cast<unsigned char>('ñ'),static_cast<unsigned char>('ó'),static_cast<unsigned char>('ó'),
++ static_cast<unsigned char>('œ'),static_cast<unsigned char>('§'),static_cast<unsigned char>('÷'),static_cast<unsigned char>('÷'),static_cast<unsigned char>('ô'),static_cast<unsigned char>('ô'),static_cast<unsigned char>('õ'),static_cast<unsigned char>('õ'),static_cast<unsigned char>('ö'),static_cast<unsigned char>('ö'),static_cast<unsigned char>('ø'),static_cast<unsigned char>('ø'),
++ static_cast<unsigned char>('V'),static_cast<unsigned char>('v'),static_cast<unsigned char>('W'),static_cast<unsigned char>('w'),static_cast<unsigned char>('X'),static_cast<unsigned char>('x'),
++ static_cast<unsigned char>('Y'),static_cast<unsigned char>('y'),static_cast<unsigned char>('ü'),static_cast<unsigned char>('ü'),static_cast<unsigned char>('ù'),static_cast<unsigned char>('ù'),static_cast<unsigned char>('ú'),static_cast<unsigned char>('ú'),static_cast<unsigned char>('û'),static_cast<unsigned char>('û'),static_cast<unsigned char>('ÿ'),static_cast<unsigned char>('ÿ'),
++ static_cast<unsigned char>('Z'),static_cast<unsigned char>('z'),
+ 0x80, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88,
+ 0x89, 0x8A, 0x8B, 0x8C, 0x8E, 0x91, 0x92, 0x93,
+ 0x94, 0x95, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x9E, 0x00},
+ // ISC
+- {'A','a','ƒ','¸','€','µ','','¶','‚','·','„','¹',
+- '¢','©','Ä',' ','Á','Ç','Â','È','Ã','É','†','Ë',
+- '¡','¨','À','¾','¯','»','º','¼','¿','½','…','Æ',
+- 'B','b','C','c','D','d',
+- '§','®',
+- 'E','e','Ð','Š','‡','Ì','ˆ','Î','‰','Ï','Ñ','‹',
+- '£','ª','Ú','Õ','Å','Ò','Í','Ó','Ù','Ô','Œ','Ö',
+- 'F','f','G','g','H','h',
+- 'I','i','','Ý','','×','Ž','Ø','','Ü','‘','Þ',
+- 'J','j','K','k','L','l','M','m','N','n',
+- 'O','o','•','ã','’','ß','“','á','”','â','–','ä',
+- '¤','«','ÿ','è','Û','å','à','æ','ð','ç','—','é',
+- '¥','¬','›','í','˜','ê','™','ë','š','ì','œ','î',
+- 'P','p','Q','q','R','r','S','s','T','t',
+- 'U','u','@','ó','','ï','ž','ñ','Ÿ','ò','|','ô',
+- '¦','­','`','ø',0x5C,'õ','^','ö','~','÷','#','ù',
+- 'V','v','W','w','X','x',
+- 'Y','y','³','ý','°','ú','±','û','²','ü','´','þ',
+- 'Z','z',
++ {static_cast<unsigned char>('A'),static_cast<unsigned char>('a'),static_cast<unsigned char>('ƒ'),static_cast<unsigned char>('¸'),static_cast<unsigned char>('€'),static_cast<unsigned char>('µ'),static_cast<unsigned char>(''),static_cast<unsigned char>('¶'),static_cast<unsigned char>('‚'),static_cast<unsigned char>('·'),static_cast<unsigned char>('„'),static_cast<unsigned char>('¹'),
++ static_cast<unsigned char>('¢'),static_cast<unsigned char>('©'),static_cast<unsigned char>('Ä'),static_cast<unsigned char>(' '),static_cast<unsigned char>('Á'),static_cast<unsigned char>('Ç'),static_cast<unsigned char>('Â'),static_cast<unsigned char>('È'),static_cast<unsigned char>('Ã'),static_cast<unsigned char>('É'),static_cast<unsigned char>('†'),static_cast<unsigned char>('Ë'),
++ static_cast<unsigned char>('¡'),static_cast<unsigned char>('¨'),static_cast<unsigned char>('À'),static_cast<unsigned char>('¾'),static_cast<unsigned char>('¯'),static_cast<unsigned char>('»'),static_cast<unsigned char>('º'),static_cast<unsigned char>('¼'),static_cast<unsigned char>('¿'),static_cast<unsigned char>('½'),static_cast<unsigned char>('…'),static_cast<unsigned char>('Æ'),
++ static_cast<unsigned char>('B'),static_cast<unsigned char>('b'),static_cast<unsigned char>('C'),static_cast<unsigned char>('c'),static_cast<unsigned char>('D'),static_cast<unsigned char>('d'),
++ static_cast<unsigned char>('§'),static_cast<unsigned char>('®'),
++ static_cast<unsigned char>('E'),static_cast<unsigned char>('e'),static_cast<unsigned char>('Ð'),static_cast<unsigned char>('Š'),static_cast<unsigned char>('‡'),static_cast<unsigned char>('Ì'),static_cast<unsigned char>('ˆ'),static_cast<unsigned char>('Î'),static_cast<unsigned char>('‰'),static_cast<unsigned char>('Ï'),static_cast<unsigned char>('Ñ'),static_cast<unsigned char>('‹'),
++ static_cast<unsigned char>('£'),static_cast<unsigned char>('ª'),static_cast<unsigned char>('Ú'),static_cast<unsigned char>('Õ'),static_cast<unsigned char>('Å'),static_cast<unsigned char>('Ò'),static_cast<unsigned char>('Í'),static_cast<unsigned char>('Ó'),static_cast<unsigned char>('Ù'),static_cast<unsigned char>('Ô'),static_cast<unsigned char>('Œ'),static_cast<unsigned char>('Ö'),
++ static_cast<unsigned char>('F'),static_cast<unsigned char>('f'),static_cast<unsigned char>('G'),static_cast<unsigned char>('g'),static_cast<unsigned char>('H'),static_cast<unsigned char>('h'),
++ static_cast<unsigned char>('I'),static_cast<unsigned char>('i'),static_cast<unsigned char>(''),static_cast<unsigned char>('Ý'),static_cast<unsigned char>(''),static_cast<unsigned char>('×'),static_cast<unsigned char>('Ž'),static_cast<unsigned char>('Ø'),static_cast<unsigned char>(''),static_cast<unsigned char>('Ü'),static_cast<unsigned char>('‘'),static_cast<unsigned char>('Þ'),
++ static_cast<unsigned char>('J'),static_cast<unsigned char>('j'),static_cast<unsigned char>('K'),static_cast<unsigned char>('k'),static_cast<unsigned char>('L'),static_cast<unsigned char>('l'),static_cast<unsigned char>('M'),static_cast<unsigned char>('m'),static_cast<unsigned char>('N'),static_cast<unsigned char>('n'),
++ static_cast<unsigned char>('O'),static_cast<unsigned char>('o'),static_cast<unsigned char>('•'),static_cast<unsigned char>('ã'),static_cast<unsigned char>('’'),static_cast<unsigned char>('ß'),static_cast<unsigned char>('“'),static_cast<unsigned char>('á'),static_cast<unsigned char>('”'),static_cast<unsigned char>('â'),static_cast<unsigned char>('–'),static_cast<unsigned char>('ä'),
++ static_cast<unsigned char>('¤'),static_cast<unsigned char>('«'),static_cast<unsigned char>('ÿ'),static_cast<unsigned char>('è'),static_cast<unsigned char>('Û'),static_cast<unsigned char>('å'),static_cast<unsigned char>('à'),static_cast<unsigned char>('æ'),static_cast<unsigned char>('ð'),static_cast<unsigned char>('ç'),static_cast<unsigned char>('—'),static_cast<unsigned char>('é'),
++ static_cast<unsigned char>('¥'),static_cast<unsigned char>('¬'),static_cast<unsigned char>('›'),static_cast<unsigned char>('í'),static_cast<unsigned char>('˜'),static_cast<unsigned char>('ê'),static_cast<unsigned char>('™'),static_cast<unsigned char>('ë'),static_cast<unsigned char>('š'),static_cast<unsigned char>('ì'),static_cast<unsigned char>('œ'),static_cast<unsigned char>('î'),
++ static_cast<unsigned char>('P'),static_cast<unsigned char>('p'),static_cast<unsigned char>('Q'),static_cast<unsigned char>('q'),static_cast<unsigned char>('R'),static_cast<unsigned char>('r'),static_cast<unsigned char>('S'),static_cast<unsigned char>('s'),static_cast<unsigned char>('T'),static_cast<unsigned char>('t'),
++ static_cast<unsigned char>('U'),static_cast<unsigned char>('u'),static_cast<unsigned char>('@'),static_cast<unsigned char>('ó'),static_cast<unsigned char>(''),static_cast<unsigned char>('ï'),static_cast<unsigned char>('ž'),static_cast<unsigned char>('ñ'),static_cast<unsigned char>('Ÿ'),static_cast<unsigned char>('ò'),static_cast<unsigned char>('|'),static_cast<unsigned char>('ô'),
++ static_cast<unsigned char>('¦'),static_cast<unsigned char>('­'),static_cast<unsigned char>('`'),static_cast<unsigned char>('ø'),0x5C,static_cast<unsigned char>('õ'),static_cast<unsigned char>('^'),static_cast<unsigned char>('ö'),static_cast<unsigned char>('~'),static_cast<unsigned char>('÷'),static_cast<unsigned char>('#'),static_cast<unsigned char>('ù'),
++ static_cast<unsigned char>('V'),static_cast<unsigned char>('v'),static_cast<unsigned char>('W'),static_cast<unsigned char>('w'),static_cast<unsigned char>('X'),static_cast<unsigned char>('x'),
++ static_cast<unsigned char>('Y'),static_cast<unsigned char>('y'),static_cast<unsigned char>('³'),static_cast<unsigned char>('ý'),static_cast<unsigned char>('°'),static_cast<unsigned char>('ú'),static_cast<unsigned char>('±'),static_cast<unsigned char>('û'),static_cast<unsigned char>('²'),static_cast<unsigned char>('ü'),static_cast<unsigned char>('´'),static_cast<unsigned char>('þ'),
++ static_cast<unsigned char>('Z'),static_cast<unsigned char>('z'),
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x12, 0x13,
+ 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
diff --git a/app-i18n/fcitx-unikey/metadata.xml b/app-i18n/fcitx-unikey/metadata.xml
new file mode 100644
index 000000000000..fbe690dbfe44
--- /dev/null
+++ b/app-i18n/fcitx-unikey/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <use>
+ <flag name="macro-editor">Install macro editor</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">fcitx/fcitx-unikey</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx/Manifest b/app-i18n/fcitx/Manifest
new file mode 100644
index 000000000000..b1734e792776
--- /dev/null
+++ b/app-i18n/fcitx/Manifest
@@ -0,0 +1,21 @@
+AUX fcitx-4.2.9.1-qt-4_ucs4.patch 4061 SHA256 17d2878da18bb67752709cfdfcb899e73dc3046c1b474758b214ba4431e7c4d7 SHA512 525b54c6836e2a3e6e8d5d3868d7dd07c69593e87eb5ecb22a20213b7b016fb5911acb6212f62f2ad0f0e98b463f5849dc0427e9f693b35d28a9b435d679acb0 WHIRLPOOL 4ee39c875f4fe8d41679cf6bbe54a2d8544488253f54fc2a6b05aa19d26e97074addeeb3b56073e5df6f41a8e54d5d4d683d8696dce9dff83e8ce6b26a9f7c3c
+AUX fcitx-4.2.9.1-tray_icon.patch 5813 SHA256 786153340705fc826888a6db96c177384858cc027d4f40fb452cd1ba51aa1187 SHA512 7ecdeea867f29e95c8518d10357d9358babe81b70a4aae648205a9bd72b0e01dc9befc8d11c514998a2b1396a7f56ff368aec7dfc652ff4c3f9a7c53a6b00913 WHIRLPOOL 4d6589105cde8e3c981c86a0a8d10032c2e1309ca673bda77bd8953040262ac0ebe525bfb230bb716a87469bd2962fe195ad961dec278939cd04183b5ac2e221
+AUX fcitx-4.2.9.2-scripts.patch 1353 SHA256 60993165dc3b47511a1145303baf9a454346c6acf9ffe06dd71b6b5b698c07ef SHA512 6d33e43cdb4fbe4968b490550526fb4839c045b08710bc1e31961905bbfb94edb76ddfba1579a7223f080556c05c48ffd9dcd967586ef8f99baff9c86ce18265 WHIRLPOOL 059b3727f090216b7d51b79df92f2f935b7ae6cb3f0d4738a4be643c2984c95767fb9a44a2761affd5996b5b185375ec5a66c88a1b89e4278058c02615f99685
+AUX fcitx-4.2.9.3-restart.patch 407 SHA256 a0ffd24ac7858159180a46c2418f6f21d28b3a30a0b1575995e0f4f35a6d718e SHA512 000c0adfb99cb8b6fe8d9d3c6958324fa03ba168576dd3abaa0d9dec0983eca7c92a851d4c94df95593ed7c6dc46384c973af9579bac939aecf9b631f8210c39 WHIRLPOOL 4e7ad9b02a16ac8ddb953667edf4f331291be1867206db7b4ea174c77a38616549163d03af0bb6f625e292b404fa2a3c4daebdc9067a05b3f4a6864fc4efbaee
+DIST fcitx-4.2.9.1_dict.tar.xz 8684772 SHA256 5337c8226417a1d4e6f88b3b1048aa73695d281ed483568a7b6a9ee849ad6c77 SHA512 5d3b669ed97423f976116385571d07f832e9e18007e6a3c2aef12957219739a81fbf2343825fea4a1b01a83a6bf9e40e9ffa88466c651876602517c6da1fb25d WHIRLPOOL 02b2ff1b0c33b1f2c0461988bc3323ca27ba565a0d8a1f49b96aaceac857c07365aaaee0048d470dea82e60857bedf59ef8c60d3cdfa14a2ff074216d5cdc16d
+DIST fcitx-4.2.9.2_dict.tar.xz 8735848 SHA256 2cdd7c138163f717aacca8eabb18a4a823c808a408e4b0770f5be2e3e892de20 SHA512 9228fc4629479e2c518e0d0a7dbe604f6e56e864b41927d120e1f0b7a277ff53ff1b393870480bc1660662751a31885ddc1ddf43133a11edc2e96cbc7701daee WHIRLPOOL 8f19cd9f34a3957ff42e94ca7a5e28db5feecf658e9ca2535430fe6dd7a269ba9833e9273e8fd87d00a426027aebd97741c3fe909d9a0b0577ae6f64a8f4ba75
+DIST fcitx-4.2.9.3_dict.tar.xz 8737864 SHA256 543cc301f274367429880cb80c53349ed44435e7c64d757cca9b0d1844e2a91e SHA512 813b55c4b13e9d36bdaed6e4d072a841aa7f067f937b46d1fdbc03e8176b76ce83b056e24e2c0fe944f1347c5fe6a8d9bfdd6b0b2ed054e3017f3926fa36bcdd WHIRLPOOL b54c52025a48350c37712a64048ae2cec4e891c75607ded8ce35940252d2c242430e6ff0e64c86e1319b89b57b388c05760728a861cd58af0c99edd634f20c97
+DIST fcitx-4.2.9.4_dict.tar.xz 8731804 SHA256 e4f9069ac82afd72cdaf9d317377113ce361a9f086b930c12026127a3543953a SHA512 2e8ead59a154a857dfc011af83715dbe1225cbccf1e2c6ced1d9aaf92a7881f89fbe806da3c66ed1805cf27994c91a2d463c455be726b7d4b73c07bfde83972b WHIRLPOOL 113c13ea4eff8de68096ea7bfc1a92c62f5c78395436b5885761863c689a2613d0f5bde8a19ea5b1cc45d032fba4b2a6d2790d31e1d46cf9890d8b33df2049e5
+DIST fcitx-data-en_dict-20121020.tar.gz 630491 SHA256 c44a5d7847925eea9e4d2d04748d442cd28dd9299a0b572ef7d91eac4f5a6ceb SHA512 8418bd02492bfd786c0fab93be4400ef027ec8e9fac02220cc1f653f5eb67f54573a6a84a15baba19bb34ab892745c87df16499d6304ea75009131e2ab3b97f2 WHIRLPOOL 858b51723035e24756c0ece15ee28f9d25dbc86ca447c50e070f085e47b864f26201a100d3d968bcecf5711e76f99c7908eeabe7bc6d5b3b17d6cf2c53c3204b
+DIST fcitx-data-pinyin.tar.gz 1608886 SHA256 583829b24a758c087c08de4a69480d0bf5946354fe77db360d6d7f467c2bd8e1 SHA512 1ee19eed3ee58be6cd6562ec363fe3bf630fff5e8820b3bfdd6d4618fceb082695e888dec5366a3685d58706f720e19319d891c223227237aed12674ea982131 WHIRLPOOL c5584213cab5b3729c159759909819bef42d4dba899e58df331aa12b47f5544545d9ba3f8ac7291835cb80c5e180a3a8b31360e9b9e43e4f38387b0eeee74b46
+DIST fcitx-data-py_stroke-20121124.tar.gz 445601 SHA256 8eb128a9bfa43952e67cf2fcee1fd134c6f4cfd317bc2f6c38a615f5eb64e248 SHA512 d80ff9a3549e07c7a6935e686785f9a076c58f1a782a832ae28ee65e2a213d67f089f450ce09bed87ec2a141c32b9c1fcb83c221ddcab436858fa9009f161fb3 WHIRLPOOL 3b09c21b8f948538b10218bd52ed12235f8d8a1986db7c09a35de5454c89305d5ada27177c8501b6bf72324aa1824a384822a7fbb440d63ce081265b1fa34c65
+DIST fcitx-data-py_table-20121124.tar.gz 186822 SHA256 42146ac97de6c13d55f9e99ed873915f4c66739e9c11532a34556badf9792c04 SHA512 0fa72ce6820a316e9729bc0d7a08af5ca3468134de9ff1bf0c559a398846a7bcf7313a3609d943e6bab637d930cf45ad9acfe25a8d3df078a774b071a7296486 WHIRLPOOL 43564e50722325215d250287276556fc6e8ccebd4da905fa579668658ff8e41f43a14e027f431489a9edf65691f00f6e95778acb91aed731da13b351ddf518cb
+DIST fcitx-data-table.tar.gz 4144686 SHA256 6196053c724125e3ae3d8bd6b2f9172d0c83b65b0d410d3cde63b7a8d6ab87b7 SHA512 99e1d69c679355fcf3e117a1ef39b131cbd3af841387d2335757247d840b90ff6b7323e16fca98cf7a043033faf250d2e9c6d47b96845d18c278a0cf6f30fec9 WHIRLPOOL 465997dc17e88fb3130abb60e0c73564fbdb50a10de1587f5efaac4859a001b7b4aea1f0f4f6efe01ada5e8751351b7b6106a130f46d550e5dd0081dfaa780e5
+EBUILD fcitx-4.2.9.1.ebuild 4535 SHA256 2e3cb9d030a6612042c1f04e26911e70965d569d2cb506e1dd0c741754c3273f SHA512 f24e8557008491e9c5da042e61669abea677f5f4f167baa1dd22b9efdb6782d42fcbae1424cc9a0e6d4ec0c96c7f81032567820d3a73af322237dd8b4ebe41a3 WHIRLPOOL b93bf0c253c787a83a9a77d04358dbf4739fcc45ef5ed758150cf03769410f5038e82b00a321f1115456ce94f2dbfd155bb9481a0341058eb76a68cc1296f317
+EBUILD fcitx-4.2.9.2.ebuild 4309 SHA256 ae7f0e7ffe854b1ac43d9071c0fda9dbc67809ebc5307fae9521871b0e6611b6 SHA512 c4877c23eeec499de4f159c9d3f0b4698681634f9fdda8605e557ab86dafd249599182e5aa2ff42cd3d4c50bd7a81b6a8b3852c512fba92ea29062ee0355ef47 WHIRLPOOL 23ecb6fcf056dc03a9e7dbd10565b2031f30798ba7902671f319c4f2b3b5475ab6f96a80e360243ece6ffd20df5215a364be1a986ff76650ad48c1a1a65fe72f
+EBUILD fcitx-4.2.9.3.ebuild 4324 SHA256 7aa584d564f10da86a6b98f8c62ac9ad62468bf009d1fbf9a2b86958d2c5c3eb SHA512 d49943f1b2cc89559a626d0527d076ae64134402b3084535aae64e56994ff51f03ed95907efaa75553a2d2491283bf1c76c96784b57eee46fc93faafd33c1bdf WHIRLPOOL 815143a15b4d8f4b278cbdfaf80281b5df979af0e16c311013e6a77640f1331f3f9515ca18f8f90bbc35c532de7ad15329f0df977032e2514afdd8fb5937395e
+EBUILD fcitx-4.2.9.4.ebuild 4380 SHA256 236447f3edfef9504d5cd9994cb83cd24466b7f82e8b8209f60c4769015eeb65 SHA512 e29dbecd77f52502a42bb61af239c2d3023362d498d97d8c1137f89cff28aad69918debdcaf49bc29f2c790b28336d331d5a769ebd52593c64aebf4b09cfff7b WHIRLPOOL b2db3b6502db3caa100af87f95876cce9a6c6f951424cdbea43a865c20a73db0cba9a2ee0036ebd724d4884f189d99434258dc552f55f067436d2c64ce0f0513
+EBUILD fcitx-4.9999.ebuild 4351 SHA256 d5c5e98b65ac33fee03b5cdd70f2f3a4e09bd91d751621cf3e8289923926a04b SHA512 13118b2ae6ad40b2c5aa5404df46db5fffec8bd96e709f09b1de1a2091051eaecfda8c32825e9c484203ea06d8bcfc670071a0b56a8a34be11aeebd9018b9f0e WHIRLPOOL 1a7ad3bd34960b1641e67a41ae86341f212aa3044b77221239d470a9dcf7cb3bd7f9636d8e983f93c692385bd56075edf1626e8ca8b116d474eeaf8bb353ed61
+MISC ChangeLog 6535 SHA256 fa0f53cbd0524fdfc6435a93db20f50305d2839648d8cb079b48cc4ac48b6b8c SHA512 ba0267172792f3257ff221684fbfc5a699a68db02f875abdbd2a01f2051eed1e3466e0a4ab87d858512c817a5e1160e462489fa1c4f66c6fa8106c68c38f31b9 WHIRLPOOL 61de1aae1e122e352a010901865736f54eca110810b66a17daac10c946d3c6daabfafbe41dfd9992f8a229d7ec2670d6f33c4577065caecfe0fb23c08de570d3
+MISC ChangeLog-2015 12322 SHA256 44aaf7bd6d65aa72945da682fcb42b3c96ad81c259ef15c8107960e27739a426 SHA512 2413eec485fc1b31769ba5ca8e0406f56ca390ab46447dcb4343cf2f2ccd11eeb924da785788fc9730ac515b3b6f7c848d7d5ab28c6afcb2b7f1798e0a8cddee WHIRLPOOL e6ccf45e047e81eaa03e90c28f4aee0bcd9d03d8935482638ddc4277644a4d219d92451bf410b894f79f01a46bc33685686e0d97483428796437428c658f5ef5
+MISC metadata.xml 1139 SHA256 103ad4be78317c9844ca8f30e7c30fab508ae6429ec5228ac2b0cb57dc39e33a SHA512 e0b7a99f5909e14025680275bd21d3a089eff766960afe6b55f2663fe833e44e6ca4fa1a2f5f54a8dba24cce9c0c1749bf7d67ea756ed0167a54dd820d546f9a WHIRLPOOL 7431644725ec05adb3204e0232123672a1132b99578ec47ea1a9bee7b453bdcb9abfdf9cdb4e3a8b97155c91833c5932aa779db84f6f0bfdb63743df0cddf581
diff --git a/app-i18n/fcitx/fcitx-4.2.9.1.ebuild b/app-i18n/fcitx/fcitx-4.2.9.1.ebuild
new file mode 100644
index 000000000000..b003a374c8ac
--- /dev/null
+++ b/app-i18n/fcitx/fcitx-4.2.9.1.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils xdg-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx"
+fi
+
+DESCRIPTION="Fcitx (Flexible Context-aware Input Tool with eXtension) input method framework"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI="https://download.fcitx-im.org/data/pinyin.tar.gz -> fcitx-data-pinyin.tar.gz
+ https://download.fcitx-im.org/data/table.tar.gz -> fcitx-data-table.tar.gz
+ https://download.fcitx-im.org/data/py_stroke-20121124.tar.gz -> fcitx-data-py_stroke-20121124.tar.gz
+ https://download.fcitx-im.org/data/py_table-20121124.tar.gz -> fcitx-data-py_table-20121124.tar.gz
+ https://download.fcitx-im.org/data/en_dict-20121020.tar.gz -> fcitx-data-en_dict-20121020.tar.gz"
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
+fi
+
+LICENSE="GPL-2+ LGPL-2+"
+SLOT="4"
+KEYWORDS="amd64 ~hppa ppc ppc64 x86"
+IUSE="+X +autostart +cairo debug +enchant gtk2 gtk3 +introspection lua nls opencc +pango qt4 static-libs +table test +xml"
+REQUIRED_USE="cairo? ( X ) pango? ( cairo ) qt4? ( X )"
+
+RDEPEND="dev-libs/glib:2
+ sys-apps/dbus
+ virtual/libiconv
+ virtual/libintl
+ x11-libs/libxkbcommon
+ X? (
+ x11-libs/libX11
+ x11-libs/libXfixes
+ x11-libs/libXinerama
+ x11-libs/libXrender
+ xml? (
+ x11-libs/libxkbfile
+ x11-misc/xkeyboard-config
+ )
+ )
+ cairo? (
+ x11-libs/cairo[X]
+ x11-libs/libXext
+ pango? ( x11-libs/pango )
+ !pango? ( media-libs/fontconfig )
+ )
+ enchant? ( <app-text/enchant-2 )
+ gtk2? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ introspection? ( dev-libs/gobject-introspection )
+ lua? ( dev-lang/lua:= )
+ nls? ( sys-devel/gettext )
+ opencc? ( app-i18n/opencc:= )
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ )
+ xml? (
+ app-text/iso-codes
+ dev-libs/libxml2
+ )"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+DOCS=(AUTHORS ChangeLog THANKS)
+
+PATCHES=(
+ "${FILESDIR}/${P}-tray_icon.patch"
+ "${FILESDIR}/${P}-qt-4_ucs4.patch"
+)
+
+src_prepare() {
+ if [[ "${PV}" == "9999" ]]; then
+ ln -s "${DISTDIR}/fcitx-data-pinyin.tar.gz" src/im/pinyin/data/pinyin.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-table.tar.gz" src/im/table/data/table.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-py_stroke-20121124.tar.gz" src/module/pinyin-enhance/data/py_stroke-20121124.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-py_table-20121124.tar.gz" src/module/pinyin-enhance/data/py_table-20121124.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-en_dict-20121020.tar.gz" src/module/spell/dict/en_dict-20121020.tar.gz || die
+ fi
+
+ # https://github.com/fcitx/fcitx/issues/250
+ sed \
+ -e "/find_package(XkbFile REQUIRED)/i\\ if(ENABLE_X11)" \
+ -e "/find_package(XkbFile REQUIRED)/s/^/ /" \
+ -e "/find_package(XkbFile REQUIRED)/a\\ endif(ENABLE_X11)" \
+ -i CMakeLists.txt
+
+ # https://github.com/fcitx/fcitx/issues/342
+ while IFS='' read -d $'\0' -r f ; do
+ sed 's:^#!/bin/sh$:#!/usr/bin/env bash:' -i "${f}" || die
+ done < <(find "${S}" -name '*.sh' -type f -print0)
+
+ cmake-utils_src_prepare
+ xdg_environment_reset
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
+ -DSYSCONFDIR="${EPREFIX}/etc"
+ -DENABLE_CAIRO=$(usex cairo)
+ -DENABLE_DEBUG=$(usex debug)
+ -DENABLE_ENCHANT=$(usex enchant)
+ -DENABLE_GETTEXT=$(usex nls)
+ -DENABLE_GIR=$(usex introspection)
+ -DENABLE_GTK2_IM_MODULE=$(usex gtk2)
+ -DENABLE_GTK3_IM_MODULE=$(usex gtk3)
+ -DENABLE_LIBXML2=$(usex xml)
+ -DENABLE_LUA=$(usex lua)
+ -DENABLE_OPENCC=$(usex opencc)
+ -DENABLE_PANGO=$(usex pango)
+ -DENABLE_QT=$(usex qt4)
+ -DENABLE_QT_GUI=$(usex qt4)
+ -DENABLE_QT_IM_MODULE=$(usex qt4)
+ -DENABLE_SNOOPER=$(if use gtk2 || use gtk3; then echo yes; else echo no; fi)
+ -DENABLE_STATIC=$(usex static-libs)
+ -DENABLE_TABLE=$(usex table)
+ -DENABLE_TEST=$(usex test)
+ -DENABLE_X11=$(usex X)
+ -DENABLE_XDGAUTOSTART=$(usex autostart)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ rm -r "${ED}usr/share/doc/${PN}"
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ use gtk2 && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ use gtk2 && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/fcitx/fcitx-4.2.9.2.ebuild b/app-i18n/fcitx/fcitx-4.2.9.2.ebuild
new file mode 100644
index 000000000000..f525853d6f66
--- /dev/null
+++ b/app-i18n/fcitx/fcitx-4.2.9.2.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils xdg-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx"
+fi
+
+DESCRIPTION="Fcitx (Flexible Context-aware Input Tool with eXtension) input method framework"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI="https://download.fcitx-im.org/data/pinyin.tar.gz -> fcitx-data-pinyin.tar.gz
+ https://download.fcitx-im.org/data/table.tar.gz -> fcitx-data-table.tar.gz
+ https://download.fcitx-im.org/data/py_stroke-20121124.tar.gz -> fcitx-data-py_stroke-20121124.tar.gz
+ https://download.fcitx-im.org/data/py_table-20121124.tar.gz -> fcitx-data-py_table-20121124.tar.gz
+ https://download.fcitx-im.org/data/en_dict-20121020.tar.gz -> fcitx-data-en_dict-20121020.tar.gz"
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
+fi
+
+LICENSE="GPL-2+ LGPL-2+ MIT"
+SLOT="4"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="+X +autostart +cairo debug +enchant gtk2 gtk3 +introspection lua nls opencc +pango qt4 static-libs +table test +xml"
+REQUIRED_USE="cairo? ( X ) pango? ( cairo ) qt4? ( X )"
+
+RDEPEND="dev-libs/glib:2
+ sys-apps/dbus
+ virtual/libiconv
+ virtual/libintl
+ x11-libs/libxkbcommon
+ X? (
+ x11-libs/libX11
+ x11-libs/libXfixes
+ x11-libs/libXinerama
+ x11-libs/libXrender
+ xml? (
+ x11-libs/libxkbfile
+ x11-misc/xkeyboard-config
+ )
+ )
+ cairo? (
+ x11-libs/cairo[X]
+ x11-libs/libXext
+ pango? ( x11-libs/pango )
+ !pango? ( media-libs/fontconfig )
+ )
+ enchant? ( app-text/enchant:0= )
+ gtk2? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ introspection? ( dev-libs/gobject-introspection )
+ lua? ( dev-lang/lua:= )
+ nls? ( sys-devel/gettext )
+ opencc? ( app-i18n/opencc:= )
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ )
+ xml? (
+ app-text/iso-codes
+ dev-libs/libxml2
+ )"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-scripts.patch"
+)
+
+DOCS=(AUTHORS ChangeLog THANKS)
+
+src_prepare() {
+ if [[ "${PV}" == "9999" ]]; then
+ ln -s "${DISTDIR}/fcitx-data-pinyin.tar.gz" src/im/pinyin/data/pinyin.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-table.tar.gz" src/im/table/data/table.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-py_stroke-20121124.tar.gz" src/module/pinyin-enhance/data/py_stroke-20121124.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-py_table-20121124.tar.gz" src/module/pinyin-enhance/data/py_table-20121124.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-en_dict-20121020.tar.gz" src/module/spell/dict/en_dict-20121020.tar.gz || die
+ fi
+
+ # https://github.com/fcitx/fcitx/issues/250
+ sed \
+ -e "/find_package(XkbFile REQUIRED)/i\\ if(ENABLE_X11)" \
+ -e "/find_package(XkbFile REQUIRED)/s/^/ /" \
+ -e "/find_package(XkbFile REQUIRED)/a\\ endif(ENABLE_X11)" \
+ -i CMakeLists.txt
+
+ cmake-utils_src_prepare
+ xdg_environment_reset
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
+ -DSYSCONFDIR="${EPREFIX}/etc"
+ -DENABLE_CAIRO=$(usex cairo)
+ -DENABLE_DEBUG=$(usex debug)
+ -DENABLE_ENCHANT=$(usex enchant)
+ -DENABLE_GETTEXT=$(usex nls)
+ -DENABLE_GIR=$(usex introspection)
+ -DENABLE_GTK2_IM_MODULE=$(usex gtk2)
+ -DENABLE_GTK3_IM_MODULE=$(usex gtk3)
+ -DENABLE_LIBXML2=$(usex xml)
+ -DENABLE_LUA=$(usex lua)
+ -DENABLE_OPENCC=$(usex opencc)
+ -DENABLE_PANGO=$(usex pango)
+ -DENABLE_QT=$(usex qt4)
+ -DENABLE_QT_GUI=$(usex qt4)
+ -DENABLE_QT_IM_MODULE=$(usex qt4)
+ -DENABLE_SNOOPER=$(if use gtk2 || use gtk3; then echo yes; else echo no; fi)
+ -DENABLE_STATIC=$(usex static-libs)
+ -DENABLE_TABLE=$(usex table)
+ -DENABLE_TEST=$(usex test)
+ -DENABLE_X11=$(usex X)
+ -DENABLE_XDGAUTOSTART=$(usex autostart)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ rm -r "${ED}usr/share/doc/${PN}"
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ use gtk2 && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ use gtk2 && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/fcitx/fcitx-4.2.9.3.ebuild b/app-i18n/fcitx/fcitx-4.2.9.3.ebuild
new file mode 100644
index 000000000000..a6b5e59f5762
--- /dev/null
+++ b/app-i18n/fcitx/fcitx-4.2.9.3.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils xdg-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx"
+fi
+
+DESCRIPTION="Fcitx (Flexible Context-aware Input Tool with eXtension) input method framework"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI="https://download.fcitx-im.org/data/pinyin.tar.gz -> fcitx-data-pinyin.tar.gz
+ https://download.fcitx-im.org/data/table.tar.gz -> fcitx-data-table.tar.gz
+ https://download.fcitx-im.org/data/py_stroke-20121124.tar.gz -> fcitx-data-py_stroke-20121124.tar.gz
+ https://download.fcitx-im.org/data/py_table-20121124.tar.gz -> fcitx-data-py_table-20121124.tar.gz
+ https://download.fcitx-im.org/data/en_dict-20121020.tar.gz -> fcitx-data-en_dict-20121020.tar.gz"
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
+fi
+
+LICENSE="GPL-2+ LGPL-2+ MIT"
+SLOT="4"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="+X +autostart +cairo debug +enchant gtk2 gtk3 +introspection lua nls opencc +pango qt4 static-libs +table test +xml"
+REQUIRED_USE="cairo? ( X ) pango? ( cairo ) qt4? ( X )"
+
+RDEPEND="dev-libs/glib:2
+ sys-apps/dbus
+ virtual/libiconv
+ virtual/libintl
+ x11-libs/libxkbcommon
+ X? (
+ x11-libs/libX11
+ x11-libs/libXfixes
+ x11-libs/libXinerama
+ x11-libs/libXrender
+ xml? (
+ x11-libs/libxkbfile
+ x11-misc/xkeyboard-config
+ )
+ )
+ cairo? (
+ x11-libs/cairo[X]
+ x11-libs/libXext
+ pango? ( x11-libs/pango )
+ !pango? ( media-libs/fontconfig )
+ )
+ enchant? ( app-text/enchant:0= )
+ gtk2? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ introspection? ( dev-libs/gobject-introspection )
+ lua? ( dev-lang/lua:= )
+ nls? ( sys-devel/gettext )
+ opencc? ( app-i18n/opencc:= )
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ )
+ xml? (
+ app-text/iso-codes
+ dev-libs/libxml2
+ )"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-restart.patch"
+)
+
+DOCS=(AUTHORS ChangeLog THANKS)
+
+src_prepare() {
+ if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ ln -s "${DISTDIR}/fcitx-data-pinyin.tar.gz" src/im/pinyin/data/pinyin.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-table.tar.gz" src/im/table/data/table.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-py_stroke-20121124.tar.gz" src/module/pinyin-enhance/data/py_stroke-20121124.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-py_table-20121124.tar.gz" src/module/pinyin-enhance/data/py_table-20121124.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-en_dict-20121020.tar.gz" src/module/spell/dict/en_dict-20121020.tar.gz || die
+ fi
+
+ # https://github.com/fcitx/fcitx/issues/250
+ sed \
+ -e "/find_package(XkbFile REQUIRED)/i\\ if(ENABLE_X11)" \
+ -e "/find_package(XkbFile REQUIRED)/s/^/ /" \
+ -e "/find_package(XkbFile REQUIRED)/a\\ endif(ENABLE_X11)" \
+ -i CMakeLists.txt
+
+ cmake-utils_src_prepare
+ xdg_environment_reset
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
+ -DSYSCONFDIR="${EPREFIX}/etc"
+ -DENABLE_CAIRO=$(usex cairo)
+ -DENABLE_DEBUG=$(usex debug)
+ -DENABLE_ENCHANT=$(usex enchant)
+ -DENABLE_GETTEXT=$(usex nls)
+ -DENABLE_GIR=$(usex introspection)
+ -DENABLE_GTK2_IM_MODULE=$(usex gtk2)
+ -DENABLE_GTK3_IM_MODULE=$(usex gtk3)
+ -DENABLE_LIBXML2=$(usex xml)
+ -DENABLE_LUA=$(usex lua)
+ -DENABLE_OPENCC=$(usex opencc)
+ -DENABLE_PANGO=$(usex pango)
+ -DENABLE_QT=$(usex qt4)
+ -DENABLE_QT_GUI=$(usex qt4)
+ -DENABLE_QT_IM_MODULE=$(usex qt4)
+ -DENABLE_SNOOPER=$(if use gtk2 || use gtk3; then echo yes; else echo no; fi)
+ -DENABLE_STATIC=$(usex static-libs)
+ -DENABLE_TABLE=$(usex table)
+ -DENABLE_TEST=$(usex test)
+ -DENABLE_X11=$(usex X)
+ -DENABLE_XDGAUTOSTART=$(usex autostart)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ rm -r "${ED}usr/share/doc/${PN}"
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ use gtk2 && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ use gtk2 && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/fcitx/fcitx-4.2.9.4.ebuild b/app-i18n/fcitx/fcitx-4.2.9.4.ebuild
new file mode 100644
index 000000000000..75fff9ad261d
--- /dev/null
+++ b/app-i18n/fcitx/fcitx-4.2.9.4.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils xdg-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx"
+fi
+
+DESCRIPTION="Fcitx (Flexible Context-aware Input Tool with eXtension) input method framework"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI="https://download.fcitx-im.org/data/pinyin.tar.gz -> fcitx-data-pinyin.tar.gz
+ https://download.fcitx-im.org/data/table.tar.gz -> fcitx-data-table.tar.gz
+ https://download.fcitx-im.org/data/py_stroke-20121124.tar.gz -> fcitx-data-py_stroke-20121124.tar.gz
+ https://download.fcitx-im.org/data/py_table-20121124.tar.gz -> fcitx-data-py_table-20121124.tar.gz
+ https://download.fcitx-im.org/data/en_dict-20121020.tar.gz -> fcitx-data-en_dict-20121020.tar.gz"
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
+fi
+
+LICENSE="GPL-2+ LGPL-2+ MIT"
+SLOT="4"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="+X +autostart +cairo debug +enchant gtk2 gtk3 +introspection lua nls opencc +pango qt4 static-libs +table test +xml"
+REQUIRED_USE="cairo? ( X ) pango? ( cairo ) qt4? ( X )"
+
+RDEPEND="dev-libs/glib:2
+ sys-apps/dbus
+ virtual/libiconv
+ virtual/libintl
+ x11-libs/libxkbcommon
+ X? (
+ x11-libs/libX11
+ x11-libs/libXfixes
+ x11-libs/libXinerama
+ x11-libs/libXrender
+ xml? (
+ x11-libs/libxkbfile
+ x11-misc/xkeyboard-config
+ )
+ )
+ cairo? (
+ x11-libs/cairo[X]
+ x11-libs/libXext
+ pango? ( x11-libs/pango )
+ !pango? ( media-libs/fontconfig )
+ )
+ enchant? ( app-text/enchant:0= )
+ gtk2? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ introspection? ( dev-libs/gobject-introspection )
+ lua? ( dev-lang/lua:= )
+ nls? ( sys-devel/gettext )
+ opencc? ( app-i18n/opencc:= )
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ )
+ xml? (
+ app-text/iso-codes
+ dev-libs/libxml2
+ )"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+DOCS=(AUTHORS ChangeLog THANKS)
+
+src_prepare() {
+ if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ ln -s "${DISTDIR}/fcitx-data-pinyin.tar.gz" src/im/pinyin/data/pinyin.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-table.tar.gz" src/im/table/data/table.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-py_stroke-20121124.tar.gz" src/module/pinyin-enhance/data/py_stroke-20121124.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-py_table-20121124.tar.gz" src/module/pinyin-enhance/data/py_table-20121124.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-en_dict-20121020.tar.gz" src/module/spell/dict/en_dict-20121020.tar.gz || die
+ fi
+
+ # https://github.com/fcitx/fcitx/issues/250
+ sed \
+ -e "/find_package(XkbFile REQUIRED)/i\\ if(ENABLE_X11)" \
+ -e "/find_package(XkbFile REQUIRED)/s/^/ /" \
+ -e "/find_package(XkbFile REQUIRED)/a\\ find_package(XKeyboardConfig REQUIRED)\n endif(ENABLE_X11)" \
+ -e "/^find_package(XKeyboardConfig REQUIRED)/,+1d" \
+ -i CMakeLists.txt
+
+ cmake-utils_src_prepare
+ xdg_environment_reset
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
+ -DSYSCONFDIR="${EPREFIX}/etc"
+ -DENABLE_CAIRO=$(usex cairo)
+ -DENABLE_DEBUG=$(usex debug)
+ -DENABLE_ENCHANT=$(usex enchant)
+ -DENABLE_GETTEXT=$(usex nls)
+ -DENABLE_GIR=$(usex introspection)
+ -DENABLE_GTK2_IM_MODULE=$(usex gtk2)
+ -DENABLE_GTK3_IM_MODULE=$(usex gtk3)
+ -DENABLE_LIBXML2=$(usex xml)
+ -DENABLE_LUA=$(usex lua)
+ -DENABLE_OPENCC=$(usex opencc)
+ -DENABLE_PANGO=$(usex pango)
+ -DENABLE_QT=$(usex qt4)
+ -DENABLE_QT_GUI=$(usex qt4)
+ -DENABLE_QT_IM_MODULE=$(usex qt4)
+ -DENABLE_SNOOPER=$(if use gtk2 || use gtk3; then echo yes; else echo no; fi)
+ -DENABLE_STATIC=$(usex static-libs)
+ -DENABLE_TABLE=$(usex table)
+ -DENABLE_TEST=$(usex test)
+ -DENABLE_X11=$(usex X)
+ -DENABLE_XDGAUTOSTART=$(usex autostart)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ rm -r "${ED}usr/share/doc/${PN}"
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ use gtk2 && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ use gtk2 && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/fcitx/fcitx-4.9999.ebuild b/app-i18n/fcitx/fcitx-4.9999.ebuild
new file mode 100644
index 000000000000..e70c390cd80c
--- /dev/null
+++ b/app-i18n/fcitx/fcitx-4.9999.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils gnome2-utils xdg-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx"
+fi
+
+DESCRIPTION="Fcitx (Flexible Context-aware Input Tool with eXtension) input method framework"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI="https://download.fcitx-im.org/data/pinyin.tar.gz -> fcitx-data-pinyin.tar.gz
+ https://download.fcitx-im.org/data/table.tar.gz -> fcitx-data-table.tar.gz
+ https://download.fcitx-im.org/data/py_stroke-20121124.tar.gz -> fcitx-data-py_stroke-20121124.tar.gz
+ https://download.fcitx-im.org/data/py_table-20121124.tar.gz -> fcitx-data-py_table-20121124.tar.gz
+ https://download.fcitx-im.org/data/en_dict-20121020.tar.gz -> fcitx-data-en_dict-20121020.tar.gz"
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
+fi
+
+LICENSE="GPL-2+ LGPL-2+ MIT"
+SLOT="4"
+KEYWORDS=""
+IUSE="+X +autostart +cairo debug +enchant gtk2 gtk3 +introspection lua nls opencc +pango qt4 static-libs +table test +xml"
+REQUIRED_USE="cairo? ( X ) pango? ( cairo ) qt4? ( X )"
+
+RDEPEND="dev-libs/glib:2
+ sys-apps/dbus
+ virtual/libiconv
+ virtual/libintl
+ x11-libs/libxkbcommon
+ X? (
+ x11-libs/libX11
+ x11-libs/libXfixes
+ x11-libs/libXinerama
+ x11-libs/libXrender
+ xml? (
+ x11-libs/libxkbfile
+ x11-misc/xkeyboard-config
+ )
+ )
+ cairo? (
+ x11-libs/cairo[X]
+ x11-libs/libXext
+ pango? ( x11-libs/pango )
+ !pango? ( media-libs/fontconfig )
+ )
+ enchant? ( app-text/enchant:0= )
+ gtk2? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ introspection? ( dev-libs/gobject-introspection )
+ lua? ( dev-lang/lua:= )
+ nls? ( sys-devel/gettext )
+ opencc? ( app-i18n/opencc:= )
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ )
+ xml? (
+ app-text/iso-codes
+ dev-libs/libxml2
+ )"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ virtual/pkgconfig"
+
+DOCS=(AUTHORS ChangeLog THANKS)
+
+src_prepare() {
+ if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ ln -s "${DISTDIR}/fcitx-data-pinyin.tar.gz" src/im/pinyin/data/pinyin.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-table.tar.gz" src/im/table/data/table.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-py_stroke-20121124.tar.gz" src/module/pinyin-enhance/data/py_stroke-20121124.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-py_table-20121124.tar.gz" src/module/pinyin-enhance/data/py_table-20121124.tar.gz || die
+ ln -s "${DISTDIR}/fcitx-data-en_dict-20121020.tar.gz" src/module/spell/dict/en_dict-20121020.tar.gz || die
+ fi
+
+ # https://github.com/fcitx/fcitx/issues/250
+ sed \
+ -e "/find_package(XkbFile REQUIRED)/i\\ if(ENABLE_X11)" \
+ -e "/find_package(XkbFile REQUIRED)/s/^/ /" \
+ -e "/find_package(XkbFile REQUIRED)/a\\ find_package(XKeyboardConfig REQUIRED)\n endif(ENABLE_X11)" \
+ -e "/^find_package(XKeyboardConfig REQUIRED)/,+1d" \
+ -i CMakeLists.txt
+
+ cmake-utils_src_prepare
+ xdg_environment_reset
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)"
+ -DSYSCONFDIR="${EPREFIX}/etc"
+ -DENABLE_CAIRO=$(usex cairo)
+ -DENABLE_DEBUG=$(usex debug)
+ -DENABLE_ENCHANT=$(usex enchant)
+ -DENABLE_GETTEXT=$(usex nls)
+ -DENABLE_GIR=$(usex introspection)
+ -DENABLE_GTK2_IM_MODULE=$(usex gtk2)
+ -DENABLE_GTK3_IM_MODULE=$(usex gtk3)
+ -DENABLE_LIBXML2=$(usex xml)
+ -DENABLE_LUA=$(usex lua)
+ -DENABLE_OPENCC=$(usex opencc)
+ -DENABLE_PANGO=$(usex pango)
+ -DENABLE_QT=$(usex qt4)
+ -DENABLE_QT_GUI=$(usex qt4)
+ -DENABLE_QT_IM_MODULE=$(usex qt4)
+ -DENABLE_SNOOPER=$(if use gtk2 || use gtk3; then echo yes; else echo no; fi)
+ -DENABLE_STATIC=$(usex static-libs)
+ -DENABLE_TABLE=$(usex table)
+ -DENABLE_TEST=$(usex test)
+ -DENABLE_X11=$(usex X)
+ -DENABLE_XDGAUTOSTART=$(usex autostart)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ rm -r "${ED}usr/share/doc/${PN}"
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ use gtk2 && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ use gtk2 && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/fcitx/files/fcitx-4.2.9.1-qt-4_ucs4.patch b/app-i18n/fcitx/files/fcitx-4.2.9.1-qt-4_ucs4.patch
new file mode 100644
index 000000000000..e417a0615716
--- /dev/null
+++ b/app-i18n/fcitx/files/fcitx-4.2.9.1-qt-4_ucs4.patch
@@ -0,0 +1,95 @@
+https://github.com/fcitx/fcitx/commit/14faccfbb0d87e06c25d182ae842808d18be3dc7
+https://github.com/fcitx/fcitx/commit/216a09e3ec056f272eebfbe82809b803d86012cb
+
+--- /src/frontend/qt/qfcitxinputcontext.cpp
++++ /src/frontend/qt/qfcitxinputcontext.cpp
+@@ -232,6 +232,20 @@
+ anchor = var2.toInt();
+ else
+ anchor = cursor;
++
++ // adjust it to real character size
++ // QTBUG-25536;
++ QVector<uint> tempUCS4 = text.leftRef(cursor).toUcs4();
++ while (!tempUCS4.empty() && tempUCS4.last() == 0) {
++ tempUCS4.pop_back();
++ }
++ cursor = tempUCS4.size();
++ tempUCS4 = text.leftRef(anchor).toUcs4();
++ while (!tempUCS4.empty() && tempUCS4.last() == 0) {
++ tempUCS4.pop_back();
++ }
++ anchor = tempUCS4.size();
++
+ if (data->surroundingText != text) {
+ data->surroundingText = text;
+ proxy->SetSurroundingText(text, cursor, anchor);
+@@ -581,6 +595,7 @@
+ delete data->proxy;
+ }
+ data->proxy = new FcitxQtInputContextProxy(m_connection->serviceName(), path, *m_connection->connection(), this);
++ data->proxy->setProperty("icData", qVariantFromValue(static_cast<void*>(data)));
+ connect(data->proxy, SIGNAL(CommitString(QString)), this, SLOT(commitString(QString)));
+ connect(data->proxy, SIGNAL(ForwardKey(uint, uint, int)), this, SLOT(forwardKey(uint, uint, int)));
+ connect(data->proxy, SIGNAL(UpdateFormattedPreedit(FcitxQtFormattedPreeditList,int)), this, SLOT(updateFormattedPreedit(FcitxQtFormattedPreeditList,int)));
+@@ -680,11 +695,57 @@
+ sendEvent(event);
+ }
+
+-void QFcitxInputContext::deleteSurroundingText(int offset, uint nchar)
++void QFcitxInputContext::deleteSurroundingText(int offset, uint _nchar)
+ {
+ QInputMethodEvent event;
+- event.setCommitString("", offset, nchar);
+- sendEvent(event);
++
++ FcitxQtInputContextProxy *proxy = qobject_cast<FcitxQtInputContextProxy*>(sender());
++ if (!proxy) {
++ return;
++ }
++
++ FcitxQtICData *data = static_cast<FcitxQtICData*>(proxy->property("icData").value<void *>());
++ QVector<uint> ucsText = data->surroundingText.toUcs4();
++
++ // QTBUG-25536
++ while (!ucsText.empty() && ucsText.last() == 0) {
++ ucsText.pop_back();
++ }
++
++ int cursor = data->surroundingCursor;
++ // make nchar signed so we are safer
++ int nchar = _nchar;
++ // Qt's reconvert semantics is different from gtk's. It doesn't count the current
++ // selection. Discard selection from nchar.
++ if (data->surroundingAnchor < data->surroundingCursor) {
++ nchar -= data->surroundingCursor - data->surroundingAnchor;
++ offset += data->surroundingCursor - data->surroundingAnchor;
++ cursor = data->surroundingAnchor;
++ } else if (data->surroundingAnchor > data->surroundingCursor) {
++ nchar -= data->surroundingAnchor - data->surroundingCursor;
++ cursor = data->surroundingCursor;
++ }
++
++ // validates
++ if (nchar >= 0 && cursor + offset >= 0 && cursor + offset + nchar < ucsText.size()) {
++ // order matters
++ QVector<uint> replacedChars = ucsText.mid(cursor + offset, nchar);
++ nchar = QString::fromUcs4(replacedChars.data(), replacedChars.size()).size();
++
++ int start, len;
++ if (offset >= 0) {
++ start = cursor;
++ len = offset;
++ } else {
++ start = cursor;
++ len = -offset;
++ }
++
++ QVector<uint> prefixedChars = ucsText.mid(start, len);
++ offset = QString::fromUcs4(prefixedChars.data(), prefixedChars.size()).size() * (offset >= 0 ? 1 : -1);
++ event.setCommitString("", offset, nchar);
++ sendEvent(event);
++ }
+ }
+
+ void QFcitxInputContext::forwardKey(uint keyval, uint state, int type)
diff --git a/app-i18n/fcitx/files/fcitx-4.2.9.1-tray_icon.patch b/app-i18n/fcitx/files/fcitx-4.2.9.1-tray_icon.patch
new file mode 100644
index 000000000000..7bfbc6e9ade0
--- /dev/null
+++ b/app-i18n/fcitx/files/fcitx-4.2.9.1-tray_icon.patch
@@ -0,0 +1,145 @@
+https://github.com/fcitx/fcitx/issues/241
+https://github.com/fcitx/fcitx/commit/c737618fffa84bfe5a6caf55cee9b9288a791bbf
+https://github.com/fcitx/fcitx/commit/353683e29be4ef26409b9a05e0cb647a5180fa8c
+https://github.com/fcitx/fcitx/commit/fe2732db27a1c2e183400ceeb3283559e10a4ca8
+https://github.com/fcitx/fcitx/commit/440c431d29876a8e4871159d289bc9a573f9a41b
+
+--- /src/module/notificationitem/notificationitem.c
++++ /src/module/notificationitem/notificationitem.c
+@@ -565,8 +565,17 @@
+
+ boolean FcitxNotificationItemEnable(FcitxNotificationItem* notificationitem, FcitxNotificationItemAvailableCallback callback, void* data)
+ {
+- if (!callback || notificationitem->callback)
++ if (!callback)
+ return false;
++
++ if (notificationitem->callback == callback) {
++ return true;
++ }
++
++ if (notificationitem->callback) {
++ return false;
++ }
++
+ if (notificationitem->serviceName) {
+ FcitxLog(ERROR, "This should not happen, please report bug.");
+ return false;
+--- /src/ui/classic/TrayWindow.c
++++ /src/ui/classic/TrayWindow.c
+@@ -48,7 +48,7 @@
+ Display *dpy = classicui->dpy;
+ int iScreen = classicui->iScreen;
+ char strWindowName[] = "Fcitx Tray Window";
+- if (!classicui->bUseTrayIcon || classicui->isSuspend)
++ if (!classicui->bUseTrayIcon || classicui->isSuspend || classicui->notificationItemAvailable)
+ return;
+
+ if (trayWindow->window == None && trayWindow->dockWindow != None) {
+@@ -61,12 +61,12 @@
+ wsa.colormap = colormap;
+ wsa.background_pixel = 0;
+ wsa.border_pixel = 0;
+- trayWindow->window = XCreateWindow(dpy, p, -1, -1, 1, 1,
++ trayWindow->window = XCreateWindow(dpy, p, -1, -1, 22, 22,
+ 0, vi->depth, InputOutput, vi->visual,
+ CWBackPixmap | CWBackPixel | CWBorderPixel | CWColormap, &wsa);
+ } else {
+ trayWindow->window = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy),
+- -1, -1, 1, 1, 0,
++ -1, -1, 22, 22, 0,
+ BlackPixel(dpy, DefaultScreen(dpy)),
+ WhitePixel(dpy, DefaultScreen(dpy)));
+ XSetWindowBackgroundPixmap(dpy, trayWindow->window, ParentRelative);
+@@ -74,6 +74,7 @@
+ if (trayWindow->window == (Window) NULL)
+ return;
+
++ trayWindow->size = 22;
+ XSizeHints size_hints;
+ size_hints.flags = PWinGravity | PBaseSize;
+ size_hints.base_width = trayWindow->size;
+@@ -161,7 +162,7 @@
+ png_surface = image->image;
+
+ c = cairo_create(trayWindow->cs);
+- cairo_set_source_rgba(c, 0, 0, 0, 0);
++ cairo_set_source_rgba(c, 1, 1, 1, 0);
+ cairo_set_operator(c, CAIRO_OPERATOR_SOURCE);
+ cairo_paint(c);
+
+@@ -226,8 +227,6 @@
+ if (event->xclient.message_type == trayWindow->atoms[ATOM_MANAGER]
+ && event->xclient.data.l[1] == trayWindow->atoms[ATOM_SELECTION]
+ && trayWindow->dockWindow == None) {
+- if (classicui->notificationItemAvailable)
+- return true;
+ trayWindow->dockWindow = event->xclient.data.l[2];
+ TrayWindowRelease(trayWindow);
+ TrayWindowInit(trayWindow);
+@@ -245,6 +244,7 @@
+ int size = event->xconfigure.height;
+ if (size != trayWindow->size) {
+ trayWindow->size = size;
++ XResizeWindow(dpy, trayWindow->window, size, size);
+ XSizeHints size_hints;
+ size_hints.flags = PWinGravity | PBaseSize;
+ size_hints.base_width = trayWindow->size;
+@@ -286,6 +286,14 @@
+ return true;
+ }
+ break;
++ case PropertyNotify:
++ if (event->xproperty.atom == trayWindow->atoms[ATOM_VISUAL] &&
++ event->xproperty.window == trayWindow->dockWindow) {
++ TrayWindowRelease(trayWindow);
++ TrayWindowInit(trayWindow);
++ return true;
++ }
++ break;
+ }
+ return false;
+ }
+--- /src/ui/classic/classicui.c
++++ /src/ui/classic/classicui.c
+@@ -168,7 +168,7 @@
+ void ClassicUIDelayedInitTray(void* arg) {
+ FcitxClassicUI* classicui = (FcitxClassicUI*) arg;
+ // FcitxLog(INFO, "yeah we delayed!");
+- if (!classicui->bUseTrayIcon)
++ if (!classicui->bUseTrayIcon || classicui->isSuspend)
+ return;
+ /*
+ * if this return false, something wrong happened and callback
+@@ -187,7 +187,7 @@
+ {
+ FcitxClassicUI* classicui = (FcitxClassicUI*) arg;
+ classicui->trayTimeout = 0;
+- if (!classicui->bUseTrayIcon)
++ if (!classicui->bUseTrayIcon || classicui->isSuspend)
+ return;
+
+ if (!classicui->trayWindow->bTrayMapped) {
+--- /src/ui/classic/tray.c
++++ /src/ui/classic/tray.c
+@@ -106,8 +106,9 @@
+
+ XWindowAttributes attr;
+ XGetWindowAttributes(dpy, DefaultRootWindow(dpy), &attr);
+- if ((attr.your_event_mask & StructureNotifyMask) != StructureNotifyMask) {
+- XSelectInput(dpy, DefaultRootWindow(dpy), attr.your_event_mask | StructureNotifyMask); // for MANAGER selection
++ int neededMask = StructureNotifyMask;
++ if ((attr.your_event_mask & neededMask) != neededMask) {
++ XSelectInput(dpy, DefaultRootWindow(dpy), attr.your_event_mask | neededMask); // for MANAGER selection
+ }
+ return True;
+ }
+@@ -123,7 +124,7 @@
+ Display* dpy = tray->owner->dpy;
+
+ if (tray->dockWindow != None) {
+- XSelectInput(dpy, tray->dockWindow, StructureNotifyMask);
++ XSelectInput(dpy, tray->dockWindow, PropertyChangeMask | StructureNotifyMask);
+ TraySendOpcode(tray, SYSTEM_TRAY_REQUEST_DOCK, tray->window, 0, 0);
+ tray->bTrayMapped = True;
+ return 1;
diff --git a/app-i18n/fcitx/files/fcitx-4.2.9.2-scripts.patch b/app-i18n/fcitx/files/fcitx-4.2.9.2-scripts.patch
new file mode 100644
index 000000000000..a3399767e7b0
--- /dev/null
+++ b/app-i18n/fcitx/files/fcitx-4.2.9.2-scripts.patch
@@ -0,0 +1,60 @@
+https://github.com/fcitx/fcitx/issues/342
+https://github.com/fcitx/fcitx/commit/de4bd3d535736afe061d9ac63fcc897e3ab3237e
+
+--- /cmake/fcitx-cmake-helper.sh
++++ /cmake/fcitx-cmake-helper.sh
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/usr/bin/env bash
+ # Copyright (C) 2012~2013 by Yichao Yu
+ # yyc1992@gmail.com
+ #
+--- /cmake/fcitx-merge-config.sh
++++ /cmake/fcitx-merge-config.sh
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/usr/bin/env bash
+ # Copyright (C) 2012~2012 by Yichao Yu
+ # yyc1992@gmail.com
+ #
+--- /data/icon/data/gen.sh
++++ /data/icon/data/gen.sh
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#!/usr/bin/env bash
+
+ a="$(find scabable/status/ -type f -name \*.svg)"
+ echo $a
+--- /data/script/fcitx-configtool.sh
++++ /data/script/fcitx-configtool.sh
+@@ -28,7 +28,7 @@
+ }
+ fi
+
+-if type gettext > /dev/null 2>&1; then
++if which gettext > /dev/null 2>&1; then
+ _() {
+ gettext "$@"
+ }
+--- /src/lib/fcitx-utils/gen-hotkey.sh
++++ /src/lib/fcitx-utils/gen-hotkey.sh
+@@ -1,7 +1,6 @@
+ #!/bin/sh
+
+-function download_file()
+-{
++download_file() {
+ if [ "x$3" != "xf" ]; then
+ if [ -f $1 ]; then
+ return
+--- /src/ui/classic/fcitx-skin-installer.sh
++++ /src/ui/classic/fcitx-skin-installer.sh
+@@ -25,7 +25,7 @@
+ }
+ fi
+
+-if type gettext > /dev/null 2>&1; then
++if which gettext > /dev/null 2>&1; then
+ _() {
+ gettext "$@"
+ }
diff --git a/app-i18n/fcitx/files/fcitx-4.2.9.3-restart.patch b/app-i18n/fcitx/files/fcitx-4.2.9.3-restart.patch
new file mode 100644
index 000000000000..b71bdac9461a
--- /dev/null
+++ b/app-i18n/fcitx/files/fcitx-4.2.9.3-restart.patch
@@ -0,0 +1,13 @@
+https://github.com/fcitx/fcitx/issues/362
+https://github.com/fcitx/fcitx/commit/82202f6b81361263693f07ae17c55c8ce048b220
+
+--- /src/lib/fcitx/instance.c
++++ /src/lib/fcitx/instance.c
+@@ -365,6 +365,7 @@
+ setjmp(FcitxRecover);
+
+ if (instance->destroy || instance->restart) {
++ FcitxInstanceEnd(instance);
+ FcitxInstanceRealEnd(instance);
+ break;
+ }
diff --git a/app-i18n/fcitx/metadata.xml b/app-i18n/fcitx/metadata.xml
new file mode 100644
index 000000000000..f6fcd96b889e
--- /dev/null
+++ b/app-i18n/fcitx/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <use>
+ <flag name="autostart">Enable XDG-compatible autostart of Fcitx</flag>
+ <flag name="enchant">Enable Enchant backend (using <pkg>app-text/enchant</pkg>) for spelling hinting</flag>
+ <flag name="gtk2">Install input method module for GTK+ 2</flag>
+ <flag name="gtk3">Install input method module for GTK+ 3</flag>
+ <flag name="opencc">Enable OpenCC engine (using <pkg>app-i18n/opencc</pkg>) for converter between Simplified Chinese and Traditional Chinese</flag>
+ <flag name="pango">Enable support for <pkg>x11-libs/pango</pkg></flag>
+ <flag name="qt4">Install input method module for Qt 4</flag>
+ <flag name="table">Install table input methods for Simplified Chinese</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">fcitx/fcitx</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/freewnn/Manifest b/app-i18n/freewnn/Manifest
new file mode 100644
index 000000000000..5024fe567f26
--- /dev/null
+++ b/app-i18n/freewnn/Manifest
@@ -0,0 +1,13 @@
+AUX freewnn-1.1.1_alpha22-parallel-build.patch 6089 SHA256 846032969f1472eecd9a58407933ece0b4c4de4ec3078e4e8ca4f7c8d1b46c81 SHA512 941344392312412fb4f5b42c51df1c58d1efc050e203d54894d4bcd921e884ac82fcf5a29a3a57aa4be88da57586dfa9674b8ea88dcb75e91efe83caaa78ac50 WHIRLPOOL 88405a0a50f90028a94affa2849e6a028a8a12657a07ab198e8ff51749acfe00007f16f3f3984737a75e3c67d3c72b4b5daf59daa6cfb1d07969ad63a0dd9f21
+AUX freewnn-Wformat-security.patch 3658 SHA256 5f199ee4b70c1f03536f344a748acade88fd607960c77e3af17fd7596b22547b SHA512 7e01d516978eb024fe723a84c6c7cc8e138e7947ed3d4d5ec6e15b28783498e084cd2655ccd2ce7377c9837332ae1b0caec654c0f7f2bb9f78b9657f4cd00830 WHIRLPOOL 47612b0cf9dc7f1246f19853bd413a7d810d31fdfd55423e6092df8f4b85f6dab3d1612880d20264efdba15eb805123541f5fbadc6791df4394fdf3efc0969f8
+AUX freewnn-uum-EUC-JP.patch 279 SHA256 f75fb91dfe2dfabd82a3757553abb49feeafb3acc9c80b19566de7e7f75f14df SHA512 a065873fe70435a4364a111eed334ea574cd3178ffde947beabac5bb45e468a725f73c5b35c22b577127d03139a6386eebc815b85014048eaf59ca958687c96b WHIRLPOOL 74d13f9581f887179e50b86598342424f659fdf77a57171f7d0a73dff785ddfe30269b4162ccd949b98fde356f6823d8f8284f6cf06a317943c01c18ef70349a
+AUX freewnn.confd-r1 16 SHA256 c135a272bb830d5176ea212d8d30345d8ddca15819f2c04addd01edb43511910 SHA512 3392644bb5404b83ee3bf3bceffaa769d1dce858fd2a8bd92b79101d0db863002a4f30205498a00777b25b7940fc8dbb41a0e0c4e20be0f6d61be50eb4ddf49e WHIRLPOOL 5028e05b801a342e810fc1bd24d718a925260df990ff06f0a511f1b4b505e34db166f0b3efcca0a4070106a3f1d3ca19ad8c87612c55f68351c41e7b8ab84ec4
+AUX freewnn.initd 283 SHA256 b81c1bf6cb2ce20afd3759949179db3c83d9e63fe3775a797b76c15c4ce887c4 SHA512 81b5a6246d513f567710e2973bc8fffe86462e8afdee13e1a2aa9b6e5e8a852521a23fd5b20af536092b59f626a5e34be77409d63dcab005473dd11631b67111 WHIRLPOOL 87bb153b901dab6e219eb19b8242da8003acf3f613f457350ae05bd22d12bb499d766c379194f76f934943b6485f3c6d6d822999e937f6cf94a33709bf2ea870
+AUX freewnn.initd-r1 306 SHA256 d07c37e0012778ac01ecec9e936c9e59c8be944290606cbdc923e3ceee7d079f SHA512 306ad8dd6ae7060fc937f2ac2b266f385480961ed0c2074f1dcfc77fa82bb7a23042019672b47c32fc8d55079730ccda68c616c0f5411b0704db2c34d2caaf02 WHIRLPOOL 3e386fff89097fb3b1628d86457e52ecaa8007fed869b30e8f4c8344895c0195cfea2d70932a2c7397398a11024bd0a6630f79e7f7fd1a30ccc893c6cbb55d09
+DIST FreeWnn-1.1.1-a022.tar.bz2 3137954 SHA256 3728352fe9d3352ce16884bd0a517eaf227da0cf7e6f1d09b7a3f38f6bfb6dba SHA512 938c8bff69e2f43cce265a6a84822ae08b89725837f808addb66ba202dadafa60c213638f298d9efe1257fd96f7193fd711a3dacecd803289d925d8f6ea6eaf3 WHIRLPOOL f7462c2d6214ea416c8b726b0d086911b238efd39615c4eea5d2c1a9685974ce1c9f20d23d65e861753e64d796c8b98d72682d670d48bf5da80e8051df8d7de9
+DIST FreeWnn-1.1.1-a023.tar.bz2 3147378 SHA256 88c81a9aae33151dcc66259637e5499b1fc313b7288d5b1e90d8dd6290c7a7e9 SHA512 f0b8c657f0441463c752314b7d2fd603b4df056b049d247ecd77ff8b2f2f837fed7e75ce89deabca7061d3126afd51bf301bcdd3ac429056f43bfc8e0c7c8385 WHIRLPOOL 1fa31f568346c69b2cd263ff336ae1eedb6da1d085827eb9b65634fe690f6148b4535f125881053bf6fe79de149f78af6e226c40d1ea278a4977403a36b4efd4
+EBUILD freewnn-1.1.1_alpha22.ebuild 1095 SHA256 feac655778d07bea28a93712bed4b60e433a62bd2a380f0fe1771cf99bcfb1b6 SHA512 0118eb863795a57627c85b5ba18247296e8043c69f4088371d10ec1fde724a9704fa4d49d65233b958c4de26bc14c84bbd1c4322a289b606547c180235dede07 WHIRLPOOL dc94337e8949e670484592716e1f7853f3697f37be1074d67864fb06345e53f3f697c7aa7dc6607faf42f920841a01d1a247086735dec451a214249ccec00614
+EBUILD freewnn-1.1.1_alpha23.ebuild 1559 SHA256 325cd5dc82b2a30b740fbdbcc54fa7d964723975309ea9329ea8f907e62c1b00 SHA512 026e644beb3802f78787b31ba6577ce89b9e376460e37eb5c7e0fd05d004a7fbd9f87b02ec589804094a172d0c33da30bbfe86ba8dd7c19efec87073eb9322b5 WHIRLPOOL 6e5e01788fef0f60ce234cf9adaee527fc76dceeb95b0019550f5037a17a32a4f662fcdf4d06b03e0616bef0addca3baf13ed9b6e35300091a7d5e5889e4c6a0
+MISC ChangeLog 4808 SHA256 aff09a5053db9ceb1b1894f048a0d1c40ff3e7458dfa17b81bc1a338f905e166 SHA512 0ad023440ba1b448d8d7cd29a0819c2f4b012df36ce7ed0b89bfc5a40b1492377b5746daad034d60e249e1246c9d0d4eb83af2e45d34aac7a62a760e9678877f WHIRLPOOL 4c8efacdc24dad7558a0fba9bbf56c8138c042a9f5ab23fd864bae1cd45e25848b27ccaf133e244146bc03074cd5b91e469b5c63d0721b41bc0f4670a2943679
+MISC ChangeLog-2015 7910 SHA256 ec9b04d7653393b7c81d5ff3c55d6882028ccd498e0f3b7fd785a63400ed39b4 SHA512 5f8d1e7ebc98669ffc652e24849fe5309a544d6e6287368f3e9f866b332134c3f061b87689ac026958f5faa69f6979a6292305c113ae9b5dd00052117f70acb5 WHIRLPOOL 3496cbd0937534934d9c522cd36288e734dfc087c371f9615d1cf66e24afd27744f570d28d6d59de610d5f60bf295f6b64610e0a1a1820e4844e4a1ed956e0df
+MISC metadata.xml 379 SHA256 8f604f27c6cb82c9c4e1aeeafeb879a394241e961e21832feef51ad316f7bce2 SHA512 ccecd3e1a8245d6ae953997d87f6daa127eb1759f6f91b866c9cc778a11289e3f72ce671d4c62032210568a7a915387cbcb02bb7b7284d515bb20e4c02bd8a6b WHIRLPOOL 091327910e8e1b16a1ae7334b4302949e9f6c36379874690dcfc5edef6daa8e88c7cf82bdf703e3ab95652b5342c57f7e76ead7895e6331383f1c6e9f449164e
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 000000000000..058225c36ee5
--- /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-Wformat-security.patch b/app-i18n/freewnn/files/freewnn-Wformat-security.patch
new file mode 100644
index 000000000000..b5b68314060d
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn-Wformat-security.patch
@@ -0,0 +1,143 @@
+--- a/Wnn/uum/jhlp.c
++++ b/Wnn/uum/jhlp.c
+@@ -1135,7 +1135,7 @@
+ else
+ {
+ signal (SIGCHLD, SIG_IGN);
+- printf (MSG_GET (3));
++ printf ("%s", MSG_GET (3));
+ /*
+ printf("\r\n£õ£õ£í¤ò½ª¤ï¤ê¤Þ¤¹¡£\r\n");
+ */
+@@ -1212,8 +1212,8 @@
+
+ if ((buf = (unsigned char *) malloc (maxchg * 4)) == NULL)
+ {
+- printf (MSG_GET (2));
+- printf (MSG_GET (3));
++ printf ("%s", MSG_GET (2));
++ printf ("%s", MSG_GET (3));
+ /*
+ printf("malloc ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡££õ£õ£í¤ò½ª¤ï¤ê¤Þ¤¹¡£\r\n");
+ */
+--- a/Wnn/uum/jis_in.c
++++ b/Wnn/uum/jis_in.c
+@@ -64,7 +64,7 @@
+
+ completely_start:
+ throw_c (0); /* ¥â¡¼¥Éɽ¼¨¤Î¸å¤Ë½Ð¤¹ */
+- printf (MSG_GET (6));
++ printf ("%s", MSG_GET (6));
+ /*
+ printf("JIS¥³¡¼¥É: ");
+ */
+--- a/Wnn/uum/jutil.c
++++ b/Wnn/uum/jutil.c
+@@ -489,7 +489,7 @@
+ /*
+ printf("Âþº£¡¢¼­½ñ¤òÆɤ߹þ¤ó¤Ç¤¤¤Þ¤¹¡£");
+ */
+- printf (MSG_GET (60));
++ printf ("%s", MSG_GET (60));
+ flush ();
+
+ if ((id = jl_dic_add (bun_data_, fname, hfname, 0, prio, rdonly, hrdonly, NULL, NULL, yes_or_no_or_newline, print_msg1)) == -1 && wnn_errorno != -1)
+@@ -571,7 +571,7 @@
+ int x;
+ throw_c (0);
+ clr_line ();
+- printf (string);
++ printf ("%s", string);
+ flush ();
+ for (;;)
+ {
+--- a/Wnn/uum/kensaku.c
++++ b/Wnn/uum/kensaku.c
+@@ -112,7 +112,7 @@
+ u_s_on ();
+ w_printf (kana_buf, maxlength - strlen (MSG_GET (27)) - 2);
+ u_s_off ();
+- printf (MSG_GET (27));
++ printf ("%s", MSG_GET (27));
+ flush ();
+ keyin ();
+ return (NULL);
+--- a/Wnn/uum/kuten.c
++++ b/Wnn/uum/kuten.c
+@@ -63,7 +63,7 @@
+
+ completely_start:
+ throw_c (0); /* ¥â¡¼¥Éɽ¼¨¤Î¸å¤Ë½Ð¤¹ */
+- printf (MSG_GET (7));
++ printf ("%s", MSG_GET (7));
+ /*
+ printf("¶èÅÀ : ");
+ */
+--- a/Wnn/uum/prologue.c
++++ b/Wnn/uum/prologue.c
+@@ -144,7 +144,7 @@
+ /*
+ fprintf(stderr,"½é´ü²½¤ÇmallocÉÔǽ¡£\n");
+ */
+- fprintf (stderr, MSG_GET (2));
++ fprintf (stderr, "%s", MSG_GET (2));
+ return (-1);
+ }
+
+--- a/Wnn/uum/screen.c
++++ b/Wnn/uum/screen.c
+@@ -547,7 +547,7 @@
+ {
+ push_cursor ();
+ throw_c (0);
+- printf (msg);
++ printf ("%s", msg);
+ pop_cursor ();
+ flush ();
+ }
+--- a/Wnn/uum/sdefine.h
++++ b/Wnn/uum/sdefine.h
+@@ -191,8 +191,8 @@
+
+
+ #define flush() fflush(stdout)
+-#define print_msg(X) {push_cursor();throw_c(0); clr_line();printf(X);flush();pop_cursor();}
+-#define print_msg_getc(X) {push_cursor();throw_c(0); clr_line();printf(X);flush();keyin();pop_cursor();}
++#define print_msg(X) {push_cursor();throw_c(0); clr_line();printf("%s", X);flush();pop_cursor();}
++#define print_msg_getc(X) {push_cursor();throw_c(0); clr_line();printf("%s", X);flush();keyin();pop_cursor();}
+
+
+ #define UNDER_LINE_MODE (0x02 | 0x08 | 0x20)
+--- a/Wnn/uum/select_ele.c
++++ b/Wnn/uum/select_ele.c
+@@ -224,7 +224,7 @@
+
+ throw_c (0);
+ clr_line ();
+- printf (msg);
++ printf ("%s", msg);
+ for (k = dd[cc]; k < dd[cc + 1]; k++)
+ {
+ cp = findcp (k, cc);
+--- a/Wnn/uum/termio.c
++++ b/Wnn/uum/termio.c
+@@ -100,7 +100,7 @@
+
+ if ((strlen (Term_Name) > 2) && (strcmp (Term_Name + (strlen (Term_Name) - 2), "-j") == 0))
+ {
+- fprintf (stderr, MSG_GET (4));
++ fprintf (stderr, "%s", MSG_GET (4));
+ /*
+ fprintf(stderr,"Uum:£õ£õ£í¤«¤é£õ£õ£í¤Ï¤ª¤³¤»¤Þ¤»¤ó¡£\n");
+ */
+--- a/Wnn/uum/wnnrc_op.c
++++ b/Wnn/uum/wnnrc_op.c
+@@ -754,7 +754,7 @@
+ return fp;
+ }
+ error:
+- fprintf (stderr, MSG_GET (14));
++ fprintf (stderr, "%s", MSG_GET (14));
+ /*
+ fprintf(stderr , "uumrc ¥Õ¥¡¥¤¥ë¤¬¤¢¤ê¤Þ¤»¤ó¡£");
+ */
diff --git a/app-i18n/freewnn/files/freewnn-uum-EUC-JP.patch b/app-i18n/freewnn/files/freewnn-uum-EUC-JP.patch
new file mode 100644
index 000000000000..919492d912c6
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn-uum-EUC-JP.patch
@@ -0,0 +1,13 @@
+--- a/Wnn/include/wnn_config.h
++++ b/Wnn/include/wnn_config.h
+@@ -149,8 +149,8 @@
+ #define TTY_KCODE J_EUJIS
+ #define PTY_KCODE J_EUJIS
+ # else /* !DGUX */
+-#define TTY_KCODE J_JIS
+-#define PTY_KCODE J_JIS
++#define TTY_KCODE J_EUJIS
++#define PTY_KCODE J_EUJIS
+ # endif
+ #endif
+
diff --git a/app-i18n/freewnn/files/freewnn.confd-r1 b/app-i18n/freewnn/files/freewnn.confd-r1
new file mode 100644
index 000000000000..c64e27196d50
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn.confd-r1
@@ -0,0 +1 @@
+FREEWNN_OPTS=""
diff --git a/app-i18n/freewnn/files/freewnn.initd b/app-i18n/freewnn/files/freewnn.initd
new file mode 100644
index 000000000000..ef4e20cf37c8
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn.initd
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/bin/Wnn4/jserver"
+
+depend() {
+ use logger
+ need net
+}
+
+stop() {
+ ebegin "Stopping ${name:-${RC_SVCNAME}}"
+ /usr/bin/Wnn4/wnnkill
+ eend ${?}
+}
diff --git a/app-i18n/freewnn/files/freewnn.initd-r1 b/app-i18n/freewnn/files/freewnn.initd-r1
new file mode 100644
index 000000000000..57fd448f801c
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn.initd-r1
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/sbin/jserver"
+command_args="${FREEWNN_OPTS}"
+
+depend() {
+ use logger
+ need net
+}
+
+stop() {
+ ebegin "Stopping ${name:-${RC_SVCNAME}}"
+ /usr/sbin/wnnkill
+ eend ${?}
+}
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 000000000000..f4d5668b35ee
--- /dev/null
+++ b/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+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/${PN}/59257/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm64 hppa ia64 ppc ppc64 sparc x86"
+IUSE="ipv6"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-parallel-build.patch
+ "${FILESDIR}"/${PN}-Wformat-security.patch
+)
+DOCS="ChangeLog* CONTRIBUTORS"
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e "s/WNNOWNER = wnn/WNNOWNER = root/" \
+ -e "s/@INSTPGMFLAGS@//" \
+ makerule.mk.in
+
+ # bug #542534
+ sed -i \
+ -e "s/egrep -v/egrep -av/" \
+ PubdicPlus/Makefile.in \
+ Wnn/pubdicplus/Makefile.in \
+ cWnn/[ct]dic/Makefile.in \
+ kWnn/kdic/Makefile.in
+}
+
+src_configure() {
+ econf \
+ $(use_with ipv6) \
+ --disable-cWnn \
+ --disable-kWnn
+}
+
+src_install() {
+ emake DESTDIR="${D}" install install.man
+ einstalldocs
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+}
diff --git a/app-i18n/freewnn/freewnn-1.1.1_alpha23.ebuild b/app-i18n/freewnn/freewnn-1.1.1_alpha23.ebuild
new file mode 100644
index 000000000000..e6dae1fef125
--- /dev/null
+++ b/app-i18n/freewnn/freewnn-1.1.1_alpha23.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+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/${PN}/63271/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ipv6 uum"
+
+RDEPEND="uum? ( sys-libs/ncurses:= )"
+DEPEND="${RDEPEND}
+ uum? ( virtual/pkgconfig )"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-uum-EUC-JP.patch
+ "${FILESDIR}"/${PN}-Wformat-security.patch
+)
+DOCS="ChangeLog* CONTRIBUTORS"
+
+src_prepare() {
+ sed -i \
+ -e "s/WNNOWNER = wnn/WNNOWNER = root/" \
+ -e "s|@mandir@/|@mandir@/ja/|" \
+ -e "s/@INSTPGMFLAGS@//" \
+ makerule.mk.in
+
+ # bug #542534
+ sed -i \
+ -e "s/egrep -v/egrep -av/" \
+ PubdicPlus/Makefile.in \
+ Wnn/pubdicplus/Makefile.in \
+ cWnn/[ct]dic/Makefile.in \
+ kWnn/kdic/Makefile.in
+
+ default
+}
+
+src_configure() {
+ econf \
+ $(use_enable uum client) \
+ $(use_with ipv6) \
+ --disable-cWnn \
+ --disable-kWnn \
+ --disable-traditional-layout \
+ --with-term-libs="$(pkg-config --libs ncurses)"
+}
+
+src_compile() {
+ default
+
+ local m
+ for m in $(find Wnn/man -name "*.man"); do
+ iconv -f EUC-JP -t UTF-8 "${m}" > "${m}".UTF-8 || die
+ mv "${m}"{.UTF-8,} || die
+ done
+}
+
+src_install() {
+ emake DESTDIR="${D}" install install.man
+ einstalldocs
+
+ newconfd "${FILESDIR}"/${PN}.confd-r1 ${PN}
+ newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN}
+}
diff --git a/app-i18n/freewnn/metadata.xml b/app-i18n/freewnn/metadata.xml
new file mode 100644
index 000000000000..00f1f852743c
--- /dev/null
+++ b/app-i18n/freewnn/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <use>
+ <flag name="uum">Build uum</flag>
+ </use>
+ <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 000000000000..8b0ce28db519
--- /dev/null
+++ b/app-i18n/ibus-anthy/Manifest
@@ -0,0 +1,7 @@
+DIST ibus-anthy-1.5.4.tar.gz 592595 SHA256 4c0a8b88a2c547e72173a7d682d82797f6c65fe712abe5f3b89495d4eec7b031 SHA512 8478e9ea14472d0153cc7a35feae4edea791476dc98cfc266b598f915376d267bd5db48ea0a676209d7a6fa680628116a30fec59afaf696477cfaa14082aad8d WHIRLPOOL f4aec300dc5cff62f81a3ae64ac2d46768e3fbaa579e14abac8bd87e0801155e8258f6f3d66d7015122e929cd2e0f48183aeb37245b3046afa3d80b8ce42d58c
+DIST ibus-anthy-1.5.9.tar.gz 765672 SHA256 ddf0c52ef769c79cf04ceea8860b4bec54d681b7537db39730e6d67c06721af9 SHA512 2f57db784ddbd4ea57afba245dc532fe4ee8c9fea5fc7df9b3ca26600816ef4c0626b4ebdbbd976826c391890216af587863707caa26c3926a6278cc6b720ef6 WHIRLPOOL 990b15bad9ed2089f7ee6a4b807dabf9001f184a935aeec40ce12f2fa0b9449c55b087444873684b7be2c41ef13f0faa5035913e458707c716df89a7762f2075
+EBUILD ibus-anthy-1.5.4.ebuild 1179 SHA256 277fb69a9890188a1436e5895b3312a6d2d6af12cf18d2424d6d9885d1343c29 SHA512 793171aff437ef72e3a690662dbaacca1f9fdaef263dd1c59819900cb9c186ca5b2bede38e80aa5703869046d2476877efaa82e869c73aaa3d0b15e2b3434b9a WHIRLPOOL 26137103140cb7fe751c98bb129fed36e00e753b0959a8a843ac873366dad2217b4d8bd43aa094c36d936ce8bbc26ae90ac7a45427cca0f45b5a9337b03716a4
+EBUILD ibus-anthy-1.5.9.ebuild 1224 SHA256 e348b6af61e545b5d79d37d50a19b964e7246a9c54370d195187f2e513ab1380 SHA512 7a464ae0ebed17987f624ae5228a6453e3a6127c84c00d0dcd6153b53177e753888b3eb1a76d5a04e8d758f0015ce310e5a9f3d7516abb7f109173aa267077e4 WHIRLPOOL 7b9a1b59060371bb7693a70ebeada59422cfdb277c1c425cd2261ed128e1c9adb3c71c8f54fc928c4e94d9393e4163c9bed89e8f2155b33194e9dd9521aa6ef1
+MISC ChangeLog 3880 SHA256 583d3bb387655c483d644e5dc1f355c8ffb5cd2f5ec0523ea584cfd283bb310e SHA512 e4eba3bc6840433db6ff18b488f44eb407d414d529514d521f879aac8ef87796a60cba6e7b7eab4fc8d5b6f7a28be0f8c58658823c748babd8fe0835ae19292b WHIRLPOOL 2d6d4e9bad32f29ebe7329a9c298afe435e2f62c797762dfb6c77017c7e65305e7c75a4e18a3a4808f6c41cec4dfe0acc4861ddd8950a84a2e6a513a2fc1ef63
+MISC ChangeLog-2015 8073 SHA256 a0870a23ed5f282e3497da56929cb55a70611c3ca4a2d15de90690a8b5faa258 SHA512 b96158b593cae00999caff796bea4145a0104bbf11b4b38190c66761b3f540374e3e9ca41b85517f218592566e6c028196dbfd20ccfb86c15ab862e108dcacb0 WHIRLPOOL 4b3a1fe0b51eb2a166a3ab57a68dd46f5b0376bc706b216e328a4296735c0b0da5aca7693a869dea16d06bec286518603670b159138c689385520d69e8364aec
+MISC metadata.xml 476 SHA256 44d9924a7e4bcdd81fdf3f28426bfe886da44093cfa4b9499642fe155b3b0c0f SHA512 024c387b5eb01279f8803df81b1d7dc2b86969ffee5986bef75987c066cce48f7d1fe8ea35790be4fafbff2281850f2b03904f41e06bc37fc9d40537eca96c07 WHIRLPOOL 5744f488e8486294d96126538008e137613ebbc08506100750e430d7a00f7c7271346201b4a24941c83e14c61989c5001b4e94d135d11ac5cd21a383a82eb267
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 000000000000..9277d4dffee7
--- /dev/null
+++ b/app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+
+inherit gnome2-utils ltprune python-single-r1
+
+DESCRIPTION="Japanese Anthy engine for IBus"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://github.com/ibus/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="nls"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-i18n/anthy
+ app-i18n/ibus[python(+),${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ default
+ gnome2_environment_reset
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ --enable-private-png \
+ --with-layout=default
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+
+ python_optimize
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+
+ if ! has_version app-dicts/kasumi; then
+ elog "app-dicts/kasumi is not required but probably useful for you."
+ fi
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild b/app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild
new file mode 100644
index 000000000000..d323809cf182
--- /dev/null
+++ b/app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit gnome2-utils ltprune python-single-r1
+
+DESCRIPTION="Japanese Anthy engine for IBus"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://github.com/ibus/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="nls"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-i18n/anthy
+ app-i18n/ibus[python(+),${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ default
+ gnome2_environment_reset
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ --enable-private-png \
+ --with-layout=default \
+ --with-python=${EPYTHON}
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+
+ python_optimize
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+
+ if ! has_version app-dicts/kasumi; then
+ elog "app-dicts/kasumi is not required but probably useful for you."
+ fi
+}
+
+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 000000000000..384ad03f3758
--- /dev/null
+++ b/app-i18n/ibus-anthy/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ The Anthy engine for IBus. It provides Japanese input method from
+ <pkg>app-i18n/anthy</pkg>.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">ibus/ibus-anthy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-cangjie/Manifest b/app-i18n/ibus-cangjie/Manifest
new file mode 100644
index 000000000000..8d90ca3ad80e
--- /dev/null
+++ b/app-i18n/ibus-cangjie/Manifest
@@ -0,0 +1,5 @@
+DIST ibus-cangjie-2.4.tar.xz 150616 SHA256 299a60f1df063bfadc68c5420cbddb5d1a0de31935d95e414f75e0f93e27ba49 SHA512 cef9562fc4a5f3b78881c09b43e502f02322148e501022d3f80989caef4ca98ae26903e9a3dcc422feeba7712a8321c731ba229429e52fe919db5144aa0ead47 WHIRLPOOL a183d66bc53007046a2b3ffb778e6f08c39c709cb5e0d5558e5db617155bb4bc1de2df015f5668f4d6022faecb816171766039658ee8e69621abb0d73869d82d
+EBUILD ibus-cangjie-2.4.ebuild 1076 SHA256 95df41f4f7af53d6eaa7944df9c0b7c04a18b893b0bbd780a60e65ad112870b7 SHA512 4b6e6f7da94cea419fc6583df02e53f8057a555068b7eb97b5b075f50efaecd8ef4458a1c02479421a4800e5de3adc69b1d41678a77cab4a51fc77a5ef6a9acc WHIRLPOOL dbdb0ae02a2c134cc83d27dbaf41d5a1580d4b37bb60cbd0f8587da669d8d6a2add42e8fe1cd1679aa1bd8eba566f9df61732b9592bb69bc11c00164989f7408
+MISC ChangeLog 3235 SHA256 82c5d5a21a9626637fdb15479628044ab8f7a2b1dc1add7a676cae9963ff0251 SHA512 6b5c0ff574e5adc840cb9e904fc08b69083ca5a616a904ebef27d7a6a035e9e64c5c859a2bfc30beb7f6310468f09171e456e7e45565a23acca38d90bb48fdfa WHIRLPOOL 637162bb69d11b1c738ae5bae3fee6d92ef18d9dd39ef2a5e676db5f86a1efad516fa275dfd64c4bdaa8d57a55f594ddfbb963c435e4d3463829b28ac7e60981
+MISC ChangeLog-2015 1442 SHA256 be0d5599f63de87252715daa40dfaa2c701bfecefad707a7cf52a415de60e913 SHA512 79d2f5b2efcbb4de99ba9d13109893a7bed9a8b8d2f4db98347ad0cef17cc73eb16cb6117401236b8504f80143378ce73b5247f40b43357efd4cbacde0b77b9f WHIRLPOOL 885f2933de01b8c7a736cc8f4889e807434fb3b0a9d286fa3e8db5477cb0ec9036d654bd9247607505f4946f587fd882b6bfa2ac26b5f2238f3767c97b51d48b
+MISC metadata.xml 636 SHA256 ef6861a7c60ebb094c6c780076f9636fba2f44dc9442bd3e13b2446ff977c019 SHA512 1984f0059602251578066225da183218864c033017a209abe531140d282461b000a7bf4d345960cf56ef3f69cf447f038540f4da29132afe64bc8b590aae6976 WHIRLPOOL 2f783fcf998f650af9cc486b68b5a2a630028f0198e9e30b21a25342388149642e736bdebbd16a096a1c5c73e3ef32bbce9ec25febceeb4d9433f1509dc20d6d
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 000000000000..766065c32132
--- /dev/null
+++ b/app-i18n/ibus-cangjie/ibus-cangjie-2.4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+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"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+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 000000000000..a6c60ba64e33
--- /dev/null
+++ b/app-i18n/ibus-cangjie/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>brendan@horan.hk</email>
+ <name>Brendan Horan</name>
+ <description>Proxy - Maintainer. Assign bugs to him</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </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 000000000000..e5f06dbf9235
--- /dev/null
+++ b/app-i18n/ibus-chewing/Manifest
@@ -0,0 +1,8 @@
+AUX ibus-chewing-test.patch 1700 SHA256 fc58273278a98152416f7a9971288e05b4ccb6d0028d94248aa94ef66d5a5ad0 SHA512 124042ccebc509116661dd732b4bbb237a3962518a273701da7d4a20ec0109a3f5b850380c712e457df947e146c189a2606976262915d3973211b70b7464c061 WHIRLPOOL c6209723b108bac9f2f154d3ff000b1110a4d61a04270dbea7096f89f33d6bbbd68d9123a013c9fe85b0c327e9204ed2254df8cb37890df65b01fecbfce5a642
+DIST ibus-chewing-1.5.1-Source.tar.gz 177044 SHA256 687ce9f09fef31b0e31ad0d2f1be17f1ca0b9212af9d71812cf53d84a90f0060 SHA512 2db6def1fe8ca3bd71419a001909d285ee48ef84c2f65e14bacff9cd114676bed594f0c90217e1fdab67c995a7b05d675812e90e281371d8464722c31649c633 WHIRLPOOL da566ec63b8733e2a80890c8f045829a101da0eaea11592b44541be2e92b57a1425fa65b5bb6868879ff588e798036056473f0e78bc228b90ce40650771c02eb
+DIST ibus-chewing-1.6.1.tar.gz 111103 SHA256 3dd7911d6eaa20c3b8b9d8e4deb38e2074aa900c0956eb75946d455d27579b63 SHA512 b093db79c656433614b9f72719a2b0768a30c2fb6fa066eda1e79cc9932ce1836f7f1e5611612fb44f260fe80a9baa9e18fdc9754b285e8a5f12a87c376cbd39 WHIRLPOOL 9213f6b6e3e0c8290f09b2f8cc92de8a0f86d5d07e1a2805a01148a0c5bce471d2607a8925e848bf44107f0288798c74e127a427fe0143ea919605956778aca7
+EBUILD ibus-chewing-1.5.1-r1.ebuild 1448 SHA256 2333139b23bc4bb0c8d44400d459b55119e5bb3d3d8e797757c94e99239fd2c4 SHA512 1920f9e0d121ed7aac0ebb6d5bf709c80df35b7f11d06e02e63ad68b46aa30a08d955236b916ad88abd30b38834e1872a8bda0b81caaadb63a6c51e3856e9a10 WHIRLPOOL fc8cbb0fda8f4abaa867909a81afa8f29f615358f5263fd08e391e2a9c9a2434f4519e4e98501714e5f21eb4ffcc547b20e5f6956095ca50c15c99585f26e04e
+EBUILD ibus-chewing-1.6.1.ebuild 1428 SHA256 3338a3a3335bd47bdcd86c86e0f40f7bc6a3f1290e619bb919b3a4144dd139ea SHA512 280a2b71c2cbebf818b694933de93ad0b3af6dd521848b05d2f074d58d51111ab1a51011017896b670e62987dbe1ecd2c24c6268d2cd199a8951ec0c3ec35abd WHIRLPOOL 33ad9af739d44097d351faf82f946749553b3e9b1dc085d4cfd75280e463aa3b253a32480c506934d27e9f2c5c02224595b05d9c02ea9c6e3bbafe5df0e123d1
+MISC ChangeLog 3389 SHA256 9eee92be20ca7ebcec8f0e1c78a92ffa84e2c3c31ba6d1d81fe6b4e0b9e21deb SHA512 3eeac3f7f553215c0a2ce1cbe278ce8501e391d966e2a25486189924251da0633d186f1b3cf8c12703f983895362127ad6c4dd1ceb879f074c034ba461dba6ed WHIRLPOOL ab1f2b3a000b15f6996fb80c748a554e3c00e0815cc159f5ebfc96af1c5e80f055d972dc35d4ed4ac9bd61349e6f0d8d415ccfae15361c61242af2d352211da9
+MISC ChangeLog-2015 7606 SHA256 dfc6066d703440fc36063c42de857438fcba49495e24d66a4ea8ea289185e03d SHA512 da79797491697247a655386a106e485400600ddd7cdf470d6f41a097eacd70dcd6df7307e0785b3aa24159d1d284558ddd178aea99c4c482a31a4b0bd5ce744d WHIRLPOOL b7444fd6c2f2da5fe51b4fd9324d4c19e4906a3b11c37bb635c3c616003e950ec16394767cc1503d9d234060344b6bd5d658861ef55ca5af83356ddafa3d7805
+MISC metadata.xml 584 SHA256 7a7c871f59dd1e9b26e3cfba9647960546ee42bb1ae17a8f031d694560edec8b SHA512 ea88b32df0e2ecca5f472339a7602ddf65523cb186a7a372bfab762803db50020369b4cb1ba457bad3e364e3ef867c2ce2f0e485525b55693860aa2ecee595e9 WHIRLPOOL 5ca330655b41f4f47e32531c04960d48afc8bf4e50e95d22dfc921836d14d108bd5108e3baf9592f6aa20e5070a7aeadee55c78cf085bc93f1ad10bb13de8574
diff --git a/app-i18n/ibus-chewing/files/ibus-chewing-test.patch b/app-i18n/ibus-chewing/files/ibus-chewing-test.patch
new file mode 100644
index 000000000000..abed91d377d3
--- /dev/null
+++ b/app-i18n/ibus-chewing/files/ibus-chewing-test.patch
@@ -0,0 +1,45 @@
+--- a/test/MakerDialogBackend-test.c
++++ b/test/MakerDialogBackend-test.c
+@@ -126,7 +126,7 @@
+ void backup_key_to_g_value(const gchar * key, GType gType, GValue * value)
+ {
+ g_value_init(value, gType);
+- backend_command_get_key_value(key, value);
++ mkdg_backend_read(backend, value, QUOTE_ME(PROJECT_SCHEMA_SECTION), key, NULL);
+ }
+
+ void change_new_value_from_orig_value(GValue * newValue,
+@@ -169,7 +169,7 @@
+ {
+ GValue storedGValue = { 0 };
+ g_value_init(&storedGValue, G_VALUE_TYPE(newValue));
+- backend_command_get_key_value(key, &storedGValue);
++ mkdg_backend_read(backend, &storedGValue, QUOTE_ME(PROJECT_SCHEMA_SECTION), key, NULL);
+ g_assert(mkdg_g_value_is_equal(newValue, &storedGValue));
+ g_value_unset(&storedGValue);
+ }
+@@ -219,7 +219,7 @@
+ #define GCONF_KEY "max-chi-symbol-len"
+ GValue origValue = { 0 };
+ g_value_init(&origValue, G_TYPE_BOOLEAN);
+- backend_command_get_key_value(GCONF_KEY, &origValue);
++ mkdg_backend_read(backend, &origValue, QUOTE_ME(PROJECT_SCHEMA_SECTION), GCONF_KEY, NULL);
+
+ GValue newValue = { 0 };
+ g_value_init(&newValue, G_TYPE_BOOLEAN);
+@@ -229,13 +229,13 @@
+
+ GValue storedValue = { 0 };
+ g_value_init(&storedValue, G_TYPE_BOOLEAN);
+- backend_command_get_key_value(GCONF_KEY, &storedValue);
++ mkdg_backend_read(backend, &storedValue, QUOTE_ME(PROJECT_SCHEMA_SECTION), GCONF_KEY, NULL);
+ g_assert(mkdg_g_value_is_equal(&newValue, &storedValue));
+
+ /*
+ * Restore the original value
+ */
+- backend_command_set_key_value(GCONF_KEY, &origValue);
++ mkdg_backend_write(backend, &origValue, QUOTE_ME(PROJECT_SCHEMA_SECTION), GCONF_KEY, NULL);
+ #undef GCONF_KEY
+ }
+
diff --git a/app-i18n/ibus-chewing/ibus-chewing-1.5.1-r1.ebuild b/app-i18n/ibus-chewing/ibus-chewing-1.5.1-r1.ebuild
new file mode 100644
index 000000000000..6e551a4ca242
--- /dev/null
+++ b/app-i18n/ibus-chewing/ibus-chewing-1.5.1-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+CMAKE_MAKEFILE_GENERATOR="emake"
+
+inherit cmake-utils gnome2-utils virtualx
+
+MY_P="${P}-Source"
+
+DESCRIPTION="Chinese Chewing engine for IBus"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://github.com/definite/${PN}/releases/download/${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gconf nls"
+
+RDEPEND="app-i18n/ibus
+ app-i18n/libchewing
+ dev-libs/glib:2
+ dev-util/gob:2
+ x11-libs/gtk+:2
+ x11-libs/libX11
+ gconf? ( gnome-base/gconf )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}"/${PN}-test.patch )
+DOCS=( AUTHORS ChangeLog README RELEASE-NOTES.txt USER-GUIDE )
+
+src_configure() {
+ local mycmakeargs=(
+ -DMANAGE_DEPENDENCY_PACKAGE_EXISTS_CMD=false
+ -DPRJ_DOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
+ )
+ use nls || mycmakeargs+=( -DMANAGE_GETTEXT_SUPPORT=0 )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ "${EROOT}"${GLIB_COMPILE_SCHEMAS} --allow-any-name "${BUILD_DIR}"/bin || die
+
+ export GSETTINGS_BACKEND="memory"
+ export GSETTINGS_SCHEMA_DIR="${BUILD_DIR}/bin"
+ virtx cmake-utils_src_test
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_schemas_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ gnome2_schemas_update
+}
+
+pkg_postrm() {
+ gnome2_schemas_update
+}
diff --git a/app-i18n/ibus-chewing/ibus-chewing-1.6.1.ebuild b/app-i18n/ibus-chewing/ibus-chewing-1.6.1.ebuild
new file mode 100644
index 000000000000..ea2e88eaa3f6
--- /dev/null
+++ b/app-i18n/ibus-chewing/ibus-chewing-1.6.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+CMAKE_MAKEFILE_GENERATOR="emake"
+
+inherit cmake-utils gnome2-utils virtualx
+
+DESCRIPTION="Chinese Chewing engine for IBus"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://github.com/definite/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gconf nls"
+
+RDEPEND="app-i18n/ibus
+ app-i18n/libchewing
+ dev-libs/glib:2
+ dev-util/gob:2
+ x11-libs/gtk+:2
+ x11-libs/libX11
+ gconf? ( gnome-base/gconf )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/cmake-fedora
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+PATCHES=( "${FILESDIR}"/${PN}-test.patch )
+DOCS=( AUTHORS ChangeLog README.md RELEASE-NOTES.txt USER-GUIDE )
+
+src_configure() {
+ local mycmakeargs=(
+ -DMANAGE_DEPENDENCY_PACKAGE_EXISTS_CMD=false
+ -DPRJ_DOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
+ )
+ use nls || mycmakeargs+=( -DMANAGE_GETTEXT_SUPPORT=0 )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ "${EROOT}"${GLIB_COMPILE_SCHEMAS} --allow-any-name "${BUILD_DIR}"/bin || die
+
+ export GSETTINGS_BACKEND="memory"
+ export GSETTINGS_SCHEMA_DIR="${BUILD_DIR}/bin"
+ virtx cmake-utils_src_test
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_schemas_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ gnome2_schemas_update
+}
+
+pkg_postrm() {
+ gnome2_schemas_update
+}
diff --git a/app-i18n/ibus-chewing/metadata.xml b/app-i18n/ibus-chewing/metadata.xml
new file mode 100644
index 000000000000..e44e996ccd57
--- /dev/null
+++ b/app-i18n/ibus-chewing/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ The Chewing engine for IBus. It provides a Chinese input method from
+ <pkg>app-i18n/libchewing</pkg>.
+ </longdescription>
+ <use>
+ <flag name="gconf">Enable support for <pkg>gnome-base/gconf</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="github">definite/ibus-chewing</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-fbterm/Manifest b/app-i18n/ibus-fbterm/Manifest
new file mode 100644
index 000000000000..f5569f47cef6
--- /dev/null
+++ b/app-i18n/ibus-fbterm/Manifest
@@ -0,0 +1,5 @@
+DIST ibus-fbterm-1.0.1.tar.gz 244979 SHA256 5b80262a02433d73ee01753789ba21a8e3e5a2deac7b506cb0ba16ecdb590a33 SHA512 6900a37444f15820cf383dd928107fd900f1677d8da5b4cc318e97b1227d412e098e8d476194da77fd4968b296729dff79a9c51d289b82e3b9a9485a05754f04 WHIRLPOOL 6ec061d7f6ff4918f009c729ada2745b4fb83ec77a831a4a740d615df3fd59d3268707a65b59477636de2b92793e04effd92e87b4f6541f64b9026c1c90c64cf
+EBUILD ibus-fbterm-1.0.1.ebuild 443 SHA256 2acbc7140efebb89fa6f41a7ce27233a0214fb699f8d61e93ea2d3255b156971 SHA512 597127d164b9e9e6b1eb6d721e3c4a76e2d6225602ca7afbdd7820d303583791cb898b4258939ffc09471eff1b48cf49adcc5a662f6d049f22896b0aaa038a17 WHIRLPOOL 5b674b7cc58b6c4bd00d9cdb2f25c3115d2323233e09bdcea07361a0b60cb44f80d16144590d64aadd031a16272b4e7255b0c453ff2dbfce5ad272d0090cfec0
+MISC ChangeLog 2697 SHA256 a3b87376b9612dbc93db825caf547bbd0a5f36d70b0118d83e8630f68c48c47a SHA512 0c333fdc0741cf882f9e58ac1458e82cc07431233c3c4782a10ad57362cc60f42a825f1a9bfb6b4c043360eb7c33d20ea4e282f0d0c51a5b73829bc2193595c7 WHIRLPOOL c9002e76bb4eeca3d1e96a672c2185dd03d0173d7d5915c683dcd5cf607a7e24bd0f336eca78535d748df472798bff19a143e030eb60849a2b8d29fe8be8d31a
+MISC ChangeLog-2015 709 SHA256 c741e1d75ea0aa71b62f30a586015b0bdc7fa75545e73ed589e2430942692b3b SHA512 533f1f4c8408ff6890a462bda23701e6e5703bc973f1c7db72756c6f28af5261d8a5775f562f1d486586650a80c8442241ef82c47d8a13b57d2dcb94deb4fd65 WHIRLPOOL ef6ef307597232efd895428cd113e0eafa6431d9088b3a6ce4e9bdb61cc3e77038412a6197baae76ef48206b03da1cbd39044cf42673c53eddf4b8f87177c132
+MISC metadata.xml 330 SHA256 ee82dce5d147b731ed495cf7b435a886cbad483eceded170dd0c8b49da9f29fd SHA512 03dc033bdc5c8ddb52d587457f1250984d46755764bbb628179b9899fe4a82b49ff277385c8855ca65eab744cd0107bee8a952c0775719822ab0002311ffe5d6 WHIRLPOOL e2471349553b55a3f4c4a3acdb7035020b894cdcab9159eb33c439de23089014b4ca6567390dd6a70fc2692f2e8d9b03686b51e77a376f372f40c364c025bb82
diff --git a/app-i18n/ibus-fbterm/ibus-fbterm-1.0.1.ebuild b/app-i18n/ibus-fbterm/ibus-fbterm-1.0.1.ebuild
new file mode 100644
index 000000000000..81fd871b7bf2
--- /dev/null
+++ b/app-i18n/ibus-fbterm/ibus-fbterm-1.0.1.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="IBus client for FbTerm"
+HOMEPAGE="https://github.com/fujiwarat/ibus-fbterm"
+SRC_URI="https://github.com/fujiwarat/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-i18n/ibus
+ app-i18n/fbterm
+ dev-libs/glib:2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
diff --git a/app-i18n/ibus-fbterm/metadata.xml b/app-i18n/ibus-fbterm/metadata.xml
new file mode 100644
index 000000000000..884cfd6920fc
--- /dev/null
+++ b/app-i18n/ibus-fbterm/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">fujiwarat/ibus-fbterm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-handwrite/Manifest b/app-i18n/ibus-handwrite/Manifest
new file mode 100644
index 000000000000..aab112a850af
--- /dev/null
+++ b/app-i18n/ibus-handwrite/Manifest
@@ -0,0 +1,9 @@
+AUX ibus-handwrite-headers.patch 406 SHA256 68f74f556d996000a3482e6b94e7699439fd6eba3e84ed95278970b72639ec74 SHA512 4629c68451d3b3ede478b03241d58c66f1a94be0caa05b4cf22d0287beb059c807e398457f0aaaccc6d0f85b9cb987153bae213d949e78afc2c66a6880baa7d7 WHIRLPOOL 42854c5b03dc9473960c9fdd933dd72f97b7071e78f737d473e377deedfca4eedd421d1e0fb474fa125dc25b3f72ea4bd7e3f61a575d026755c06318f3fbc224
+AUX ibus-handwrite-link.patch 194 SHA256 d71cd893f16cde66add852dde7376d85fc81a38b5d84395ade2aac28cf029f71 SHA512 52d376687473a4dac3f679eae8d68d6457669f0587fb9d4a141b40318060acf552c00cff1f048497699f0a7d3f33f2b0271ed727f2c747f5fa7539d2550fd8b1 WHIRLPOOL 6e9e5cc68a5e13283402bc462e7ac2e8bf29970fccb58caf72b80df13bd24ff9864d41d05402448e380b3aabc361fb474be1f5b8c89e87d75c25085d85e803ed
+DIST ibus-handwrite-2.1.4.tar.bz2 237980 SHA256 fa4ec0624e1ca904d8026fda75a26f0edd3ac6c781c28c03262e4c6ec52ceb34 SHA512 fca7129edb7433e7ea6df1ce67b3f27285fe102cc029a7a1bdb8ba0402407bd81724d1b14667d342ef41491acff03e9c152b748e4fee5387f315d4673c2964e6 WHIRLPOOL 13facb5d7c4a34586202cc1d6b46eb857aaf3649fb64ca44a5b367135860217c554d0cf48656096ac43cc3411b0466c9b2a468d9e2dc99ddac4d7729ff0ad6d9
+DIST ibus-handwrite-3.0.0.tar.bz2 239452 SHA256 f7483f44fb9cc70f066ab43e891e2eb757a46028947dd1bfbc70cb2afadac0e5 SHA512 ed9b2b35919f3e061230c7085c88e5ce80ee978ffa7f8391e74364e8d6152f0d88a08f91ec58b55fc7067e9fe45d03018760ccfca7b026f36211fa344d16c9b1 WHIRLPOOL ce33df8f846b2bb89d396c292832cfe44759b6d9f88480344be16655f791a0962a2fcc4eaed50119242e604b54d20876a6250cec41b1ef943d475789d3affc9c
+EBUILD ibus-handwrite-2.1.4-r1.ebuild 910 SHA256 159efb06ac9a401f5bf40d1efd5a304b4bd416a062edf29a3ca7d3fe8f474e6b SHA512 d40ca6abf5ae79c4edf80821c22fc67b834a854e68e0e8019c23a35b0c377061921ef96a919397427fb3e1219a6608b3eb426e3e03704370d04908e1d9e17179 WHIRLPOOL cc7254b7fc8e78cd1079b4f8ec29b544412ac699bed05e2e187e40f7d63a76ac21d0632f249a6d55e99ace734b3714a4ec8507dd40875433599b513cf48ca611
+EBUILD ibus-handwrite-3.0.0.ebuild 794 SHA256 a4f6f22ddbed93f73f6465b0b535f8e886b2ffe1d9d15b50d712d60e0508803a SHA512 3047b4d6131a5b7127823883a2e8851e0696a4e25a07e120124410a792f8a873165a7ecef499cf542bb822e20cc40fc8f72b1c0bc451a7180f5e426cee6d01ee WHIRLPOOL f0bcda710ebd77050947aca94de705da05aa1c13e688e9f6192b5d52b47647f71d2f7b5caad296afc2f185024e7693d307eb8298d6bdc48305d143b9d6fb5fac
+MISC ChangeLog 3211 SHA256 2e2a7c24a3732a3750f66e5711cbe1f2a673d97fb882d1a328d587ca7e8644bf SHA512 3684f0a9b90ed56f1381961643a2b11a20f2f898c5ca665395b0fc72da0d1b43ec9c44306574908df09f838a81c74697bb1335a127562d389614a47a55599621 WHIRLPOOL 1702edfce951d0005098237297b4d1a9766c75b1589ea044afacd42a6cca7252ba079382226544fe84cce3561d59d20f82365d79046a62b736090affbf684569
+MISC ChangeLog-2015 1149 SHA256 de479bf35a1fc8e0fae62de9ab03574ac0177b98955c55cdbc62803c5353a781 SHA512 84713ac14897f38445fcd7a3a6a79be683ff8f5187f3a756a0287e068fe366c95f1394eeaa02295e1c2a51353ffbedd5184ed87faad81e1cc3782e1bc7fa6dc7 WHIRLPOOL 9739372b0d3a11206d8bb114391892ba5552d410270d0c8aaeaee4f94dff79ddeab7cd354c26569031cc14ca7b744f8684605b8b6c6e462046af2c880de51a8f
+MISC metadata.xml 334 SHA256 f6a482aa63e834c82a91cb32f371c28581eb2419b8318db436b39be8898f4579 SHA512 628e07c785b2e40e4885e4b59a8c8f7c264ed651490f7cc4e0ac253c6f263def9aa9fdb8a5edc41e56381335510a654b171ab05ff9b6006f3c4a77a004226227 WHIRLPOOL 84781f35e863de4806db304da7d2fe4903b87108678992b2a4767acb16036870929362e6ad04b19a9cfa7a02960f3505e0d31845c7b61e8fecc0b79165f4dddd
diff --git a/app-i18n/ibus-handwrite/files/ibus-handwrite-headers.patch b/app-i18n/ibus-handwrite/files/ibus-handwrite-headers.patch
new file mode 100644
index 000000000000..f1cb4d574624
--- /dev/null
+++ b/app-i18n/ibus-handwrite/files/ibus-handwrite-headers.patch
@@ -0,0 +1,20 @@
+--- a/src/handrecog_lucykila.c
++++ b/src/handrecog_lucykila.c
+@@ -14,6 +14,7 @@
+ #include <sys/fcntl.h>
+ #include <sys/mman.h>
+ #include <math.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <glib.h>
+
+--- a/src/main.c
++++ b/src/main.c
+@@ -3,6 +3,7 @@
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <ibus.h>
+ #include <locale.h>
+ #include <gtk/gtkgl.h>
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 000000000000..1d8415fbaf8f
--- /dev/null
+++ b/app-i18n/ibus-handwrite/files/ibus-handwrite-link.patch
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -80,6 +80,8 @@
+ AM_CONDITIONAL(WITH_ZINNIA,[false])
+ ])
+
++AC_CHECK_LIB([m],[atan2])
++
+ # 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 000000000000..6965a9cf27eb
--- /dev/null
+++ b/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+DESCRIPTION="Hand write recognition/input for IBus"
+HOMEPAGE="https://github.com/microcai/ibus-handwrite"
+SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls +zinnia"
+
+RDEPEND="app-i18n/ibus
+ x11-libs/gtk+:2
+ x11-libs/gtkglext
+ nls? ( virtual/libintl )
+ zinnia? (
+ app-i18n/zinnia
+ app-i18n/zinnia-tomoe
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-headers.patch
+ "${FILESDIR}"/${PN}-link.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable zinnia) \
+ $(use_with zinnia zinnia-tomoe "${EPREFIX}"/usr/$(get_libdir)/zinnia/model/tomoe)
+}
diff --git a/app-i18n/ibus-handwrite/ibus-handwrite-3.0.0.ebuild b/app-i18n/ibus-handwrite/ibus-handwrite-3.0.0.ebuild
new file mode 100644
index 000000000000..25419a692eb1
--- /dev/null
+++ b/app-i18n/ibus-handwrite/ibus-handwrite-3.0.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="Hand write recognition/input for IBus"
+HOMEPAGE="https://github.com/microcai/ibus-handwrite"
+SRC_URI="https://github.com/microcai/${PN}/releases/download/${PV%.0}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls +zinnia"
+
+RDEPEND="app-i18n/ibus
+ x11-libs/gtk+:3
+ x11-libs/gtkglext
+ nls? ( virtual/libintl )
+ zinnia? (
+ app-i18n/zinnia
+ app-i18n/zinnia-tomoe
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+PATCHES=( "${FILESDIR}"/${PN}-headers.patch )
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable zinnia) \
+ $(use_with zinnia zinnia-tomoe "${EPREFIX}"/usr/$(get_libdir)/zinnia/model/tomoe)
+}
diff --git a/app-i18n/ibus-handwrite/metadata.xml b/app-i18n/ibus-handwrite/metadata.xml
new file mode 100644
index 000000000000..23f5c6be388a
--- /dev/null
+++ b/app-i18n/ibus-handwrite/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <use>
+ <flag name="zinnia">Enable support for <pkg>app-i18n/zinnia</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/app-i18n/ibus-hangul/Manifest b/app-i18n/ibus-hangul/Manifest
new file mode 100644
index 000000000000..bf4a900330a3
--- /dev/null
+++ b/app-i18n/ibus-hangul/Manifest
@@ -0,0 +1,5 @@
+DIST ibus-hangul-1.5.0.tar.gz 505707 SHA256 a22d4030bb20f73914a9d8a28c71b823123a5d1902a30f8328111af50f4f1788 SHA512 a9bef9ad887d1b41555af12e7589a9c4c69ddf4f61890907d90cbab6b9bf4cb6df4739c54d34ee1b2507486a1cb568f826bb4641e9ccee8ccfa11ff2d7e962bb WHIRLPOOL fef54dd65cb6ecee1a703f93db9d46d08ce12fa15df00c59197bd4dea1bb1d00bec4e25d765ffe2e1cae7da796d16ceb04bd46657617d363e0933f6beebf55f0
+EBUILD ibus-hangul-1.5.0.ebuild 935 SHA256 9b9ac678c32d671ba78e75ccfb4df4f649b58fa80035588ebff95e1124b7ea2d SHA512 09b7c95e19af3dc76168b94d2a610eea1dcad3d72b4bb203cf2b785fdcc780e1b09e21118b1a7d6dd28c0932b83e9c28f977d15c220dc8e118585f577037cf87 WHIRLPOOL 772f108ffd5bf28ff0fcbd41c65f79f7cb36c60de90299fdd73cb741ddc70a0a1088e24a9df634f5b668c9dc20efde65aa29571b0abf6a865972513ec40ba34f
+MISC ChangeLog 4385 SHA256 cd412cebd97daafd91e37e36c05e4c16e4ed063ed895e9a74227615b794aab92 SHA512 ad5ffee6fa377b0c596867f8cbf5fb681b2f4f5f0bbb5a24d110ca35bc70d8917eb1de7f15820b5e9e6e4a6c043854fb43e7dbdd24ad63bcd9f8dbba84d7b031 WHIRLPOOL 35915c9a269098e97a62d580327ee8bd68a1ec0aadd4c260014d91fa0de526d483d8e5d8423144fe65da7e799647d835e6fa52e5d437013873d89402bfc04647
+MISC ChangeLog-2015 5036 SHA256 4499e05fc5d0c5e3f02828dd432e76469dbe9a081f52261e89733fb2eb5e9bd1 SHA512 e35ba80fcbdaf102cb81e951229ba649b44f11b09030a5a781fbce695dc157546ab6e16baaf518b92a9bd8921a359db8b230d50d56d6e0a5892720c7e3c0b23e WHIRLPOOL 9528eb2bfff472b6ac3cc7a4a9037dadc14c41fb0f085020bb64c6120cf482ed663f9257837f545c1998b1a8c069f77c4ed0f70329aeafeb6653393632392557
+MISC metadata.xml 488 SHA256 09424887023cacab8988871adfe0dbf6f85683289b392df165a75ba4ff6edabe SHA512 e46e56035a8bd336671564f460a30d5de6951ff53f6bd2567b4a17fb1fb661644caf4c4a40b7cd237cb57a19a71f174f243dea5e16eca490bda9116ce14ebd22 WHIRLPOOL 3ded3588eb89a8a41a548dc607eb9a952c0681516bdae530881776c0cc9721152e0371a693c0f6b075f4aae5d3f9768dfab01ecd3daa5c7536ff482df1fbf245
diff --git a/app-i18n/ibus-hangul/ibus-hangul-1.5.0.ebuild b/app-i18n/ibus-hangul/ibus-hangul-1.5.0.ebuild
new file mode 100644
index 000000000000..38435562f840
--- /dev/null
+++ b/app-i18n/ibus-hangul/ibus-hangul-1.5.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="The Hangul engine for IBus input platform"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://github.com/choehwanjin/ibus-hangul/releases/download/${PV}/${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/metadata.xml b/app-i18n/ibus-hangul/metadata.xml
new file mode 100644
index 000000000000..7f550752e704
--- /dev/null
+++ b/app-i18n/ibus-hangul/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <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>
+ <remote-id type="github">ibus/ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-input-pad/Manifest b/app-i18n/ibus-input-pad/Manifest
new file mode 100644
index 000000000000..be12ab6b0291
--- /dev/null
+++ b/app-i18n/ibus-input-pad/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-input-pad-1.4.99.20140916.tar.gz 415453 SHA256 adf203b4e37fc2c0c0f197ba431c83d86943887e764d99aec0360fb3b9531652 SHA512 6b03dff097d06ff7b51393ce49c04faa169152c5b02d2cfbcbfab480a00920bdeb7f5e6ebfed19bdee792fe9b52e0aacda0ff629fccff24523f000d8915c56ba WHIRLPOOL 70f7bab30387c31db13ed1d273eacc7458f73e61faa1f93503b273b22ba5afc0f39a2697aebb981f29c402c5ecd739f7666e1bfef43050efb63d62c1bd220e43
+EBUILD ibus-input-pad-1.4.99_pre20140916.ebuild 587 SHA256 1877fe04526edd3ed87f34a1ceee3fe104a83f15065e057689b2cbb3e65d7072 SHA512 c0c64df8395e92c6f3806f4d9664c66088f194aee3217c90b0434e76b47af39d3283a9c1070cc6b361d78d5a4c6bc8bcb00720a988e9bf9993e22d40777bde5f WHIRLPOOL 3fce92a43a635f502cd8c838e63de0317cb374c383b27ab4611f070ca095d8b0a9229ebc8f23f4032c2cc2c83cdc798b68f53e0213d4d82937c69a5d7ee863d3
+MISC metadata.xml 484 SHA256 49d4f68b5d09865ae4833b595cc9359a712305a815013f77e5a7a3cfc54978f3 SHA512 4adea61b092792b2ba2397d6bc8da3bc93909012daf00e1c134e51b4a75b197d29521b1325ad8e922e82aed8c74da691aeaabd3feac252c43c2d1aee15494f3e WHIRLPOOL e5412e9ef9d46412455498219132c1b30a627b9d1b3d7ca62167ba6442e1fd369672db44ea748be169d7fc105403676ba815cde53bdff9c3f3593b7797a8ca07
diff --git a/app-i18n/ibus-input-pad/ibus-input-pad-1.4.99_pre20140916.ebuild b/app-i18n/ibus-input-pad/ibus-input-pad-1.4.99_pre20140916.ebuild
new file mode 100644
index 000000000000..2d075d8b0bee
--- /dev/null
+++ b/app-i18n/ibus-input-pad/ibus-input-pad-1.4.99_pre20140916.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_P="${P/_pre/.}"
+MY_PV="${PV/_pre/.}"
+
+DESCRIPTION="Input Pad for IBus"
+HOMEPAGE="https://github.com/fujiwarat/input-pad/wiki"
+SRC_URI="https://github.com/fujiwarat/${PN}/releases/download/${MY_PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-i18n/ibus
+ dev-libs/glib:2
+ dev-libs/input-pad
+ virtual/libintl
+ x11-libs/gtk+:3"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/pkgconfig"
+S="${WORKDIR}/${MY_P}"
diff --git a/app-i18n/ibus-input-pad/metadata.xml b/app-i18n/ibus-input-pad/metadata.xml
new file mode 100644
index 000000000000..bf5fd2c11dc7
--- /dev/null
+++ b/app-i18n/ibus-input-pad/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ The Input Pad engine for IBus. It provides an input pad from
+ <pkg>dev-libs/input-pad</pkg>.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">fujiwarat/ibus-input-pad</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-kkc/Manifest b/app-i18n/ibus-kkc/Manifest
new file mode 100644
index 000000000000..534fb2a9ee3a
--- /dev/null
+++ b/app-i18n/ibus-kkc/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-kkc-1.5.22.tar.gz 518844 SHA256 22fe2552f08a34a751cef7d1ea3c088e8dc0f0af26fd7bba9cdd27ff132347ce SHA512 767a995cb97ca7cf5434f64094351c4fcf1d3de9f31da6f6642ccec2d199ddfb58e27f281b4dd3c63f44dc29cd46b36808ecd1aacfe0b1320d0688d567eb6fd4 WHIRLPOOL 2b157203a4956e396e096b86be1b84d47df61eccec9a20eada6ebae14f27e30873389fb465a7d435f11f160bea24d0042ba9f20eb5555f1fb76d912b2200e82c
+EBUILD ibus-kkc-1.5.22.ebuild 694 SHA256 9a1d16973f6196c0c46b76dee237d0743b34adf950bf72b00a2a3e03e9748f4b SHA512 92d2c1c5587edb7a62bac7e86c53858dd77d4f273fa8db304fb8749671a0ca1c94bdfd8655724a3531754eae712981ff32596128ec2572dd20864977c2cbdb07 WHIRLPOOL 00742efc3e6ade247f667ea6c7ef5c9610e622388b42cebf3f2dcde7af055bbaee770d24425dab0da56ebab80042b2b0e2a94f803332593dce24e7ed793d4d94
+MISC metadata.xml 491 SHA256 3062beb6e8a3e2d056fdd2e452667b117aa38131f488e00c26d63c7ad401acbe SHA512 a8a9e0599c426f5c64660b503c8d3ddfe3b1573a3b547f1b6e7bffd8a581dfe41d5f81439ad7456b589d43a41511a9d8a26dff9b7b8b138aa033e7ad1f917d69 WHIRLPOOL 088ee6b08b8fa87c7bb7a128a93f0d4be69ddd4c4e1cf9bee0d764cd98e9f8686e1f61bd82859487e24335fd71683f1ef1830f86da8fcdd536faa3e8a75c2912
diff --git a/app-i18n/ibus-kkc/ibus-kkc-1.5.22.ebuild b/app-i18n/ibus-kkc/ibus-kkc-1.5.22.ebuild
new file mode 100644
index 000000000000..a2b21852753a
--- /dev/null
+++ b/app-i18n/ibus-kkc/ibus-kkc-1.5.22.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit vala
+
+DESCRIPTION="Japanese Kana Kanji conversion engine for IBus"
+HOMEPAGE="https://github.com/ueno/ibus-kkc"
+SRC_URI="https://github.com/ueno/${PN}/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+CDEPEND="app-i18n/ibus
+ app-i18n/libkkc
+ x11-libs/gtk+:3
+ nls? ( virtual/libintl )"
+RDEPEND="${CDEPEND}
+ app-i18n/skk-jisyo"
+DEPEND="${CDEPEND}
+ $(vala_depend)
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ vala_src_prepare
+ default
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
diff --git a/app-i18n/ibus-kkc/metadata.xml b/app-i18n/ibus-kkc/metadata.xml
new file mode 100644
index 000000000000..5516917a7bb0
--- /dev/null
+++ b/app-i18n/ibus-kkc/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ The Kana Kanji conversion engine for IBus. It provides Japanese input
+ method from <pkg>app-i18n/libkkc</pkg>.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">ueno/ibus-kkc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-libpinyin/Manifest b/app-i18n/ibus-libpinyin/Manifest
new file mode 100644
index 000000000000..37bb7c6482ba
--- /dev/null
+++ b/app-i18n/ibus-libpinyin/Manifest
@@ -0,0 +1,13 @@
+DIST ibus-libpinyin-1.6.92.tar.gz 1686249 SHA256 e611cff47b84345e1f60b8e94f74811bcfdf53b6ef7436b5cb5aff47eea743a3 SHA512 b4af0083c9c1dd4273c75372acf5d74ce317effdf56d8a0de8a3e3cd24f40b1b2dba91786d0a1cd72c9d7867b9ae630c4f69b04b378529dca8be0869e91d322d WHIRLPOOL 5dd8493bbbaa0f3d189a825bd4237a56276e88b8da91e75c1e3d49c1c1b2050ee2f9aaa4524ea00418690d8ff2085d6b6f686e60752e838f2515ca9d780347ef
+DIST ibus-libpinyin-1.7.4.tar.gz 1692228 SHA256 4627eab10ded24bd1a95ee56a2f7bd6a82deb94435aea674267fc40febd66f81 SHA512 d94f495e74650830f759889112df8b749d6e28192ed866f6bd132b16e16cda59d97aabc2762596bbe337a3deeb30ccd680ad370c28c1932ab05c6a40d8e1c265 WHIRLPOOL 1227c7f96565c001a90bced8aa4f847cfbe9bfae6810641e76472c437a29cdb539d2b316add9850270fa4eb2436761375f9d436749c8f06a573206ddba02064c
+DIST ibus-libpinyin-1.9.0.tar.gz 1692442 SHA256 c8ec2450cec6f11870982b0130293dc967632631077029ca76c27ef349189e3e SHA512 cf90fd5233ca7a77d45b69efc76a211ff69895eed09998bec09b362f6b67a91687510144f55ee67e31897ee81c47e86e2e1258ee1771bae1f04d8aa398b13e1e WHIRLPOOL cb4a5cb645b2a0126f1d44452813021d3dc6b484e3f07f2a1bf5370b475103f0bf86a91576620ac038342dccf1d3f21da220a457b926c61329dc1e718e7f4c15
+DIST ibus-libpinyin-1.9.1.tar.gz 1691476 SHA256 52371801da350fb98632b20b483a2556ae27b3faf05fdcacc4f7ead01c969718 SHA512 600ceb9cb2ef38b07588914f2071b458825ee32b5cf32e6064394500a6d4854c4beea830f5057bba313c17f805033ab06de79e7fbc0a733506279ab2fc7585f6 WHIRLPOOL 08d7fd63a24af88f521ee0985c6e3b13a197fdb6a3d6c73342e33fe73f1e7cd77810a234b77b4bd947ccf7a773db3c5375d248e58fcbc00f5409860276f05f66
+DIST ibus-libpinyin-1.9.2.tar.gz 1693247 SHA256 b9867b4fd000a1f97317cc16447817dc3e68673f2b049774a49f50612ad0ef72 SHA512 008390049b0186b7163cfd8857806715dd78235fc1e35a89d4b58a38eb7f292b643d48f502c0c924512a9f5a96d2581f577d6a9ec3b660d05d9a4adcde970430 WHIRLPOOL 2230cce4b650a99b755b019825b57d534f70caa36085713987f406080f4daf544a3bdcc35f7dd3d45926b0843c10e7479a4bfe8bbd9d00c9862054738b4a123d
+EBUILD ibus-libpinyin-1.6.92.ebuild 1102 SHA256 7409542ad9d6024bab31ec2b4e2e36aa13c7a974cecd7973281f2c0f059bd677 SHA512 62c4a11abc55a54e40e735c39908efe02ed1035c60e0e360f120e58f7e1f4226c6f430e22e4b11c992c40f9dd4fed785f0dbd1e501227815a2bd1326256abeb4 WHIRLPOOL 447fb18c6483023f2bb6c1cd40d9466e3184d39d02acd6c164a6644a439c89ec5dba50e8dad2a8ebe768f053f477d798f3ac19ff58e0fbabbee5c10652798cf0
+EBUILD ibus-libpinyin-1.7.4.ebuild 1145 SHA256 b8b7bc45b5ee1b1ec8ddd46e85e75084c79b38a04109218a8baae1fd33e398d8 SHA512 6f25d7ab250465b28c754809a5df1f623e9c69a2ed2232d30161ba6b399e64726e1bc264038d01db30635bf5a9cd1ff16a9a7157b30c25618f92a723e65c51c7 WHIRLPOOL cea1f53a8b9135db06814a83c5ccf4dacc00d14d17c9c3a461435550c0ca19ce07925f559fd3d6344d8b374c50853fc0d068c1ab29f36133dd01121b21492cf7
+EBUILD ibus-libpinyin-1.9.0.ebuild 1178 SHA256 a5522fdd99202a6d8d63e65b4798d27fe848ade5a4cf09cf9afc254d6e662b73 SHA512 c91740e67c13ba8146f3a37d0cee51e49ed939e5176414fdbad2f1b99a17762579b96d2e4aa66a907c2409f21bcf31e3da2a1659a7e5262decd6601fe3163531 WHIRLPOOL f132093b9de2101ef220c9c942f13af5915be41f29bc9d637c35a1f04f44b707527639469ac88bb47f489e97ff15b65a502df8fc4aaf6566f7517889dfc20bba
+EBUILD ibus-libpinyin-1.9.1.ebuild 1177 SHA256 3fd421ca3af2747f3fbb901bf8de93c429edda905810fc107c7b544e0ea20456 SHA512 83b3c1555cf81e3dfe2ac1f3c87355a4abec85bfa18c68b0e3ba3ad31047556f696273a61df27d841118da2df06c7ba6260f808eb26ff9b6628b6bf453b1661c WHIRLPOOL f8d1161706d5214a2820222494a9e2016eebb495dfbd47e6fabe9b586f7185a362c6bde46af9f6115d566eb6b122239e9f1846db8aebd2da6994b709c7c751ee
+EBUILD ibus-libpinyin-1.9.2.ebuild 1177 SHA256 3fd421ca3af2747f3fbb901bf8de93c429edda905810fc107c7b544e0ea20456 SHA512 83b3c1555cf81e3dfe2ac1f3c87355a4abec85bfa18c68b0e3ba3ad31047556f696273a61df27d841118da2df06c7ba6260f808eb26ff9b6628b6bf453b1661c WHIRLPOOL f8d1161706d5214a2820222494a9e2016eebb495dfbd47e6fabe9b586f7185a362c6bde46af9f6115d566eb6b122239e9f1846db8aebd2da6994b709c7c751ee
+MISC ChangeLog 3275 SHA256 e43b2a4093041c42d23dae5336f159fc0dd02cb3d3efd2320c79d82e6c09e8a5 SHA512 36465f9a79f9df02b68bbdf8d75bd1dbda0f0e3913d8de36bfe891f75792db61e77165b9addd022c1b6f4459f9e41db5ece77c407e3db0d774b8b4fcab375c1e WHIRLPOOL a232887a912f284d13d80088cfef2a6b7413084225ca3d940ec9532d8e7c57895712fd22b5cd1ee7f846e44d95c0824fe0beecb744967f4ec18a887e1971f997
+MISC ChangeLog-2015 612 SHA256 dcd73351a2d701a45f6f85c36bbee140283059083a35377e17919216b654bba5 SHA512 4076a12d878ccb804eec45983597f1d260b9ab795cb0a3e425643720841efa9e799ba9a033dc39ed146a019f8ee39b8a23135b187da911fb802b3dcc25eabad7 WHIRLPOOL c60fdb85d5ae37f002d228576f257700963cf08f16a7fa0c3f335de5a51020135d41325d68e010df25aff8688c6f21ad1019320ac35470a4d0ee9f6103971db5
+MISC metadata.xml 885 SHA256 bc13db8af7ae4dcedc819f54f6c487c3526edda4f68c7affcdb93f2331ee872e SHA512 b9acf7f4ca73c1453ee7c72a59137070c9f480de8758221f1545d05248e0e2657056a31c705b17455a1342867e9331550aa32f39cbe60270190699384b160710 WHIRLPOOL 7b6e4fd8cea784be3225ddf670fe72a40bd17e14c71aa759e125bb2db5b1075f098447c37dc3f00a9381d741f17cd8d96b43573c7ad4d8195111a94244218044
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 000000000000..d1387f71db4f
--- /dev/null
+++ b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.6.92.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND=""
+RDEPEND="${PYTHON_DEPS}
+ >=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/ibus-libpinyin-1.7.4.ebuild b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.7.4.ebuild
new file mode 100644
index 000000000000..2781f61eb395
--- /dev/null
+++ b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.7.4.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND=""
+RDEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.5.4[python,${PYTHON_USEDEP}]
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ >=app-i18n/libpinyin-1.2.91
+ app-i18n/pyzy
+ boost? ( >=dev-libs/boost-1.39 )
+ opencc? ( >=app-i18n/opencc-1.0.0 )
+ 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/ibus-libpinyin-1.9.0.ebuild b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.9.0.ebuild
new file mode 100644
index 000000000000..7dc68cc7ab24
--- /dev/null
+++ b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.9.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PYTHON_REQ_USE="sqlite(+)"
+
+inherit autotools gnome2-utils python-single-r1
+
+DESCRIPTION="Intelligent Pinyin engine based on libpinyin for IBus"
+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 lua opencc"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-i18n/ibus[python(+),${PYTHON_USEDEP}]
+ >=app-i18n/libpinyin-1.9.91:=
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ boost? ( dev-libs/boost:= )
+ lua? ( dev-lang/lua:0 )
+ opencc? ( app-i18n/opencc:= )"
+
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_prepare() {
+ default
+ sed -i "s/python/${EPYTHON}/" setup/ibus-setup-libpinyin.in || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-english-input-mode \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable opencc)
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-libpinyin/ibus-libpinyin-1.9.1.ebuild b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.9.1.ebuild
new file mode 100644
index 000000000000..6e9cf595e03c
--- /dev/null
+++ b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.9.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PYTHON_REQ_USE="sqlite(+)"
+
+inherit autotools gnome2-utils python-single-r1
+
+DESCRIPTION="Intelligent Pinyin engine based on libpinyin for IBus"
+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 lua opencc"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-i18n/ibus[python(+),${PYTHON_USEDEP}]
+ >=app-i18n/libpinyin-2.1.0:=
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ boost? ( dev-libs/boost:= )
+ lua? ( dev-lang/lua:0 )
+ opencc? ( app-i18n/opencc:= )"
+
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_prepare() {
+ default
+ sed -i "s/python/${EPYTHON}/" setup/ibus-setup-libpinyin.in || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-english-input-mode \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable opencc)
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-libpinyin/ibus-libpinyin-1.9.2.ebuild b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.9.2.ebuild
new file mode 100644
index 000000000000..6e9cf595e03c
--- /dev/null
+++ b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.9.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PYTHON_REQ_USE="sqlite(+)"
+
+inherit autotools gnome2-utils python-single-r1
+
+DESCRIPTION="Intelligent Pinyin engine based on libpinyin for IBus"
+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 lua opencc"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-i18n/ibus[python(+),${PYTHON_USEDEP}]
+ >=app-i18n/libpinyin-2.1.0:=
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ boost? ( dev-libs/boost:= )
+ lua? ( dev-lang/lua:0 )
+ opencc? ( app-i18n/opencc:= )"
+
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_prepare() {
+ default
+ sed -i "s/python/${EPYTHON}/" setup/ibus-setup-libpinyin.in || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-english-input-mode \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable opencc)
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-libpinyin/metadata.xml b/app-i18n/ibus-libpinyin/metadata.xml
new file mode 100644
index 000000000000..83d60bcf58dd
--- /dev/null
+++ b/app-i18n/ibus-libpinyin/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ramsey.graham@ntlworld.com</email>
+ <name>Graham Ramsey</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</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 000000000000..36bbfe68ce44
--- /dev/null
+++ b/app-i18n/ibus-m17n/Manifest
@@ -0,0 +1,7 @@
+DIST ibus-m17n-1.3.2.tar.gz 414324 SHA256 c1e7529c63305bc5f2ddc4832550becd16e084beaf4217549bf1dd46a9b0e370 SHA512 6cbff2bf08043eb46d5e97c9303ebbb795c69b77c14d113c22fee2111eaee04ba8bc27bbd44b6640be02dd43f4b3711aba1b02fcbb350b8bca8d90dd20b4ba54 WHIRLPOOL 5b59e39028e19f3379abebf6b4ddf835bd01d28df623c2ef03f98a8f5b53acd985ca34d3f3d12cf5258c926de47523fddb48b78ceec0efb967586437e52bdc7e
+DIST ibus-m17n-1.3.4.tar.gz 436687 SHA256 79004c696c47cd909b39f547ce118a80b672ccdab77a4a5b1824e496d649ae70 SHA512 9e9bc290b0f0d68558d408f6e69aa3bd9bb767db827a95839b576b58c7a5056dedcbd9b0bf1aab5e26ab21e601acd67a53404a5fd54b436efaf2a706489f25c4 WHIRLPOOL 0109df716a9ed71ac7f1d9544e361e38c3b8a7ae81b271d54ab1979a611fc44698649d92dfc68131f29166f60875558421b9f033632c5125c27505465c73d0a4
+EBUILD ibus-m17n-1.3.2.ebuild 786 SHA256 24722ed62b1ca56024e6dd58dab8e897c71d6fc2665a50b911e8c8e136f73d76 SHA512 24e5d2b978273e517b5994aa410a31ff4fb1fb9207b6bdc4be03e32d5ec0cc4e70a1158dba7201aa3f25b666bff3d764fd71a4ba209b4bceabd710237a917fb6 WHIRLPOOL 60beae3ca6b62bb483cbab7096ba4708ccd2b1fd197ae2d22f747f77ccbf3ca5a5c7bc41b444845f13f7fd4b7f0f80efdbe83fa1f6fb7d0a23a47b1a64302367
+EBUILD ibus-m17n-1.3.4.ebuild 788 SHA256 21f275dabc17c4490636c9e43113d532e874a33ffd84f46644df842e34b2443e SHA512 abe0df5253b4c10af86f88179cdd309edd92e3462dcdb88bad85e892e85ffa74354df5fa903bdaae8655102884e207fe755ee170df76ac9067e1b6bc31b532e3 WHIRLPOOL 60d311ef54787d492ad9f932951d07e111b8473614123dc308e80b73381e8850042ba0c9bd283a69279858054ac13e8ee25b48b51908e3ccbc9555ebe18fdb91
+MISC ChangeLog 3332 SHA256 9a88204e7f4d8ed248007d15d2f12b78633278c5e6b02649af966add9881380f SHA512 ae514ed46966bd80a2070d16298a5af44d6802cd978d940783d0fe406c7a32730da00cca56a8a29b05abd1aa62c54c832344711c86dbbc3d2edee81d95229089 WHIRLPOOL 6ab19bbbd4b428d5a8dd3e2e256be7911d2d9df30c3748605ae764688fe84647373ba0e61efde3c2fa8a949460b9ba46a57d3037a779f8d4c79c79113e89ba01
+MISC ChangeLog-2015 4357 SHA256 d8ad289d0090f04bd59b54c07bf702885aff6768a3da9abf37070ef42988e972 SHA512 a3886b1aef051796a7d362f5817e192c123bb1db4442382cd157e4da5c56083495b74e6cca97797d397551ff37d2b84d0309551b37cf0d0567b7c87bf6ba8440 WHIRLPOOL 997f3e87bbf87e66a828e7a6e233baf78caa6efa4102f701cf0a006e547330dab33384b1b6441c71571d885845a847587763acfd8f03163044f99232ed2ecc7b
+MISC metadata.xml 706 SHA256 f1226b07282996c6086be3135ede4c70fc15279301b7794ecef55a0714741afd SHA512 b5da8f8cf77fe9028b052e0a546667342116e16c79ef044032443f30ff2814c5e534ee70b99419fbb509db2d4d755d570f8a8900a139594518eb7b6a5971b0f2 WHIRLPOOL 4eaf98f60b009365c56a7f125663f5c15a95c944b806ddd3e4db3f823263b103996b5a123577dec45f9ae2d9d5a0473583f6068420d7029ac1d752c3630f1df1
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 000000000000..066a33f3d85d
--- /dev/null
+++ b/app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="M17N engine for IBus"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ibus/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="gtk gtk2 nls"
+
+CDEPEND="app-i18n/ibus
+ dev-libs/m17n-lib
+ gtk? (
+ gtk2? ( x11-libs/gtk+:2 )
+ !gtk2? ( x11-libs/gtk+:3 )
+ )
+ nls? ( virtual/libintl )"
+RDEPEND="${CDEPEND}
+ || (
+ >=dev-db/m17n-db-1.7
+ dev-db/m17n-contrib
+ )"
+DEPEND="${CDEPEND}
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/pkgconfig"
+REQUIRED_USE="gtk2? ( gtk )"
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_with gtk gtk $(usex gtk2 2.0 3.0))
+}
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 000000000000..43b97a705ace
--- /dev/null
+++ b/app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="M17N engine for IBus"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ibus/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk gtk2 nls"
+
+CDEPEND="app-i18n/ibus
+ dev-libs/m17n-lib
+ gtk? (
+ gtk2? ( x11-libs/gtk+:2 )
+ !gtk2? ( x11-libs/gtk+:3 )
+ )
+ nls? ( virtual/libintl )"
+RDEPEND="${CDEPEND}
+ || (
+ >=dev-db/m17n-db-1.7
+ dev-db/m17n-contrib
+ )"
+DEPEND="${CDEPEND}
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/pkgconfig"
+REQUIRED_USE="gtk2? ( gtk )"
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_with gtk gtk $(usex gtk2 2.0 3.0))
+}
diff --git a/app-i18n/ibus-m17n/metadata.xml b/app-i18n/ibus-m17n/metadata.xml
new file mode 100644
index 000000000000..905cdaedd1a9
--- /dev/null
+++ b/app-i18n/ibus-m17n/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ The M17N engine for IBus. It allows input of many languages using the input
+ table maps from <pkg>dev-libs/m17n-lib</pkg>.
+ </longdescription>
+ <use>
+ <flag name="gtk2">
+ Build with <pkg>x11-libs/gtk+</pkg>:2 instead of <pkg>x11-libs/gtk+</pkg>:3
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="cpe">cpe:/a:ibus_project:ibus-m17n</remote-id>
+ <remote-id type="github">ibus/ibus-m17n</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-pinyin/Manifest b/app-i18n/ibus-pinyin/Manifest
new file mode 100644
index 000000000000..df56d57fd454
--- /dev/null
+++ b/app-i18n/ibus-pinyin/Manifest
@@ -0,0 +1,7 @@
+AUX ibus-pinyin-1.5.0-content-type-method.patch 5534 SHA256 5a6de77936dbf2e6c0fd4ab606a12d89b1a51580e93e819f2d6f9500850048ed SHA512 3399052f0d12eb55554d5cc98637125e6648a56f3dc87eb2fadc63af3fb82bba915e820c51596d9106637f6a063100f217ad001422a61f8925db5c5b2024c976 WHIRLPOOL f21d461b79138b450b76bf974a20e1dd0697be7b7e2153e28111734b7f7236e773acbe4d01aac0df8058097021f2f3963b3152033fb9e49bc94c12f389d2e693
+AUX ibus-pinyin-boost.patch 409 SHA256 df30ec6c912e6dc141e5808976fc1e166087985e362c8866087dc5e5a75b305e SHA512 8e4efe9b5d12d35672dd8891a49599bef6611aeb723e8fbc08197896e417cca1d55cf31a0bb1f3ec572db489b01aa36349eaf9238d1a693483d6e21bc10eab2e WHIRLPOOL 7d182ae7ea2b81b3a3ac105e132530485a6f9fb280ec84c01e99b194566244f6b0bac67a1a6db6d130276dcb5e908832ae55c7a473df10cb8f48a6dceaaa5c30
+DIST ibus-pinyin-1.5.0.tar.gz 692516 SHA256 a85d458dcc51ea9fd65849e63002428b3fcb3b39adcbea9214b5cb4a4cbdbc96 SHA512 b0cd849ee3154543747dde8994eec9aed01d67e0d9be308a2f0230cf22f0281cd8fcabd9763b24238547a37e54400bcd8e541937767b93f005d04302f0c00241 WHIRLPOOL 80fd0ec7306d857870a0ceecce67166dd4d03529d5bdc404347dea6568c9b7271dbeb6feeebd8587bb5ab6856cec7f269fe5be9dbad5eb1b4297054eb9cb5ab2
+EBUILD ibus-pinyin-1.5.0-r2.ebuild 1140 SHA256 e80fd9104d4c2069f6c8d7138172e342012e5d42eef839e425389dc604fef586 SHA512 c86e6e49c9c153edf82790c0a3a79b521c9e076db136a97ac2b501e4b5d4321dcd1b787b79540836e620a1a8bb0b28c4610280ebd07d505fe9fa8bd2677cf8ef WHIRLPOOL b403e0f9c278ddd43d338160753ee89c067148e93b0ec587167a6bb21a92bb06d96f894f5b7b6c38eb4b8d91f6ea4032d6878c4d55d3e58571d353d0f195eb8e
+MISC ChangeLog 4541 SHA256 45ac42daf03d7cb1b4b7085829c56543cdae427e3a84d7c08cbfdc36dde74ffb SHA512 a13aae268b3753b71aa64a5e2719471131e87f807490ea3e32f7d99c6ef6540be1b3c6d35633febe2af705060449c97cdc8a1f0b9522d2f964102aac50d31649 WHIRLPOOL 38dd74000fbc9dd93e15b84168717ba466a54d90e3f10623df9d904ad8408ed3d66cc0469d8cfad3fd9aa1037d7d5e219ba4c582d01bc99e7a773b972e58f20f
+MISC ChangeLog-2015 8907 SHA256 8299755418fbba9fab05171339bd861b6224b7d159d3859ea77a383d4cfad5f1 SHA512 820625c9d09348f631da26ae6cfa27ccb7340550acb44ab3ea6d89c470cc7be9b888cb1fa447a6fef506f04d9d7e2be5ead42ae9f879d97474fa8662a1538cd8 WHIRLPOOL 4f0a09396f68dcd90d423e2359ee0bbd5a852b9ed714b5aa8019eaaf847fea272298524a123fbb44334745e0a6accdf6d53de7b93e92fe4288d7ea28ceef2cad
+MISC metadata.xml 675 SHA256 8a2f82704235bdc19a1bbd907ffb9fdab104d9ee72ef2a2bf73f0d120fadc6b9 SHA512 87c1743bc802f22de1d2441403b00eaee1a834730ee1b9f3c3ae62728fdc7073bbe01faec464042243ac7dea1ce11aca709bd5d836fca3c09ccb77c64ea27aea WHIRLPOOL aa5f6c971cc39d6eb8a88698ab8562201173772e3aef309603a74bd6dbfb0a5333873b40bc6643363a4230d98d91e66467faedf2e574e012590f24c6965c2ede
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 000000000000..737046cfd7c6
--- /dev/null
+++ b/app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch
@@ -0,0 +1,185 @@
+commit 97565d04e40634a1ab62790f718a8377754d2954
+Author: Peng Wu <alexepico@gmail.com>
+Date: Wed Feb 19 10:57:40 2014 -0500
+
+ support setContentType method
+
+ ibus now supports setContentType method, if an application input some
+ password, the password will not be shown.
+
+ BUG=rhbz#1027029
+ R=Shawn.P.Huang@gmail.com
+
+ Review URL: https://codereview.appspot.com/22330043
+
+ Patch from Peng Wu <alexepico@gmail.com>.
+
+diff --git a/src/PYBopomofoEngine.cc b/src/PYBopomofoEngine.cc
+index 581c4cf..16d47b3 100644
+--- a/src/PYBopomofoEngine.cc
++++ b/src/PYBopomofoEngine.cc
+@@ -72,6 +72,9 @@ BopomofoEngine::processKeyEvent (guint keyval, guint keycode, guint modifiers)
+ {
+ gboolean retval = FALSE;
+
++ if (contentIsPassword())
++ return retval;
++
+ /* check Shift + Release hotkey,
+ * and then ignore other Release key event */
+ if (modifiers & IBUS_RELEASE_MASK) {
+@@ -139,6 +142,8 @@ BopomofoEngine::focusIn (void)
+ void
+ BopomofoEngine::focusOut (void)
+ {
++ Engine::focusOut();
++
+ reset ();
+ }
+
+diff --git a/src/PYEngine.cc b/src/PYEngine.cc
+index d9fa04a..553d13f 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,
+@@ -220,6 +241,39 @@ FUNCTION(cursor_up, cursorUp)
+ FUNCTION(cursor_down, cursorDown)
+ #undef FUNCTION
+
++Engine::Engine (IBusEngine *engine) : m_engine (engine)
++{
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM;
++#endif
++}
++
++gboolean
++Engine::contentIsPassword()
++{
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ return IBUS_INPUT_PURPOSE_PASSWORD == m_input_purpose;
++#else
++ return false;
++#endif
++}
++
++void
++Engine::focusOut (void)
++{
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM;
++#endif
++}
++
++#if IBUS_CHECK_VERSION(1, 5, 4)
++void
++Engine::setContentType (guint purpose, guint hints)
++{
++ m_input_purpose = (IBusInputPurpose) purpose;
++}
++#endif
++
+ Engine::~Engine (void)
+ {
+ }
+diff --git a/src/PYEngine.h b/src/PYEngine.h
+index b74e6e8..21041b1 100644
+--- a/src/PYEngine.h
++++ b/src/PYEngine.h
+@@ -37,13 +37,18 @@ GType ibus_pinyin_engine_get_type (void);
+
+ class Engine {
+ public:
+- Engine (IBusEngine *engine) : m_engine (engine) { }
++ Engine (IBusEngine *engine);
+ virtual ~Engine (void);
+
++ gboolean contentIsPassword();
++
+ // virtual functions
+ virtual gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers) = 0;
+ virtual void focusIn (void) = 0;
+- virtual void focusOut (void) = 0;
++ virtual void focusOut (void);
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ virtual void setContentType (guint purpose, guint hints);
++#endif
+ virtual void reset (void) = 0;
+ virtual void enable (void) = 0;
+ virtual void disable (void) = 0;
+@@ -122,6 +127,11 @@ protected:
+
+ protected:
+ Pointer<IBusEngine> m_engine; // engine pointer
++
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ IBusInputPurpose m_input_purpose;
++#endif
++
+ };
+
+ };
+diff --git a/src/PYPinyinEngine.cc b/src/PYPinyinEngine.cc
+index 7aea261..babaaed 100644
+--- a/src/PYPinyinEngine.cc
++++ b/src/PYPinyinEngine.cc
+@@ -82,6 +82,9 @@ PinyinEngine::processKeyEvent (guint keyval, guint keycode, guint modifiers)
+ {
+ gboolean retval = FALSE;
+
++ if (contentIsPassword())
++ return retval;
++
+ /* check Shift + Release hotkey,
+ * and then ignore other Release key event */
+ if (modifiers & IBUS_RELEASE_MASK) {
+@@ -195,6 +198,8 @@ PinyinEngine::focusIn (void)
+ void
+ PinyinEngine::focusOut (void)
+ {
++ Engine::focusOut ();
++
+ reset ();
+ }
+
diff --git a/app-i18n/ibus-pinyin/files/ibus-pinyin-boost.patch b/app-i18n/ibus-pinyin/files/ibus-pinyin-boost.patch
new file mode 100644
index 000000000000..124339e81bf2
--- /dev/null
+++ b/app-i18n/ibus-pinyin/files/ibus-pinyin-boost.patch
@@ -0,0 +1,15 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -93,9 +93,9 @@
+ )
+ if test x"$enable_boost" = x"yes"; then
+ # check boost
+- BOOST_REQUIRE([1.39])
+- BOOST_FIND_HEADER([boost/bind.hpp])
+- BOOST_FIND_HEADER([boost/signals2.hpp])
++ AX_BOOST_BASE([1.39])
++ AC_CHECK_HEADERS([boost/bind.hpp])
++ AC_CHECK_HEADERS([boost/signals2.hpp])
+ fi
+ AM_CONDITIONAL(HAVE_BOOST, test x"$enable_boost" = x"yes")
+
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 000000000000..2f8dba36e3c9
--- /dev/null
+++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools python-single-r1
+
+DESCRIPTION="Chinese Pinyin and Bopomofo engines for IBus"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ibus/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="boost lua nls"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-i18n/ibus[python(+),${PYTHON_USEDEP}]
+ app-i18n/pyzy
+ dev-db/sqlite:3
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ boost? ( dev-libs/boost )
+ lua? ( =dev-lang/lua-5.1*:= )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/autoconf-archive
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-boost.patch
+ "${FILESDIR}"/${P}-content-type-method.patch
+)
+
+src_prepare() {
+ sed -i "s/python/${EPYTHON}/" setup/${PN/-/-setup-}.in
+
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable nls)
+}
diff --git a/app-i18n/ibus-pinyin/metadata.xml b/app-i18n/ibus-pinyin/metadata.xml
new file mode 100644
index 000000000000..f82714b167fa
--- /dev/null
+++ b/app-i18n/ibus-pinyin/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ The Pinyin engine for IBus. It provides Chinese input method from
+ <pkg>app-i18n/pyzy</pkg>.
+ </longdescription>
+ <use>
+ <flag name="boost">Enable support for <pkg>dev-libs/boost</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="github">ibus/ibus-pinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-qt/Manifest b/app-i18n/ibus-qt/Manifest
new file mode 100644
index 000000000000..7e012945c453
--- /dev/null
+++ b/app-i18n/ibus-qt/Manifest
@@ -0,0 +1,6 @@
+AUX ibus-qt-doc.patch 215 SHA256 6f097952d8e76a7b54968c36272d4c6aac100fb2766fb495577129aa985ce82e SHA512 c6c46e8eb23bd9d6b21587f7f976a4bfc8f750e9135c8297224edf8ccfa3e97779144bcba661f4aa5a76226f59c1fc59da9e565a4b0b6d4285ac66f8ba0919c9 WHIRLPOOL d2da386c93272efd84115750771311f433405102f312a682df9b333513cb5cb5183a9a1c92e8c21a1c39abc441703cc7bd49f47bee252b8fb5d6730aac506cbc
+DIST ibus-qt-1.3.3.tar.gz 141523 SHA256 29bff835a4a07396c5f174d29c2266a39767c1abad48b2b0da1ab8d4c66fb44a SHA512 825a32fec51f10f466efd4255743a12ae98af63bacd07d5dc04e18fab6b830501b04491146c1f8bc92edd93dbf8eaeb68cf71062ffdbf25c2970d807b655c80a WHIRLPOOL 692f5dcf1e89c28a90a4fdfbd0bc62e00e5f680798ecfe9c7a47c9d26510c30415a07facae0e7e44f0416f7b3675a6c4445c8812294ec37ea523603a68d7c6a0
+EBUILD ibus-qt-1.3.3.ebuild 989 SHA256 09cb3431de7100b8374f7882f2472de77588abadef7dc7dfcbfbac7be2c008a1 SHA512 af46f25f1e6ec3b0142bd88d53371541ba90404f6017fd64c9bd2e97f3f22f322c3e4f241675ca244ddd5f7282304b49977f9505a42653fecec5c6796089fd76 WHIRLPOOL 8a3deca4d13b7fed32756c2b2b9b3bd6e310afff0d0e246e33e6fce77ca729aa9515b82d3e0e63b120afa9a92d023de52ecc4e509da31e0e3d4b687b514fc0d9
+MISC ChangeLog 3533 SHA256 307e8d999975c00ee69aaeb40536633f14e7337c7c0b6c1c4748b488cd8c14b0 SHA512 869940bc698ad849b52f473afc5cc55e3acea33a3bc0209cd37e3b1b3927aefb93829f22cf4abe828576ff8f04bdab3be885638d5ecbf6186debda1d709e17c5 WHIRLPOOL 6043a840d8445cfcda6d9bb1a686d2d52963f0c0a1572966a173de4b68ccb1f1a84ac3980cae9929881607d1a8bb8f3c3840755deff68605a9fbb5127fde217f
+MISC ChangeLog-2015 4083 SHA256 8281463a9775adeeb5dafbe6ff7005e82e0785f75a38b3a6f8953717c296315e SHA512 2dfc30ff870e7fa5f4f6621cab577f91b6daacc758c21ded1326c8563c471f588ef024efa15e13f9c0a6d388a85a549cbc7f4869659b58cb7e3bf2ef257f7322 WHIRLPOOL 20b482ade9ef7c05333c4cbe56f31010a161c4a0e2cab155681c57ac654cc170399b6a2b145b976da7ba5dbdc6f74575077baf2cf25f3a6708979acd5c9ebe61
+MISC metadata.xml 427 SHA256 664dd2beb0a38b70b71f574d231085a7949bac5c07ca6f29a09a724dc21880bd SHA512 d8b71cd16b59609569170069a1cfd27bb09f5f6dce812e57550602fc5afc51eec23b9f646fe29145b0bdf3ae258868d4aead053444c290684696f344308a36ec WHIRLPOOL 093ff4f50c740d5454163fdb3ccc9149814e8651481c1b8bc85b5de79c6dc3566189cf1125b00e4266079cd536f31b598786d2c3aca389fd611f94c64c7ffb05
diff --git a/app-i18n/ibus-qt/files/ibus-qt-doc.patch b/app-i18n/ibus-qt/files/ibus-qt-doc.patch
new file mode 100644
index 000000000000..dbc1e9251369
--- /dev/null
+++ b/app-i18n/ibus-qt/files/ibus-qt-doc.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -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/ibus-qt-1.3.3.ebuild b/app-i18n/ibus-qt/ibus-qt-1.3.3.ebuild
new file mode 100644
index 000000000000..0ed171d32907
--- /dev/null
+++ b/app-i18n/ibus-qt/ibus-qt-1.3.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils flag-o-matic
+
+DESCRIPTION="Qt IBus library and Qt input method plugin"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://github.com/ibus/${PN}/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
+ dev-libs/icu:=
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ sys-apps/dbus
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+PATCHES=( "${FILESDIR}"/${PN}-doc.patch )
+
+src_configure() {
+ append-cxxflags -std=c++14
+
+ local mycmakeargs=(
+ -DLIBDIR=$(get_libdir)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc; then
+ emake -C "${BUILD_DIR}" docs
+ fi
+}
+
+src_install() {
+ if use doc; then
+ HTML_DOCS=( "${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 000000000000..4346ded0668a
--- /dev/null
+++ b/app-i18n/ibus-qt/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ The Qt client for IBus. It provides a Qt immodule.
+ </longdescription>
+ <upstream>
+ <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 000000000000..c4ca501ab671
--- /dev/null
+++ b/app-i18n/ibus-rime/Manifest
@@ -0,0 +1,9 @@
+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
+EBUILD ibus-rime-0.9.9.ebuild 633 SHA256 727a0623289de328fa72128b23cb5f796bd798c1035744dbc0e5a519e3b00163 SHA512 460a3fe3cf16d743c0885504b3ad336533411d96cddad8e85925657710a936991dbe553609d82d131ee823516d106f6f4280dedae5d5d6c92b31fb4ed3fb6572 WHIRLPOOL 70690147f48e3cd943953090afa0f0c787f6d9631d90d242bf299f232e6f3cd1b814f4665ae20b0370853ab93d5893cb2a5d8e0f47b1265729b7a25659651ad3
+EBUILD ibus-rime-1.1.ebuild 633 SHA256 5229cb66cc4e43ea8fab3f414b8af2205d7697aa093faa1edc451a4444ee922e SHA512 8fc8b74448abbb8a48a89e45fa8d1b5410105c15a3f771e5547fa95601c2b27125a1fd36691e8a2bdaf5c8356d5fe207dfef4bcab0a7b747274820c9a127049d WHIRLPOOL fbe721f17511869f13891991002bb4c9b944fce0965c556eccfbde446ff3e189b017b42832f95e6037e7b85b3c6aa2c579e57def85e8dcff3688b51b6c2bb899
+EBUILD ibus-rime-1.2.ebuild 629 SHA256 5a305ef79f2dc82fabe6859578c720bc5d52bcd507be6eb941a3e85ed185a09e SHA512 a9a177c70a874fcf27ca593f691aa87fd8cc21f0bf05bf52dd4479d86a280d5ab2ea65f250361613d0823a10895bac552877ad0e3cda32cac972ecb6e976d663 WHIRLPOOL a20d74af1514775ea7f7e8315dd5c8d22072d7c3c058138346c86609db4071d1549c76fc0e9975a606135994eee5eedbc627f2ac5367135eb75e2c54b30e5a32
+MISC ChangeLog 3160 SHA256 e231a332b8af66a00d4125ba734e7baf0c2623fe676ed8dbeb100ece37966ff5 SHA512 18927ccd2be2fa4bcab6adb5eed1edb39950877af36de49223d906a5a3413ed69b216c4a4ed0dec8db9bd3cdb13a6258e2d54c749521cc9d984d8d4394b56f4f WHIRLPOOL 1363425603ef68f6b47dea684d5896e24d7876f5271ed22d3019445976bbbff0b4458d954c5cb98309985c1aed62174590b910a1580462087d09736550c1fd99
+MISC ChangeLog-2015 1223 SHA256 c579394d74b10cb0043e751e0985a9ada78a6a7e6f6d0a8a95360ddfdb54fdcd SHA512 a881ae760a7ab7fa39b8caa8dae4651dbb8d0517f0c8686814b98d1b28cec2f836939e9fdebff244e3ad5425d8c838de3de546f64573b569fe5e3544746d1f23 WHIRLPOOL 62eb69a9a15165702ec5f5ae81469251130fde21a8f94006643b812523a701c42205583f72f917ec41d39930cdbe04d653a20299cca5ecabbb4cef1b187f2a86
+MISC metadata.xml 601 SHA256 dee931dc1737d90d3f341c7a6466d6e5127dae7bf6ca992101f8d2c95ca84a7f SHA512 b99f85bda84da0fe35cda523709d24cea8065b72c57de666a615dcb0acec3b2745b6c06eb53a2cd63bdbc77c8abda232e9020b02965e6dde0f24211361efc34b WHIRLPOOL 6362603a3305ee334cf3c2ac8bc01f2f8919f8f7ba7d1e1b8c4abd6bffb83efbd0938496cae6594d44163c50698d9b001940091bbe530693c7f564756eb7d5a6
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 000000000000..78e4ecd1c83a
--- /dev/null
+++ b/app-i18n/ibus-rime/ibus-rime-0.9.9.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Rime Input Method Engine for IBus Framework"
+HOMEPAGE="http://rime.im/"
+SRC_URI="https://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 000000000000..c0a98b4c36a0
--- /dev/null
+++ b/app-i18n/ibus-rime/ibus-rime-1.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Rime Input Method Engine for IBus Framework"
+HOMEPAGE="http://rime.im/"
+SRC_URI="https://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 000000000000..81810d970e6a
--- /dev/null
+++ b/app-i18n/ibus-rime/ibus-rime-1.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Rime Input Method Engine for IBus Framework"
+HOMEPAGE="http://rime.im/"
+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 000000000000..f0aced69ea0e
--- /dev/null
+++ b/app-i18n/ibus-rime/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>chen.sst@gmail.com</email>
+ <name>Gong Chen</name>
+ </maintainer>
+ <bugs-to>https://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 000000000000..603896fade27
--- /dev/null
+++ b/app-i18n/ibus-skk/Manifest
@@ -0,0 +1,7 @@
+DIST ibus-skk-1.4.1.tar.gz 478018 SHA256 368b114a07f03d5d91cf333215f9429995efbbea73ee7efe2e37fb3bbc6d81de SHA512 d8c0bf2c92fd96486ed10e9dcac861b4fc16e741fd96764671352e9e67226887ad6aa4b76c4891411029d3f5bf692de1162f996a294cecc9e5231e90ea0df5f0 WHIRLPOOL 38f029ad775870c1112d7277337c6083a03008960c54a0a9e09cb2acad5e3dd7c56583645aab9d597870c4a27c4e6c85a11e9e0c33a1533d51c36fa301bdb094
+DIST ibus-skk-1.4.2.tar.gz 491882 SHA256 d5ace7b3e0417dd213012cdee677bbda9bc7232916bbe6a989cb69ae6174497f SHA512 cec7fbffaa78c406f3b9502bc64e2290fec579102a37ce61cb6424c3e06d159653f165b48e09f1256f38491bce6819460c6d226cd765ab150a8dfa80e2707fe1 WHIRLPOOL 1ce5c098060291ac52aecc83a4444578e2d0d5ba729bc4c4f993077268b863e63d36bd902841a7640b17563e7d7e231a0d3ac69097615162768c8e7d31217b9f
+EBUILD ibus-skk-1.4.1-r1.ebuild 615 SHA256 8d1be7e68c8cf025dca4a41e47dedd1b83d925a30374462ad836abcf35c4bb9a SHA512 573ff5b1078f90f33cab2a021250352590cae460abbf86af793078fbe3c2ed483603aac9fa4dba7a3124c9501b34d16421512ae62a50362d32f83eb83655f937 WHIRLPOOL 25e5975207c625431dc1059638857d182bd453cb92c0a37cca927678a1b94cfd8b745499183d5c2f36291901ef5a635336ed38485b293dd153c05cec8ce34f19
+EBUILD ibus-skk-1.4.2.ebuild 682 SHA256 46cff637130d6eb3d81db2a2146b6a309faa046c0e59cebbddaad9009a54ff45 SHA512 18c68cf809833a68dc98e71461c008f6ae0ce987cb519a35cc275191693bf07e24cc910f4acf4322f40688ad17ec3815e65110e2c3b23ad88d81555342804bc2 WHIRLPOOL d9149e06f4bbbc8634baac0bed7f9fd01157e1941b33c13909210dd7c325d4491ee38dbc35bb4e4491542276cdb1541f5c4ce2f7f8fb192d75affba2bd104a51
+MISC ChangeLog 3215 SHA256 243399cc6835ab615737b0bc90b338004175e4d7e38eb3ee120034e198a71f4c SHA512 1740735bf31742e777647733efeab3ccc09a4231b68416f10f6e57e5ff631cba11af8894531d8f9615e1162a10445e4b1803abcdbe01e6ea2e83e7aa02c2e2ec WHIRLPOOL a27c3b8835cc9ce4fce7d1f428857798cb64d9b72fec43c5a98506692fb17524f78e7d780c0ce5316e6529e81d3df70be47d41dc48f971b7ac1ce8ea63e55f16
+MISC ChangeLog-2015 4437 SHA256 4611a2bededcf24b0886e74c1e2ffcf6c5533fdf3c294880e41ba768a45d71db SHA512 af6f2602330ab06f818af9c390447b4f18d2a044d32d9a377ad9db3546da60d226305088ed9feb97241d288724310d359792c026aba29748d7c7050d0f92282a WHIRLPOOL 7b93c1198ee9f07e35853b6fec52ba97dc44ee86a6b7ffba0b2a79418c7d0b7fdd0d0c65cfbe6117607d99c071e3f1260fc8263a0245291c499b6063b9090bc6
+MISC metadata.xml 473 SHA256 a1181e08d500362730a556d864f7aec475d76d697c3a80da806ce2b901ffef62 SHA512 dc943537d163c1197dae0d85ee91fec23eba4026f0bb91d3211cf7ef2cba414c6ab65eb69c74205af35e0620f89afa553927d70b4883590b4a06823e442ae771 WHIRLPOOL 4d0b6ce3fbdccdc3b0e71af6ef1d7e27f1a89f7d2812fc1ba8eeb46d3f0318ca914cff1f64725dca989d2410abe52935776177716e5d247451c29c8df0e5d5c1
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 000000000000..40c0d245e466
--- /dev/null
+++ b/app-i18n/ibus-skk/ibus-skk-1.4.1-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+DESCRIPTION="Japanese SKK engine for IBus"
+HOMEPAGE="https://github.com/ueno/ibus-skk"
+SRC_URI="mirror://github/ueno/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+CDEPEND="app-i18n/ibus
+ <=app-i18n/libskk-1.0.1
+ x11-libs/gtk+:3
+ nls? ( virtual/libintl )"
+RDEPEND="${CDEPEND}
+ app-i18n/skk-jisyo"
+DEPEND="${CDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+DOCS="ChangeLog NEWS README THANKS"
+
+src_configure() {
+ econf $(use_enable nls)
+}
diff --git a/app-i18n/ibus-skk/ibus-skk-1.4.2.ebuild b/app-i18n/ibus-skk/ibus-skk-1.4.2.ebuild
new file mode 100644
index 000000000000..fe548e75e5cf
--- /dev/null
+++ b/app-i18n/ibus-skk/ibus-skk-1.4.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit vala
+
+DESCRIPTION="Japanese SKK engine for IBus"
+HOMEPAGE="https://github.com/ueno/ibus-skk"
+SRC_URI="https://github.com/ueno/${PN}/releases/download/${P}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+CDEPEND="app-i18n/ibus
+ >=app-i18n/libskk-1.0.2
+ x11-libs/gtk+:3
+ nls? ( virtual/libintl )"
+RDEPEND="${CDEPEND}
+ app-i18n/skk-jisyo"
+DEPEND="${CDEPEND}
+ $(vala_depend)
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ vala_src_prepare
+ default
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
diff --git a/app-i18n/ibus-skk/metadata.xml b/app-i18n/ibus-skk/metadata.xml
new file mode 100644
index 000000000000..b37d0b9824e3
--- /dev/null
+++ b/app-i18n/ibus-skk/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ The SKK engine for IBus. It provides Japanese input method from
+ <pkg>app-i18n/libskk</pkg>.
+ </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 000000000000..a7dd85c3885d
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/Manifest
@@ -0,0 +1,5 @@
+DIST sunpinyin-2.0.4_pre20130108.tar.xz 964764 SHA256 e650957aced55075448b7f02298d0c5cf59a8b8e041e9c7d92d24cb5170de93f SHA512 7c1dd7db8b800e9d436746a560a16de2c6777576868f2e7e28f6dcb767b91ccd62b974f9d4ce6bd6ce80d30e1ee83887c3ee03c227e7e9fa59c01db4867465b2 WHIRLPOOL 82535dcde38c2fce17877e465db7ebeaed14a7f305ad96ca451c5b35ae04244a94e9bde9ce51092a390964c557e39ab43742d2370342f9b72722b24f916c55d6
+EBUILD ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild 1085 SHA256 3ddc12b852500d42685f0719c37eb43d1305f4a8d535f9e7a53fc022bc8c5e79 SHA512 0d66fc225945eb28bc74a6774ea9b7658131680e91aad5bb812dfaa482a654bac5b39c876fbdf416e7ea2cb3c128df8bc2af0441da7784c9dd8beb5d467f4db1 WHIRLPOOL 928bcbe56c4a85c660d0d0aa9b3bd3b1a976266ffe975e9033d7a45b603ef9d9b1daf0fb6b7f5f136a4fe55be82f6442501d3d31ae6b2e646ca8c61967d41421
+MISC ChangeLog 3137 SHA256 9c52455705796b0b67063628330d566fd8c2fe1cf839899871de809da9b05973 SHA512 810f1d7eef0ead6e75528d55071c6bb61a9c8504fc2601411a1f592451877824c504f84df427404d49917b194dd6b206b0e09347a0c952bf96980d965f9714aa WHIRLPOOL 5f4fbe72355b9cc62e6e78c515106eb1fe50569b89980c7ecccee465a9209c2718795dad4c16df97bacf4501104886d78cf3b3d895139cac293700bca6f7c79f
+MISC ChangeLog-2015 1645 SHA256 50fe2a147ef703d017c0d3364ec60899ff0b38d5b15e835eb3c122b76466cee7 SHA512 26264ae98eaa25f2e3cd89cbed80b2a9bf5dca66fb7fee57398715b322083003eb79dab69e112c86449afbd587c8d32a90af788343910c919cecb44b1b15a81e WHIRLPOOL c260ad3465e4b945b13dd13be344935a108e77766d8af1806bca84d4c94d384d68735798f27bf08f0d11ab46f0ca259b90a565472db99ace0af541fe8575dd14
+MISC metadata.xml 313 SHA256 381c2cb041f4772bae1fb14e22ee8262a50be5502e868ee8eced569d424f0ba7 SHA512 61d943d4f8b8ab912ced89b69be51ad2792ba67672e969f4e32fba373f7133181c1080ba9a2603e3f7623ebac42e32eb3e0e429d66846ab4c7e13afbc0b05974 WHIRLPOOL cd4d86675625481ea2790d9a818f96dfb27dc1f7ebefd835083df85da5e888431ba9e9e5652b82fcd04c06bed70c5a596f0b5b155188606b772050b70e970e42
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 000000000000..11703f187c92
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="https://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 000000000000..583f6476f8be
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <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 000000000000..11f94ae96787
--- /dev/null
+++ b/app-i18n/ibus-table-chinese/Manifest
@@ -0,0 +1,7 @@
+DIST ibus-table-chinese-1.4.6-Source.tar.gz 7604868 SHA256 5e3422e59417e70e65cfd342cc3c0627a3b612b1405c493df0245a3841bd9386 SHA512 52a72c388ad287572ae334bb25537b6054f72ecdd641aa1c539b85a5e9a4cf97801ae38baa8ace1caabca95d845d2fb4156eb174ac7ad1c9123409749318d76d WHIRLPOOL bdfd4203fe8954bb02002bfa3868e67f9b1aebcf1a416cc281381601ac42020b98b344443889c7714ce456a171710f00b1f0c0f34f7eb42867a9da6382d7a174
+DIST ibus-table-chinese-1.8.2.tar.gz 10576111 SHA256 ef62c22ef4e8f9085fc40fcbc14c30f6dac458817df98e9f90f883a3e2080089 SHA512 30fd1c7ee8416cd62d8e26bc2646a667ac45c4579a7cb191c77e80fecccbc576c34f33ec0b5c55669c073a633298cfda1711e4b9d89a9ef8f6146acdc0167c1a WHIRLPOOL f03985faa490b227f851acd9e2ec7d125d06ce4da362d1f002cb6f6e378f876547a666bd249e144bbd0f4b1bd68fcc1e8dd257edbf74742ff9e29a2706dbc092
+EBUILD ibus-table-chinese-1.4.6.ebuild 584 SHA256 b3542ae25532a53ed006d2b2c293e8d7915f6f83edb988bbc7dfdcd9f225f8c2 SHA512 aba09e2b348a976a2c27d6a3b3f5fd1233857db5d0fe0f3b44fd0eefa6fb7041f3ebee0f2a5b624d4acb1eda553806f0a4bceac9eced5c5a27d92808401bdf5e WHIRLPOOL 8714731b7e14ff0b3bc7880b13b7d0fdd16b70abe9e912778124873e281511bd496c4751772b53ebb9782d3f58ed9d80b657f86bb4b98c53025abbe935a013d8
+EBUILD ibus-table-chinese-1.8.2.ebuild 700 SHA256 7029a323ca56c6c341b800457ca81646dde5e9b4c75c3640ff7476157167ede9 SHA512 0400bc273cf77fea96738c5f8e3cd5a3644c07c9a91871ef86a2c07b27751f6f672eabdf6b8ddcc7bdb60160e3b5bf835081326d7923c3f605247255e421da84 WHIRLPOOL 92928fb6a4e2d9b4af6beb395965759ea3bf605ec43610f9129ee4a3cc2bef141ab1cc68c04cae4cfa0a00317c29108b6d630e9a72a22cc3050f7b1221805915
+MISC ChangeLog 2636 SHA256 76957b3d5b58937e7340dbc7a70ccd7ef43ffc1bf273390c9640b809129b32a2 SHA512 a303f13d4276869e7e0672142cb777b7ff1312ec687ceebf95ca263ba4773aee69227944019cd605a5b02f1a3231c660a50c8a0acfac963183027b12062b393b WHIRLPOOL 5d7cab5e9dc28c6fbddf4c117406de4c3356396e0089a9809f0fee197edbfa1a5ed3e30ec466c430f9ec65d580b5cc05e7af401e1837eaf9979a4ab8321f632b
+MISC ChangeLog-2015 768 SHA256 1d3efb4eff8946b819ffd3e347fdafff0efc81089911a12371ae9ebd3d9731be SHA512 870ab671818ca65976398a4d949c51b3fd2d6ca3252cc287467b5716e69f169258f0564937bea88e9dbc0dd60c62089486dbab773d6fc8c2890276e8ce8c449a WHIRLPOOL 9d1d66131dbd5299c106fbbe3188f2d56f90fb61355935efe49af731caf92bd72c86cddbd224f77cd408032ebae76427f701a47f401597fe6da26ebe8ebb9cf7
+MISC metadata.xml 315 SHA256 4ced69ba90238a95c2bfca496456973d0d1b073a70571030e70b3b237b1fc943 SHA512 ed671457e0df484fa4bcdc2673dee882b805fee5a912808d9b25ae1a201b443b7d5f29fa012f7fbb98e7195ede5f91583e907415b83279a9f034bbd65e4328fc WHIRLPOOL 8de6466b0d087b1b07524890231bee4747028223b5862386bcf798a7ab2c1fbf298c72010e984749b850d7c95c701539908f057ed67e5f8170ad094d6a79bc65
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 000000000000..6601af39011c
--- /dev/null
+++ b/app-i18n/ibus-table-chinese/ibus-table-chinese-1.4.6.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+CMAKE_IN_SOURCE_BUILD="1"
+CMAKE_MAKEFILE_GENERATOR="emake"
+
+inherit cmake-utils
+
+MY_P="${P}-Source"
+
+DESCRIPTION="Chinese tables for IBus-Table"
+HOMEPAGE="https://github.com/definite/ibus-table-chinese"
+SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ibus/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-i18n/ibus-table"
+DEPEND="${RDEPEND}
+ dev-util/cmake-fedora"
+S="${WORKDIR}/${MY_P}"
diff --git a/app-i18n/ibus-table-chinese/ibus-table-chinese-1.8.2.ebuild b/app-i18n/ibus-table-chinese/ibus-table-chinese-1.8.2.ebuild
new file mode 100644
index 000000000000..36f3ece322b8
--- /dev/null
+++ b/app-i18n/ibus-table-chinese/ibus-table-chinese-1.8.2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+CMAKE_IN_SOURCE_BUILD="1"
+CMAKE_MAKEFILE_GENERATOR="emake"
+
+inherit cmake-utils
+
+DESCRIPTION="Chinese tables for IBus-Table"
+HOMEPAGE="https://github.com/definite/ibus-table-chinese"
+SRC_URI="https://github.com/definite/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-i18n/ibus-table"
+DEPEND="${RDEPEND}
+ dev-util/cmake-fedora"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_FEDORA_TMP_DIR="${T}"
+ -DDATA_DIR="${EPREFIX}"/usr/share
+ -DPRJ_DOC_DIR="${EPREFIX}"/usr/share/doc/${PF}
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/ibus-table-chinese/metadata.xml b/app-i18n/ibus-table-chinese/metadata.xml
new file mode 100644
index 000000000000..d91706d7e8c4
--- /dev/null
+++ b/app-i18n/ibus-table-chinese/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">definite/ibus-table-chinese</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 000000000000..51a1b370cb5e
--- /dev/null
+++ b/app-i18n/ibus-table-extraphrase/Manifest
@@ -0,0 +1,5 @@
+DIST ibus-table-extraphrase-1.3.9.20110826.tar.gz 2200447 SHA256 4db86e1ea82398c0396a4e157dd2f50003c5445f421fda706560f9242f13c74e SHA512 5310cee7bd74455a732cd568a2a60887765588ef7fabdcd950f66fb2d5fab6dcdd059d2e460c0962117495c88656386a0c738dbd94f9ba553f3365fb3b42ce5d WHIRLPOOL 03a39e184d2bbaf47ef68aa28cd05da7d988109b9b09e70dd06ae54a41f66684d3dbace03cfdd161dc5d0eccbaf468a67c55125057af8bd82a59da1a8d453c47
+EBUILD ibus-table-extraphrase-1.3.9.20110826.ebuild 448 SHA256 b62307c556edab7784184aa420983abf3d2d37cf01f30ee39b2a036da6da632e SHA512 d75ff7a69949750e574043b9f3e055d6a1d7f6b2027dc68f7c77de1eec8f37be982bdcf7d114f8e403b88d566ce29dbf0de7b82be59b3b6e4c02823d9b72b14a WHIRLPOOL 0c9ab6536e87062ab6d239e7c0949a3f354231b8a011ef0f25b3b06243b76d80d0fdb01032abdbb45b1c7edf544536a620ace6ba5766d7766fc3c27eeb5aa57e
+MISC ChangeLog 3199 SHA256 3b24b360b52e543670e06c8367ace3076dfca007a1299942e2da88d1cddcd1ec SHA512 555fe38642d0ce7285212ff9e66177df7351df78f40c1341a26109347d4b177ea9d9f64c2935e156d5ffe46b8da65495a4a944bae6f20d4f930b5692857a80c8 WHIRLPOOL b496f96d775a1948e4a8289c49b0164df99a46bbfd01ad2bb3dbdc929ed73f6e3df1b74aa04ede72ce989ae6c43d09d47e4479c14132d163df656a1e689f4eca
+MISC ChangeLog-2015 2222 SHA256 63fbf94a1dee5046db26d9ba33b94da821466fcfc032693da6f7c0788d983c02 SHA512 5957710b0a3139c1be60bb6c0dfb82ce45139fab0b98481fea3a8a3d4f0aa350ee1ef660c07fd704fc4d27a33e78629910c0be132f6b0862dbecf04860105d1e WHIRLPOOL e027132f8bbe8ce1368b4c72f8ff301e129ae0ade764c93679f91a0944ffba87092c5a1682c16652698950387deb5dbae1bc68c3234f0e733a964ecd12c76470
+MISC metadata.xml 369 SHA256 e96eb14fb0807b06bd4e1bc082c240962558bdc3f2a2011f2b6d6fce06f2e703 SHA512 f6adb0429dd04c8aee77d85cfa2f006edd3253e21ae83eede4d6d1cfc8d70b0bcb9f5545f82e2c0e61935754757cf4d550e6f9c5ea1b0a00c71c80dd9c1504c0 WHIRLPOOL 5161bc1528e85b86aa3db935acc61a408bbfcefaa67e401a3003cb79e49cf21938c9026114a1be7d3526da94eb164c21618f92ea6f1e2e19cea1712ba80e6995
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 000000000000..bb2767a50861
--- /dev/null
+++ b/app-i18n/ibus-table-extraphrase/ibus-table-extraphrase-1.3.9.20110826.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="Chinese extra phrases for IBus-Table"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ibus/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-i18n/ibus-table"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
diff --git a/app-i18n/ibus-table-extraphrase/metadata.xml b/app-i18n/ibus-table-extraphrase/metadata.xml
new file mode 100644
index 000000000000..13ee2c91ec75
--- /dev/null
+++ b/app-i18n/ibus-table-extraphrase/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ <remote-id type="github">ibus/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 000000000000..5af773652eb3
--- /dev/null
+++ b/app-i18n/ibus-table-latin/Manifest
@@ -0,0 +1,5 @@
+DIST ibus-table-latin-1.2.0.20100305.tar.gz 88608 SHA256 ed89dd5c669d4a6c69f147ee74f5495d05ba6c5425421950b46ab4a4099e4834 SHA512 103b176364f548e7aaf8b006354e82b1933fa791587de734f7d9474ad85b7f9918b0b85136eb391c07d8a8df9024f1013a5a604e30ad5f13db5647a9380eb2cf WHIRLPOOL ff4420ea39fd330f44e9dd2f7b9b9ed3f90e82d2b0c72fcf40cf0c56541ae84b723fcfc4aa794bd6af54b831f8f2f1214329d7aaf353261dfb1f9441b534c54e
+EBUILD ibus-table-latin-1.2.0.20100305.ebuild 439 SHA256 74f29d75192af1bf46e371c2b2504ccedc011e13618f66364c86789006bd56c2 SHA512 81e5317fd629862acc24e4e130755383548601a46796e1eb64b1adffbbb9a42117f8fcb779ac9b4325cbefe36e98250c062737f7926592f3e21ba52a46c04330 WHIRLPOOL 138b6aa21e06c26f866ea386967ebf196ee9ab9c1de3213135f4ab7a91ac076b58835f32b3209a06c5ba926548ff0ea44f2861be7f1707caacb6dd037aac912c
+MISC ChangeLog 3163 SHA256 7cd397402d850b1921f35fc7ee766d3044aa520fffb85cbbca58a19f6823137c SHA512 695a9f7f7265fe704d6a51250fcfc0e48ce4781aaebe7e3e45053db83a7d6fedc9f25d50e177f83ed50d1d85b66e7eedd903ad20e6587e8e10824f595dc2ff0b WHIRLPOOL 6cc430bb2db672ec76bb34d9447d49ac3fb6e06887b33ec4737c2b7f3d2d55d1e02cfd733ddb4d16f00e49ee1c01983c56726abee303c6102b09ee155637be25
+MISC ChangeLog-2015 812 SHA256 e7a1de21d53af69169fba457ba0e5cf50dda9ed64404b083ca172b4b8922d298 SHA512 4d5efaf11dcfd23122e2b6956f95a79131ce5d95555b9ef4aeb574eb27c1f187ea4341f22324eff49398ab0108c204fd777380a7e4e979e9e10975332e30db91 WHIRLPOOL 4709b28dd45dfb0206bd76ec943a460073621f0e42a4bb9a8161267e93158eed55c28de98ff56f31d63646837d91bad749ba2170bca0e9553edf49057988626e
+MISC metadata.xml 369 SHA256 e96eb14fb0807b06bd4e1bc082c240962558bdc3f2a2011f2b6d6fce06f2e703 SHA512 f6adb0429dd04c8aee77d85cfa2f006edd3253e21ae83eede4d6d1cfc8d70b0bcb9f5545f82e2c0e61935754757cf4d550e6f9c5ea1b0a00c71c80dd9c1504c0 WHIRLPOOL 5161bc1528e85b86aa3db935acc61a408bbfcefaa67e401a3003cb79e49cf21938c9026114a1be7d3526da94eb164c21618f92ea6f1e2e19cea1712ba80e6995
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 000000000000..5b626b21e185
--- /dev/null
+++ b/app-i18n/ibus-table-latin/ibus-table-latin-1.2.0.20100305.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="Latin tables for IBus-Table"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ibus/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-i18n/ibus-table"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
diff --git a/app-i18n/ibus-table-latin/metadata.xml b/app-i18n/ibus-table-latin/metadata.xml
new file mode 100644
index 000000000000..13ee2c91ec75
--- /dev/null
+++ b/app-i18n/ibus-table-latin/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ <remote-id type="github">ibus/ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table-others/Manifest b/app-i18n/ibus-table-others/Manifest
new file mode 100644
index 000000000000..d0500524a260
--- /dev/null
+++ b/app-i18n/ibus-table-others/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-table-others-1.3.9.tar.gz 627253 SHA256 63b14a809636a32a5d000a5dd44670a60eca3a872ff1c22d72617d2f6d52e008 SHA512 4557ba981a00035226b6cbe0d97ae14df275d3e7c5c453097b85e433a524e00efeebe508621495e63d6ff9cdd590f9d54b51a143147b83e1e3748f05b03d2019 WHIRLPOOL 5419e7d6e1f1b82b59289e096942046d492c99b0657fea881fc7270f458b736fa6ba6beb0580a94393a4be3dced53668287f94ec43f62fc5366d217c190ca5f8
+EBUILD ibus-table-others-1.3.9.ebuild 434 SHA256 b89c6578a71820b1cb9efd48f289fe2b9aa3c0467368cc6348250b58c7fb5910 SHA512 9c7f4b5fc16fa123d2d314f5e33cd12b038495ef81e87b490a02eab32028d47fc822c98d2be8381eea19da3ff7ef7dc471105bdc3dc4c787bca5a2f7cb07fec5 WHIRLPOOL 71524342f016cc164d026b05b60e63e462fd0692f68806f770bb7446814b2a3c6d6cbf1a267a07becf49ea419e51dfc72cf59a9d2be252e03d49f7e42ecd85ce
+MISC metadata.xml 641 SHA256 5ffa5558cb736df055ccfc65abf8e1140ebf86a81b3159758361e211c6ee8412 SHA512 775e9f2f353f8bb9ed2a0aa1c6c8dff98886c0e28f10c87136f2b67f5eef9eb0af3b5d49ea0b1eb4ae5e09b43fa0987b8195520db844e0d20d07f0593fbe6b96 WHIRLPOOL 15532dba71bcf122dd8aed3585fe69d36cb3c4f3ed6045e47a057ef2b9d96d3df5d7b42cb4da3e5caaa9bb9e90f534fe2f5cbe42df9ed584ec8eb652def63c48
diff --git a/app-i18n/ibus-table-others/ibus-table-others-1.3.9.ebuild b/app-i18n/ibus-table-others/ibus-table-others-1.3.9.ebuild
new file mode 100644
index 000000000000..636e5dce4891
--- /dev/null
+++ b/app-i18n/ibus-table-others/ibus-table-others-1.3.9.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="Various tables for IBus-Table"
+HOMEPAGE="https://github.com/moebiuscurve/ibus-table-others"
+SRC_URI="https://github.com/moebiuscurve/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-i18n/ibus-table"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
diff --git a/app-i18n/ibus-table-others/metadata.xml b/app-i18n/ibus-table-others/metadata.xml
new file mode 100644
index 000000000000..1c7ec141883e
--- /dev/null
+++ b/app-i18n/ibus-table-others/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ ibus-table-others provides the following tables for IBus-Table:
+
+ * CNS11643
+ * Compose
+ * Emoji
+ * IPA-X-SAMPA
+ * LaTex
+ * Mathwriter
+ * RussianTraditional
+ * Thai
+ * Translit
+ * Ua-Translit
+ * Viqr
+ * Yawerty
+ </longdescription>
+ <upstream>
+ <remote-id type="github">moebiuscurve/ibus-table-others</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table/Manifest b/app-i18n/ibus-table/Manifest
new file mode 100644
index 000000000000..f9ecb0c618a5
--- /dev/null
+++ b/app-i18n/ibus-table/Manifest
@@ -0,0 +1,7 @@
+DIST ibus-table-1.5.0.tar.gz 432844 SHA256 6ba89c70c50773d43927769a2c608f71b282afbf3538188f65b9c89ebdc1a184 SHA512 2c52da1b4d6ae8aec29e97a8a413b388912cfcfd15860ba0e65c97b139b14f8a7d4087eb196d516abe731df03a2e4904666194414242da8cf1f3f0b54696248e WHIRLPOOL cec2ad28dd8fa936738e7e2ae1ffa3c0e96a6d5c6cf88c74a98ed0900c31464ba405c6e4449977936733dc28f3c7768f22bb216fca2a583f1679a7bcb596c39d
+DIST ibus-table-1.9.18.tar.gz 585309 SHA256 d0ef094c84c47c5ae490fc0c30a6afea0e0337559f5b7042d6b07e92dd86de37 SHA512 3f28269be1987023402eb6075b8e68b3bbba3c572a94551d072281677fde5fa14f8f4186455f8f9156b252934580c7a3837555d0edb46c76f13c8b109e26aca2 WHIRLPOOL 1d960d5a73266fb86f3f76bfa1789609d38f8a356bd2405b043f6c1123a84069bc2cfc34cb7c3e90d463b34ba987bedab5b14307380f4381a29fe2f712806977
+EBUILD ibus-table-1.5.0-r1.ebuild 909 SHA256 c1cc18fb060f6cc6628f22454c83908f6496850651fba58f78cd59aa7919af96 SHA512 93de9941ae6fc3f7fc984faf14511692c3e0a73998bb725e54fa465b2c4f417a7e2c40f630c6de482dbe1131ad34c7675fca306ca4c9ef038d9fd9a821ac53c5 WHIRLPOOL 75b6dfbf8c7882f738d7bbdf9312575a61dcab8d9b48385d34c47a90b783c58df1aa2295df797059bb2b007e71c73b77821ec24ec7698a2ff2afd5d1f1fe85d4
+EBUILD ibus-table-1.9.18.ebuild 890 SHA256 9818248557c15d2e382ee2a186a5c1ea44b50bca4021c47c520157bddbc960f4 SHA512 ec786ca8823a3c4cc8933f26aa3505f21b408115c1f3d92f958a2efcffe295094368aa198a50cbcf602f3d0185411a056fbba606d457aca46fe7849527495f69 WHIRLPOOL 568f08ee0e13c8d21fe0f3c0cc9c0653447d8fa8a952bce640380a413e5f56f188054f54029673fa71d71eeac39f88d9fde6fad31b24741029c2d1c1c927577f
+MISC ChangeLog 4534 SHA256 322657bdf1c3449baea61688333fb77a7410097f817776ce4e8aa077b7beec69 SHA512 1bc95b2a249c8e5e4bd4e4cf620fb56eaac649de991ae279d02eff537b45d05d595c707366bd2bba485718f22b74f8f54dd1612fd2e25854d83ae0077c29eddc WHIRLPOOL 2dcb9d4a128dfd6cd684c9ff1468c7c108f86c3cd82a1841577218154c6c4b3a588c313a0e83d31cc530abc48036a67ab80e16a7048676442ca5014523826409
+MISC ChangeLog-2015 5522 SHA256 ef61b651d9104d2b73f1967fc08a2f16d3201a31459f31f746ae9085740b97b1 SHA512 761a856f3e2fde4e3f9f16d4bc0bf14eb8638f7f77708e82a871b0daf8ebe7e6b7a3cbe98a0da831803780fc0ce8545bd19761baf336e04f9c56f375515d433d WHIRLPOOL 039aefa0b1e558e61ada1ff429b2f2a61f0ded2253dc9e0658ee37bd1aabb370e900dcb3963a438810d2213b419a323c7dcbc54403f902d6e4ae1d7f9c3bb8d8
+MISC metadata.xml 433 SHA256 e6a11794ef2d6f166cdada02fa1edf93bd3eee6b5d6c705238d1abdeed58b131 SHA512 827cf106065bdc9e3eb26c098a8480f3865f93e7bf667981437e725af60ad4fda297ed5d43cd9332f3131544e0ebec03dc058c688382a2a80ef34947339fc855 WHIRLPOOL 315666344631f2857ea7122b5b90093db96ffce13f464481eda10ea2a670b5a87566774da72cf9f3f2e8f87d037523954f3c31d585e7611630a4b88e44328512
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 000000000000..313b0d5d4716
--- /dev/null
+++ b/app-i18n/ibus-table/ibus-table-1.5.0-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite(+)"
+
+inherit python-single-r1
+
+DESCRIPTION="Tables engines for IBus"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/ibus/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-i18n/ibus[python(+),${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ virtual/libiconv
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ python_fix_shebang .
+
+ sed -i \
+ "s/python/${EPYTHON}/" \
+ engine/${PN}-createdb.in \
+ engine/${PN/-/-engine-}.in
+
+ default
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
diff --git a/app-i18n/ibus-table/ibus-table-1.9.18.ebuild b/app-i18n/ibus-table/ibus-table-1.9.18.ebuild
new file mode 100644
index 000000000000..114b81267db0
--- /dev/null
+++ b/app-i18n/ibus-table/ibus-table-1.9.18.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python{3_4,3_5,3_6} )
+PYTHON_REQ_USE="sqlite(+)"
+
+inherit python-single-r1
+
+DESCRIPTION="Tables engines for IBus"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://github.com/kaio/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-i18n/ibus[python(+),${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ virtual/libiconv
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ python_fix_shebang .
+
+ sed -i \
+ "s/python/${EPYTHON}/" \
+ engine/${PN}-createdb.in \
+ engine/${PN/-/-engine-}.in
+
+ default
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
diff --git a/app-i18n/ibus-table/metadata.xml b/app-i18n/ibus-table/metadata.xml
new file mode 100644
index 000000000000..577d254feeb7
--- /dev/null
+++ b/app-i18n/ibus-table/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ A framework for table based input methods using IBus.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">kaio/ibus-table</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-tutcode/Manifest b/app-i18n/ibus-tutcode/Manifest
new file mode 100644
index 000000000000..0d9e5abe94ba
--- /dev/null
+++ b/app-i18n/ibus-tutcode/Manifest
@@ -0,0 +1,10 @@
+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
+EBUILD ibus-tutcode-1.0.0.ebuild 479 SHA256 0bcf6128000914c39688a824971bd88033b249ba6bbb6f1823cf93200ce71ac4 SHA512 6f1b6e9d552e844984e38a9d9e28188a5868b3a1aae7405b99cfb617fcd9b9afb335ea5dd44b27cb86c8e961b0215da08ea471ac4383c4773c196206b134135a WHIRLPOOL d13ba3269e237b24f749c3e9911fcf6a03437ae1e7c066754971769c9f055f17e9b37c62d4b9b5e13bf4bf5ef10efe8a57ef17d0206972825e1fbca8399f78cf
+EBUILD ibus-tutcode-1.0.1.ebuild 479 SHA256 0bcf6128000914c39688a824971bd88033b249ba6bbb6f1823cf93200ce71ac4 SHA512 6f1b6e9d552e844984e38a9d9e28188a5868b3a1aae7405b99cfb617fcd9b9afb335ea5dd44b27cb86c8e961b0215da08ea471ac4383c4773c196206b134135a WHIRLPOOL d13ba3269e237b24f749c3e9911fcf6a03437ae1e7c066754971769c9f055f17e9b37c62d4b9b5e13bf4bf5ef10efe8a57ef17d0206972825e1fbca8399f78cf
+EBUILD ibus-tutcode-1.0.2-r1.ebuild 718 SHA256 826331a4d11e62eb1d93de9501a39fba87b64e23afe217c73c459b3001290850 SHA512 1b80fb02a068cc127602ac33125912c519a7f14412c4f4b7a42d491961dba1e87c5435498a9be3040f76f39d85e2be9a2c8f12e27f445804987a02dc1744fe82 WHIRLPOOL f07d51b4ba11caa1aa4afa8d02dea8723b28ff6b7d301659abac2a5113b989b248832c9dac133e93cf4bb642068a15b0d00fb0b4edb6140a9c112f85e435b384
+EBUILD ibus-tutcode-1.0.2.ebuild 546 SHA256 f3ff778f84cde91b51be4397ab8a4dae16c0204c7012b1ccef2602d7c0cbfbf0 SHA512 d29229d491966511f76fdec2ed3f25a180f3bb853b6ad4159160e372e350bfacd57081dfe9543b966a61ae4cb285bbd83e8a821e2f0840a6055792da342844c8 WHIRLPOOL 89fc7d901dfeeec839bc4ba4ce1f0498b9cdfb67d28fe941959aa96a595d6e23d28955c90cdc96e5a6d75304a532bab20fea6aa7c5a9191cdfee26f68ef0379f
+MISC ChangeLog 2636 SHA256 6c0b3a5d50aeedf7c99ee86d2cf3cb8894b8c38daf8d40f29a3b22f4e2f3a2ec SHA512 dc637cef095748423e36e08312487d8b2485771df4cb88771ae4673441215e59d957fa6a52dc7da4dcba1769ab6e76235fa93dfd069e3c50f75f9cd3c56ced33 WHIRLPOOL bf931d6cb107ff39c69d5e9f679db40d61ba8c8c19324d2251414dea67de0295624ea9be2b22690cb7651e405be990268fc17d3f834fa2b4e13012173549e572
+MISC ChangeLog-2015 1192 SHA256 0dcbc1ed32684333e2b929a30d47783bcd1e733c9d02419d60136137ebd55bb4 SHA512 769da1880e9ae88ee69a6bbed570b52fbb2ca9e5770463421b3b8e9471627f876950592da3b2ba66bffd6600c2e67d628363535abc6039d952212fb94ea6f0a5 WHIRLPOOL f3ce745e90c536595968100ec7483057941750253462e28a8f558c31851590d18276916cc6f0365ceab3d7b7ec3e481e6156dc8bb4a80f262ac30ff589288b1c
+MISC metadata.xml 408 SHA256 ae10930e533b3b027df7d6da3e22a11c0ef6d3ff2e12ec1749d64fee3485aa90 SHA512 7ada81191429a8ebb16460376ea17c1035ed03265423aeaef1ff5a91abc6983f80e5b6c63d3b439e9b48fcb70513039da6564d7600e3ca6cc5af3cab495cad65 WHIRLPOOL 22cd86a720cb5d5c1a52bfa46d55af3060e79f5ac35bc7300de12e913595e810d6ea376294fd4926eb48cbdaa3962e6573403cdd7368ecc17237e077e078df3e
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 000000000000..20db618e8786
--- /dev/null
+++ b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..20db618e8786
--- /dev/null
+++ b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..b39c6bbfb76b
--- /dev/null
+++ b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..00898bb4da39
--- /dev/null
+++ b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..07c7706e43ff
--- /dev/null
+++ b/app-i18n/ibus-tutcode/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>naota@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">deton/ibus-tutcode</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-typing-booster/Manifest b/app-i18n/ibus-typing-booster/Manifest
new file mode 100644
index 000000000000..af82624abde5
--- /dev/null
+++ b/app-i18n/ibus-typing-booster/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-typing-booster-1.5.32.tar.gz 5114796 SHA256 fc85e6913bd249c5fa94f4451f6ddc58031e2e0381563d9e26584f7b85a70e4f SHA512 0027d5b569577e3508a2af98c45929f63fea95369e6d502a42b3e3f61d28fb2c575ac42f5ae69c388d13a5740d35cbcda78ef01144679dc201bcbf384639290e WHIRLPOOL 9623cc693dccab953f8bbfdca5a91d25345a7446bf2c9e5da9a1a08b7401d69a480670fe3da89a3bd034be7f6e45588893e6092c0f7f842cc1788bf67c650b1e
+EBUILD ibus-typing-booster-1.5.32.ebuild 892 SHA256 3cae448b4df5363ea5d3d0e71feda1f598b200e71f1e9be97174340322ef3175 SHA512 337d8a78c9fb87cfe46fbe5e043722c52c2d2b7cc62039220f444f9a26936b726fad670910f69e52c66b7f771ff95872bd01d091fe281f4a27287cd4e6495182 WHIRLPOOL 01ccc9cda9a02c092fc90efdef37e233e2baa983443e6f4502f6e1f990b91559944694c4702aa53381db5d3d9a72c1af2b43a3f9bbf9469126d7d5eb76aa5097
+MISC metadata.xml 331 SHA256 cdbd2d18acf535c0e7d91b71bb412c06a469012ecfc994e775b953666faf847f SHA512 e0524c2ebad138f51a5d79d639e809196029a83f46dc331c2bd21d94417d5adf8d059f15694b484f4fcb107dff2aba7d3ad4c87a19accaccf75429bfa2c92b63 WHIRLPOOL d5a0cf7d3a7420b3b3881de50eeee5c6445d1e9cef50cf991a230d6ac73a490e8001275e435f2df85c9b7510041d0543a64e5b39b337f7e317eeb98091f1be86
diff --git a/app-i18n/ibus-typing-booster/ibus-typing-booster-1.5.32.ebuild b/app-i18n/ibus-typing-booster/ibus-typing-booster-1.5.32.ebuild
new file mode 100644
index 000000000000..94e882bf44d5
--- /dev/null
+++ b/app-i18n/ibus-typing-booster/ibus-typing-booster-1.5.32.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python{3_4,3_5,3_6} )
+PYTHON_REQ_USE="sqlite(+)"
+
+inherit python-single-r1
+
+DESCRIPTION="Completion input method for IBus"
+HOMEPAGE="https://mike-fabian.github.io/ibus-typing-booster"
+SRC_URI="https://github.com/mike-fabian/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+CDEPEND="${PYTHON_DEPS}
+ app-i18n/ibus[python(+),${PYTHON_USEDEP}]
+ dev-libs/m17n-lib
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/pyenchant[${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ dev-python/pyxdg[${PYTHON_USEDEP}]"
+RDEPEND="${CDEPEND}
+ || (
+ >=dev-db/m17n-db-1.7
+ dev-db/m17n-contrib
+ )"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
diff --git a/app-i18n/ibus-typing-booster/metadata.xml b/app-i18n/ibus-typing-booster/metadata.xml
new file mode 100644
index 000000000000..bd6b0e5b1eb3
--- /dev/null
+++ b/app-i18n/ibus-typing-booster/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ A completion input method for IBus.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-i18n/ibus-unikey/Manifest b/app-i18n/ibus-unikey/Manifest
new file mode 100644
index 000000000000..4b28a2c188ff
--- /dev/null
+++ b/app-i18n/ibus-unikey/Manifest
@@ -0,0 +1,6 @@
+DIST ibus-unikey-0.6.1-gcc6.patch 31686 SHA256 928b12d470994072bb4b08472b365b340a24e07e83c2020905de3ecaf61a1dee SHA512 9e1b172a904076ba817c7bab80cbbf7d736c078d3ea285cb946be23552ff0f571ca8e0187cac4e5bfecc2b0032512d6f09af4435056d6b653a3648d07356d9b2 WHIRLPOOL 6e4d232dddf7520da365692180199167a0f9c89f597d984abe0e698b815af174764477df78e220fe8bc5e364be40fd7e6912b69f0d6446fda0244f1a6271e3b8
+DIST ibus-unikey-0.6.1.tar.gz 516250 SHA256 989bbea706d2d8d7b86630b1f2b4f63d8ed5167a1cc2b8fafd7f2198ec78d734 SHA512 f8d519802d9b304cdaebfcee3f9fef5f17756cde48aa48b9dd357d714e2eaaba0df8f91218b658fdd1d85343804e054b7987caff2734913b29dc76263c30d4e6 WHIRLPOOL 4a14d0145477527b100272801f2ac8e90178c8d6d7ae743619d6babcf1da069bc550a3eac473c8ac9b60e0b5eeaf1ea780a97d1e3ebd81a0b557e51f20615c4c
+EBUILD ibus-unikey-0.6.1-r2.ebuild 838 SHA256 10bc457776d87722e8af0e8f2af358c74b90f990cc0ddc693a0491a78c398a20 SHA512 6bdd0b11d6a2e858fbe9d047c1235f0bc780eae844d5bfbd0292288fe8c80cb6a8604e00c81f83547c6a22466a6567f61828851518be24a5001e1832fc95925d WHIRLPOOL 6d9db6dd992c30c575479bc0527ec643992582feeb16248d81036c9b492e57658a3cc27f3a56247b5651c50dbad2049a76f63903c017c94dd6921ffc73259818
+MISC ChangeLog 2954 SHA256 e4237223932ec0cbda885fb54338a2839ce20c60526bb69e3367052e17ba006c SHA512 9652a963d12eef02777cee462f8cc7ed87685bf027572f8c1800a9bd043240c31cef06a2133912cc1a60aeb66c17fd65b05c9ceea99255a075e66db89fca72d5 WHIRLPOOL e65b50aa0692d63c7f814aded52d702dddbb5491ad1538e6fedef3cae031c4c5dbf2165e2c1a47fadb29ac6b2f8234ccfaccbdd3b1863b8ee86ec2881bfcb840
+MISC ChangeLog-2015 1731 SHA256 bbfff6adca23588ba00fa56288545d45991ba39459206407a836029ccf035adc SHA512 ad6707e022c473a21743b8859a4cadcea7902db09a2664e29f6c9cd34d1fc76bac687a939eec29c8d6ce135a4e32f50b8f778e795672e13bc604ce9601ec5610 WHIRLPOOL 4366bb23460e74ba1504498189f562608d9fa5115f65edd052786ce08ead8e59faff37f429977e008c021bf5ed7ed06affb1f799d4cef0f019f53d22e979a9ac
+MISC metadata.xml 632 SHA256 3e8f60039d1d098a8950b8704916b8ce7269d4d6a12e7b32fd1f62363876bb2a SHA512 e83ae38078b4b363272c0cd1b7c10d56665f709ee536f6f466fab6bd4b83876412c56558588f0b3a72c57facbdaa6ef8549ac1c1721fe4a78099b78a362fcfcc WHIRLPOOL 896644fa368fa79d94e74fb6de413a0b9fe7d96ba428db1d07a0e2a19d0b5c35111c88a20dddfa795071dc0796c09c99b27f301df2cce542c1e261506a087907
diff --git a/app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild b/app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild
new file mode 100644
index 000000000000..63c9b7f58158
--- /dev/null
+++ b/app-i18n/ibus-unikey/ibus-unikey-0.6.1-r2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="Vietnamese UniKey engine for IBus"
+HOMEPAGE="https://github.com/mrlequoctuan/ibus-unikey"
+SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${P}.tar.gz
+ https://dev.gentoo.org/~dlan/distfiles/${P}-gcc6.patch"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+gtk gtk2 nls"
+REQUIRED_USE="gtk2? ( gtk )"
+
+RDEPEND="app-i18n/ibus
+ x11-libs/libX11
+ gtk? (
+ gtk2? ( x11-libs/gtk+:2 )
+ !gtk2? ( x11-libs/gtk+:3 )
+ )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ nls? ( sys-devel/gettext )"
+
+PATCHES=( "${DISTDIR}"/${P}-gcc6.patch )
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ --with-gtk-version=$(usex gtk2 3 2)
+}
diff --git a/app-i18n/ibus-unikey/metadata.xml b/app-i18n/ibus-unikey/metadata.xml
new file mode 100644
index 000000000000..880cfde265eb
--- /dev/null
+++ b/app-i18n/ibus-unikey/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ The UniKey engine for IBus. It provides a Vietnamese input method using
+ UniKey. Support via forum at: http://forum.ubuntu-vn.com/viewforum.php?f=85
+ </longdescription>
+ <use>
+ <flag name="gtk2">Enable support for <pkg>x11-libs/gtk+</pkg>:2</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">mrlequoctuan/ibus-unikey</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus/Manifest b/app-i18n/ibus/Manifest
new file mode 100644
index 000000000000..126dcc7f755d
--- /dev/null
+++ b/app-i18n/ibus/Manifest
@@ -0,0 +1,9 @@
+DIST ibus-1.5.12.tar.gz 2190284 SHA256 e24da95995f4aca5b96359eaba709487dc5ad4c732e9b01b9bcf9fb34be2442c SHA512 a443bf0d1b71a52c18e7d13a0c69f38c48f6924cfb1669912880b87be1bf41bcb7d8d6252aafd6799e43d41c081fd94cf334fd836a0505c93a4e5c5b68241c81 WHIRLPOOL 82354fc5006a0abe4cb431dda90a67dc1b775f0bac521b481eaeb7acd167ba6179cad14045c5141c57618845589094613bc489357ee8bf550f131ecfb1bf8293
+DIST ibus-1.5.15.tar.gz 2259352 SHA256 41f7baad6f3aac0cdfaebef674a8731ae47950f140edfbeefebaeed78c93e385 SHA512 4e588acf2ca0172b365630dcfe2d9062e7583e50a44d435ec05c8e3976c6caf54c4708733f1f7dce5ef7724254469ee5c7ab3b086f0cbea18775c894863b0c3e WHIRLPOOL ba40cfe9f398963ce6122d4beabdccaa94c6ac7a7463fe3cea3dc967b19a4702996fd132372a167a02956e1340b4278c61ea19ed781203db33a4651ddd3824b1
+DIST ibus-1.5.16.tar.gz 2375719 SHA256 36b57bfbe4f92e3281fb535cae65794b6f25164b2a3288e73e6d06b4a409fe1e SHA512 494ead69cf9c0111fd25fd1de27e796d89db4f08443afa1ec469f638469b25d8b19a59ea7ab0db0f3a130b9a89b3f2819667099ba38fc973d6efc61b367ce237 WHIRLPOOL 08fdab9971f2723b5cbacd0a5f3c6ab6c13ff8111abe2bdceab26113f304b20af38403313fa9819838e37805473489d629d3530ba1fc9739f2db991a85b89de7
+EBUILD ibus-1.5.12.ebuild 3695 SHA256 aaffaf61405fa70228858b0f6b1194d193975ffd5544f7d3c1fd5cf1cd66123b SHA512 2593129b58c41301ea94f7b7761cc40e13f3b6458230478067d6a0a1c6a23ad8aa5f225d4203259ad54eb38d87b3bbac1a029a4de5282aee82147891b3c2b394 WHIRLPOOL 51a1108a1dd3a5a12debf86d376f810fc62423da8244a12330bbd0fded763eb6e58475d84a0f3c6a1ae4c34c05aebf362097973eadad99e318706678bba24c86
+EBUILD ibus-1.5.15.ebuild 3552 SHA256 984ea657a021e9c8cb6d1b8852510fddc82564089ee5849c7c79ced1a94c68a1 SHA512 dec56dc700cc9e8fbe2280cf75e2550cc92d51e7ecbae307b87ef6e5707a2a7e31c5b82e8228818290bc94527f3c2bbdb34e0a4b61a0c8d5f1bafe5ebd00d485 WHIRLPOOL 9652763ac3e5a7ec3f8f76200e15b22c779fa11b04fa7b06084546183c5b332f1214c620a1efd09471fc114718d9d2a5454cb834e874c4443be9bc762eda9bac
+EBUILD ibus-1.5.16.ebuild 3958 SHA256 e69dcb3515a6182c6ee89909c9b0b072ae6907374ba27832d0e7ce42da549e92 SHA512 b8c3f8ac7946ac7d3863f7585638be16b03b2609467ecac6a946dd5cc6c5a2d13d3e546f9f31d9c431ee07caa952f5a9f19c6f4db50fc087b2b2e228e0ddc92a WHIRLPOOL af647cb0bd61b507095decd975e75b8552f9c873e83a67b9d2d4f5ee2ddeeab34dcd7bb2d5c261a0ff47369c37100e1f7612969db2c7a6324c90eec723af7f1a
+MISC ChangeLog 7770 SHA256 c55b7c626e32d88a3773702076948fd490a7380197c8c8c280172053a6c428bd SHA512 adcafde1ed0b769739a64e57ed7278babb988c03ef20314c5286e70173e26201e5e23af05d6559da4c0df8389d40abd09b5ebfd1bc0bad44591213f023bc6a0d WHIRLPOOL ac3540a6ae460ffe42850a317bd9713533e4a5fb8461401913ca45f5e25d5e47c327d297b2f1d27b4beaf81635c2eae37b5d24bb981513d71263e30d8e81aac1
+MISC ChangeLog-2015 25042 SHA256 62c0274f1900c833abc5412fe9e0e1af1b2efb09c68c5cb1b1d3a6eb72e9f4e8 SHA512 9b344850bd2ca77a717ee7fdba3aad4f3d8ff7394880cb79dabd5f6ff5204f86a637b8c79fb54d2ae8720b14a6bbe55f589ad374c6a2bf236c5a4f24dd693db5 WHIRLPOOL 3dcee731d7d6d1a0c40bb22b09d2fa93b2e3380c3c0a769230be0cd0a1c25e9f32e615ec1cbe3a4382939eaf84c9ed5694bb23a6dccf6215a0dc0afa10d78ba7
+MISC metadata.xml 876 SHA256 e5f6a30d70e60e5830b0697fd63cbf316695f054aa8bfd17621894e5916e324d SHA512 eff80e5a8db4276c1138de9e661e5735c42abfc32950bc439eda9f342e5d2a68a8d5c848dc0000a2960a315ac38dbeda6b9fc44de8b9d526e7dddd94122f9f32 WHIRLPOOL 328a432c3a5915e26bbd07c052043765809f0071fe4943b00e54dc32f9de9990e7f88a0e1796572ea4698584b8c469b5f24deb03208276ba0a1d5eafe957facd
diff --git a/app-i18n/ibus/ibus-1.5.12.ebuild b/app-i18n/ibus/ibus-1.5.12.ebuild
new file mode 100644
index 000000000000..a8413c59fff3
--- /dev/null
+++ b/app-i18n/ibus/ibus-1.5.12.ebuild
@@ -0,0 +1,166 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+VALA_USE_DEPEND="vapigen"
+
+inherit autotools bash-completion-r1 gnome2-utils ltprune python-r1 vala virtualx
+
+DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="+X gconf +gtk +gtk2 +introspection +libnotify nls +python test vala wayland"
+REQUIRED_USE="gtk2? ( gtk )
+ libnotify? ( gtk )
+ python? (
+ ${PYTHON_REQUIRED_USE}
+ gtk
+ introspection
+ )
+ test? ( gtk )
+ vala? ( introspection )"
+
+CDEPEND="app-text/iso-codes
+ dev-libs/glib:2
+ gnome-base/dconf
+ gnome-base/librsvg:2
+ sys-apps/dbus[X?]
+ X? (
+ x11-libs/libX11
+ !gtk? ( x11-libs/gtk+:2 )
+ )
+ gconf? ( gnome-base/gconf:2 )
+ gtk? (
+ x11-libs/gtk+:3
+ x11-libs/libX11
+ x11-libs/libXi
+ gtk2? ( x11-libs/gtk+:2 )
+ )
+ introspection? ( dev-libs/gobject-introspection )
+ libnotify? ( x11-libs/libnotify )
+ nls? ( virtual/libintl )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ )
+ wayland? (
+ dev-libs/wayland
+ x11-libs/libxkbcommon
+ )"
+RDEPEND="${CDEPEND}
+ python? (
+ gtk? (
+ x11-libs/gtk+:3[introspection]
+ )
+ )"
+DEPEND="${CDEPEND}
+ $(vala_depend)
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ vala_src_prepare --ignore-use
+ if ! use libnotify; then
+ touch ui/gtk3/panel.vala
+ fi
+ # for multiple Python implementations
+ sed -i "s/^\(PYGOBJECT_DIR =\).*/\1/" bindings/Makefile.am
+ # fix for parallel install
+ sed -i \
+ -e "/^py2_compile/,/^$/d" \
+ -e "/^install-data-hook/,/^$/d" \
+ bindings/pygobject/Makefile.am
+ # require user interaction
+ sed -i "/^TESTS += ibus-compose/d" src/tests/Makefile.am
+ # fixed in 1.5.14+
+ sed -i "/def test_keymap/a\ self.skipTest('')" bindings/pygobject/test-override-ibus.py
+ sed -i "/[[:space:]]test-stress[[:space:]]/d" bus/Makefile.am
+ sed -i "/^TESTS += ibus-engine-switch/d" src/tests/Makefile.am
+
+ sed -i "/^bash_completion/d" tools/Makefile.am
+
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local python_conf=()
+ if use python; then
+ python_setup
+ python_conf+=(
+ $(use_enable gtk setup)
+ --with-python=${EPYTHON}
+ )
+ else
+ python_conf+=( --disable-setup )
+ fi
+
+ econf \
+ $(use_enable X xim) \
+ $(use_enable gconf) \
+ $(use_enable gtk gtk3) \
+ $(use_enable gtk ui) \
+ $(use_enable gtk2) \
+ $(use_enable introspection) \
+ $(use_enable libnotify) \
+ $(use_enable nls) \
+ $(use_enable test tests) \
+ $(use_enable vala) \
+ $(use_enable wayland) \
+ "${python_conf[@]}"
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ virtx emake -j1 check
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+
+ if use python; then
+ python_install() {
+ emake -C bindings/pygobject \
+ pyoverridesdir="$(${EPYTHON} -c 'import gi; print(gi._overridesdir)')" \
+ DESTDIR="${D}" \
+ install
+ }
+ python_foreach_impl python_install
+ fi
+
+ keepdir /usr/share/ibus/engine
+
+ newbashcomp tools/${PN}.bash ${PN}
+
+ insinto /etc/X11/xinit/xinput.d
+ newins xinput-${PN} ${PN}.conf
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_icon_savelist
+ gnome2_schemas_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ use gtk && gnome2_query_immodules_gtk3
+ use gtk2 && gnome2_query_immodules_gtk2
+ gnome2_icon_cache_update
+ gnome2_schemas_update
+ dconf update
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk3
+ use gtk2 && gnome2_query_immodules_gtk2
+ gnome2_icon_cache_update
+ gnome2_schemas_update
+}
diff --git a/app-i18n/ibus/ibus-1.5.15.ebuild b/app-i18n/ibus/ibus-1.5.15.ebuild
new file mode 100644
index 000000000000..d98586b8db2f
--- /dev/null
+++ b/app-i18n/ibus/ibus-1.5.15.ebuild
@@ -0,0 +1,167 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+VALA_USE_DEPEND="vapigen"
+
+inherit autotools bash-completion-r1 gnome2-utils ltprune python-r1 vala virtualx
+
+DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="+X gconf +gtk +gtk2 +introspection +libnotify nls +python test vala wayland"
+REQUIRED_USE="gtk2? ( gtk )
+ libnotify? ( gtk )
+ python? (
+ ${PYTHON_REQUIRED_USE}
+ gtk
+ introspection
+ )
+ test? ( gtk )
+ vala? ( introspection )"
+
+CDEPEND="app-text/iso-codes
+ dev-libs/glib:2
+ gnome-base/dconf
+ gnome-base/librsvg:2
+ sys-apps/dbus[X?]
+ X? (
+ x11-libs/libX11
+ !gtk? ( x11-libs/gtk+:2 )
+ )
+ gconf? ( gnome-base/gconf:2 )
+ gtk? (
+ x11-libs/gtk+:3
+ x11-libs/libX11
+ x11-libs/libXi
+ gtk2? ( x11-libs/gtk+:2 )
+ )
+ introspection? ( dev-libs/gobject-introspection )
+ libnotify? ( x11-libs/libnotify )
+ nls? ( virtual/libintl )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ )
+ wayland? (
+ dev-libs/wayland
+ x11-libs/libxkbcommon
+ )"
+RDEPEND="${CDEPEND}
+ python? (
+ gtk? (
+ x11-libs/gtk+:3[introspection]
+ )
+ )"
+DEPEND="${CDEPEND}
+ $(vala_depend)
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ vala_src_prepare --ignore-use
+ # disable emoji
+ touch \
+ tools/main.vala \
+ ui/gtk3/panel.vala
+ if ! use libnotify; then
+ touch ui/gtk3/panel.vala
+ fi
+ # for multiple Python implementations
+ sed -i "s/^\(PYGOBJECT_DIR =\).*/\1/" bindings/Makefile.am
+ # fix for parallel install
+ sed -i \
+ -e "/^py2_compile/,/^$/d" \
+ -e "/^install-data-hook/,/^$/d" \
+ bindings/pygobject/Makefile.am
+ # require user interaction
+ sed -i "/^TESTS += ibus-compose/d" src/tests/Makefile.am
+
+ sed -i "/^bash_completion/d" tools/Makefile.am
+
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local python_conf=()
+ if use python; then
+ python_setup
+ python_conf+=(
+ $(use_enable gtk setup)
+ --with-python=${EPYTHON}
+ )
+ else
+ python_conf+=( --disable-setup )
+ fi
+
+ econf \
+ $(use_enable X xim) \
+ $(use_enable gconf) \
+ $(use_enable gtk gtk3) \
+ $(use_enable gtk ui) \
+ $(use_enable gtk2) \
+ $(use_enable introspection) \
+ $(use_enable libnotify) \
+ $(use_enable nls) \
+ $(use_enable test tests) \
+ $(use_enable vala) \
+ $(use_enable wayland) \
+ --disable-emoji-dict \
+ "${python_conf[@]}"
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ virtx emake -j1 check
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+
+ if use python; then
+ python_install() {
+ emake -C bindings/pygobject \
+ pyoverridesdir="$(${EPYTHON} -c 'import gi; print(gi._overridesdir)')" \
+ DESTDIR="${D}" \
+ install
+ }
+ python_foreach_impl python_install
+ fi
+
+ keepdir /usr/share/ibus/engine
+
+ newbashcomp tools/${PN}.bash ${PN}
+
+ insinto /etc/X11/xinit/xinput.d
+ newins xinput-${PN} ${PN}.conf
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_icon_savelist
+ gnome2_schemas_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ use gtk && gnome2_query_immodules_gtk3
+ use gtk2 && gnome2_query_immodules_gtk2
+ gnome2_icon_cache_update
+ gnome2_schemas_update
+ dconf update
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk3
+ use gtk2 && gnome2_query_immodules_gtk2
+ gnome2_icon_cache_update
+ gnome2_schemas_update
+}
diff --git a/app-i18n/ibus/ibus-1.5.16.ebuild b/app-i18n/ibus/ibus-1.5.16.ebuild
new file mode 100644
index 000000000000..1840a7ca6982
--- /dev/null
+++ b/app-i18n/ibus/ibus-1.5.16.ebuild
@@ -0,0 +1,182 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+VALA_USE_DEPEND="vapigen"
+
+inherit autotools bash-completion-r1 gnome2-utils ltprune python-r1 vala virtualx
+
+DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
+HOMEPAGE="https://github.com/ibus/ibus/wiki"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="+X +emoji gconf +gtk +gtk2 +introspection kde +libnotify nls +python test vala wayland"
+REQUIRED_USE="emoji? ( gtk )
+ gtk2? ( gtk )
+ kde? ( gtk )
+ libnotify? ( gtk )
+ python? (
+ ${PYTHON_REQUIRED_USE}
+ gtk
+ introspection
+ )
+ test? ( gtk )
+ vala? ( introspection )"
+
+CDEPEND="app-text/iso-codes
+ dev-libs/glib:2
+ gnome-base/dconf
+ gnome-base/librsvg:2
+ sys-apps/dbus[X?]
+ X? (
+ x11-libs/libX11
+ !gtk? ( x11-libs/gtk+:2 )
+ )
+ gconf? ( gnome-base/gconf:2 )
+ gtk? (
+ x11-libs/gtk+:3
+ x11-libs/libX11
+ x11-libs/libXi
+ gtk2? ( x11-libs/gtk+:2 )
+ )
+ introspection? ( dev-libs/gobject-introspection )
+ kde? ( dev-qt/qtgui:5 )
+ libnotify? ( x11-libs/libnotify )
+ nls? ( virtual/libintl )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ )
+ wayland? (
+ dev-libs/wayland
+ x11-libs/libxkbcommon
+ )"
+RDEPEND="${CDEPEND}
+ python? (
+ gtk? (
+ x11-libs/gtk+:3[introspection]
+ )
+ )"
+DEPEND="${CDEPEND}
+ $(vala_depend)
+ dev-util/intltool
+ virtual/pkgconfig
+ emoji? (
+ app-i18n/unicode-cldr
+ app-i18n/unicode-emoji
+ )
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ vala_src_prepare --ignore-use
+ if ! use emoji; then
+ touch \
+ tools/main.vala \
+ ui/gtk3/panel.vala
+ fi
+ if ! use kde; then
+ touch ui/gtk3/panel.vala
+ fi
+ if ! use libnotify; then
+ touch ui/gtk3/panel.vala
+ fi
+ # for multiple Python implementations
+ sed -i "s/^\(PYGOBJECT_DIR =\).*/\1/" bindings/Makefile.am
+ # fix for parallel install
+ sed -i \
+ -e "/^py2_compile/,/^$/d" \
+ -e "/^install-data-hook/,/^$/d" \
+ bindings/pygobject/Makefile.am
+ # require user interaction
+ sed -i "/^TESTS += ibus-compose/d" src/tests/Makefile.am
+
+ sed -i "/^bash_completion/d" tools/Makefile.am
+
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local unicodedir="${EPREFIX}"/usr/share/unicode
+ local python_conf=()
+ if use python; then
+ python_setup
+ python_conf+=(
+ $(use_enable gtk setup)
+ --with-python=${EPYTHON}
+ )
+ else
+ python_conf+=( --disable-setup )
+ fi
+
+ econf \
+ $(use_enable X xim) \
+ $(use_enable emoji emoji-dict) \
+ $(use_with emoji unicode-emoji-dir "${unicodedir}"/emoji) \
+ $(use_with emoji emoji-annotation-dir "${unicodedir}"/cldr/common/annotations) \
+ $(use_enable gconf) \
+ $(use_enable gtk gtk3) \
+ $(use_enable gtk ui) \
+ $(use_enable gtk2) \
+ $(use_enable introspection) \
+ $(use_enable kde appindicator) \
+ $(use_enable libnotify) \
+ $(use_enable nls) \
+ $(use_enable test tests) \
+ $(use_enable vala) \
+ $(use_enable wayland) \
+ "${python_conf[@]}"
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ virtx emake -j1 check
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+
+ if use python; then
+ python_install() {
+ emake -C bindings/pygobject \
+ pyoverridesdir="$(${EPYTHON} -c 'import gi; print(gi._overridesdir)')" \
+ DESTDIR="${D}" \
+ install
+ }
+ python_foreach_impl python_install
+ fi
+
+ keepdir /usr/share/ibus/engine
+
+ newbashcomp tools/${PN}.bash ${PN}
+
+ insinto /etc/X11/xinit/xinput.d
+ newins xinput-${PN} ${PN}.conf
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_icon_savelist
+ gnome2_schemas_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ use gtk && gnome2_query_immodules_gtk3
+ use gtk2 && gnome2_query_immodules_gtk2
+ gnome2_icon_cache_update
+ gnome2_schemas_update
+ dconf update
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk3
+ use gtk2 && gnome2_query_immodules_gtk2
+ gnome2_icon_cache_update
+ gnome2_schemas_update
+}
diff --git a/app-i18n/ibus/metadata.xml b/app-i18n/ibus/metadata.xml
new file mode 100644
index 000000000000..11716b823097
--- /dev/null
+++ b/app-i18n/ibus/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ IBus is a 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="emoji">Enable support for Emoji</flag>
+ <flag name="gconf">Enable support for <pkg>gnome-base/gconf</pkg></flag>
+ <flag name="gtk2">Enable support for <pkg>x11-libs/gtk+</pkg>:2</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 000000000000..fdf9735f55b0
--- /dev/null
+++ b/app-i18n/im-canna/Manifest
@@ -0,0 +1,7 @@
+AUX im-canna-gentoo.patch 912 SHA256 4532961d9a33ce3c8f9d2c3864038f86b067d576ce04234d864658212b1323c3 SHA512 5b9c98b3495bafcb9eb31d431abba0490817518c9804de6b09d6287d5e45540bc78d27d1be2496bcb1c6435db28666adc9b5b3967195399d57576aaf79da4ecc WHIRLPOOL 9a851f58911565fcf08d0accdea3688c29d7b326c2e3f98082ce226652450c24cf43656be30437e4f9d5cf8492a229b87031c7fd8c792ae5261e9e18579575b9
+DIST im-canna-0.3.2.2.tar.gz 314633 SHA256 df767584a92ddd23d6849979d27d7f99d2b6859dd2478cc1c5d151a8de8e393f SHA512 6ec4253038ca97e3e6319c024e4d11ca5418bf478280c4b19b81a9c628310a06bcd4ec35334d3a2bbdff0245bdfa660c1cdfd949ddd6b768d3b73d78648edc81 WHIRLPOOL 512cb9610714a6cf6c8bc24302b63213fce50a2ff69751f9695d97f2076d1e04c4607c4cd8d001ddf09d8bef0ea3429bb7a3e617632231d5c5ca239e2382bb2d
+EBUILD im-canna-0.3.2.2-r1.ebuild 770 SHA256 0f7edfd146ff8ee761c8ba837b98cd932c11cae866a96db31d1ade7df13b90d8 SHA512 f3908c519bd345ff1d2ec54868c4ec53a6dde1269b3d65f38325e7104a4db1dfcc3becddaa6f4db2577505ce808e2292baf369ea5bf26191d18cb501d5ea8ffa WHIRLPOOL af787369324aeba67d9c25b7ed2feb4cd4ab7ad4b00017e34c9fb858004af73d7deaf5a976956977a1c9ce6a90537e918aa1881f3a91e6396886e703ba2f846e
+EBUILD im-canna-0.3.2.2.ebuild 574 SHA256 0a57f77f7b37c2868fe44122856ff9afde0751ee0619e849def76ee5b8e6bdc3 SHA512 e7a3cff5ef4b13d8348cb092b2eb50f67dc2f39a4e5757e383010019b488ce146d0380ac26a2e5af11c999a2c4c96939d8ccf5e708d6ba6048e11df597d483cf WHIRLPOOL 8d923ba304a8c6e560e7813a79de21c680427836f0ab2bea1e705c3d3735657a1345d7f4ae9abf3a5043c54a0365ce51492f2960a5a0abc18165d5708814ed5e
+MISC ChangeLog 2434 SHA256 619c444ec5fb8a943aaebd6492af10036277d400f8de321890d149219b1dc2a3 SHA512 5be73e2f142ea3e7de5a20e35abe0d74154e60a3fd90bd8d88398bcb64770204578a0bab3ac3fcd45c532dcd5cbba9dada814cf7e6a3ef4b17508ae708e313f8 WHIRLPOOL 313b09cba43827cdb1367472cf4d5dd4c51356b6320c239efe21501abc409e764edcdcbe7d83c2a67e5247a98fab700901b5fc7e04feec5ff1806e75cd4798ed
+MISC ChangeLog-2015 1477 SHA256 85ec62cd5edd8aab428425f136a3d454f5a2a46d6765e705e82150e27ac6ed3e SHA512 f32ebb998a1ba82b385b3abfc094f93fdee2b3069b83aed84f83d0feb86ee8ae44de34e11258d002897863453310aa269f5e8f3fd93297b3ca44a7835b80d064 WHIRLPOOL 3cdbff27c877126690b541c407eb9c86419a16c009d92a727ff9e968980ec520c05706ba1eedc2ce29f28088d02d8668899f1547bad11c666e87334843abc071
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/im-canna/files/im-canna-gentoo.patch b/app-i18n/im-canna/files/im-canna-gentoo.patch
new file mode 100644
index 000000000000..959e8697eb82
--- /dev/null
+++ b/app-i18n/im-canna/files/im-canna-gentoo.patch
@@ -0,0 +1,35 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,4 +1,4 @@
+-moduledir = ${libdir}/gtk-2.0/2.4.0/immodules
++moduledir = ${libdir}/gtk-2.0/${GTK_BINARY_VERSION}/immodules
+ ## Makefile.am for gtk+/modules/input
+ if PLATFORM_WIN32
+ no_undefined = -no-undefined
+@@ -6,11 +6,11 @@
+
+ SUBDIRS = po
+
+-INCLUDES = @GTK_DEP_CFLAGS@ -I/usr/include/canna -DIM_LOCALEDIR=\"${datadir}/locale\"
++INCLUDES = @GTK_DEP_CFLAGS@ -DIM_LOCALEDIR=\"${datadir}/locale\"
+
+ DEPS =
+
+-LDADDS = @GTK_DEP_LIBS@ -lcanna
++LDADDS = @GTK_DEP_LIBS@
+
+ EXTRA_DIST= \
+ im-canna.spec \
+--- a/configure.in
++++ b/configure.in
+@@ -21,8 +21,10 @@
+
+ GTK_DEP_CFLAGS=`pkg-config gtk+-2.0 --cflags`
+ GTK_DEP_LIBS=`pkg-config gtk+-2.0 --libs`
++GTK_BINARY_VERSION=`pkg-config gtk+-2.0 --variable=gtk_binary_version`
+ AC_SUBST(GTK_DEP_CFLAGS)
+ AC_SUBST(GTK_DEP_LIBS)
++AC_SUBST(GTK_BINARY_VERSION)
+
+ LT_RELEASE=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION
+ LT_CURRENT=2
diff --git a/app-i18n/im-canna/im-canna-0.3.2.2-r1.ebuild b/app-i18n/im-canna/im-canna-0.3.2.2-r1.ebuild
new file mode 100644
index 000000000000..673a3b973445
--- /dev/null
+++ b/app-i18n/im-canna/im-canna-0.3.2.2-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools gnome2-utils ltprune
+
+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="app-i18n/canna
+ x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${PN}-gentoo.patch )
+
+src_prepare() {
+ default
+
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
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 000000000000..b979ded7fff9
--- /dev/null
+++ b/app-i18n/im-canna/im-canna-0.3.2.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+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="app-i18n/canna
+ x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+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 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/im-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>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/im-chooser/Manifest b/app-i18n/im-chooser/Manifest
new file mode 100644
index 000000000000..6a00e178c497
--- /dev/null
+++ b/app-i18n/im-chooser/Manifest
@@ -0,0 +1,5 @@
+DIST im-chooser-1.7.0.tar.bz2 509630 SHA256 5b5f4eff3f57b2b85b679d2079d56db507342ba4db189b3881bd75bf42fe125c SHA512 2a01488062b5a4dc1e4cd0815dda5a6bcef205dc50ed75d58836c5b46e3f86be79aac70eb5d6753e5f569ccc05015dd6d8de59029e94dc407cc613160d3ac61c WHIRLPOOL f80472e6c373ae29425e4bf6988088b2917ec1ecf936ac996ed0ae540d4a79fb39c5313c1f09c141e26a83444130993e981c2654c5de0c123e0fb3dbdece6d57
+EBUILD im-chooser-1.7.0.ebuild 957 SHA256 1bfa330c96a216ad9c13553db73337656057312aa173536653faf073f7f786d5 SHA512 55150d632160d2e1b5078f741b5f6577a04e1fdf708eb167acb605f36ddea643c53b7c9a66403eae0c38665603c10a9c9d68e922211028185340e5616e951570 WHIRLPOOL 17c22177a78dedea683cc07fe06e7370b924417a061df44d44834e99b1db3f0f135a726c437360d3c432b47598afc8db5c9e00a578dc7745b27e350d67089eb2
+MISC ChangeLog 2874 SHA256 80c7e37ca5ededdf75350962f7c8e13dc63da3251772f21f0fd9d6006c2e1462 SHA512 1959afb6888243727d8b6d7708715bfeb80f54723615d669dfd690c19d13c617b409c033ad9c0d87e2fb8574a5cc0ce46ba6f66dc382642ffffc498dd0858ff9 WHIRLPOOL 0a0d591ee89331a43fed1ec301da5800c79c08be94a25790a823563600cf4e58dae1601386eb88a56b88547722c78a61d78a204e840d87ac9dfdddc63ce43be8
+MISC ChangeLog-2015 1882 SHA256 17dbe4f3fa2644b0adca6f5c601bf2f0b799c194308b1df4fc4d65cc3321bece SHA512 254c9e1138df563461c7dc268fb0481b8915c40a4b81a513ca8c20b8d184c088739b3b7f6b7b7c7e749156d1f6b7907e43afc11291de259aa9487073f6815bf6 WHIRLPOOL 9361cd739db768952fbf2737e67c6f86761320b74ad87031f7ed421b6910769a783847aa23329980b1a08ef7a971553359f0d26ff167a2e1c716b6a3048aad39
+MISC metadata.xml 625 SHA256 4d4a35292b043be23bfd7597688c3e3b7a0abe2553c4bf62f587f42c1cdb657f SHA512 d06faf834ff8e1c5246473bb0a957cedc3d98a3ff1fc100414e40c276d5a8e67fda60635ee8fe48b35e96fcbfda9faa0a93d7c0fa1d5dd25c63dac2b3b4bea22 WHIRLPOOL 68ca7817a593f5f57b7ebed081e101c894f3af618440eb39ebe083f3335c1b98c9e3b8da2dd02d5ea8807735cd55424c6db8a5e928be304b24a4b7dc99aaa917
diff --git a/app-i18n/im-chooser/im-chooser-1.7.0.ebuild b/app-i18n/im-chooser/im-chooser-1.7.0.ebuild
new file mode 100644
index 000000000000..61443d0add9b
--- /dev/null
+++ b/app-i18n/im-chooser/im-chooser-1.7.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools ltprune
+
+DESCRIPTION="Desktop Input Method configuration tool"
+HOMEPAGE="https://pagure.io/im-chooser"
+SRC_URI="https://releases.pagure.org/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk2 xfce"
+
+RDEPEND="app-i18n/imsettings
+ virtual/libintl
+ x11-libs/libSM
+ gtk2? ( x11-libs/gtk+:2 )
+ !gtk2? ( x11-libs/gtk+:3 )
+ xfce? ( xfce-base/libxfce4util )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/autoconf-archive
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i \
+ -e "/PKG_CHECK_MODULES/s/\(gtk+-3\.0\)/$(usex !gtk2 '\1' _)/" \
+ -e "/PKG_CHECK_MODULES/s/\(libxfce4util-1\.0\)/$(usex xfce '\1' _)/" \
+ -e "/^GNOME_/d" \
+ -e "/^CFLAGS/s/\$WARN_CFLAGS/-Wall -Wmissing-prototypes/" \
+ configure.ac
+
+ default
+ eautoreconf
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/app-i18n/im-chooser/metadata.xml b/app-i18n/im-chooser/metadata.xml
new file mode 100644
index 000000000000..434bdd89ac27
--- /dev/null
+++ b/app-i18n/im-chooser/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <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>
+ <use>
+ <flag name="gtk2">
+ Build with <pkg>x11-libs/gtk+</pkg>:2 instead of <pkg>x11-libs/gtk+</pkg>:3
+ </flag>
+ <flag name="xfce">Enable support for XFCE panel</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-i18n/im-freewnn/Manifest b/app-i18n/im-freewnn/Manifest
new file mode 100644
index 000000000000..c7f00bd134be
--- /dev/null
+++ b/app-i18n/im-freewnn/Manifest
@@ -0,0 +1,10 @@
+AUX im-freewnn-0.0.2-as-needed.patch 905 SHA256 10b89a1c8603a1b98c35a249454b302c384129292630596d13b55efffec5c814 SHA512 38472c17123784f2a76d25a2d3accea7aa3e7317b3581e1e86b3ba4d71abdd0fc721d14a2c9f8869ab522185357b25b82a3ebf49ca0d3eb07aa6581278aefa1f WHIRLPOOL 4d0100730e99c6582fbb4d724e19ad61bfd81c13bb0ff0a185a58720e04badd06f29060fe1e592fdc9c4da5e3540f7ae3ff5d474fa098c2417113e415abf6f31
+AUX im-freewnn-gentoo.patch 2426 SHA256 7d7b909284056cf60e65fdd773636a525a74ab1eb08f92fc9bcad76e470e1348 SHA512 aebad875ff118a7d9b4b3ba2facafcb369527621cfc9be82bb21d07b8eb0d390d46f598f83dc49eddf9de00a9c1d8cef2fe1f550f6c1bf06219ce6be56633655 WHIRLPOOL 85fccdd579f4f7e3f383bd00a85a2fd26b1427d1e07ed1eadccb5b1c6d0506de076b6bf785ab2c0481fbba2071374773a0a61aa5495f61808844554c5a215a2c
+AUX im-freewnn-headers.patch 511 SHA256 d4ab5eadacfc2ad4e9b420371e664e24363b07cd3bff2485aec8a4346128428f SHA512 ae209226010483d0b4a4ec10888d29d6b71002bb9457519b83a56cfb958da9e47740530e23baf2f35453f60902b359443f10e331e4a5b96eff386b78f80ad856 WHIRLPOOL a4dcb74044aa3034da02153a87ab3a36fd8243f0eee01bb0b1a515287b20ee7924f67c1ac3006a9acab005ceb5412dcc76f7c78914c7cfaa8f1a47787361227b
+AUX im-freewnn-wnnenvrc.patch 367 SHA256 c8588348adca6bee6e5d98a5d9421d10a3fe59b9720722179612fcf6368d442d SHA512 0a8e506944d537084a6cd6efe7c0e7583781220e38fb17f164ba7b01290bbe59a4db04a95d2d72299dbd5bc2d9ff2af036d00101c6ced1b593a0a20b98531df7 WHIRLPOOL 576a95acffbc9ad16b9dbbfdda6ec9fc8949c70d21bfdde630f5245d6bf6322e4c2d7c3b0740b46df3da69cfc6f9201e9f5555a2abc9ab26b6769a30691c9da6
+DIST im-freewnn-0.0.2.tar.gz 322963 SHA256 79b7783bd9516024df352c9a3e1dec55d56d46faf2b7517b63fe9cd81f6f8866 SHA512 c942d320433d0b1ff15fc1566eff183f5761ce14cb0575834f4ee80504be6d286068203c22ffea81345dab3db11a873f0a559b3d38ba8505f4966f9532a06358 WHIRLPOOL c06ab23037b6c3a302534b24b15ac93ff41edf9a9ba505c6727a4ab655fcfd98ffd86a4954e83ff6f40590bc732d8ecb67b38ea777d31ecc5cba11453ba161f3
+EBUILD im-freewnn-0.0.2-r2.ebuild 878 SHA256 ce36b7b0fa859f08e9f471568628feadc340fdb786ded62912e6295453aa2f32 SHA512 4e1e23279fa65a206e0c5b23aef2fe41b448651f616d6df180ed47c7cb501c73865b6e7c91516c6d7204a84652394c5a8aa88d814079b71f347f2460fc9437c2 WHIRLPOOL 6acc53675daf67b60e5a185afc40b215d0c83e3884aa6244588544223d053c47c90edf96e9b57a143dcb8592ed303dcb3bd45d11e6abfdf04151b3323740079c
+EBUILD im-freewnn-0.0.2-r3.ebuild 880 SHA256 bb7d6cca5ce6450488eaa4f58a2ea5e132f26f48376eb5bae68217d71407beb4 SHA512 e8dcfc8acd4166b14644e61a7ca5b363bc2a03b8fb1cba26eb5f3433ac8ec64baa9a96487041eab7e9a9248fc9684b3b65349f2840f918fc2ba159eb3c1590b4 WHIRLPOOL 05cd21010a33abe3d15230be173e9cebe764e10339d8c8a9dd94860e658c833bc6a70523202ffb74157d4789f1144a3223521c2fe1ca7cb6873d5b6b3a5d10fb
+MISC ChangeLog 3746 SHA256 e952dbac7452a85181aefd764bc8a95d0d62bd7c3110702f04e3071c780abed4 SHA512 a8215fc5ab8e65c4b6e1bbd07ab1521b61624d1a3924851dc4aa8c28e60c1b0c637801d2e8a72a13007a5c3667661fe74f3bbc4046e0faa3598d12fd6d2400f1 WHIRLPOOL f1688d4b24d93d8b29e4b9789da62223ee0eb5a2a0f6c101dc249e3fc2c89239e90fb32a4ec6c5efbc4a87c0fd9233e2edf725fa5a89b3f61955c43cdb334270
+MISC ChangeLog-2015 2837 SHA256 a8b50dd5bae7e3571181c97289d05d9cf02ee4001ae0b768492b71c3b59227c9 SHA512 20b59bf0c8509e773b08803c8bfb53acf59cd0ac5ca1f11efa2b12f3b3cef061e7ba2278a674d4fb32883fc6eb9ff664fff9ce353b7622ae8548b04715ee88d9 WHIRLPOOL b3ccb4d526d137f2134324fdd099f45baf2701a56115f221beb7bf79989fe8bec2062e9960ee43b4f7c10c50a9694db3cf3f5c56436d5aa8c8d309894ae7f85a
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
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 000000000000..859ea779817a
--- /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-gentoo.patch b/app-i18n/im-freewnn/files/im-freewnn-gentoo.patch
new file mode 100644
index 000000000000..90e042fc4193
--- /dev/null
+++ b/app-i18n/im-freewnn/files/im-freewnn-gentoo.patch
@@ -0,0 +1,112 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,4 +1,4 @@
+-moduledir = ${libdir}/gtk-2.0/2.4.0/immodules
++moduledir = ${libdir}/gtk-2.0/${GTK_BINARY_VERSION}/immodules
+ ## Makefile.am for gtk+/modules/input
+ if PLATFORM_WIN32
+ no_undefined = -no-undefined
+@@ -6,11 +6,11 @@
+
+ SUBDIRS = po
+
+-INCLUDES = @GTK_DEP_CFLAGS@ -I/usr/include/wnn -DIM_LOCALEDIR=\"${datadir}/locale\"
++INCLUDES = @GTK_DEP_CFLAGS@ -DIM_LOCALEDIR=\"${datadir}/locale\"
+
+ DEPS =
+
+-LDADDS = @GTK_DEP_LIBS@ -lcrypt
++LDADDS = @GTK_DEP_LIBS@
+
+ EXTRA_DIST= \
+ im-freewnn.spec
+@@ -38,7 +38,7 @@
+ candwin.h \
+ candwin.c
+
+-im_freewnn_la_LIBADD = $(LDADDS) -lcrypt
++im_freewnn_la_LIBADD = $(LDADDS)
+
+ module_LTLIBRARIES = \
+ im-freewnn.la
+--- a/configure.in
++++ b/configure.in
+@@ -21,8 +21,10 @@
+
+ GTK_DEP_CFLAGS=`pkg-config gtk+-2.0 --cflags`
+ GTK_DEP_LIBS=`pkg-config gtk+-2.0 --libs`
++GTK_BINARY_VERSION=`pkg-config gtk+-2.0 --variable=gtk_binary_version`
+ AC_SUBST(GTK_DEP_CFLAGS)
+ AC_SUBST(GTK_DEP_LIBS)
++AC_SUBST(GTK_BINARY_VERSION)
+
+ LT_RELEASE=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION
+ LT_CURRENT=2
+@@ -48,11 +50,9 @@
+ 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(crypt, crypt,,)
+ AC_CHECK_LIB(wnn, jl_open_lang,,)
+-LDFLAGS="$ldflags_backup"
+
+ AC_OUTPUT([
+ Makefile
+--- a/freewnn-modewin.h
++++ b/freewnn-modewin.h
+@@ -23,7 +23,7 @@
+
+ #include <gtk/gtk.h>
+
+-#include <jllib.h>
++#include <wnn/jllib.h>
+
+ #include "freewnn-register-win.h"
+ #include "freewnn-config.h"
+--- a/freewnn-register-win.c
++++ b/freewnn-register-win.c
+@@ -18,7 +18,7 @@
+ *
+ */
+
+-#include <jllib.h>
++#include <wnn/jllib.h>
+ #include <gtk/gtk.h>
+
+ #include <gdk/gdkkeysyms.h>
+--- a/freewnn-register-win.h
++++ b/freewnn-register-win.h
+@@ -22,7 +22,7 @@
+ #define _FREEWNN_REGIST_WIN
+
+ #include <gtk/gtk.h>
+-#include <jllib.h>
++#include <wnn/jllib.h>
+
+ typedef struct _FreeWnnRegisterWin FreeWnnRegisterWin;
+
+--- a/freewnn-utils.h
++++ b/freewnn-utils.h
+@@ -18,7 +18,7 @@
+ * Boston, MA 02111-1307, USA.
+ */
+
+-#include <jllib.h>
++#include <wnn/jllib.h>
+ #include <glib.h>
+
+ w_char* char2wchar(unsigned char* str);
+--- a/im-freewnn.h
++++ b/im-freewnn.h
+@@ -26,7 +26,7 @@
+
+ #include <gtk/gtk.h>
+ #include <gtk/gtkimmodule.h>
+-#include <jllib.h>
++#include <wnn/jllib.h>
+
+ #include "freewnn-modewin.h"
+ #include "freewnn-utils.h"
diff --git a/app-i18n/im-freewnn/files/im-freewnn-headers.patch b/app-i18n/im-freewnn/files/im-freewnn-headers.patch
new file mode 100644
index 000000000000..290aee97bd89
--- /dev/null
+++ b/app-i18n/im-freewnn/files/im-freewnn-headers.patch
@@ -0,0 +1,30 @@
+--- 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"
+
+--- a/im-freewnn.c
++++ b/im-freewnn.c
+@@ -26,6 +26,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+ #include <string.h>
+ #include "keytable.h"
+@@ -33,6 +34,7 @@
+ #include <gdk/gdkkeysyms.h>
+
+ #include "im-freewnn-intl.h"
++#include "freewnn-utils-ui.h"
+ #include "convtable.h"
+ #include "im-freewnn.h"
+
diff --git a/app-i18n/im-freewnn/files/im-freewnn-wnnenvrc.patch b/app-i18n/im-freewnn/files/im-freewnn-wnnenvrc.patch
new file mode 100644
index 000000000000..6b3c70769907
--- /dev/null
+++ b/app-i18n/im-freewnn/files/im-freewnn-wnnenvrc.patch
@@ -0,0 +1,11 @@
+--- a/im-freewnn.c
++++ b/im-freewnn.c
+@@ -236,7 +236,7 @@
+ return;
+ }
+
+- jl_set_env_wnnrc(wenv, "/etc/FreeWnn/ja/wnnenvrc", printConfirm, printError);
++ jl_set_env_wnnrc(wenv, "@GENTOO_PORTAGE_EPREFIX@/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-r2.ebuild b/app-i18n/im-freewnn/im-freewnn-0.0.2-r2.ebuild
new file mode 100644
index 000000000000..04bc5f5a3e3d
--- /dev/null
+++ b/app-i18n/im-freewnn/im-freewnn-0.0.2-r2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools gnome2-utils ltprune prefix
+
+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="app-i18n/freewnn
+ x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-as-needed.patch
+ "${FILESDIR}"/${PN}-headers.patch
+ "${FILESDIR}"/${PN}-wnnenvrc.patch
+)
+
+src_prepare() {
+ default
+ eprefixify ${PN}.c
+
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/im-freewnn/im-freewnn-0.0.2-r3.ebuild b/app-i18n/im-freewnn/im-freewnn-0.0.2-r3.ebuild
new file mode 100644
index 000000000000..9057c74300c3
--- /dev/null
+++ b/app-i18n/im-freewnn/im-freewnn-0.0.2-r3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools gnome2-utils ltprune prefix
+
+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="app-i18n/freewnn
+ x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-gentoo.patch
+ "${FILESDIR}"/${PN}-headers.patch
+ "${FILESDIR}"/${PN}-wnnenvrc.patch
+)
+
+src_prepare() {
+ default
+ eprefixify ${PN}.c
+
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+}
+
+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 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/im-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>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/imhangul/Manifest b/app-i18n/imhangul/Manifest
new file mode 100644
index 000000000000..5feffdea6e75
--- /dev/null
+++ b/app-i18n/imhangul/Manifest
@@ -0,0 +1,18 @@
+AUX xinput-imhangul2 52 SHA256 071df65bc28ed595b92ec96ca4d06b1de04f04c71c364b6099c5ee342871a813 SHA512 b6e383a74375c3c5293a9fc26056fc4bad036326a87cf1a64cfb4f63092b283faf3d2c741b9fc23c8835efac1a190acb8916af5130a95412fa7403596d45682d WHIRLPOOL 534fc570572bff8e2c6b32fa78fc68523a718328e54da63575ba3bb572e284e2da5bf8127a7a707a7eaf0995c00667aee46c381ed800bbd9ead050777e6e1aa8
+AUX xinput-imhangul2y 61 SHA256 adfcb68528f4b6d5aeeab2880a0c14429af1fb23ec77bfac237350ec8519309d SHA512 ae92eb341b22a61eb16736f4b0532d5ce00b8ac4b25baa0ddf10870cc6174306c88b5450dfa2778f442ec551e55b79b5085e95748d11e06c81c5f1601dab6bee WHIRLPOOL 7538a0f64ab4c106a18b36d2e07f25c3fc9477a0eb86802f184d0318133d2d174dba35940ed7f8b85af8897d4e4e98144dda5c1121edeeeb0ca961e09d478a90
+AUX xinput-imhangul32 67 SHA256 76ad016611c84535ebe2b7d17d15efc41bcd8e20125a2e91f18a37784ce1fc7f SHA512 2bb2501ca6e05702b13f80154be662265932a60112805b6166a33c1fc6fa23d9c7865c9be578102eba9800e06d2e1b69ddf63a7521e4ce3129ee46ad191998c3 WHIRLPOOL 58f39cfab64fe3f1e00bf9e6ea8478058b6ae41d4ae6c523fdec48db07b6312878a63f6b6f137bc7288a431d49de28e31c9619c916452da2e406406e00f04c5b
+AUX xinput-imhangul39 57 SHA256 6b57e4a73660e8146c25516af76ee9470ce9e939931b157ff49db951108c829a SHA512 efdaf9260d12f24f62218e4ba12a81cd36dd125acc0d138ceafea8c3da64d7dcc95bf4a156471db726097d7a91a595f6e8be888687125c3c2cbcacec1b1cc8bf WHIRLPOOL 70d07d43c839b230b5b8cceab5911593957a9e11bea2c7b74209b15a0ec3b7b815a034b6d16c95b7971ee5cfa89ce276aee33b34d54d4a1d156d3dcc98a5210f
+AUX xinput-imhangul3f 59 SHA256 b638f3280bc20672c2d84a889a20733634c4c364135cb58b50e640a2af137709 SHA512 2e958bc9f39af365795a7927a2338af03be7550dcac10ed63d2910da861c4bb238e786f5ac449283d009ac2ed67fda463f76ed3ca23f36ccd58b44475e94d096 WHIRLPOOL b7bbaf60d933d1ad56dfe1bab68b28821fbbddd3e967b6892cdc268fc5c45dbd3099642eb2a851f6ce8edd7a52710a267afeed21028c05e0c13c9e921eee47d4
+AUX xinput-imhangul3s 61 SHA256 74a7b530d804a6df9424f170087817329e6229a3d65aa07974864bc68d3f0777 SHA512 1faff86b65185c8bf1cdaa8a27c0f98d27fecd9415cb43c63698913898171e0a3b310a3f5528650d98dbc87afa31ae82e48ee34f3ee8823e9dbdbe3aa1d4eb2f WHIRLPOOL 7878164f5a0d7be1be8424116302e5c299417618150335f34a35ff303c83127047ff4196875f30f918176059acef217eefb4208872da8bcfec33ac5a2fa7b6d5
+AUX xinput-imhangul3y 61 SHA256 a9dfe10db328a7f2f9e49729d47ce304d563ed9f1ec88c3127b23754f3809c4b SHA512 b5340313cfe8d0ce0405b0cfbdcfde5192ede2cadf7006888526b1b4d98e257abdb276cae4b98b0caf40d5563f4f950e98e2fa0c1432b6efe36c9df11e7a92eb WHIRLPOOL a69cbdce92d0f30d67fd626c3915b9a192186fa51ad5f3a0a311f3ca847d96197defc0b81aa86b8d3b22afcbb8bff66db758f9f092da2f2f569b5b654cea92a9
+AUX xinput-imhangulahn 53 SHA256 c6013352c8c52cbeb9799444767a4583f3fdb4f05d35a1952ec9e7bc40802f30 SHA512 3ac9858111de532b483c8fb209f2517651e821ecf4aa704118d9f227a9ab090ae85cbb5572e14e6a04dc49b938fdcf103604ab1c2370df257174f94be2de55d9 WHIRLPOOL e003c9b351097080ba78b3ff6ac56d70e7304beecfa5c74315c209f34eb1c97b0e807cc202b70ea58554ba5dda9782d4037e2bf166c0597156b0a80d2276b001
+AUX xinput-imhangulro 50 SHA256 c437636b45ffe07379a1eab24ac484668d50f7c7febd2381d9391d99c78f5cf3 SHA512 5d1f588fcda77e6d96cfa955f0057edf614fe01290c9541eae61f8be85a7da80a29246bd2c777f517ce544c094a01d13d73d91368be7296aae9639698add90c4 WHIRLPOOL 5c90c97403f6473130ae9f3d68428910029043805c3212868a10c623fcec5a41757cf3f1d24df932d01887f185483028ce711b5131493badf0db752a4a0e070a
+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.1.1.tar.bz2 288236 SHA256 24f103e55c38f2cd4b708398106ac19760e2ef1834513f46f32b0baf439461e0 SHA512 a27fb34a826ceccb16e4c8a422f5571c7c6a4c253cd2a55c1025b0c22500a380a35a8703e9f0f6300fdc92544e1d7b59e33f11e059b85754b1619698e0f74d89 WHIRLPOOL c5cdb552891463a1d3f231b17ab9bf50810746a2ca7bfe3f9aeed001356232f188512de9e66c2d34777eec784c139e8286e7050fae6351b5e90099ec655d2764
+EBUILD imhangul-2.0.0.ebuild 2371 SHA256 80be18bca1f0ff5fe1c26a0a8efa65447970323a62652e85e0ad0887d524e8ab SHA512 da1a2172d6a9cfdda2680eae9a51051c64207fe1be9ab9e28e213f68621cab5d12f9a5c102e14fe99ac6437e48976947b0033b2b8fd162fd372158d585e6a513 WHIRLPOOL 90cb51c26458c59cefe565e7e6b271b2ea4cfc62ae9d621bd53a543631ec302e88fe7f963c36f402d28d8203021a9eddae88198f601c005401ee5937957cb891
+EBUILD imhangul-2.1.0.ebuild 2015 SHA256 feffd9f74a3cdafc3bd06043ad273b8d47d996aa1e1757f64c9c727f1abef1c0 SHA512 f256c7387f8791d2964a9fcb49a32bb0798a6815fe3d6950593b2b4b9e22e0de838f9d7448571382284e6f615e7e4baeb7b63ebe797c5e41c0ef1dc5adc7267e WHIRLPOOL d05b92fe8158fdff6e764043a1b25d204527379647851ebba00f11f413756f4b9432356f86438f5985e0e39defab5d17a349b91a2e3cdbfa439326217227b021
+EBUILD imhangul-3.1.1.ebuild 1860 SHA256 ff0c4700504d2f8a8074446c38b58ea504781aa19bccea0943d7f76c40e85966 SHA512 c8bdec1aa62dd5c9484fdcef92bf90ab389c5209f6bee33be0920248c793088d4f3c35770abdac618773370a6ab3b077266c5ccea549f0cf9a21403f48aecf32 WHIRLPOOL e2b23334d4099ec86380bc917ae1fedd6d43bb88af6d32ce21bb91d0a296e98a52beda21a372a86d2395aa2189f638904354168975a2a62d30dd18e0179d1ca5
+MISC ChangeLog 3653 SHA256 0502b64903af8c93d56cfe5d38311d69b430d50dee1e4298e4e6b758ac09683e SHA512 c5608cbfdba49b847e7dd98d4cd579dee43b4e1e8bc24c981e94f6653f327bea6d0d21ef721656f02153d615ca9129972503737860eb1c3eac0a1527433a1cb5 WHIRLPOOL 38cd65a7b2b9f231cd368a67e2e894ba754b3390a6d283f5c68ca74ea0d4acf43c6b07d808142ec22416809fc4d936650ce05b86a24318e6ed7a93cbd9fcfbd8
+MISC ChangeLog-2015 6611 SHA256 3f7088bfec96917e0e1253c084fe176646d3a7d0be51bb376465bc79908b6097 SHA512 b0a5cae2d6d20dc8f52b35deec08463c09d8cd9413eac31adfd409c0c029ea735592987ec436b80c6f40a9eff1ad48634a31725679f85388fa236176e7e5f34c WHIRLPOOL 755bf0ccb24a4dfb5eae370b3ec10be55136ffcceafe569500fdaff19875bb888373ece01c7654796df3cbd94675ad01115808cc1f2c52c6341df9167f490fe6
+MISC metadata.xml 312 SHA256 4ecd16aa8b2b7e9a5bbb141a8b484643bf6cab3ac784f02d38c0221381a9b493 SHA512 ea7923a669ff35a1d8067bc6fa5d443db7cc77c9ac78ef7eae002e080d3fa308afb0cfd20027e2021a4ec4a6eac5f3fe1647b049b795c671da1fb4d64fd45e94 WHIRLPOOL 49e52c4c1b579ccce4ae3e6f93a2c1c72174d454bd63e57b98191e77a06ea2a03882dc29b14f082d9e0ba1aaefef4404bcbdcd91a05b111cbf93fbe64c67e397
diff --git a/app-i18n/imhangul/files/xinput-imhangul2 b/app-i18n/imhangul/files/xinput-imhangul2
new file mode 100644
index 000000000000..099b880344b7
--- /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 000000000000..f622cb8d246c
--- /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 000000000000..6a903e2cd707
--- /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 000000000000..b5438d01c572
--- /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 000000000000..e0c703272ce3
--- /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 000000000000..0ce1079ff76a
--- /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 000000000000..922e9025e884
--- /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 000000000000..1dd23b661920
--- /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 000000000000..7cfcfaeb8d81
--- /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-2.0.0.ebuild b/app-i18n/imhangul/imhangul-2.0.0.ebuild
new file mode 100644
index 000000000000..b4a6d7cc5c5e
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-2.0.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..3a226eadce5a
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-2.1.0.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2-utils multilib readme.gentoo-r1
+
+DESCRIPTION="Gtk+-2.0 Hangul Input Modules"
+HOMEPAGE="https://code.google.com/p/imhangul/"
+SRC_URI="https://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
+"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="
+If you want to use one of the module as a default input method,
+
+export GTK_IM_MODULE=hangul2 # 2 input type
+export GTK_IM_MODULE=hangul3f # 3 input type
+"
+
+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() {
+ default
+ gnome2_environment_reset
+ gnome2_disable_deprecation_warning
+}
+
+src_configure() {
+ econf \
+ --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-2.0/immodules" \
+ --with-gtk-im-module-file="$(get_gtk_confdir)"
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf
+
+ dodoc imhangul.conf
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk2
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
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 000000000000..6d32c1184876
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-3.1.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+inherit multilib
+
+DESCRIPTION="Gtk+-3.0 Hangul Input Modules"
+HOMEPAGE="https://code.google.com/p/imhangul/"
+SRC_URI="https://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 000000000000..da6b3414b7d8
--- /dev/null
+++ b/app-i18n/imhangul/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <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 000000000000..2f869b0f5b5c
--- /dev/null
+++ b/app-i18n/imsettings/Manifest
@@ -0,0 +1,5 @@
+DIST imsettings-1.7.2.tar.bz2 595754 SHA256 41addf0458f760212b6b6100835066e16deb3a8a50eb005a0fc17fbac0a2ae66 SHA512 b28d67705d3d6a0ec95babaca616f750b73cdac5e01ed61e25a6527fd7f816a14654cd7233eca56d7427b9395e7ad75757b95cd7bd55c56bbdc145a3f8bfe1f0 WHIRLPOOL 018baea019f67bd19744facd981d5b6154de9ee19fa0565d9d7d11c6de02cfc1e3027424326700078eed979012e51b685abaaac0ae49a773bb9f088197ba6766
+EBUILD imsettings-1.7.2.ebuild 1770 SHA256 aa8906f279683fa337e5498c7a672fdf2c4607b734758eafb70f3b97542ff5f3 SHA512 c091b4a0eb1949c45422f3eb11483b66db365172e1e380cb864bc6ed90e75e599ae743d72ec416518780420c988eded857d4dbd4c1a688fda3089181d5a4fd9c WHIRLPOOL c401441fb4dc0a5abb80c14484772c423d0c28e1be42171309e8895c373190eaca4fbc899931ba0e437f079b2a3e7cdb3b97e23796748edb011ec674be651bf4
+MISC ChangeLog 3321 SHA256 f517dedfdf403f09997d031fe889f20be4158d398376a277d0685c244cff7e5a SHA512 05865878670ed5b3bafd38a3b9ecccab66f17d21ee8823193d7155549c86e6c6c1d7590c05033a5988883b7047219251b09a01c4481803e4f4a6b953a0d85234 WHIRLPOOL 6b275aea67217a23beae6bec2144a02035c748c0fdea79a61b45c5d1afbc213e2dfe24524d3ca5eb52015af7d07cf53f5a3f8bc7dc14e068b14a52c4a0d2da57
+MISC ChangeLog-2015 3519 SHA256 4c81bd69e717df22440245eafb7378d41a91bfd75854cd661a65b38b0b7ff383 SHA512 57770dd9f6f665ddfc47750c1b82b0b1868e2264081da927639c983457ad0d74a5905f5655e1e3df60f545e88682df32d6bd6c76fe65025577c3b537e0c8a204 WHIRLPOOL 15eb69a776a78e15b6bb567286cf80102d2bc00dea17f744981df883aec1fbd5b37f15d540adfa79f3a2a8d02f56c29657cdf4aebeb9b09794a06055c3b42308
+MISC metadata.xml 618 SHA256 22ced2d3a6c718c6578ed1bd71ca34f28a81f3fa21f83490ff09dd5e7537a168 SHA512 029b4a98d5fb139a0f504161627461e227b58a712d578aeba4da9deb2c5ae04a78a83a1cf42c0966315d6c43db860f64ac7f6a38a22ae3e4d87b2960fde14301 WHIRLPOOL 2eea6b1ab2fc8eec419d316caeffc733efa64f7ce0449774ee6840ab88bf419d99b621b4ea596f09b52c07e96accc8d53020babcd2a6f350e84c12722f9e1e13
diff --git a/app-i18n/imsettings/imsettings-1.7.2.ebuild b/app-i18n/imsettings/imsettings-1.7.2.ebuild
new file mode 100644
index 000000000000..bc89ae3d0896
--- /dev/null
+++ b/app-i18n/imsettings/imsettings-1.7.2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools ltprune xdg-utils
+
+DESCRIPTION="Delivery framework for general Input Method configuration"
+HOMEPAGE="https://tagoh.bitbucket.io/imsettings"
+SRC_URI="https://bitbucket.org/tagoh/${PN}/downloads/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gconf gtk2 qt5 +introspection static-libs xfconf"
+RESTRICT="test"
+
+RDEPEND="dev-libs/glib:2
+ sys-apps/dbus
+ virtual/libintl
+ x11-libs/libX11
+ x11-libs/libgxim
+ x11-libs/libnotify
+ gconf? ( gnome-base/gconf )
+ gtk2? ( x11-libs/gtk+:2 )
+ !gtk2? ( x11-libs/gtk+:3 )
+ introspection? ( dev-libs/gobject-introspection )
+ xfconf? ( xfce-base/xfconf )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/autoconf-archive
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+MY_XINPUTSH="90-xinput"
+
+src_prepare() {
+ sed -i \
+ -e "/PKG_CHECK_MODULES/s/\(gconf-2\.0\)/$(usex gconf '\1' _)/" \
+ -e "/PKG_CHECK_MODULES/s/\(gtk+-2\.0\)/$(usex gtk2 '\1' _)/" \
+ -e "/PKG_CHECK_MODULES/s/\(gtk+-3\.0\)/$(usex !gtk2 '\1' _)/" \
+ -e "/PKG_CHECK_MODULES/s/\(check\)/_/" \
+ -e "/PKG_CHECK_MODULES/s/\(libxfconf-0\)/$(usex xfconf '\1' _)/" \
+ -e "s/use_qt=\"yes\"/use_qt=\"$(usex qt5)\"/" \
+ -e "/^GNOME_/d" \
+ -e "/^CFLAGS/s/\$WARN_CFLAGS/-Wall -Wmissing-prototypes/" \
+ configure.ac
+
+ default
+ eautoreconf
+ xdg_environment_reset
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ --with-xinputsh=${MY_XINPUTSH}
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+
+ 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 000000000000..094115428fb1
--- /dev/null
+++ b/app-i18n/imsettings/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <use>
+ <flag name="gconf">Enable support for <pkg>gnome-base/gconf</pkg></flag>
+ <flag name="gtk2">
+ Build with <pkg>x11-libs/gtk+</pkg>:2 instead of <pkg>x11-libs/gtk+</pkg>:3
+ </flag>
+ <flag name="xfconf">Enable support for <pkg>xfce-base/xfconf</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="bitbucket">tagoh/imsettings</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/jfbterm/Manifest b/app-i18n/jfbterm/Manifest
new file mode 100644
index 000000000000..93fbd65a974b
--- /dev/null
+++ b/app-i18n/jfbterm/Manifest
@@ -0,0 +1,9 @@
+AUX jfbterm-0.4.7-gentoo.patch 8279 SHA256 b6130c9a79c714229fa8764da012bed6835f1daf1c330b8bf27fb9e777c66b46 SHA512 42a709594300bd35d29bd86691ffe81895bdbc694e1618e1938520147612d2549a7242867fece1083eaf938109f008e2c1539ad70c335216f3aaa3806ab37293 WHIRLPOOL 354096b05c2311a3c921aca66e1a29684d14ab42586a1d2a106ca74ee91a622281527e6df1b39d5fa50b9a23872cffffbac861d66311b420c464ce96005f12a5
+AUX jfbterm-0.4.7-no-kernel-headers.patch 522 SHA256 a87896ecfd73925a01bbd639e1b80c578dcb8e83fd006d5931308141c7bf33e8 SHA512 95c40607ee9e2c3d89b35fb36cbf2c72b1bc7b65f82858fa1c34c39f26b9dd599be342c14dc85504d7c48ecc6b4cdad76ab06cabec9ca008dea889fc891e2c4d WHIRLPOOL 1df36f5b5e303fb017846fb1c00eb9ac94d81b22bf378b54f6005cbac88c57c6f8eb4a2e7168252e09bd34f550bc3ad1c850b349adb3657d9a22121757b15e27
+AUX jfbterm-0.4.7-sigchld-debian.patch 455 SHA256 5991961f4fbfa1b822f6c2ad949fea4efa315ec0e07ce890e0ef6a4b926df7fe SHA512 b03667158fdc157a44a1ff093ba4f80e5ddc4e6054e61879bea77fdfb17715be536d83044f3aa8bf4e03b5d73fd7a091f7d4b4f7d73e5d1349da78ce8d84d542 WHIRLPOOL b814947025781b89d964ba50345c72eec99599e63db37459bc70df0ffbdd7572f9285da4649e06d600267590bf16d8a359c9181eb7153fafc95197ed56b1482e
+AUX jfbterm-0.4.7-wrong-inline-gcc5.patch 813 SHA256 c4c213a50bda21e80d4031563027ffda59d9743f3efc1a0a59437f408f5ad188 SHA512 f698efc9deebe91cde0a38b6a9a5a08f7f65d14d043e920fc48a5ebb94d2d59a04032a8f1ec0cdb68ae262d6dfb20e9d1da209866cdfba6ec9ac8a8e881ae725 WHIRLPOOL 06275f11be16df6f4d837fbe856e2bd408f2375beb12f12819bb6bed8d212cb0282568d8772cfca2b204f7a8b787d08de3f512b0df40905cbad881c2638c2a88
+DIST jfbterm-0.4.7.tar.gz 104592 SHA256 a18446040cfaadd51c1ce77bb06ba6860372a70a04e36962e2635253a1f693a3 SHA512 267dc777c2a296731ac7e5fb89381891e26ac119be63c8889b0e194246a3ac03b1c4b50f7d9254221c2ab201a126da46d312946845ddaad82fcc718a76472dcc WHIRLPOOL faa57bca89ab88808b07f0902d86069df8440feb840a72842efe6f4c30922fbc1bdf622715fe93f75d3beee5fab40b72ded107cf17a7b91f2c3fcc86f43d5944
+EBUILD jfbterm-0.4.7-r4.ebuild 1083 SHA256 7ed7b6ea201dc9ed8577dffd0d65acb850f934217802320afe2548a7492a6ff2 SHA512 9b2fb3bd864334919113c3cd7e726bc25ae7ee6f18cd0fcba0abcab21cb866eea146fac6d4957c9d7adb7abfcf20dc3f1939e0a1f10d5c9a96cbc7dfe7a3c292 WHIRLPOOL ce91ccf5109b8e9a74d8b5d2a0077aae2fe4d813c5ddc53ea8da9c46ce122bb5176c6f8a44ee8a3dcf7194d6a784dee3f150637e2a593c210b22211e4ffc1aa4
+MISC ChangeLog 2563 SHA256 b7ffd5c6a623f178a25caf4a98f3db16435df0e09a826ebaf2f5a97aab8d25d3 SHA512 09751fff3d51c02ecfc441397d109a9edd6ea70f5315fe1592c25edaf45a0fa25a88ed231236d77ae154667d18ddafb8e31f04c052ecbd5fa671a918d8f10218 WHIRLPOOL cb90d80f4811be800f19e05f1273dc013c60f036397c15b5c7f15f203ed6e0db25d514f7c871bed9fe52868b5f2b0c4a7281703b63860d5de268b2dc4275768b
+MISC ChangeLog-2015 7807 SHA256 f5daa41468493cb9b9c16b1e77a8f9760915e5bfd6b99923de58f0673e0baa7f SHA512 2fd1c1bc1de3117c1dd724d999a636da5df90a3c1f3443be3e85b360c2d7683c9e8972c7c38272ee95ae270886ec4d2583198346b1e7e587a3212d581ac2c193 WHIRLPOOL 61fa927d42ad133663aa20ef2ecd898a4a4c2e59ed1f6b8e31060bde7ec9521d4234901b745ab3636cf99ae3a8037f3e1e7c4f51ba15b365bdf4c20cf3bd46ce
+MISC metadata.xml 656 SHA256 ff3df20d194eb69f225510ddfd10d0d18b63df179d0dedc4f16d7324c5acbfa6 SHA512 4f0d181b60132e8030e4596c78121eb54362da35a33135fbd3458aa61aaaa6a085a2c0700735497e428eb3c35dada3db327adc7c10fbe1301187f7aeca83f7f9 WHIRLPOOL e44c2b785b010b8c6231fabadd06764e7c2b885e0775155c9b6d13d15a28e866cf42a40ee7b11ec3c2b1705556ffa7787a81045ad83be2b3eb50feec13278cc0
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 000000000000..8dc8bc097b05
--- /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 000000000000..06c6e6033488
--- /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 000000000000..2e8036400770
--- /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/files/jfbterm-0.4.7-wrong-inline-gcc5.patch b/app-i18n/jfbterm/files/jfbterm-0.4.7-wrong-inline-gcc5.patch
new file mode 100644
index 000000000000..974ccbc41307
--- /dev/null
+++ b/app-i18n/jfbterm/files/jfbterm-0.4.7-wrong-inline-gcc5.patch
@@ -0,0 +1,24 @@
+Source: http://pkgs.fedoraproject.org/cgit/rpms/jfbterm.git/plain/jfbterm-0.4.7-wrong-inline-gcc5.patch
+
+--- jfbterm-0.4.7/pen.c.inline_gcc5 2003-08-30 03:48:16.000000000 +0900
++++ jfbterm-0.4.7/pen.c 2015-02-09 10:36:47.182751545 +0900
+@@ -62,7 +62,7 @@
+ p->attr = q->attr;
+ }
+
+-inline void tpen_off_all_attribute(TPen* p)
++void tpen_off_all_attribute(TPen* p)
+ {
+ p->bcol = 0;
+ p->fcol = 7;
+--- jfbterm-0.4.7/pen.h.inline_gcc5 2002-07-17 01:21:23.000000000 +0900
++++ jfbterm-0.4.7/pen.h 2015-02-09 10:36:52.058705503 +0900
+@@ -58,7 +58,7 @@
+ void tpen_init(TPen* p);
+ void tpen_final(TPen* p);
+ void tpen_copy(TPen* p, TPen* q);
+-inline void tpen_off_all_attribute(TPen* p);
++void tpen_off_all_attribute(TPen* p);
+ void tpen_higlight(TPen* p);
+ void tpen_dehiglight(TPen* p);
+ void tpen_underline(TPen* p);
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 000000000000..93989a66a5ad
--- /dev/null
+++ b/app-i18n/jfbterm/jfbterm-0.4.7-r4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools flag-o-matic
+
+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:0"
+RDEPEND="
+ media-fonts/unifont
+ media-fonts/font-misc-misc
+ media-fonts/intlfonts"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-sigchld-debian.patch
+ "${FILESDIR}"/${P}-no-kernel-headers.patch
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-wrong-inline-gcc5.patch
+)
+
+src_prepare() {
+ default
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable debug)
+}
+
+src_install() {
+ dodir /etc /usr/share/fonts/jfbterm
+ default
+
+ mv "${ED%/}"/etc/jfbterm.conf{.sample,} || die
+
+ doman jfbterm.1 jfbterm.conf.5
+
+ # install example config files
+ docinto examples
+ dodoc jfbterm.conf.sample*
+ docompress -x /usr/share/doc/${PF}/examples
+}
diff --git a/app-i18n/jfbterm/metadata.xml b/app-i18n/jfbterm/metadata.xml
new file mode 100644
index 000000000000..5393e0d29361
--- /dev/null
+++ b/app-i18n/jfbterm/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <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 000000000000..04e1452b369c
--- /dev/null
+++ b/app-i18n/kakasi/Manifest
@@ -0,0 +1,5 @@
+DIST kakasi-2.3.4.tar.gz 1099258 SHA256 c272560f5c11fe45b011c4e26ada66218fb0109d5582c5876aa49c5e24718534 SHA512 33fa17251ba00163f6d9df208f18c88ff2dfa9891320f1d00fc0c72686bbcc59cf3ccbfb76fa66dfb135a6e942ef4d5d907edc3f1ca9d380c5b7a7d4df090a66 WHIRLPOOL 018eacc55750f22839639248c97888c039b2cd16053f486ce4017080c8462f6aa214f5ac6d18e9a7ec6a00317c54ad8aa666992d889ab96846c680403d1dece3
+EBUILD kakasi-2.3.4-r1.ebuild 673 SHA256 4a65331b51cc4126c59e42b4727fae51c46b20055171908d1cdc0e653f06cdd9 SHA512 576985a2f42108834561487fc7b9cc3f5a3b31081568ba942ed828910b3b548df450248b8fe6692a8de8e6cceadec8081dc0394a9b12a81e0a04f3730055d485 WHIRLPOOL 8d11489d751de5176e241173d53fb20d43c9c7cbc208231d2fc61f530aadded9e24c25b7292589dd70ad78dba5f1f239939996c89706b0bf78cb80a65974dd7a
+MISC ChangeLog 2430 SHA256 bb551097a72173c536499143af3e3fe4e53214a5ccb038f2a66e32fd90216af9 SHA512 aa12203dbf5828358e529572e46d43ae885b2b1d875fee5e10449de32360c3490c49dd93c9455e0e401e900db1677fdae3652d6289289d70ef4c49c276cd05b8 WHIRLPOOL 6951c51950bcee9a8f0989b73daa6aaeacc1a96e57b762a650655f90e0ed4acdea858a2afe74bd8dbc752a25ea3559c83bd6672569f82202b9e273b06fefd9c8
+MISC ChangeLog-2015 2697 SHA256 2122053d7026a5bccff63c036b9b4a0b15fe3fabe361ebedf6e80ac6ccd180c3 SHA512 9db27e96ed12f934fbe815f7c9c03b81da2d3988d193f0451ca6863c23882a1898eb849033d35947a170e2e39e5d70566f02e53da032e592dd2c6bdfe258942f WHIRLPOOL a7baa6389251b3468ef7b5b6b62a2befa2eb17bf6ad5625dcda424d2224d5c98d154aca1e172cf67b7996a3150e8a403cc10500aacbd87661308be38de99b7d2
+MISC metadata.xml 230 SHA256 5fc421627b578ee2d1317320525119c0b406026597bb1d054f96254a241bf96a SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 WHIRLPOOL b3c1363540645200abd5bf0b5b7fb3cae0b738bfd359f7b13b56d97650f9381fccede1e3f867dbc736461ee7c7906725a3c53eabd9ac99929d5c7c520a831082
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 000000000000..85a0155e3f52
--- /dev/null
+++ b/app-i18n/kakasi/kakasi-2.3.4-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..c921b96adf6c
--- /dev/null
+++ b/app-i18n/kakasi/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-i18n/kanjipad/Manifest b/app-i18n/kanjipad/Manifest
new file mode 100644
index 000000000000..507d0dd4cf95
--- /dev/null
+++ b/app-i18n/kanjipad/Manifest
@@ -0,0 +1,7 @@
+AUX kanjipad-2.0.0-cflags.patch 613 SHA256 eb85a450f39577a4f850b544db307ee5d5068a08700591ccf25caad91aa40721 SHA512 2164e5ff2202cd4314ee2d8dcc98f6d428748c3c62251c89daae83466a4a4b59bb08655d1bd98a5725569e680f1cfc25f3cd971919d3ffa20c78d38dd895b402 WHIRLPOOL bcf07a38ee22b6e3f86aa256817a7bf8a890ce9b54ddf33a888dcf71dba2f1f84fdc2dbc8e86619f710a0fc9c24265d5024bf4edaecde0a760cbc25820e38c78
+AUX kanjipad-2.0.0-underlinking.patch 449 SHA256 39ea82264ee42863c55200ffe7f5ebf67683c3cf571e51b7498ca6504ed53273 SHA512 78c510337dfe2ed1bff81bbdd6195b6e76e97aac4b1a634b8cf29590eac9d70ddf7b720ad9fe6cfcb9c01e3697d3c6def382d8693902369a2be9531440daf95c WHIRLPOOL e60504ee14ffa9e596e3f4c46a103903d8d1657ef2e5154b5523e49018533ab8e4795aa186e08a1bfeb96a5293458459cb545b373376d325990743a0c814810f
+DIST kanjipad-2.0.0.tar.gz 75930 SHA256 28272f61ec09c607a3578e3626e9e4fd43d1d9d1e21cb64328745766d00ee9e1 SHA512 66a38597358f97a9b43c3d1f4a9d6cf583b6158350131bae3b4d47edb167877def8eff4dde666c41549accb54c7256e08403985bb06d56758050a46d5b471ef6 WHIRLPOOL e94dfc8be761ded30eeb09c33c80cd23af99135fc68a890ceb71bdb7508f3a88264cb21f69d93259a1e2101f769cc7114968be856eeafbbcd00f587b743e770f
+EBUILD kanjipad-2.0.0.ebuild 858 SHA256 bc9e5e5481c2931e5089106dc3f73309d05996b7da26248c3b0668dcbd2aef17 SHA512 4fdcbd5a683c0d5ff89546714afaf49de648baa9b779767cd66c036ba5055208e113cfdaf00f852c8610070b37913ce5f26ad9c3d7c7b199a20c999453bd571d WHIRLPOOL 4f5049eb40a7d264ad3021eb9b79d2036122db35b6acd2c90610d6bc922925290e00ebc997adcb7c8cb92c8dde66d32b9b30f272cd3430b0833f71f96fc2358f
+MISC ChangeLog 2512 SHA256 fb7b4cd47c3ceb201f961546e82b1645824feca422e683473e82759194e7beee SHA512 f57b5c6c4ac04da803409b4a1c9da1bcf7d74426f48c0fe2107a802411a513d6f30d404605670bbebfa02e9c185eb0e8cf94ef6c8d2a3634ca5583b82af84f19 WHIRLPOOL 9e544ad96af6ee50c289366fdeb4fc2f74f91ed0b28c851aff9dae20ad8127b2ad4cb3628c66c63c4f198180b4ba8450ad0b7653df3fd59e7b68308fc5209024
+MISC ChangeLog-2015 1886 SHA256 ff07d4c66e0f247d76e9a29bc1f1e915d406406ee1a6fd307c1c9c8e233b953b SHA512 4e9413f8e8120c96d4df4da20aafc37c1e2efe07259e0a18292316860fa7957b365f588b1e138a8c9445f4152d462dc57dda75a0abfcf9c48133d8f4381dbeac WHIRLPOOL e1b7c5f6c6e5ea5c08acca4fa95c664fdaa010f2263df6b1a555c3bdc70654fde9ca933acf9f4a49a44c68b39696bfb1655844eb8e0e4bff91cf9101ee8e78d2
+MISC metadata.xml 230 SHA256 5fc421627b578ee2d1317320525119c0b406026597bb1d054f96254a241bf96a SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 WHIRLPOOL b3c1363540645200abd5bf0b5b7fb3cae0b738bfd359f7b13b56d97650f9381fccede1e3f867dbc736461ee7c7906725a3c53eabd9ac99929d5c7c520a831082
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 000000000000..b1a6786bf17a
--- /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 000000000000..26fbcd765119
--- /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 000000000000..790545ce7d57
--- /dev/null
+++ b/app-i18n/kanjipad/kanjipad-2.0.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..c921b96adf6c
--- /dev/null
+++ b/app-i18n/kanjipad/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-i18n/kcc/Manifest b/app-i18n/kcc/Manifest
new file mode 100644
index 000000000000..cef9cf3914cd
--- /dev/null
+++ b/app-i18n/kcc/Manifest
@@ -0,0 +1,7 @@
+AUX kcc-exit.diff 161 SHA256 4a5d3aa6da58e16cad080da96521bf78e2e42e5327bafbdcb7a71c6994d15995 SHA512 8ee69339db13935d54562189e86941384dc5c01caa30e4efba11e783690b863a1210a5e841ab8a5ac907af9002ac6debd3516a6928f15777a8b31c2089907214 WHIRLPOOL 6bc5a55b801ec0152824e3913e8f6ac6e72543563ccf2a5f53de7ffc391e30462cb671e14e7bc49a494e17a0d66872c2c79ee4ca400207669f84a242a5876a11
+AUX kcc-gcc3-gentoo.diff 1026 SHA256 26ee19e57e598a24d7f781c39215bd18e3bfb14a826b96e63de834e0a2857336 SHA512 59c57ee4c34e27b8a0558896e5a94b21f976351e0cd372bc9bd85ac83757276eecdcabd81e4fb02b6f2513e06542d63bcf656140d5407a0e2804f04d5ab55303 WHIRLPOOL a40eebc2f02bfb8a0b2614768a1ea9fcb6c5b25601b1327e6a60d98800d2ada98bfe119f551bf3cc0615d8ae2506ad483a410a3a2e8b217f48122138ecb8f5f6
+DIST kcc.tar.gz 18869 SHA256 4f77ab0bcd7b377bca887973eb364ba5b2f9a0c057fb7e0f9b998f020f57d231 SHA512 2ec1645bb7edbe49c6845cd6e6794568bd48efec367d2d9628ddb8a72d2b5edd590be101f4d9c8856764ae85c9aad7b0adf69601b78fddffdc23235b96f65145 WHIRLPOOL b957057124acaacb61141d26b509ed8b73443b68d8a5f3fb4e498807dcc6f3aa88e120b1467adede86990f85a07776459e7bd0f1224ec8f79b2c1595074ef978
+EBUILD kcc-1.0.ebuild 719 SHA256 08c2a0027b68a707eed4f16e005be4f24a2b3e0fbc8984e9b2c5c496feff55a9 SHA512 be0ae39180e876b6b7a64f5e45e82d88ab8e5276f6662954b807c5082169982344b096c79f08fc820f25717438a6e0bbfba4f32f690fd2df27b62dde904e9450 WHIRLPOOL 732ca01750378998e801700df753240da57909ad1acfab55570f0d8581a7ff42acd32be6e131c8821760304699a4175796aef6273186ce0349ed2f3b169636b2
+MISC ChangeLog 2462 SHA256 ee885d21ad40e8ebeaaa475eb117a0e99649cfb8b87ffce2812da9056042f6ab SHA512 b450bc7479de84fea98fe3f8c456a1ba163a48ecc707f7fc68e8bb5871a7649c4d014f9a272b44508754280f680574a4c11b827518cd9e73192e093b2b83a3b8 WHIRLPOOL 8edf0840e8ae45a7edc2322a3fb1cfadd31b655b5d3992c111f444c9e5d371c7ecb8bd1a7736d134796e4c4fa93cc9deb0645edca2a838df07c9cdae59324962
+MISC ChangeLog-2015 1629 SHA256 eadce2faf71b408f7034a5255689f03a798c700b0c638922658ecb045fa95acf SHA512 5c04da7b511171d9fe58e25b2c3bfc58426abfcd968a6d879d8d17aa1b430e365747723fe0b6e815070c91c62888acad9626bfa8ae1c2acb1b4c26e7d1cab934 WHIRLPOOL 82f477970984b8c94d2669f0ea40efde827fdd44eb207228fa634d6816089daedc565dc7ed99838ecd3b6fe74320cc652673cd10d48c130f5b55aedc0ff7874f
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/kcc/files/kcc-exit.diff b/app-i18n/kcc/files/kcc-exit.diff
new file mode 100644
index 000000000000..478977a88256
--- /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 000000000000..88f08e20161d
--- /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 000000000000..bcb220713949
--- /dev/null
+++ b/app-i18n/kcc/kcc-1.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/kcc/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/kcm-fcitx/Manifest b/app-i18n/kcm-fcitx/Manifest
new file mode 100644
index 000000000000..dc0f7e86e013
--- /dev/null
+++ b/app-i18n/kcm-fcitx/Manifest
@@ -0,0 +1,13 @@
+DIST kcm-fcitx-0.4.3.tar.xz 56864 SHA256 b7e9ad4569c0940f9654d58de1f13281fcbcab56febbd346951edcfa0a86e208 SHA512 d311699a5d99f75d353899b7fba0a950491ee8b891724b855033449900ec4b3db9408bb1b80e60ceb0dbb0ce91072162062261a497f83a2a683214b71c3f4713 WHIRLPOOL 04aec049436a120362d02ba900a0d8639feb359b4cc6b99a871c7ffa8d9660270c321828b8660c718890a7f0ea308ea584711ed712762aab712fe8d7e72a205a
+DIST kcm-fcitx-0.5.3.tar.xz 57488 SHA256 f2de5fa4e31a96fea059e4d390c6f1d6fdc98af572c19a0e84cf6181da7c2935 SHA512 19d172cbf1d2a13f289b64b67488ddc5ba83a9d26503438045271c85df3775715614951652dc6f8da52a3b9d692d6e2138a760fc51d1e7f0f8bb0bd467265496 WHIRLPOOL 7be5cfb389bfcf5f451b5619c0818afeaa7b88199375b2f5d85bdcc21b1259008a3653f1cd26e33689a9f18130bc53269dceb20fca5b64aaa8f619e06f2d413e
+DIST kcm-fcitx-0.5.4.tar.xz 59744 SHA256 ebf81446bd7f9478b421c4ab8b8e050d13a15327a3b6cde93cf62ed09a697402 SHA512 349fe50303e027f44b53d954c088e441450aad07dac3a1162a5dcf9c445ca9d04bd3c36475c17dab91ed2df9c3c71031d7582e39b85ad0465a816f7fc24ac0bd WHIRLPOOL e7d9bcad0e1fbe1cb576f69a82e26b4e910e930003b51940cafc5ddcef65eaab0b4c608c8ba878b12a101aad811e74cf9546be129f833b3c7cd33c3597b00fbd
+DIST kcm-fcitx-0.5.5.tar.xz 63364 SHA256 fe6ff7fe4df1e6bdbeb53699cfbd654b7b8c8e7bb299f6b8af86618f873a77ba SHA512 e6a7bcad10003a956389ee266cf6d2f3730dafafcdd0bb43de328397749775e5cd305f16fdca2365e246c903677dba042da81a6dfd873aa1be74174e2b0b372e WHIRLPOOL e23eaae17de906000f808b9a21f46c9b8ea529a13a97c0e832dc708ad130e4668852c46ba92bb16e0f956664932ba38dd650eefcf8fd1f128a4e9de87a36f4c7
+EBUILD kcm-fcitx-0.4.3.ebuild 949 SHA256 bb4c64104121ef87e9ec3b2b286087125774b17a225046b459091415bc7c22a1 SHA512 1946700c9e48bfc4dec9c2e7268cbb72e712a7cf7f9ef6f1eb565105215e0063deaf40c231536301dfb29d8272a7decf6b77adbc0a007b79978a9289965f3cd0 WHIRLPOOL 97040f48f477f89812a01ca4739b8f29b356be1d1312352adf70c31b0d99e7bcb20cf5cae63acb270e6627f401e06dca3e27528cfc999500a4044743c776f44e
+EBUILD kcm-fcitx-0.5.3.ebuild 1312 SHA256 d0078a5c8f55e155dfc6cb10a99797c191f28367ea170122e7ba4f5ed503e92b SHA512 1f2536c137ea7cadb169563e86e01a2ec4454bfb1bf3cfcbe65c054b1cad3b48e4655b2b5ea2295625c637080d7093b3d476e821095fe7a076032c0131608861 WHIRLPOOL 3f8566901a07f9f1fc6f8c6cd13c42516ba262c9e16585b9ca87014190c4633f77e2dd4e53acc6d8518e9ddcf9cc932a5453db649a40764b7af803e2ef16140b
+EBUILD kcm-fcitx-0.5.4.ebuild 1606 SHA256 ca687a69ea89af085463dedc580dd8cd19251d486baa1fc8f3e18997aaabd2a7 SHA512 5a268c18e1095cfb588fc251e8e5282748e419167ab78d8d92c784b954bf7937e8a42520f65c103930bc80f910d60b444acd3e3a8d873b4ca427728e191b5806 WHIRLPOOL f41b9736ad5ba73547547aaec8975b440c02e209d9235c4680e09e7cc85389a4f4c6690e087da859dc9db74e7b2a6b0a66d82c63cec213dcae05315e1ff88cb8
+EBUILD kcm-fcitx-0.5.5.ebuild 1201 SHA256 71f1125a35d67c4e9cc842302f982f28c5a54ca5ec92431ba67567d1bd11b6f0 SHA512 dc905981176a1f12b6e1a0a1067ef974eca9e58854177f8446b9a74365954cdfb618167daacd3a4ca68246721a89e68af532a7ddee54eda067a5979d318c8a1e WHIRLPOOL f81c94fb1cc073ba5b980db21ec97158b34a5b88d4df8f5f1e3c2531632d7a65f81efa354da326e3df8a2229a9bd440bc180e2eee33777a614cb293fa74bf873
+EBUILD kcm-fcitx-4.4.9999.ebuild 928 SHA256 5e60e36ebcd3e0a216678b6a702c073fe11065d76190702e4370830f9cc79264 SHA512 e061c93dade243b11773f8d5fc2b1925de4c10a42b3f7f2349982348a4b4b5e4ffb7156b658781d49c877811ff572a6048cb2859bc1de5c35c741b5d99922f33 WHIRLPOOL fd6c4a5e9bc632a9fbc75dadbd4ab165058f0fa8e95163c0334e94d3995ffdef2df5e7ed33cf6761a09f17ffa87269b82d2c58eefb16a22b26793dff40a24ec3
+EBUILD kcm-fcitx-4.5.9999.ebuild 1190 SHA256 169ffd5d2d197b2399a061ab2fe42353dea99b670e431e2fe3e5bd6d94d409bb SHA512 abf541143ab31d64a6e8ef13cdf4cc03704d0d568fd696cd02928249ceeef378ed89b396807172bbcc0a518f8a0770d08d118e3a73780e9c51d33c2dddba6b72 WHIRLPOOL f931c2e1a2d9bbf1f88f2d51183cb7c55f29edcc203b262d431643e00497587427c68ee81a2d1965685cf4aea629db116567e73b4fa6e9ad7a265682bd09b472
+MISC ChangeLog 4618 SHA256 f34162ecf943e9019f58ebbca76f13f92d420ba758dd11a9fdf20032f1d2b41b SHA512 f897159413e15ca455807935c113b1653969d2bc7bd01ded26b19a12f7936015193339f4f0c848ddb444eb13eb0b2318b7a738f80fdebd4d72801fcca74403e7 WHIRLPOOL 999f5e3b4cc77382c5d34de1ce30f824a6c262b37b1f5e7c8d7c2073d54f50db019f9f709d131a4ed3443dd070d7ea56f872c3812a322c8fa353deed906a0cb9
+MISC ChangeLog-2015 1321 SHA256 e17a47942e7cdfe369bcd47c362e5aab7995247d9ad96cc5bc86b8ff6e1b7b30 SHA512 f922c7cac8f2bdeead02b4aa8d1f29e5a9d27b92bf35199d466b3691cfcb8c0c156635f3cfede57038a00ce33239bc9547ab45821c52313f11b302220cb640f6 WHIRLPOOL 09149af5e86d994f8bcccbf51fe83a775239463c4cf584971266aad7a7a7a53b13603ba50794a9023fdd57104af8964ff9e0fd0588d19079c2477bfb545881a4
+MISC metadata.xml 448 SHA256 1ef6e7a4af64117841aeef5198622c2279a3046fc0e06a75824b887f4cf6fd94 SHA512 fd57b8dd9c679ef1309c6f02c55add627d029e6232bd3efdd8acb6c76be334411cf42e40950f749234f0c290467c4e3245232278a54118010ce01df664aed871 WHIRLPOOL bddee83d72cd9fe44618524b16842c833f45875383d47967055d34df27846c4b49644c4799c032e500f8d3f9f948cc15d1f29c37e8de3c13b7acb0a1aef2d21a
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 000000000000..ac62ff9262e0
--- /dev/null
+++ b/app-i18n/kcm-fcitx/kcm-fcitx-0.4.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/kcm-fcitx"
+ EGIT_BRANCH="kde4"
+fi
+
+DESCRIPTION="KDE configuration module for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/kcm-fcitx"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4-plasma4"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE="minimal"
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4[qt4]
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ kde-frameworks/kdelibs:4
+ virtual/libintl
+ x11-libs/libX11
+ x11-libs/libxkbfile"
+DEPEND="${RDEPEND}
+ dev-util/automoc
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+src_prepare() {
+ if use minimal; then
+ cmake_comment_add_subdirectory layout po
+ fi
+
+ cmake-utils_src_prepare
+}
diff --git a/app-i18n/kcm-fcitx/kcm-fcitx-0.5.3.ebuild b/app-i18n/kcm-fcitx/kcm-fcitx-0.5.3.ebuild
new file mode 100644
index 000000000000..98f3ec001e9b
--- /dev/null
+++ b/app-i18n/kcm-fcitx/kcm-fcitx-0.5.3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/kcm-fcitx"
+fi
+
+DESCRIPTION="KDE configuration module for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/kcm-fcitx"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4-plasma5"
+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
+ kde-frameworks/kcmutils:5
+ kde-frameworks/kcoreaddons:5
+ kde-frameworks/ki18n:5
+ kde-frameworks/kio:5
+ kde-frameworks/kitemviews:5
+ kde-frameworks/knewstuff:5
+ kde-frameworks/kwidgetsaddons:5
+ virtual/libintl
+ !${CATEGORY}/${PN}:4[-minimal(-)]"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+src_prepare() {
+ # x11-libs/libxkbfile only used by kbd-layout-viewer not ported to Qt 5 / KDE 5.
+ sed -e "/find_package(XkbFile REQUIRED)/d" -i CMakeLists.txt
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=yes
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/kcm-fcitx/kcm-fcitx-0.5.4.ebuild b/app-i18n/kcm-fcitx/kcm-fcitx-0.5.4.ebuild
new file mode 100644
index 000000000000..5b2b210ad03a
--- /dev/null
+++ b/app-i18n/kcm-fcitx/kcm-fcitx-0.5.4.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/kcm-fcitx"
+fi
+
+DESCRIPTION="KDE configuration module for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/kcm-fcitx"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4-plasma5"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ >=app-i18n/fcitx-qt5-1.1
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ kde-frameworks/kcompletion:5
+ kde-frameworks/kconfigwidgets:5
+ kde-frameworks/kcoreaddons:5
+ kde-frameworks/ki18n:5
+ kde-frameworks/kio:5
+ kde-frameworks/kitemviews:5
+ kde-frameworks/knewstuff:5
+ kde-frameworks/kwidgetsaddons:5
+ virtual/libintl
+ !${CATEGORY}/${PN}:4[-minimal(-)]"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+src_prepare() {
+ # x11-libs/libxkbfile only used by kbd-layout-viewer not ported to Qt 5 / KDE 5.
+ sed -e "/find_package(XkbFile REQUIRED)/d" -i CMakeLists.txt
+
+ # Adjust dependencies to match actual usage.
+ # https://github.com/fcitx/kcm-fcitx/issues/12
+ sed -e "s/KCMUtils/Completion\n ConfigWidgets/" -i CMakeLists.txt
+ sed -e "s/KF5::KCMUtils/KF5::Completion\n KF5::ConfigWidgets/" -i src/CMakeLists.txt
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=yes
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/kcm-fcitx/kcm-fcitx-0.5.5.ebuild b/app-i18n/kcm-fcitx/kcm-fcitx-0.5.5.ebuild
new file mode 100644
index 000000000000..7d7699c83eb9
--- /dev/null
+++ b/app-i18n/kcm-fcitx/kcm-fcitx-0.5.5.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/kcm-fcitx"
+fi
+
+DESCRIPTION="KDE configuration module for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/kcm-fcitx"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4-plasma5"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ >=app-i18n/fcitx-qt5-1.1:4
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtx11extras:5
+ kde-frameworks/kconfigwidgets:5
+ kde-frameworks/kcoreaddons:5
+ kde-frameworks/ki18n:5
+ kde-frameworks/kio:5
+ kde-frameworks/kitemviews:5
+ kde-frameworks/knewstuff:5
+ kde-frameworks/kwidgetsaddons:5
+ virtual/libintl
+ x11-libs/libX11
+ x11-libs/libxkbfile
+ !${CATEGORY}/${PN}:4[-minimal(-)]"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs=(
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=yes
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/kcm-fcitx/kcm-fcitx-4.4.9999.ebuild b/app-i18n/kcm-fcitx/kcm-fcitx-4.4.9999.ebuild
new file mode 100644
index 000000000000..5862a01fbdd9
--- /dev/null
+++ b/app-i18n/kcm-fcitx/kcm-fcitx-4.4.9999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/kcm-fcitx"
+ EGIT_BRANCH="kde4"
+fi
+
+DESCRIPTION="KDE configuration module for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/kcm-fcitx"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4-plasma4"
+KEYWORDS=""
+IUSE="minimal"
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4[qt4]
+ dev-qt/qtcore:4
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ kde-frameworks/kdelibs:4
+ virtual/libintl
+ x11-libs/libX11
+ x11-libs/libxkbfile"
+DEPEND="${RDEPEND}
+ dev-util/automoc
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+src_prepare() {
+ if use minimal; then
+ cmake_comment_add_subdirectory layout po
+ fi
+
+ cmake-utils_src_prepare
+}
diff --git a/app-i18n/kcm-fcitx/kcm-fcitx-4.5.9999.ebuild b/app-i18n/kcm-fcitx/kcm-fcitx-4.5.9999.ebuild
new file mode 100644
index 000000000000..c15c02b02ec1
--- /dev/null
+++ b/app-i18n/kcm-fcitx/kcm-fcitx-4.5.9999.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/kcm-fcitx"
+fi
+
+DESCRIPTION="KDE configuration module for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/kcm-fcitx"
+if [[ "${PV}" =~ (^|\.)9999$ ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+"
+SLOT="4-plasma5"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.9:4
+ >=app-i18n/fcitx-qt5-1.1:4
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtx11extras:5
+ kde-frameworks/kconfigwidgets:5
+ kde-frameworks/kcoreaddons:5
+ kde-frameworks/ki18n:5
+ kde-frameworks/kio:5
+ kde-frameworks/kitemviews:5
+ kde-frameworks/knewstuff:5
+ kde-frameworks/kwidgetsaddons:5
+ virtual/libintl
+ x11-libs/libX11
+ x11-libs/libxkbfile
+ !${CATEGORY}/${PN}:4[-minimal(-)]"
+DEPEND="${RDEPEND}
+ kde-frameworks/extra-cmake-modules:5
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs=(
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=yes
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/kcm-fcitx/metadata.xml b/app-i18n/kcm-fcitx/metadata.xml
new file mode 100644
index 000000000000..68e0523550ca
--- /dev/null
+++ b/app-i18n/kcm-fcitx/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 type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">fcitx/kcm-fcitx</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/kde-l10n-scripts/Manifest b/app-i18n/kde-l10n-scripts/Manifest
new file mode 100644
index 000000000000..ade12850bb6b
--- /dev/null
+++ b/app-i18n/kde-l10n-scripts/Manifest
@@ -0,0 +1,4 @@
+EBUILD kde-l10n-scripts-9999.ebuild 640 SHA256 4451f26f482e79d11242980623ac8472cb3c4d03cdf2fc55d4b0e82432ff5927 SHA512 d8bc835b45562a6f23027fa2e42d7d7e3814c49fa31615387ef53b050750caf60bb4b39f386e727ee5343fe13ea38fe6200cbd7de55311fc738f87c8803b0305 WHIRLPOOL ddbc8bccce683e97a056483b76dee4b3deb2e8f575be180e9cfc71dcb3c38486a805c7192a867d23eab1ac4c79b57b25d0480924f6e038f850867009d43d1930
+MISC ChangeLog 2618 SHA256 baff98488263620ee332bc33d7cc9ac68f32709cefee9eac8b7a82847b264f77 SHA512 6ab0bda240b5d38073daebab3e5708b0eafeccae89c1c9fab624e50bfa7db36d76c87be51e68d03d67b940d4bfb05eb9e735aaf88858423efd4a10c8bf0cefc6 WHIRLPOOL 3e41d040a03cbca4ac62cf991662d920e67d5ae6f6bbb625bacc81959b6690b57ad4df3bf8b2f0d93a2d61d21b3fe1803e171198ac31b29e72d6985eea2d18b0
+MISC ChangeLog-2015 1555 SHA256 ab7e1f2412713e0e06f15de01dbe542bf77e226325354bb494d8f5bca2ac45a6 SHA512 12782c14129e528b2a2e995c33832ae51736cce75e52da445a5e4a9127e4b9dff5ff1e1243555171d7d6ee86e3595330551f342e5aeb029fa915817c9069dfa8 WHIRLPOOL 3cb9e2bba787148b2ee713b5339dcf8baf4378b97af795a9b9a934dd57059d8f3393531555b0a732f183405d6eadf3c0235434b83d0995b5c89d60dd29c29dfc
+MISC metadata.xml 343 SHA256 acad469525ac6602b1c41385f45d27c404c3a95f8a957bf71cdc87481aae73ab SHA512 1b6e2b61708576ec63383b7479170fdddafdb5aa30f5f947c55df99c9cb365b51e0c271f78243a38699e87d770d911591a908c4337f8760d8f340219cb1f9268 WHIRLPOOL ab95f57770751a6e984ecce65e6292e11ea58b475470bb34a95d6e39dddebadf4188ea43610ebb98ffe1ff30ec2b93a642046e523f000478c2a66630ec5a391d
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 000000000000..30d448e19ad9
--- /dev/null
+++ b/app-i18n/kde-l10n-scripts/kde-l10n-scripts-9999.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="https://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
+"
+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 000000000000..cf6e8a9090b6
--- /dev/null
+++ b/app-i18n/kde-l10n-scripts/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <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 000000000000..8ba2fe512428
--- /dev/null
+++ b/app-i18n/kimera/Manifest
@@ -0,0 +1,8 @@
+AUX kimera-underlinking.patch 310 SHA256 9c7ee7b22d9d8aaf12ec3a5f6009ffa5943065333ca77ef7217d54ce906c0356 SHA512 90ed65279d1e3f496d895630e01fe906047b0a8ca8377358f9de5aa3375e8662f04772594bee228f9a3b1cb9d611d096a9d93cafe9f5c3fb320f0057ae83c46f WHIRLPOOL d3487f901113eb732c7e8bbf92738113bad2beabc7005d9a17c06d0d31701894419d1789877604703b9b0ed626d726350cfc150f9987a381dd1e53fb3b04b61a
+AUX xinput-kimera 85 SHA256 3587e5fcea4d257f36766a057e6e28db4bc8975e03464f4fa016631092c092fe SHA512 b87eda78308ad5275db5c193f4ee7d53f7e6e350eeb839780f1107d8ce791799179ac285c79a67bcca7842c35ced5f9bf0c78e17f54b08862bec2d42d79a6b26 WHIRLPOOL 6554b76ed19fc36f0ecad3a278aa4ecaa7500eb221f940b517ceaff1fd01154e0cb2649a1b984a4d6950a14950f7c2e157144df16d386d4859a33cf89e572c11
+DIST kimera-2.11.tar.gz 106010 SHA256 4c3ccb532be1d50fa37963a0f0dfa661d92c9c13fcf618c17c9c5dbd66217d98 SHA512 b03ca2a665010e2d63100e367c42ebf1b1e68178093b78955bbeb5a73ebb6305f4292f925494e484edd574836ce66375f74766bd43445901c388e8db8d3a8e5b WHIRLPOOL 826f753c8370e4656e2cc500b02b37e17906fc08402eb0f023b4b3ea7d73fe69b65fc96685cb7cf17143713f4294ad3618e5118d4cae82359e253afdb33b19c7
+EBUILD kimera-2.11-r1.ebuild 809 SHA256 bde88ddfdd6408b90e824416830022348e30a5af1d59e3db082ce6971a0a2bac SHA512 a11e8646e2f7a914343a44684bcde65e8d242f467a85eb28e786dcdec6e09a332d1442f238a1feb205c57941173fcfe1c6f27182a619981f81d5e2edf3d2ed9e WHIRLPOOL 85d40cffb6f9a3bc713346c5f02f2357c36d250b088c3fbf0e92c26ce6749c1ba9a98a5918f65a238a7c0390fb94f07d813a4092132ebb81549c3430d10eee65
+EBUILD kimera-2.11-r2.ebuild 960 SHA256 9bfeb1df030fff8e92bfd30c9efa8648b8375c1e3d9b6c99668e34a34df19240 SHA512 fc57d92d1f8749e7235a05e87c50f7efd279795ecb26e960965a6493fb003a9aea6ffe6a43f1e3858a2ab4c1ef18183924d34e5c678cb548134619a786b45524 WHIRLPOOL 11dc08bac3757a58d4d443ae9873d36b94390a06640f9176de9c180ba6254dbdf6ac718555146083a70e53ea706d5b2a348b3585d127fbcb674e1acd5d65f9c3
+MISC ChangeLog 2469 SHA256 33b88722d3b98ed6d28c37fc0771636c6901a77b617579567ac5a31125000cc2 SHA512 84c4c8e26ed792ebc70aa6ec12de3b0c2db6b2768dde6926d008a5707bda0c3610165a0735d649247c02b3c8195330515ce44dd3b84dc88484a6598aa778d9ee WHIRLPOOL d1689baa1b306ff447bcbf49e4eadc1e4a8a40576ccbe39fc4db80872c26f29541435b1ff2c2008de37b7b03bb62a0cbde9632e813ff0dd75d142390298499d3
+MISC ChangeLog-2015 3496 SHA256 66aef4e3e0a41f236ee46b90c915b4124454265fd423437800df3b02dfb0cecc SHA512 3f943cb1e40ffb0c2c102f576030a5d25ca8bbde9ab4cd984f913611ba67a3db09b3a3162acefb0f7a0ac000afc2babdb8fe21c87c7ae0ab3f4a0d818305928c WHIRLPOOL 8b561f9370e2ecef302d45fbc4edd5aebcd322baaa0073251b0dfb6c8d389fc8e4287fa7b493c8cc23caac144fd172b930ff57260771190e3dae4a8be875104e
+MISC metadata.xml 554 SHA256 85406d89dd16361ed4bc9c87f56ed9d191154b9c1d8570fbb175f70b073b682d SHA512 98767fe7b5abbaaa767df6fd2996a2aa20d49265684521aeefa04baeb11f66f3b922cf9750508abdf85c485fc0898a4013bb8b6652317cf88bb7ba070e4b0764 WHIRLPOOL 5ed90c4b0b47052c61ab3fa563d4e2dc3f3505876b97d7539c6cd9fc8da8d47593fa2e9c89972f7c62c5a5f3988bdf59c4d9d21a71ca1045820dc587b6d612eb
diff --git a/app-i18n/kimera/files/kimera-underlinking.patch b/app-i18n/kimera/files/kimera-underlinking.patch
new file mode 100644
index 000000000000..0a00171afd60
--- /dev/null
+++ b/app-i18n/kimera/files/kimera-underlinking.patch
@@ -0,0 +1,11 @@
+--- 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/files/xinput-kimera b/app-i18n/kimera/files/xinput-kimera
new file mode 100644
index 000000000000..080c0233af49
--- /dev/null
+++ b/app-i18n/kimera/files/xinput-kimera
@@ -0,0 +1,4 @@
+XIM=kimera
+XIM_PROGRAM="@EPREFIX@/usr/bin/kimera"
+GTK_IM_MODULE=xim
+QT_IM_MODULE=xim
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 000000000000..289f4b79a7b5
--- /dev/null
+++ b/app-i18n/kimera/kimera-2.11-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit qmake-utils
+
+DESCRIPTION="A Japanese input method which supports the XIM protocol"
+HOMEPAGE="http://kimera.osdn.jp/"
+SRC_URI="mirror://sourceforge.jp/${PN}/37271/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+anthy"
+
+RDEPEND="dev-qt/qt3support:4
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ anthy? ( app-i18n/anthy )
+ !anthy? ( app-i18n/canna )"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-underlinking.patch )
+
+src_configure() {
+ local myconf=(
+ script.path="${EPREFIX}"/usr/bin
+ target.path="${EPREFIX}"/usr/$(get_libdir)/${P}
+ no_anthy=$(usex anthy 1 0)
+ )
+ eqmake4 ${PN}.pro "${myconf[@]}"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+}
diff --git a/app-i18n/kimera/kimera-2.11-r2.ebuild b/app-i18n/kimera/kimera-2.11-r2.ebuild
new file mode 100644
index 000000000000..2be50304e3ba
--- /dev/null
+++ b/app-i18n/kimera/kimera-2.11-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit qmake-utils
+
+DESCRIPTION="A Japanese input method which supports the XIM protocol"
+HOMEPAGE="http://kimera.osdn.jp/"
+SRC_URI="mirror://sourceforge.jp/${PN}/37271/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+anthy"
+
+RDEPEND="dev-qt/qt3support:4
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ anthy? ( app-i18n/anthy )
+ !anthy? ( app-i18n/canna )"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-underlinking.patch )
+
+src_configure() {
+ local myconf=(
+ script.path="${EPREFIX}"/usr/bin
+ target.path="${EPREFIX}"/usr/$(get_libdir)/${P}
+ no_anthy=$(usex anthy 1 0)
+ )
+ eqmake4 ${PN}.pro "${myconf[@]}"
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+
+ insinto /etc/X11/xinit/xinput.d
+ sed \
+ -e "s:@EPREFIX@:${EPREFIX}:g" \
+ "${FILESDIR}"/xinput-${PN} > "${T}"/${PN}.conf
+ doins "${T}"/${PN}.conf
+}
diff --git a/app-i18n/kimera/metadata.xml b/app-i18n/kimera/metadata.xml
new file mode 100644
index 000000000000..6a876a223eb9
--- /dev/null
+++ b/app-i18n/kimera/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription>
+ Kimera is a Qt-based Japanese input method bridge.
+ Currently it supports Canna and Anthy.
+ </longdescription>
+ <use>
+ <flag name="anthy">Enable support for <pkg>app-i18n/anthy</pkg></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 000000000000..9944c6960255
--- /dev/null
+++ b/app-i18n/kinput2/Manifest
@@ -0,0 +1,12 @@
+AUX kinput2-gentoo.patch 2900 SHA256 93fb4f1e9501de306b40cb9d9c5d878ad903b6c0c09669496643e2f2730807ca SHA512 22c38c2b344b18f545501e5e351f0952d2b317d05e87ba0630a9fba235e5111e3e269c42388a7495153f6a36a0277798039a35c1968889697b8e97e4e4e5bd4e WHIRLPOOL 13f3f23a52ba4452b4b3999e564d3a240d7150fa6c42a7e595bb7c4672b65010ee9e7d1b61db390b042f22965346ca895f153d35ac0f3000acbb3cfe141a5b69
+AUX kinput2-headers.patch 2090 SHA256 c3d2fde3a375b1968c1aee4047bdc12929454f8ec2a612e727c1b7a3d41695e5 SHA512 5f4839155d7d11784716c4c786b09184b04d68deaebd99fa2f446258017a893ad52e23f3df91a8827bfc8d4c238494ffdef9135c0959e7a2377947b96e5b4f7c WHIRLPOOL 16538cae395a4cabdb03f05c08cae98db55ccfff1aa34fe765019f07fba66d1dc7071c10ef691264a86e030d68cce1db85db295045aae662e6e0f44cf5955bc9
+AUX kinput2-ppc.patch 181 SHA256 4e0d6519545f5b9b2a607f33b17eb2d3519b8677c1bbb0645fa97c7ff8972100 SHA512 e5b5e851792668a8f4f15e45dcbf24336310f36c2be5a565dfffd25b58fadef04b92124fc2955342ed05ab467e8bff8fbf9d561a3553d7059155007df877dcde WHIRLPOOL 4a5b0089ef249c18330465e094ad243610c2bd3d87a04613ac096b10e7212e5ae277fbe363b868051710c12da7732b98a4b14404809a2eddb0473b5700df411d
+AUX kinput2-segfault.patch 240 SHA256 b25da7de97f07631764be5a5da4e3ffb6a8220505feb22b42439b0a604b94a43 SHA512 c3441925e867edcc5060e79e0f999c0cfe60930d87ad8d51cb4120253dd9ab6ccfac7de0c04e3d7043100026bc67962bba81a507b037901c115a7559916eb1c5 WHIRLPOOL 4e750025fa9c1f1d26c0f4e081ddb9f693de7ca66f4ea36bda28a26bc0b82da1f165a504900ac3320139ad897025e858f5a7b7f775957bfedb3a16890eb08ec4
+AUX kinput2-wnn.patch 1726 SHA256 6d2baf5cbc36226369c74be52dee8ffafdfd4f5529233704291668119f54724c SHA512 a8ea7756ca893b0bdd7d491c8e2a4187c5d34b084c567449597b8fa1d9fb9ae4437bedba9d771a7b88a3e621573ce6650243dfa5ff396bebb653cbf4b6f5712b WHIRLPOOL 5b3e78168445200e7fd3f8914084c24941d29f71943837b2cac85d840f250e548261a7baa9186dc5505d4438545287b127d1146c348b35ecb9adbb9d99b77973
+AUX xinput-kinput2 121 SHA256 7ca2277ec979ef93b6d3d5b93530592e5e035fea45bacbda559523770cf98a51 SHA512 09aaae3bebb062db82e8440977f58b9324e53262c6a9c95a276d305e87a2f9c0f9775077bd05c6ea069cceb6e45cb4efc4a6c412da7501b2b01825bc26799ec5 WHIRLPOOL 1e0cb1663d92e1484de3b547f8b95ae6f8c243f773e319c7645decb67e0780fda168915b70d67640d4734b146d7c9f3d148a550d6f9487a690bbee43c4e8f550
+DIST kinput2-v3.1.tar.gz 512177 SHA256 2815c35181f9e9b866fb6e7f3d9bb8814b98312aad703ce5c7560d449eb60a9a SHA512 5950f7294fa2bf915e6591290a3deb2c95f27706f3a180a084d14fbc008f3cf363b155b29c8103a8b999e44ae98182ff35bcfda85725b2c565f3e37f54788731 WHIRLPOOL 620c7d619c9f2c9ba0b51b6a544f59be357598687d79888da30ff75ff9a85288cff08d208764d2918852f0233e6dabf26ad37bfa5a5db3b225fae8a0c72b9add
+EBUILD kinput2-3.1-r1.ebuild 1405 SHA256 61b0108f7b1f05f58c23140a77e7c51d68d0276c689a7b71e66a839680be9871 SHA512 5707754a89ed1f48c287ccfcdb9694b159211c9c62f4b31cab3dd1d7d8c17fd8e2bbb8d7f6a9325c9edff8734cb418fd61622e1b46769a1a7db13fdccc364854 WHIRLPOOL 5d71d1d04ada8aa32101f475942047669ae28484beda4c2886e82aa128009cfe3938fa4490a8887cfeaaf4da9103cfc2dc52d67c0d8c958836560a827c4ce23d
+EBUILD kinput2-3.1-r2.ebuild 1605 SHA256 bbca64f528a0dfce25acca3fda280b37d59df66843b2f3dbbf02b31d820a28f1 SHA512 fdd20973f2b6d6023688f69711079a7e12e03629f1e187df40631bd4bfdc79a4a70f07866dd398bb4a6643476baab2b0acfa813d2d1711e156f0246590c33194 WHIRLPOOL 577a1b8469e0fed4aff7d83253d4717c9f4049cfbed47a8b0131cbc95700f968b94db397c625685ef6a3a315e58686ffe005a7ecf3e8dee6b6d678997e479226
+MISC ChangeLog 2543 SHA256 f4acc6c72f1e2a08c6845c05d8346a17f79c872e1a9837698d890983486f3c7b SHA512 5e08a303b183fa4c61d9a8e51efaed87936385d66070d314781afdfad697930d4168bdc872735ae4d57036f78b318cc7e16e87cafc51e46afdb4d2db562ed3f0 WHIRLPOOL 5d1490d54350b6b451ca61e2c70d97f4939c3c343485a7225a11105233593ae643fcc5ed8e4edeeb2975833fe305d5c45e33c2cc2cd02539fd5819a435357766
+MISC ChangeLog-2015 3448 SHA256 d0a9f4d4b3f2bda23aa2f62eaa391c6152e8f934914fd0498c757be19ae67e9d SHA512 44ff2470092f196683b84dff24a138dfa74db3956f168485e11423e623cf71f94680d36f2af14e41b7ce90e08e04520d9e10847c78098944d4bf13438cb8be4c WHIRLPOOL 16ee52cf8cad2248494685ca9e16be4cf1e96d874948076ba09807b1da5cd7f87c8ca065b00650e0a509177c3eb41755ddcc96f00e32733a87b3aa1aca6fdf61
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/kinput2/files/kinput2-gentoo.patch b/app-i18n/kinput2/files/kinput2-gentoo.patch
new file mode 100644
index 000000000000..2c22723b3851
--- /dev/null
+++ b/app-i18n/kinput2/files/kinput2-gentoo.patch
@@ -0,0 +1,99 @@
+--- a/Kinput2.conf
++++ b/Kinput2.conf
+@@ -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 $(EPREFIX)/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 = $(EPREFIX)/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 = $(EPREFIX)/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 --git a/app-i18n/kinput2/files/kinput2-headers.patch b/app-i18n/kinput2/files/kinput2-headers.patch
new file mode 100644
index 000000000000..0075f710e9b6
--- /dev/null
+++ b/app-i18n/kinput2/files/kinput2-headers.patch
@@ -0,0 +1,101 @@
+--- a/cmd/kinput2.c
++++ b/cmd/kinput2.c
+@@ -25,6 +25,7 @@
+ #endif
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <signal.h>
+ #include <X11/Intrinsic.h>
+ #include <X11/StringDefs.h>
+--- a/lib/Canna.c
++++ b/lib/Canna.c
+@@ -50,6 +50,7 @@
+ static char *rcsid = "$Id: Canna.c,v 1.55 1999/05/25 08:13:03 ishisone Exp $";
+ #endif
+
++#include <stdlib.h>
+ #include <X11/IntrinsicP.h>
+ #include <X11/StringDefs.h>
+ #include <X11/Xmu/Atoms.h>
+--- a/lib/CcWnn.c
++++ b/lib/CcWnn.c
+@@ -2754,6 +2754,7 @@
+ wchar wbuf[1024];
+ int wlen;
+ int len;
++ extern int convJWStoCT();
+
+ TRACE(("CcWnn:saveYomiAndKanji()\n"));
+
+--- a/lib/ConvCtrl.c
++++ b/lib/ConvCtrl.c
+@@ -18,6 +18,7 @@
+ * Author: Makoto Ishisone, Software Research Associates, Inc., Japan
+ */
+
++#include <stdio.h>
+ #include <X11/IntrinsicP.h>
+ #include <X11/StringDefs.h>
+ #include <X11/Xmu/CharSet.h>
+--- a/lib/KIProto.c
++++ b/lib/KIProto.c
+@@ -18,6 +18,7 @@
+ * Author: Makoto Ishisone, Software Research Associates, Inc., Japan
+ */
+
++#include <stdio.h>
+ #include <X11/IntrinsicP.h>
+ #include <X11/StringDefs.h>
+ #include <X11/Xatom.h>
+--- a/lib/XimpProto.c
++++ b/lib/XimpProto.c
+@@ -18,6 +18,7 @@
+ * Author: Makoto Ishisone, Software Research Associates, Inc., Japan
+ */
+
++#include <stdio.h>
+ #include <X11/Xos.h>
+ #include <X11/IntrinsicP.h>
+
+--- a/lib/cconv.c
++++ b/lib/cconv.c
+@@ -604,6 +604,7 @@
+ #endif
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <X11/Xlib.h>
+ #include <X11/keysym.h>
+ #include <X11/Xutil.h>
+--- a/lib/ctext.c
++++ b/lib/ctext.c
+@@ -71,6 +71,8 @@
+ static char *rcsid = "$Id: ctext.c,v 2.6 1999/03/10 08:55:15 ishisone Exp $";
+ #endif
+
++#include <string.h>
++
+ typedef unsigned short wchar;
+
+ #define NULL 0
+--- a/lib/ioecall.c
++++ b/lib/ioecall.c
+@@ -23,6 +23,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <X11/Xlib.h>
+ #include <X11/Xfuncproto.h>
+ #include "IOECall.h"
+--- a/lib/wnnlib.c
++++ b/lib/wnnlib.c
+@@ -578,6 +578,7 @@
+ #ifdef DEBUG_WNNLIB
+ #include <stdio.h>
+ #endif
++#include <stdlib.h>
+ #include "wnnlib.h"
+ #include "WStr.h"
+ #include <string.h>
diff --git a/app-i18n/kinput2/files/kinput2-ppc.patch b/app-i18n/kinput2/files/kinput2-ppc.patch
new file mode 100644
index 000000000000..897b154eb5ac
--- /dev/null
+++ b/app-i18n/kinput2/files/kinput2-ppc.patch
@@ -0,0 +1,11 @@
+--- a/cmd/kinput2.c
++++ b/cmd/kinput2.c
+@@ -644,3 +644,8 @@
+ return n;
+ }
+ #endif
++
++#if defined(linux) && defined(PPC)
++/* avoid nusty gcc bug */
++void _XtInherit() {}
++#endif
diff --git a/app-i18n/kinput2/files/kinput2-segfault.patch b/app-i18n/kinput2/files/kinput2-segfault.patch
new file mode 100644
index 000000000000..9b3a83163b4f
--- /dev/null
+++ b/app-i18n/kinput2/files/kinput2-segfault.patch
@@ -0,0 +1,12 @@
+--- a/lib/imlib/imconv.c
++++ b/lib/imlib/imconv.c
+@@ -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/kinput2-wnn.patch b/app-i18n/kinput2/files/kinput2-wnn.patch
new file mode 100644
index 000000000000..4e7001938fb2
--- /dev/null
+++ b/app-i18n/kinput2/files/kinput2-wnn.patch
@@ -0,0 +1,51 @@
+--- a/lib/cconv.c
++++ b/lib/cconv.c
+@@ -790,7 +790,7 @@
+ static int parseLine(uchar *, uchar **, int);
+ static FILE *openfile(char *);
+ static int doinclude(uchar *, Files *, void (*)());
+-static uchar *getline(uchar *, int, Files *, void (*)());
++static uchar *getLine(uchar *, int, Files *, void (*)());
+ static int readRuleFile(ccRule, char *);
+ static int registMode(ccRule, int, uchar **);
+ static int newMode(ccRule, Files *, _strbufRec *, _funcbufRec *,
+@@ -1035,8 +1035,8 @@
+ return 0;
+ }
+
+-/* getline -- 1$B9TFI$_9~$`(B ($B$=$N:](B include $B$N=hM}$r9T$J$&(B) */
+-static uchar *getline(line, linesize, files, efunc)
++/* getLine -- 1$B9TFI$_9~$`(B ($B$=$N:](B include $B$N=hM}$r9T$J$&(B) */
++static uchar *getLine(line, linesize, files, efunc)
+ uchar *line;
+ int linesize;
+ Files *files;
+@@ -1100,7 +1100,7 @@
+ rule->nmode = 0;
+ rule->initialmode = -1;
+
+- while (getline(line, sizeof(line), &files, efunc)) {
++ while (getLine(line, sizeof(line), &files, efunc)) {
+ (void)Strcpy(tmp, line);
+ if ((argc = parseLine(tmp, argv, 20)) == 0)
+ continue;
+@@ -1269,7 +1269,7 @@
+ cdbuf.cdbuf = NULL;
+
+ /* $B%k!<%k$rFI$s$G%9%H%"$9$k(B */
+- while (getline(line, sizeof(line), files, efunc)) {
++ while (getLine(line, sizeof(line), files, efunc)) {
+ /* '#' $B$G;O$^$k9T$O%3%a%s%H(B */
+ if (*line == '\0' || *line == '\n' || *line == '#')
+ continue;
+--- a/lib/wnnlib.c
++++ b/lib/wnnlib.c
+@@ -1367,7 +1367,7 @@
+
+ /* $BJQ49J8;zNs$ND9$5$N%A%'%C%/(B */
+ clp = buf->clauseInfo + cl;
+- len = jl_kanji_len(buf->wnn, cl);
++ len = jl_kanji_len(buf->wnn, cl, -1);
+ diff = len - ((clp + 1)->dispp - clp->dispp);
+ newlen = (buf->displayEnd - buf->displayBuf) + diff;
+ if (newlen > buf->bufferSize) {
diff --git a/app-i18n/kinput2/files/xinput-kinput2 b/app-i18n/kinput2/files/xinput-kinput2
new file mode 100644
index 000000000000..dcb3b63330ac
--- /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 000000000000..d18b1cdc75d1
--- /dev/null
+++ b/app-i18n/kinput2/kinput2-3.1-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+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="x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXpm
+ x11-libs/libXt
+ !freewnn? ( app-i18n/canna )
+ freewnn? ( app-i18n/freewnn )"
+DEPEND="${RDEPEND}
+ x11-misc/gccmakedep
+ x11-misc/imake"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-gentoo.patch
+ "${FILESDIR}"/${PN}-headers.patch
+ "${FILESDIR}"/${PN}-ppc.patch
+ "${FILESDIR}"/${PN}-segfault.patch
+ "${FILESDIR}"/${PN}-wnn.patch
+)
+DOCS=( README NEWS doc/. )
+
+src_prepare() {
+ default
+
+ sed -i "s|^/\* \(#define Use$(usex freewnn Wnn Canna)\) \*/|\1|" ${PN^k}.conf
+}
+
+src_configure() {
+ xmkmf -a || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" \
+ XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults"
+}
+
+src_install() {
+ emake \
+ XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults" \
+ DESTDIR="${D}" \
+ install
+ einstalldocs
+ newman cmd/${PN}.man ${PN}.1
+
+ rm -rf "${ED}"/usr/$(get_libdir)/X11
+}
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 000000000000..864011015526
--- /dev/null
+++ b/app-i18n/kinput2/kinput2-3.1-r2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+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="x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXpm
+ x11-libs/libXt
+ !freewnn? ( app-i18n/canna )
+ freewnn? ( app-i18n/freewnn )"
+DEPEND="${RDEPEND}
+ x11-misc/gccmakedep
+ x11-misc/imake"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-gentoo.patch
+ "${FILESDIR}"/${PN}-headers.patch
+ "${FILESDIR}"/${PN}-ppc.patch
+ "${FILESDIR}"/${PN}-segfault.patch
+ "${FILESDIR}"/${PN}-wnn.patch
+)
+DOCS=( README NEWS doc/. )
+
+src_prepare() {
+ default
+
+ sed -i "s|^/\* \(#define Use$(usex freewnn Wnn Canna)\) \*/|\1|" ${PN^k}.conf
+}
+
+src_configure() {
+ xmkmf -a || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" \
+ XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults"
+}
+
+src_install() {
+ emake \
+ XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults" \
+ DESTDIR="${D}" \
+ install
+ einstalldocs
+ newman cmd/${PN}.man ${PN}.1
+
+ rm -rf "${ED}"/usr/$(get_libdir)/X11
+
+ insinto /etc/X11/xinit/xinput.d
+ sed \
+ -e "s:@EPREFIX@:${EPREFIX}:g" \
+ -e "s:@SERVER@:$(usex freewnn wnn canna):g" \
+ "${FILESDIR}"/xinput-${PN} > "${T}"/${PN}.conf
+ doins "${T}"/${PN}.conf
+}
diff --git a/app-i18n/kinput2/metadata.xml b/app-i18n/kinput2/metadata.xml
new file mode 100644
index 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/kinput2/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/libcangjie/Manifest b/app-i18n/libcangjie/Manifest
new file mode 100644
index 000000000000..88feb28b5fea
--- /dev/null
+++ b/app-i18n/libcangjie/Manifest
@@ -0,0 +1,7 @@
+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
+EBUILD libcangjie-1.1.ebuild 399 SHA256 96ed7cf1a344e90331ba227faae7e6eb1fe6e894587e6df29d1088597560f6bd SHA512 53ef35b0ff56bffbbb6b29081a4d7a107149556a2f58ba84b99fc3416625834a9942e231c87ac9dc9c6c82e760a06a02aa2ce5fb9dca7ed70a60bcaa8a3fc1bf WHIRLPOOL a3963fb6380acfc5003188897fac2e3f2c18afe785cce8467105c1740784abc1194b25e97542a096139f18a2a78b60d6ba6db8bbc03e2ae860890a0de03d21b3
+EBUILD libcangjie-1.3.ebuild 414 SHA256 365899eed8b84c4c5d888605be307edde570f5c4c8991d9356c836aefd257dfd SHA512 86efcbbfa7a070d09d0d7f72a0d3ea1cbfc652bdc60d76dbbc586f25fadf305d66fb1096ed76d883e9674ceb27c70d4050f01a562888c45a270897584dce3ebe WHIRLPOOL 3752a2ca2ec600886bb4532321c8b91d8b7b42f51f26e961d46dbcd3d2720eade194125470750cc0fabe10b769b26d3d1fd0b2689e69e8a144f7f5d94127ae90
+MISC ChangeLog 2852 SHA256 52f6550882fa382ef1e5a2b5218b1403c986a7f6579ba5cc303626df7b0465af SHA512 a6ac7b2e1abd1b5869016394d23592da1550f602e37f6773f063abace75cb88083e2d295a14d26fe2be4fc54499dce8edde664d3b34d28dc2db12ac3321b3e49 WHIRLPOOL 7626a40079955ea264064d92034e9715535dcdc298d71a9912f971c21d61fb2e690f63c961e9ac814a12dc60f94bbb90e10b8f639f9283be35c1d3a33c46b974
+MISC ChangeLog-2015 829 SHA256 71a7ad6a0bbfea21d7c869c11b920eca9b1b004d15ec75a66a62e5928c361fbe SHA512 55a2a10d3047c90ee7c73044cbfec88d0be4d5acc71452dc7b2c80ac66d69855e040414654e2c36b9077728f5be634b5fabdc64a27b5e6b0ad6036cf5c06f1c6 WHIRLPOOL fe3ae56c1c0380ee362521f890d65701a4f617047c9a9c3d3f26e2ab0d6bee922a57004d5ecbf54286fcb187f566b1512a9eeedcdbcede269615408c45a17c35
+MISC metadata.xml 634 SHA256 c1a3c87663a6af6bd5ee9c00c5c026975f6ffe80e77440a11acde17cf5b02fcc SHA512 33890353f4df742396cd6676d7d8f4b91e809b85c4476b80d15fad1eb271f0ff09433a86d173b4fe9c6626320cde6c7c805fb895b6acca256c7de755eb1a4461 WHIRLPOOL fdab0e44a57e14e7c520c3c97c1abbab1f2c7b796d056c28555f8e4aa9508089d1ce27b6436438ba710a84c332da48b0e2e1cab35f2f257a8723099cbb8ec13c
diff --git a/app-i18n/libcangjie/libcangjie-1.1.ebuild b/app-i18n/libcangjie/libcangjie-1.1.ebuild
new file mode 100644
index 000000000000..22b48cbbb884
--- /dev/null
+++ b/app-i18n/libcangjie/libcangjie-1.1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..72eb18b96607
--- /dev/null
+++ b/app-i18n/libcangjie/libcangjie-1.3.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..86973575fe86
--- /dev/null
+++ b/app-i18n/libcangjie/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>brendan@horan.hk</email>
+ <name>Brendan Horan</name>
+ <description>Proxy - Maintainer. Assign bugs to him</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Cangjians/libcangjie</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/libchewing/Manifest b/app-i18n/libchewing/Manifest
new file mode 100644
index 000000000000..2009c8c6be9c
--- /dev/null
+++ b/app-i18n/libchewing/Manifest
@@ -0,0 +1,9 @@
+AUX 0.3.3-strncat-fix.patch 436 SHA256 cf8a9a43898fab83f0397c004f1cf5ecb81742cfa17971db15cfebb0e61ed726 SHA512 181cee5764b57f27148609aa17b7e9140385f2e8fd8f0b783386b6df2ae65b5b8a4f65e1a14a03149c35ba3124752ca5c2f5b175100650d5a14788796b990599 WHIRLPOOL 5b78bd0d74aeafbadd2a85fd051f9cdf5b85df9589be2fbb471f2827143ab64690cdeb4e6207826cc7f2989a69345ada98303e717162bedd390b996e5d1b55d8
+DIST libchewing-0.3.3.tar.bz2 1798134 SHA256 72a0de12b86c4d5f6468a68d88c736227ff16fa7a915f8595ffe5a31cae95eae SHA512 24df8d4a1dab72b32bca03bb1086223248a261d522e703c662aad53cfb16fef74691623361d275b8d811d4a0e6bc2b23b044248f7d3982dc657c9872de1de005 WHIRLPOOL 12b67dc7aa3c34fefe66bed995642d021b5c2997d706b7bb73319a0c26b3f9291c771f6308c50bc1cb3e319ff8848a09bf0aec1ed713eb55706bf11cdefdb824
+DIST libchewing-0.4.0.tar.gz 3367957 SHA256 128eae0616c8b4dadaecfb8982304241e65e2eb397001144ba5ed451ec197cc2 SHA512 8ac2a50531867dd628ed0c084a30b22e24cd102671b9ce23b008fb54d049c07135a8af205186e4ed719077cef6739e230fdcbd33cab0821a9bfab5b8fb4248c7 WHIRLPOOL a7ed4841fac60d402c710a8775b74e61bdb6ed6790ce33221bce1efc9b111192251b60bedbd04654d6afb8264d784600794be402d02c04f802bbe6ba03b54984
+DIST libchewing-0.5.1.tar.bz2 3141084 SHA256 9708c63415fa6034435c0f38100e7d30d0e1bac927f67bec6dfeb3fef016172b SHA512 a6551661bb5e56bba59730b93b373db56af7d42f2ab4881fbfff8727689dd2604d42d2e5c0b04820df66a431dfb5fcb73cc5c9b538615da76198ee3635501c1f WHIRLPOOL 317069206b5e739539c327a071dd3be467d755b561afb2186e94c747ce291dfb4473f110023026bf78974ce53ffadde342fa74db4f608fcb9dc655004ccc7331
+EBUILD libchewing-0.3.3.ebuild 1049 SHA256 202855c8111ce42e34f0b3105e16073b65889d945ef947967c14f3f1653adce9 SHA512 ec082eb6696154596fe4a32ee0d569e3bd84cee9a9f4d5be8670216ff1ef5775203a2ae3a8cc925248673d11b6313b6fcd5e8e696847748ff9dfb1664be8a3ca WHIRLPOOL e0e962834de696cdc419f9a33f533ee484e731a08b7bf216979925c05d2fb7b2296792a0f170680ff825981d90d4b074bddc4ce5c29e7522ee779ecaef9f6f9b
+EBUILD libchewing-0.4.0-r1.ebuild 742 SHA256 87eb8af8eac1720d87725895369023e4cc337cfb6f7a8be1eaf9d72d969d2f69 SHA512 bc6dea513d8c5568134a6fc32769a95dbd3e2d85e7019a6eac5f5e04fe12edee0e0e78595e89e4fe64b9c62e3c7d41a6230a728589564df498497d84eb451bf6 WHIRLPOOL 24f697884c1cb2851ce8b063049445af38f13f386a994c5d54120d0a316d0f7cd2908c43b8632b4064c57ddac0dba554bf9863b7c8ac38da10dc7d18703af927
+EBUILD libchewing-0.5.1.ebuild 1128 SHA256 e06d2f57d6993165a811977710f0c5b5dd02de66581db786bf82b8e64f1e9aa5 SHA512 37bf5f22627b97b6f44aefe9602a27a3085ab2048922cbd21330eba5dffc8195c136c553f2fb6b02eae677d35aa06b9d4ad1bd5360f6a2d94c0579662655e9e1 WHIRLPOOL 2f53a7d3f1608e38c76e9fd7d3a306b50ef5e5d67400510d6c247d1fea7a056b7ed9d0da0bf78531c926545290aed2931cb00aac9d406998ec682788f12b47ec
+EBUILD libchewing-9999.ebuild 1102 SHA256 c8d5957744bc324bb8783e626b50bf57516f963b67d90e1c56f5023e06eb08d0 SHA512 a6b0d950c98c5635e87557f3b7a59b38363345111ade7679f2f8d289c61fe15accc7e771e911a205dfe4934b1ca63839ef45c7b55a839e0f738df0c8130388ab WHIRLPOOL f4a25aed6d979eaccb6c422284dc7ac9af246c3135d400f45f1d2ac657b7afffea271d99f808e5336420be0dea1d18f3ed2b82db833ac4b556672780b1537714
+MISC metadata.xml 327 SHA256 e4e2542c5695dc15f7714db2cb554c9a63809a12aa0674e7c8a9e3e1642f3a0d SHA512 c9ab28ab34d940a30e97b989fd96904d2e0816e4b1bc5b843b082d64d6cd476335d9402640e71f2cf8f57f44dcae9af66d5e07075b189fa74f21faba40d819e3 WHIRLPOOL 7914b74f50280e9b89cd1442e993beef7ea6beeede2c6af126a2af1221b10890a7bdb1368b160f4e03d4b8a9c000b694a4595d7187e70c39004818b0c965f389
diff --git a/app-i18n/libchewing/files/0.3.3-strncat-fix.patch b/app-i18n/libchewing/files/0.3.3-strncat-fix.patch
new file mode 100644
index 000000000000..8f2676c0c2b7
--- /dev/null
+++ b/app-i18n/libchewing/files/0.3.3-strncat-fix.patch
@@ -0,0 +1,13 @@
+diff --git a/src/tree.c b/src/tree.c
+index 7e8f665..89ad0d5 100644
+--- a/src/tree.c
++++ b/src/tree.c
+@@ -586,7 +586,7 @@ static void LoadChar( char *buf, int buf_len, uint16 phoneSeq[], int nPhoneSeq )
+ memset(buf, 0, buf_len);
+ for ( i = 0; i < nPhoneSeq; i++ ) {
+ GetCharFirst( &word, phoneSeq[ i ] );
+- strncat(buf, word.word, buf_len);
++ strncat(buf, word.word, buf_len - strlen(buf) - 1);
+ }
+ buf[ buf_len - 1 ] = '\0';
+ }
diff --git a/app-i18n/libchewing/libchewing-0.3.3.ebuild b/app-i18n/libchewing/libchewing-0.3.3.ebuild
new file mode 100644
index 000000000000..fcb0674cabde
--- /dev/null
+++ b/app-i18n/libchewing/libchewing-0.3.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=3
+
+inherit multilib toolchain-funcs eutils
+
+DESCRIPTION="Library for Chinese Phonetic input method"
+HOMEPAGE="http://chewing.csie.net/"
+SRC_URI="http://chewing.csie.net/download/libchewing/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE="debug test static-libs"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? (
+ sys-libs/ncurses[unicode]
+ >=dev-libs/check-0.9.4
+ )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-strncat-fix.patch
+}
+
+src_configure() {
+ export CC_FOR_BUILD="$(tc-getBUILD_CC)"
+ econf $(use_enable debug) \
+ $(use_enable static-libs static) || die
+}
+
+src_test() {
+ # test subdirectory is not enabled by default; this means that we
+ # have to make it explicit.
+ emake -C test check || die "emake check failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}"usr/$(get_libdir)/ -name '*.la' -delete || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO || die
+}
diff --git a/app-i18n/libchewing/libchewing-0.4.0-r1.ebuild b/app-i18n/libchewing/libchewing-0.4.0-r1.ebuild
new file mode 100644
index 000000000000..32ca6a5ae6fd
--- /dev/null
+++ b/app-i18n/libchewing/libchewing-0.4.0-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools ltprune
+
+DESCRIPTION="Library for Chinese Phonetic input method"
+HOMEPAGE="http://chewing.csie.net/"
+SRC_URI="https://github.com/${PN/lib}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0/3"
+LICENSE="LGPL-2.1"
+KEYWORDS="amd64 ~arm64 ~ppc ppc64 ~x86"
+IUSE="static-libs test"
+REQUIRED_USE="test? ( static-libs )"
+
+RDEPEND="dev-db/sqlite:3"
+DEPEND="${RDEPEND}
+ test? ( sys-libs/ncurses[unicode] )"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ --with-sqlite3
+}
+
+src_test() {
+ emake -j1 check
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/app-i18n/libchewing/libchewing-0.5.1.ebuild b/app-i18n/libchewing/libchewing-0.5.1.ebuild
new file mode 100644
index 000000000000..af3a7f15e633
--- /dev/null
+++ b/app-i18n/libchewing/libchewing-0.5.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit autotools git-r3
+
+ EGIT_REPO_URI="https://github.com/chewing/libchewing"
+fi
+
+DESCRIPTION="Intelligent phonetic (Zhuyin/Bopomofo) input method library"
+HOMEPAGE="http://chewing.im/ https://github.com/chewing/libchewing"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://github.com/chewing/${PN}/releases/download/v${PV}/${P}.tar.bz2"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0/3"
+KEYWORDS="amd64 ~arm64 ppc ppc64 x86"
+IUSE="static-libs test"
+
+RDEPEND="dev-db/sqlite:3"
+DEPEND="${RDEPEND}
+ test? ( sys-libs/ncurses[unicode] )"
+
+src_prepare() {
+ default
+
+ if [[ "${PV}" == "9999" ]]; then
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ # libchewing.a is required for building of tests.
+ econf \
+ --with-sqlite3 \
+ $(if use static-libs || use test; then echo --enable-static; else echo --disable-static; fi)
+}
+
+src_test() {
+ emake -j1 check
+}
+
+src_install() {
+ default
+ find "${D}" -name "*.la" -delete || die
+ use static-libs || find "${D}" -name "*.a" -delete || die
+}
diff --git a/app-i18n/libchewing/libchewing-9999.ebuild b/app-i18n/libchewing/libchewing-9999.ebuild
new file mode 100644
index 000000000000..3dbd6c51e6fe
--- /dev/null
+++ b/app-i18n/libchewing/libchewing-9999.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit autotools git-r3
+
+ EGIT_REPO_URI="https://github.com/chewing/libchewing"
+fi
+
+DESCRIPTION="Intelligent phonetic (Zhuyin/Bopomofo) input method library"
+HOMEPAGE="http://chewing.im/ https://github.com/chewing/libchewing"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://github.com/chewing/${PN}/releases/download/v${PV}/${P}.tar.bz2"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0/3"
+KEYWORDS=""
+IUSE="static-libs test"
+
+RDEPEND="dev-db/sqlite:3"
+DEPEND="${RDEPEND}
+ test? ( sys-libs/ncurses[unicode] )"
+
+src_prepare() {
+ default
+
+ if [[ "${PV}" == "9999" ]]; then
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ # libchewing.a is required for building of tests.
+ econf \
+ --with-sqlite3 \
+ $(if use static-libs || use test; then echo --enable-static; else echo --disable-static; fi)
+}
+
+src_test() {
+ emake -j1 check
+}
+
+src_install() {
+ default
+ find "${D}" -name "*.la" -delete || die
+ use static-libs || find "${D}" -name "*.a" -delete || die
+}
diff --git a/app-i18n/libchewing/metadata.xml b/app-i18n/libchewing/metadata.xml
new file mode 100644
index 000000000000..baa53a1242c5
--- /dev/null
+++ b/app-i18n/libchewing/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">chewing/libchewing</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/libguess/Manifest b/app-i18n/libguess/Manifest
new file mode 100644
index 000000000000..b91987f85368
--- /dev/null
+++ b/app-i18n/libguess/Manifest
@@ -0,0 +1,7 @@
+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
+EBUILD libguess-1.1.ebuild 720 SHA256 f3d22d520468405fb1e300d1ea4347934262ea05c5df678216b45280a58535ad SHA512 7e81a6e5bb96881506f3f8a6ab6f5e71694b604f99a2e9ff5a1bc7a13f97e69fd4b25fbb95e207f88d29ba58cc1bc0b50dfa7f95743d792326ff921c04efd52f WHIRLPOOL b97859e2954a69258d5aad215f6582a220b3b90b68337ad7e479898837d49119f6539defbe55d4941d3a2b52113047689f20f26a8b274199ba4022ede942313e
+EBUILD libguess-1.2.ebuild 742 SHA256 01e3a1c9a5ebc9f262c96c6affd2b9766be20f6bfe080ffbc2464f41a3a4a835 SHA512 6e1ea8b3ec007adc40ad1707af9d999f2813b38befcb1371362a92c5edfe224125f77eeeaadd483eb5f83e3a8241da76fd836471b372bcded9b0670fa1c056c7 WHIRLPOOL 9634e50a3080a9b7c5a0922370e1cee0b4749c2f61b1bd22aaf3c07be76e6ad09082c8379e08558ac01d69deaf17233757479ba883f102caf6517229d1e5c70e
+MISC ChangeLog 3099 SHA256 8a1c008cc538c77a6a21beca5a5f5464edd66f89df0778c61b757cc8290e67d9 SHA512 75b3eab090e7c32710d589f7809c6492f1d1286ee06b108f5bc42290ffe00620dace6d94163829cd70279010798d3cc710eef28ec74ba3dfd8117eab9967a287 WHIRLPOOL cccc304a6f87d671f16abab5ab7a0a9bd72ca33456971c846dbff27d8fb24c84eff8060e27e3b32a6540b8dc37f5bc5cff121967354d449b1ebd2d5c61a4b93a
+MISC ChangeLog-2015 3750 SHA256 f5929c2ceda6ff99c42e4923740e0e020874fe668451e1cae3a15d7e2581a0b0 SHA512 9c001e6ea1eaea888019a5c6593baade5da0c983d08a87a472d38e87d6faab3792a9dbb2d2388fd5c4b2ef94a41dee9cf77d744ff37afc398e023ffa09c9f184 WHIRLPOOL 20e2d0541533cde0b0a74e8344171f7449a7e57728b8646058a11764f0160e3b5611760235e48c0ac56b74c1ec5807e85c5574bf2d78796898bfc3df1b146965
+MISC metadata.xml 245 SHA256 c8964f140b486f6785a7576737b490c7014d31a7b19e5118f05cb736ab2d2601 SHA512 c3c7907e50537dd94fdcec1da306eee2f050e5a456d369cd3df8c9bf36c810d811fe547418a8025e533916eb52a742d9feafae647b2957820d99ed962dad302e WHIRLPOOL 6a28ad9ed8e4870f04f5857e38bf3f6025f495b76106daa9762335dcae27e14e2dac260e1899bc73d62e4570beb9de6471175a5d5f05677d46d2b0941a138cd3
diff --git a/app-i18n/libguess/libguess-1.1.ebuild b/app-i18n/libguess/libguess-1.1.ebuild
new file mode 100644
index 000000000000..de20d8a0cfef
--- /dev/null
+++ b/app-i18n/libguess/libguess-1.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..8290e35337d1
--- /dev/null
+++ b/app-i18n/libguess/libguess-1.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 000000000000..1a06e96ebdc7
--- /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 type="person">
+ <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 000000000000..0ea3731becea
--- /dev/null
+++ b/app-i18n/libhangul/Manifest
@@ -0,0 +1,5 @@
+DIST libhangul-0.1.0.tar.gz 2899845 SHA256 5905aa5c557d8d46e190fec1afdd75babf3bc086ef286b42007572703658295a SHA512 cf84850bf7a41e743457300513c5efdf7b3e18d168f4fdc324aaa8e1be78743752fcb98385764f94c707777ab82cc9444e076808e61fdbd915c9c0d7ea93c534 WHIRLPOOL 898c355f587d2943dc9044ffb46a4e4215922a8e2a7c6c36853927e924efb7e47f88ad46741fbb70a1d68547872f2a3db77926cfe9c78ed6171095cd0a466f28
+EBUILD libhangul-0.1.0.ebuild 716 SHA256 50d20704f9798ba494549a6557291e51d95302e01c629a41774436c9dbba7e64 SHA512 fb752bffae41e63fde89fbc2b5ed03e2acc1beeabbfb75c609f29adf97033750f65ac8db7c8cddc324b643a69ab011b9a45b4bef979ec962dd28a3403d283f9e WHIRLPOOL 73c8de6563d0480326e5c36580afc6ba19b6dac04000f1a8822dac427c15050ba4ccd0b270bfb270ca64bcd784d0c6eb679c11b3ffea2d452b776c4ad7249eb3
+MISC ChangeLog 2813 SHA256 07c0d4885ecad52ae50ce0a5f3aea3cc07e6b6faafc5c266e5d067bb0e7e8185 SHA512 5407f626c1da2fdd2d1fa74e952fe2cf9956756105b037d727eef974613f21fdc8cc46442bd35f4b004239de5f0263f5189a9b2318dbfc5d1b99d68245ff036e WHIRLPOOL 97c2fd927cc86b25631f52bc963882b5d9175861873eb9f680a1ece111cfdf7100a8afa9751f8fe65b0a9d93ca3e2bac8d032ee9b0425ed9b88ea14dc6ef6971
+MISC ChangeLog-2015 4611 SHA256 ca52125750f8822374e65e89cc9305d6eb7fe1363dee15a7119dd3ccdf29be19 SHA512 435f49c8a92d8f8c4f834c4175a14c97c744c22ea7dcd8dd4f4e1171355e8387c03e03ac19106f3891b48209c53671d1a0f3eabc11b0ca315bc88d1b4998bad4 WHIRLPOOL 0c375d7f7b1b3f486ad2aed38fa43a342d9892afab44dea4c040ca7f70675956bc400dc039abe454c667d73db8876350c2824b62124d9962498f1318fbb74752
+MISC metadata.xml 313 SHA256 a5b5b3bf44875505e5c1938c35dd3edcb540510be10268cd99b8cfdab2b386e6 SHA512 dc50ab5219c5f5e27dce97fc904dff4fcf662f846bf0b43d94f4d01014c093adce9aa0767a23c0e2bb1c22584df322f4f89ec2cf509ff2d4140a4b2e5b035562 WHIRLPOOL 54fa667b70c4fc93c185ef7426437e6896f9488cfacce1482850df105bc503e505fd36fe09ca2f822ec21e2f4f01dc34f8098c7269667110cc0e378ec2b3f645
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 000000000000..ec22b8af6eca
--- /dev/null
+++ b/app-i18n/libhangul/libhangul-0.1.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="libhangul is a generalized and portable library for processing hangul"
+HOMEPAGE="https://code.google.com/p/libhangul/"
+SRC_URI="https://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 000000000000..cf493e6f8889
--- /dev/null
+++ b/app-i18n/libhangul/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">libhangul</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/libkkc/Manifest b/app-i18n/libkkc/Manifest
new file mode 100644
index 000000000000..3c730d28f2a4
--- /dev/null
+++ b/app-i18n/libkkc/Manifest
@@ -0,0 +1,3 @@
+DIST libkkc-0.3.5.tar.gz 1424282 SHA256 89b07b042dae5726d306aaa1296d1695cb75c4516f4b4879bc3781fe52f62aef SHA512 f611c3104a22ad38af29746870849d8937b6af2a7fee0952cc25f36ef845b5617a192df7ca63ff2a507384f7a6a13c9c1b4fa3b9a34f3f041bee8793d04b9236 WHIRLPOOL 4f759c9b08c4706c2244e253bad6c347dac2ad1a9ceb5a1b5b96161a7222e6fd1f607cc7dd4f49a01757e28742d75f2764d66c10435266e22a973f5e4e70cc72
+EBUILD libkkc-0.3.5.ebuild 992 SHA256 e1f1eb99da781dbfebd1bc8df1429e2bd6c34a3b6b0e1b91da37a6d0aeee73dc SHA512 19fed635f96b73fa7ba478ad78af73e60d5d5d41943584eaa208c4829cf2d5d0e8b853043f9294ce7b38fe68461ea64db2091a0767c2b16320bc615cafcd2b02 WHIRLPOOL c7e3923133f88fcccdaae17abf7a86cbcfde82b58ca245cb59c910109acc51225e80dd6ddc05ced7a349e9b6b19e3ba1144bc6f39b7f737b744ffb20cd828ab5
+MISC metadata.xml 320 SHA256 b03f49446f3633c0583ad93f69b1f57134391a09f3fa57cf0ff61bcdc447110b SHA512 83a16f6a6b7ecbfbb75a77f38b1de0f9b856e4d4c856f157e4d2d8863f830655b78d1969344383d7d3c12df6a4b3e4d1962be4d8bdc8a77ad9a7c204a111504e WHIRLPOOL 50cc19e9c5504173880e66440ee7c66c09c662f24ff85e36f1598fca811465e6a407d7824e2b2b22516dcf099572911a2611518cd147fca3bed06f66c86d18cf
diff --git a/app-i18n/libkkc/libkkc-0.3.5.ebuild b/app-i18n/libkkc/libkkc-0.3.5.ebuild
new file mode 100644
index 000000000000..05430798a652
--- /dev/null
+++ b/app-i18n/libkkc/libkkc-0.3.5.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+
+inherit ltprune python-any-r1 vala xdg-utils
+
+DESCRIPTION="Japanese Kana Kanji conversion input method library"
+HOMEPAGE="https://github.com/ueno/libkkc"
+SRC_URI="https://github.com/ueno/${PN}/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+introspection nls static-libs"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/json-glib
+ dev-libs/libgee:0.8
+ dev-libs/marisa[python(+)]
+ introspection? ( dev-libs/gobject-introspection )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ $(vala_depend)
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ vala_src_prepare
+ default
+ xdg_environment_reset
+}
+
+src_configure() {
+ econf \
+ $(use_enable introspection) \
+ $(use_enable nls) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/app-i18n/libkkc/metadata.xml b/app-i18n/libkkc/metadata.xml
new file mode 100644
index 000000000000..4d9edd9a3b5f
--- /dev/null
+++ b/app-i18n/libkkc/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ueno/libkkc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/libpinyin/Manifest b/app-i18n/libpinyin/Manifest
new file mode 100644
index 000000000000..d740d1c96413
--- /dev/null
+++ b/app-i18n/libpinyin/Manifest
@@ -0,0 +1,19 @@
+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 libpinyin-1.3.0.tar.gz 190686 SHA256 71a5749ff96a1ae5a71bea8d5c1394b16f9252c4e3ad5225cc66ad2a76ab6d7d SHA512 063fd114732650636aba21611042a3461eb5c0447dddef04957edfebd186b76d6eb9f29bc4d095c9b5aebcc7fc2acea345f49adae00eac1fad44822f088c7415 WHIRLPOOL c2840d0272ded79902047d46c14eb5c1ddd6ec3df322086c904f0a1d85e5150b9fdb33f97b276ed56c18039cbbb4d668f9ad014f65aadb9e703957b2e4ceea73
+DIST libpinyin-2.0.92.tar.gz 245949 SHA256 8a37f0ab6334f1d64de1d83ebe290254e07bfaf27dde7dde01b4acb2bba51ca7 SHA512 acf90ab484d6e76d5247916ded71febb0d41152aa41eb7a90ef60d7d9d9ffd11512af078387542501e03edcf6e4f75c28157ed390186ab6d25ccbe4aa1cf8777 WHIRLPOOL ca196d008f3e083f97a97db6eb80ae2922c9bbb4dc3098b62a045c9a870a8a5ec3025e55e5ea677b6855be59dab54bea9cd54373b78ae298f442bab272d84073
+DIST libpinyin-2.1.0.tar.gz 246219 SHA256 d6ce0da926cb3485fa4b2e3805d49674a96a55e0cde9d31d57afb2626cbc32c6 SHA512 e6aa3998ac466cb155750b574140dd43673bfeb4f13d1b88c4892b61bb773aee84610dd67ad17871961d51a48067c535eab33a6fb6c9ac28179a9958c4e9b518 WHIRLPOOL 88827f2901e7394745f337d76742e1a2842b33ed732935ed96e740afebecd897c8720115a3c90deff751dabd4b7891e6575e26cfa5a99b433ff2cd79c5052e6c
+DIST libpinyin-model14.text.tar.gz 19361973 SHA256 185f0f175a90bcfc55cf3cf6ceff8d447a6269492c0ca1a1fc0748ea2c181363 SHA512 792d3cf7ab7fdea701737cea66d18f697015f19d18b6d26273db2da0ae28291f38b3d8a5717f595da63fbe573921c552bdce10c4bec9a0834947dfec92265da9 WHIRLPOOL 5de2ed18c20cfd94a31420085d7fafa93601858279126e553b7aed2ff9a69e6efed6fd8aae3cab8c9fe0b5bd6dfad2c3002857777b6ab6f0e0d94719943f834d
+DIST model.text.tar.gz 10285854 SHA256 a4924c5b5923c3ff9ce55456a417486d07d3b2f7afc194f4338a1221fe36b533 SHA512 d3f137c7de0f357950abbb1e00c0f5d62fb5b4b0ea9f3a6dff29bf6bb2e4f5293319321abf1bad88742868563f65d74f0226f433ba4bcfdfe2c23fef6fea7c74 WHIRLPOOL fd1d637cfcecbbbd7506d15fd107106e578013aa9ca4c0be1aab110fb49ebcb2dbf1493953349e7cf7b0a8a5a0c2c216d993278d8ae78b42f5c703363b4efe60
+DIST model11.text.tar.gz 17197590 SHA256 d0428e87a8c6b214036641a3317834f8352e77cbba0f040c7bd3495d13ef3f71 SHA512 21c048e7f93db9626ec1545a977abb555e12149b791ddab0b0b4fe4adf6fc082d2c2ede28fc42407e72e15f0af1cf428dc58ad955c514d1bcbc67006803e0be7 WHIRLPOOL 7549d45219912880b179c844b5398f063ab27b1db23f2b40a96ff7a29a0217ec430fbef9b2b2b031cb27d22a77eea363ee810e5c259dc7340365d2901a1a1fad
+DIST model14.text.tar.gz 19361973 SHA256 185f0f175a90bcfc55cf3cf6ceff8d447a6269492c0ca1a1fc0748ea2c181363 SHA512 792d3cf7ab7fdea701737cea66d18f697015f19d18b6d26273db2da0ae28291f38b3d8a5717f595da63fbe573921c552bdce10c4bec9a0834947dfec92265da9 WHIRLPOOL 5de2ed18c20cfd94a31420085d7fafa93601858279126e553b7aed2ff9a69e6efed6fd8aae3cab8c9fe0b5bd6dfad2c3002857777b6ab6f0e0d94719943f834d
+DIST model7.text.tar.gz 19666966 SHA256 c9a3c38e6439302603b5c3772ea9dae280b4ef46bd6e8762ed40452dc400af78 SHA512 74a56a23cdca24124037f688ed85a921089155a1b9a0b61e646f805b2bb698c56682c5d6a47ff86657c8b131a831dbee9d5cc5165d4c1f235b77fcd5b2e480ad WHIRLPOOL 5285398bb6bd431caa3449b9540a1c08dad785456d9152fc44f6303866891de5538da4c5945eb8e8a0b64a081a58e7e6d25caacd05e2e3a7219e4335f0414986
+EBUILD libpinyin-0.8.0.ebuild 723 SHA256 10bf617acdf60d830e71cfaadfd15d28cbb73cdfbc7626e4bb394271efa4ad7d SHA512 3153251713d28655f62cfb5fbe92c329fa5eb7776bfaa9739ba1be63cb18bb0a9019b6af1d7eb9125800434f5453e8a4383b1d816990b5a14643a4817dbe39e1 WHIRLPOOL 2f6a9c69ccd49d336ec32f7cfdfdd9bed953c2587e6071c72cece7fde333067c4a2303e4c08e138163ebb3bdaec12d90da659ebbc824dfcac32daf43f7141047
+EBUILD libpinyin-1.0.0.ebuild 769 SHA256 eba1f32f1e09da0a0f125c06ea49b9adbfac99c933f8fce93a13ba6c3ddd76a8 SHA512 5327dfbec65535b38dbaa70f1008b2c29417e644213ec9427ff067cdb16cb20f6432bb070c82f9e24ba56ee8dce18fa588682a89b019ef90e156e00684dfab6b WHIRLPOOL f40834f55ead8f7bb3cc5682c30e4fc123ad74bb9ff978c95342fd9a270b3c3888b4264605a750cf2f5888a6e69deaf9bf2135a4e96b3844d7ceb9d09132101a
+EBUILD libpinyin-1.3.0-r1.ebuild 771 SHA256 fc82e0b37214617390c5eab1145c3e073efa6892f5a4d0f9f02ea7a27260893f SHA512 8edf87ae898328a23a07743f629029012cc0dee82d2b7406764a623f75a91284e6c2d8d71bc3108e30f41200047d05fac220c1ea58709931b76551bf70fc03cc WHIRLPOOL 5075c09a628f6fcb983a443c4c0f71df9816b89e4a49e6e728e06215d50b365a26542cb5d4a357e6fcf6d008cff23ac468f17b012301199d06181a5ee3239b29
+EBUILD libpinyin-2.0.92.ebuild 757 SHA256 db21bdc14edba7a3984691283dbaf89305308b7b396857b0e7e490ab3fb621ff SHA512 354c222130c1b931f2fef9661add143f3db23a9e557cd2726927eb6b53dd4429a4b541b13ae0cc1b8007d99a2c0e7706960716dde77e11d7964947f6c8e4f41d WHIRLPOOL e00932af664d1353ebb5fb2ff34ae75f44ba20cdc2bda43c6b70adc63a0dfc24869f65e41c7ce74ed9285c134a934d619ddf309d71bef14990742f4344b64b1e
+EBUILD libpinyin-2.1.0.ebuild 1354 SHA256 e728b9fe944974fce64bf113f74357eea09b24113b6f5044890c7e1130fef7ad SHA512 d762e40f6df9bda1f4acd28d355ff601e23181f110f369896e10716efcbffce99c76a738ddbb1f3efd7be762416eff912ab15f89f3d9f6a2e89b637c5c59d246 WHIRLPOOL 671442b13c915f860a80f550d9d27914ea9508b0176b9f395e0766ceb9bff9ac021e12defea1387650790384541256905d36e745a038a00ff9948c17673098ae
+EBUILD libpinyin-9999.ebuild 1324 SHA256 f4ea629acc1c5345c03b9ed85530389b36962b9bee1499c4e5f128e3aa6a86ba SHA512 4d0b893b7f40303d60ec59ef4afcfb11b017814ef79ab751e5b5cc382a0b1721a8dd3e67ab5a7684d05c72b164274c1c9b6d60f621923107c1d54c79ee39e1ba WHIRLPOOL 7eb629062a9fac8ef48a84412093a42e88f990d18550642b6f190c303757b563b9942bb62d03639de065929b44c08a3d4038f08b521921c2aa1dd5ed386cd569
+MISC ChangeLog 2804 SHA256 cb7b1ee1e346acc0975ad54dce2ee22c7c1accaac05d2b74bf40d06a59ce8e31 SHA512 7c3aaf1a0416df3d73934eb0f85e2cf4835a8bc3ee48e956f3cc4b1853239e08695b837fc0f2e7e04dc93e86d4d1efab9b79cced06642d30d2ce47d66fafce6d WHIRLPOOL 8ca387acc2a45b368ca250db6aecfb39d7749d94ee363c02b15c8cec4120be3e54aaedbd21f56c40157809c62a3c17c5083f71bfe28998c8b6600360ae9d873a
+MISC ChangeLog-2015 1865 SHA256 2eaddf26ac3a0ae49fff77042388f32de3e22f3076ede11b87f8c54a207f201c SHA512 03252ed7e66bb5e055e92c3656906e6cafb82121e74bf0b3ad61f10d3a93fe846b4873c780a448552abe9a96f70908706db3403c5f5f2dc1d719be16f6c113e9 WHIRLPOOL ab9a7422033b39553360887240827a4aac0700046fd0f6f619e6091cbc099ba0572e76776873dd759f4a48c6ba909b97b6073302b551f6f2233de9eaf43a7671
+MISC metadata.xml 384 SHA256 9c0185db010c2b47378fe4442122e2ee82b60e291e0e769c2b12b12994b30efe SHA512 4317a502e82b23aa2c66d406148eab83996139b4522f999884559b7b6d15709ded6779dc64aeedc657a1be3cd1337281c9e1297ae22dc6b227aef419dc707518 WHIRLPOOL 15eceb3523ebb7a81ba1c5943e2344131a60338497ed0988ba3feebe4e685929957caa991a0b168e3870db220a46a4821b67b0819acafcd02b9b67179d85760a
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 000000000000..6d35c85f9298
--- /dev/null
+++ b/app-i18n/libpinyin/libpinyin-0.8.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/2"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND="sys-libs/db:=
+ 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 000000000000..c699c09c6fa3
--- /dev/null
+++ b/app-i18n/libpinyin/libpinyin-1.0.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/4"
+KEYWORDS="amd64 ~arm64 ~ppc ppc64 x86"
+IUSE=""
+
+RDEPEND="sys-libs/db:=
+ 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/libpinyin-1.3.0-r1.ebuild b/app-i18n/libpinyin/libpinyin-1.3.0-r1.ebuild
new file mode 100644
index 000000000000..c0bb0eb4f522
--- /dev/null
+++ b/app-i18n/libpinyin/libpinyin-1.3.0-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+MODELV=11
+
+DESCRIPTION="Library for Chinese pinyin input methods"
+HOMEPAGE="https://github.com/libpinyin/libpinyin"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ mirror://sourceforge/${PN}/models/model${MODELV}.text.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0/7"
+KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND="sys-libs/db:=
+ 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/libpinyin-2.0.92.ebuild b/app-i18n/libpinyin/libpinyin-2.0.92.ebuild
new file mode 100644
index 000000000000..3040ea3f35a0
--- /dev/null
+++ b/app-i18n/libpinyin/libpinyin-2.0.92.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools ltprune
+
+MODELV=14
+
+DESCRIPTION="Library to deal with pinyin"
+HOMEPAGE="https://github.com/libpinyin/libpinyin"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ mirror://sourceforge/${PN}/models/model${MODELV}.text.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0/12"
+KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/glib:2
+ sys-libs/db:="
+
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_prepare() {
+ default
+ ln -s "${DISTDIR}"/model${MODELV}.text.tar.gz data || die
+ sed -i "/wget/d" data/Makefile.am || die
+ eautoreconf
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/app-i18n/libpinyin/libpinyin-2.1.0.ebuild b/app-i18n/libpinyin/libpinyin-2.1.0.ebuild
new file mode 100644
index 000000000000..1d9868e1e94d
--- /dev/null
+++ b/app-i18n/libpinyin/libpinyin-2.1.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/libpinyin/libpinyin"
+fi
+
+LIBPINYIN_MODEL_VERSION="14"
+
+DESCRIPTION="Library to deal with pinyin"
+HOMEPAGE="https://github.com/libpinyin/libpinyin https://sourceforge.net/projects/libpinyin/"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+SRC_URI+=" mirror://sourceforge/${PN}/models/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz -> ${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0/13"
+KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND="dev-libs/glib:2
+ sys-libs/db:="
+
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_unpack() {
+ if [[ "${PV}" == "9999" ]]; then
+ git-r3_src_unpack
+ else
+ unpack ${P}.tar.gz
+ fi
+}
+
+src_prepare() {
+ default
+
+ ln -s "${DISTDIR}/${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" "data/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" || die
+ sed -e "/^\twget .*\/model${LIBPINYIN_MODEL_VERSION}\.text\.tar\.gz$/d" -i data/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --disable-static
+}
+
+src_install() {
+ default
+ find "${D}" -name "*.la" -delete || die
+}
diff --git a/app-i18n/libpinyin/libpinyin-9999.ebuild b/app-i18n/libpinyin/libpinyin-9999.ebuild
new file mode 100644
index 000000000000..e5df0d1c77a9
--- /dev/null
+++ b/app-i18n/libpinyin/libpinyin-9999.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/libpinyin/libpinyin"
+fi
+
+LIBPINYIN_MODEL_VERSION="14"
+
+DESCRIPTION="Library to deal with pinyin"
+HOMEPAGE="https://github.com/libpinyin/libpinyin https://sourceforge.net/projects/libpinyin/"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+SRC_URI+=" mirror://sourceforge/${PN}/models/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz -> ${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0/13"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND="dev-libs/glib:2
+ sys-libs/db:="
+
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_unpack() {
+ if [[ "${PV}" == "9999" ]]; then
+ git-r3_src_unpack
+ else
+ unpack ${P}.tar.gz
+ fi
+}
+
+src_prepare() {
+ default
+
+ ln -s "${DISTDIR}/${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" "data/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" || die
+ sed -e "/^\twget .*\/model${LIBPINYIN_MODEL_VERSION}\.text\.tar\.gz$/d" -i data/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --disable-static
+}
+
+src_install() {
+ default
+ find "${D}" -name "*.la" -delete || die
+}
diff --git a/app-i18n/libpinyin/metadata.xml b/app-i18n/libpinyin/metadata.xml
new file mode 100644
index 000000000000..a46185d494b6
--- /dev/null
+++ b/app-i18n/libpinyin/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <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 000000000000..44da2a54123c
--- /dev/null
+++ b/app-i18n/librime/Manifest
@@ -0,0 +1,13 @@
+AUX librime-1.1-gcc53613.patch 12167 SHA256 20b8f014772fb4c2e41f1a3bd6a3039f597fe0aaa61521ecc3772779d7606be7 SHA512 d1d0288c8ec3e00547665b6d1304cf073628c085b4144662218f4260a479a4d317897e20ded07fd853791e0a0cab3100248e12de1b958458f9d5fb72c1c5c05e WHIRLPOOL de940c01eb64028c480828cad0a233b033e9a6d974c08c8a864e0927a7135b63b8d3fefaf51b515ab9d0a411b72d8655ce2364b2d80c5fb1f36e2e6532c6d9da
+AUX librime-1.2-BOOST_NO_SCOPED_ENUMS.patch 6887 SHA256 1749de31c37626d7835df60c202ff55023dc2e2ae8f7e110cfb83ea58a7bc66c SHA512 3c0d4b0f7d63a9a708825ce9a56a33bd7f7fd13ae97cefe108bcb1ba48a1798a020c8980d52c9450342c7f39cabd73c10b494ac4da5e8513f298ce771fc69d8c WHIRLPOOL 40258d79702340c1d69a21352345f1463a47a149cd164ad8784b5ffb40cfe20cfcf23553037dd41c64846f90d49bbcc4a1f0ebc07384cc8c7361bc53208cd366
+AUX librime-dictionary.patch 409 SHA256 a64e70aab186d14f2f0685bcaea811dea69660f7dc30f3a20143ae2d3afc680b SHA512 ca529ab32c5453e338c952670071fc2ad489c8785ac2336811ecad31f9e09f1fb0d081b68f61fac4b53f65ebeb3067e3ff499292ec7a3da63f51d3148a7cfd07 WHIRLPOOL 2310b349e18f2f45da856212cc98d7cb88a8c4c8c8c2029b194cb6aabf6cba49d939e258c8a7839c6fefbde4422267f93d494153f420ad2af850a5d3fb0d103c
+AUX librime-test.patch 1398 SHA256 98ad3c51d59ed64609bfe698568fad6764878cd5715e5fd3089cc0d084197fb3 SHA512 2fba47701527439e74d5511feb70dc604ccfa0d3eb8a402812b97617077ef721b8d7ad07b9a7cf7b69e5204f58a7366bf8d6b114c89a39f50f69a039c268e09b WHIRLPOOL ae6b711eb30b141eb0db6f9c19cf415bc2ac1ae0367bea8127c1a092d6868fe3d17a8d91dc3b66c0b1f4fb92abc77cdaefe0a4400f0b63680d8d9f92f662d46b
+DIST librime-0.9.9.tar.gz 2548968 SHA256 e828acc853a5d9e3ca191d065112c410183aadb5bd1d021704f82a8644ff6fd8 SHA512 71b39e713d5bbb73441dfb3038be6dc04518d2169df336e7fcb19b4c3b19a48d7db7c230fb1107148f3b7d95342851d23569617ff8138200c7ef1d750060c00f WHIRLPOOL fb5798491352eb1682a2bed7a73486df153a2479eef0adadc00726ab958b50606e32d59bfa8ded86c3aa35bac5e120e4251903fcb54326936251f1f3af726f92
+DIST librime-1.2.9.tar.gz 5516609 SHA256 d9f0e732b5bf0ee9d8872d00c79322eec7682139a898a65555f794795ac5f410 SHA512 2266ef96ad21ec5981b4ca5371d4e16eefed545ffbde07093ae0d0be070a64f9869baa09b6bdcee2522438e08c72a842a7e0b225a6ca1b661708a80cf3aba83a WHIRLPOOL 032c517008b0f4b4d9ccd9d188d480018fa1116d252786953b136de060534486b73997c6574f3ed040f337ca028b83669b135fd2683e54ddf576039a77db19d7
+DIST librime-1.2.tar.gz 5199581 SHA256 fb04a7e0a4eeb2f25031c9a366cedfdab641ab06960f50c42febef5195de9381 SHA512 75a771916a58b1ab678dbf05ac074a651cea077e81d25e4dfd0ea839fabe6cf606135851e72c19d6a8a9c6ed66b89928b90785f282e8786c375bc1d393059227 WHIRLPOOL 44a821fc4e1a562cb01ce7c28efc5a4fd3ca8e9d2d4e55ddda3434b677a17b59d7114a634bfd95ae53072f0e6f2e5f027b2c81ab70fa51b011934c7c39fbcf51
+EBUILD librime-0.9.9.ebuild 885 SHA256 f7f624b33eec3800e2984448d81039d6c58271e09159ebd21ebec5062a10b60f SHA512 905c76d5b75824318e94d8953eb3b5233d2721c1783b42e7312b56f4ab69be89a158f59a6ce4aa259f89d0baf233fb41bd10129a8b87a519c22c4e7f4d5c75ec WHIRLPOOL e8e9a0e6da2f691ee058e92c90a7308c3ce3109f610e32cfaad8adc899c74cb5cb68870539cad9ebd65f0f3754bfe782f44e0ab62deb24fc98c4f866165160e4
+EBUILD librime-1.2.9.ebuild 915 SHA256 30097dadfa5de522be9a70542fe23ede9d8648cb68240b82f461cf880994836d SHA512 268ec6bad8d831002fcda2b01cd6e35d6aa97b5cb261a671f6dcb99e4ce57660684456c6126311c49ccd72aed6351381e41be36fa6b5ce57f096bce0e9f831e7 WHIRLPOOL a81a7126fd215dbb20fc04108de7c8da76c18c26e35457325ba552282a8b1a70554955ddb85d63b9007a8906ba96c1d91ef9179aa8ff32595b222944ddaa6a50
+EBUILD librime-1.2.ebuild 1018 SHA256 a6fa15c146178eebe2c0b504321829216b6f87f20c5205496c19cedb7912f1af SHA512 fb719c3d2b79960b99d1cde79acee51f200fb295baf467b8b97bc8721702059629b133f442ef7f966776178c0e1975db80b668b590944f8caac76d886e7b6560 WHIRLPOOL dfddae515775b261fff729b87fee93631ade4c1af10081781a528286f1d02e0c5ee157d0d6623ed771ff42e92c4e2f734b5c69d08d493e4be1c12b2356edeaec
+MISC ChangeLog 3599 SHA256 7d8ce3e1b9502ca204f9ba3ac0e93db523e5bd093f2a92f518fbfed3e29b0345 SHA512 84168f25368df59942feedab779cc5b4fa7e55b501f99c172a0c27dd0c19e7321c94c57bb0118faa3ce7254c7168563ea5efa35bd630c36316e98a81fa5266c9 WHIRLPOOL 7e4985ad4358c7da94812dbcc317c5bd03b819dcca3306aaa88fe03b03e448cf2c8b4e4b6113edb616a0da46b1a891ee95901587a3df5392a5dcce7d8e883358
+MISC ChangeLog-2015 3322 SHA256 1d5b9b9ce52e660b7dc571cc70c7d7ec01b14447a4c6029a481b733c422d180a SHA512 19325ca6fb92c4ce0bb82757a8fd0be33ddc3dbef5eccb3bc70cd8843c6c9cadfce7b98baee22ae1442f7c49785cbc5da2c613471e2a3f794cef11de9c8c718f WHIRLPOOL 56d910f0c173359ae55f8e3898a38bfac1cca797178145e8f514609905a8888846f3dbfd7dc014257bbab6128df7dcb730d73e9e9640ae98a472e801dfdf473b
+MISC metadata.xml 655 SHA256 6d0b230ef89a8d7224ca98984132af022f55cc154125ddcb4aaff6c83dfa2d24 SHA512 c82501b7e2e2dbbacaad03c74d9691f35cc0d768f55b0539be65af0e5cd939b21d584dfd8800e761e68d4a3d72be54111fa67abf0145def7c9421330b32ed146 WHIRLPOOL 01f05e02ec945b51c5b26a58142f7b39f8bcde59a51f018e4edfe46ed889b79799c18ed28f79c99f0f8b6089cf8c28b43409674100a327d3e6b233c686901298
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 000000000000..28dfb1ec36b5
--- /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 000000000000..71c1e9a96210
--- /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 000000000000..b8ce53f3992e
--- /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 000000000000..b890cabfbb33
--- /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 000000000000..c1693bf1f7e3
--- /dev/null
+++ b/app-i18n/librime/librime-0.9.9.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils multilib
+
+DESCRIPTION="Rime Input Method Engine library"
+HOMEPAGE="http://rime.im/"
+SRC_URI="https://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.9.ebuild b/app-i18n/librime/librime-1.2.9.ebuild
new file mode 100644
index 000000000000..de9834370d97
--- /dev/null
+++ b/app-i18n/librime/librime-1.2.9.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils multilib versionator vcs-snapshot toolchain-funcs
+
+DESCRIPTION="Rime Input Method Engine library"
+HOMEPAGE="http://rime.im/"
+SRC_URI="https://github.com/rime/${PN}/archive/rime-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="static-libs test"
+
+RDEPEND=">app-i18n/opencc-1.0.2:=
+ dev-cpp/glog
+ >=dev-cpp/yaml-cpp-0.5.0
+ dev-db/kyotocabinet
+ dev-libs/leveldb
+ dev-libs/marisa
+ >=dev-libs/boost-1.46.0[threads(+)]
+ sys-libs/zlib"
+DEPEND="${RDEPEND}
+ x11-proto/xproto
+ test? ( dev-cpp/gtest )"
+
+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/$(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 000000000000..59b420ff3cd0
--- /dev/null
+++ b/app-i18n/librime/librime-1.2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils multilib versionator toolchain-funcs
+
+DESCRIPTION="Rime Input Method Engine library"
+HOMEPAGE="http://rime.im/"
+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/$(get_libdir)
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/librime/metadata.xml b/app-i18n/librime/metadata.xml
new file mode 100644
index 000000000000..bb81a505ec80
--- /dev/null
+++ b/app-i18n/librime/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>chen.sst@gmail.com</email>
+ <name>Gong Chen</name>
+ </maintainer>
+ <bugs-to>https://code.google.com/p/rimeime/issues/list</bugs-to>
+ <remote-id type="google-code">rimeime</remote-id>
+ <remote-id type="github">rime/librime</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/libskk/Manifest b/app-i18n/libskk/Manifest
new file mode 100644
index 000000000000..d20ebddbfe74
--- /dev/null
+++ b/app-i18n/libskk/Manifest
@@ -0,0 +1,7 @@
+DIST libskk-1.0.1.tar.gz 860453 SHA256 37bb7859deffd038319a8bc7f9c7d3b207d7dce6afea5e3da519381d7a05388c SHA512 17dc7c0361083c08c29267b4fe2d066b079e5156728f461717044f99579ec2674b56c960d2be5a42a2dffb693106d2d3d78ec8cb833e8f189d48e421a25d91b0 WHIRLPOOL c40970c33b807ee37e27888dda7220ed4e979a05a18c742f0fbfe39444192363b82d2e4b10f837b015ae8d0e359c4e67f7e548269b5b032a3e944f1ca0ff7791
+DIST libskk-1.0.2.tar.gz 867572 SHA256 e4e0a13493cf3a8ac87a4724dfdddfd2ae795659cbb3431bf94719fd6e016d40 SHA512 f8fff94b216c18f66bf1004ee068f8d737177f1b70ac36d054d9a68ce02ba9b8d1b7b4127d9a330f64054b2fe06f352070c750a3562d4be36fecf20cb854e6c0 WHIRLPOOL 5f56466be5c197e3bf5b920cd9eac150274bc5779d3d0a758197133b3c824df7b6e317aa0320ba15850f0d02b79853f9a41da75c43567ad8dc75119a49455460
+EBUILD libskk-1.0.1.ebuild 926 SHA256 d90ab020d78aca9ca0e31a0327cd42e6cf1c58cbda9e33abe7865d1d2180ff75 SHA512 fb337ca71c557303de447ae53c11aa45a92e7c5cadfb565826fefded35a0b98df2ad9663fa52fe5d5fab48c8c2313c839f7867c769ab42ec757dd2b626c55316 WHIRLPOOL ca3457f7bb71d1e247d6e027f775baa417b5947ec89a1e2abd69857041202bf108c98315ce8c9db57c9fee077e46db3bb47770c5729bae243dcc65beff5b0787
+EBUILD libskk-1.0.2.ebuild 940 SHA256 1114d4db8e566ce1bc5da1cad9a2668badcce6a7ecf54eb39c4f2ce4e1ee82c4 SHA512 5d0c21535c97817cf78ef98940b8c31ed0add9ba89958063cc336803af49ef6736e45138e6cdd9afb2675e9caf253051b2ede31abc2423bf07c18f86ee463a7a WHIRLPOOL eeb56f309428569022d97a6f06eae049441e8c0930e9b55175de4241d5e198fd95cb9796edd6a196a09dc03bb17943022d72908c2f312628fe169f59ff63e579
+MISC ChangeLog 3177 SHA256 09497b7076600c1ce49d152a21441ac24652e3d69d59a4f8bb97dce2f5d17245 SHA512 a22422c3bb8bcf864e8b0fa7f621d58715b7a8a10c3540c5890b78f93564f6392bce478658ad863f40cd9a534caf468645783744eb900e91728f4ff1bb6e26f8 WHIRLPOOL f9e2d482ee4be5fbc04c0a0d369e7b89fe589a4c8e89e08d316172a39d3a8f2470e37ee428786e465c080dcbeac1cefb8b0ab1720cb03ab6d9b2fb97b35f1165
+MISC ChangeLog-2015 1400 SHA256 b2a1b9c9ab372b1a94777fcf1ca0d8a3e1c8cc6127a70118bb33579d9dd21daf SHA512 2a6a0323fa46fdd0f79f5b1b9014ddddf791f13d8c9cfb009d9a9988116bdb37d434ff4a2fadbc8d4f0abc2ebbb3babfe4b21d86e4616ee97a63655246b5699a WHIRLPOOL 94cf088ed6cfb8abdeba270a7325aa567b49ec02dee4c271e7ed7705436aff28bc2a8858a12085d49c5643f27648b5d18c328d0a61682be968ae0d2241589da7
+MISC metadata.xml 320 SHA256 aed1691f167d19c0b04d4de03fba50040a62d4fd2fee7b78bcd2591bdbea73ce SHA512 a62e6d05067067cbcae666b635047834bca3c4ca7a4b217ffb20ace08fb05ba8917d8f413319a0ebe14d54c9fdf803c247644da9b22764335f5e9fc41529f67d WHIRLPOOL 08b2f62b8c35acc172108492da0be9a969dba0b9a9e52610fcad472d3967810213720e07293031f91a5e4ef5afbb093209c68e5328512b80f22d3e894c1e0840
diff --git a/app-i18n/libskk/libskk-1.0.1.ebuild b/app-i18n/libskk/libskk-1.0.1.ebuild
new file mode 100644
index 000000000000..77cf687debec
--- /dev/null
+++ b/app-i18n/libskk/libskk-1.0.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit ltprune vala virtualx
+
+DESCRIPTION="GObject-based library to deal with Japanese kana-to-kanji conversion method"
+HOMEPAGE="https://github.com/ueno/libskk"
+SRC_URI="https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+introspection nls static-libs"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/json-glib
+ dev-libs/libgee:0
+ introspection? ( dev-libs/gobject-introspection )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ $(vala_depend)
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ vala_src_prepare
+ default
+}
+
+src_configure() {
+ econf \
+ $(use_enable introspection) \
+ $(use_enable nls) \
+ $(use_enable static-libs static)
+}
+
+src_test() {
+ virtx emake check
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/app-i18n/libskk/libskk-1.0.2.ebuild b/app-i18n/libskk/libskk-1.0.2.ebuild
new file mode 100644
index 000000000000..976e49d5f069
--- /dev/null
+++ b/app-i18n/libskk/libskk-1.0.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit ltprune vala virtualx
+
+DESCRIPTION="GObject-based library to deal with Japanese kana-to-kanji conversion method"
+HOMEPAGE="https://github.com/ueno/libskk"
+SRC_URI="https://github.com/ueno/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+introspection nls static-libs"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/json-glib
+ dev-libs/libgee:0.8
+ introspection? ( dev-libs/gobject-introspection )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ $(vala_depend)
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ vala_src_prepare
+ default
+}
+
+src_configure() {
+ econf \
+ $(use_enable introspection) \
+ $(use_enable nls) \
+ $(use_enable static-libs static)
+}
+
+src_test() {
+ virtx emake check
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/app-i18n/libskk/metadata.xml b/app-i18n/libskk/metadata.xml
new file mode 100644
index 000000000000..47d519fd6058
--- /dev/null
+++ b/app-i18n/libskk/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ueno/libskk</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/libtabe/Manifest b/app-i18n/libtabe/Manifest
new file mode 100644
index 000000000000..88733e3bb083
--- /dev/null
+++ b/app-i18n/libtabe/Manifest
@@ -0,0 +1,10 @@
+AUX libtabe-0.2.6-fabs.patch 1024 SHA256 17576973cafd5b36f813554318af8dcf91d73af21ab0be021844e5e2ecdf25d5 SHA512 05d2962925ac19bd0f56078cb7fcb2808d31f80db7738bfe291e349bf69395f5d795ca2d6176550eab81b914e261e127d185ee60aca63917b5742608bda6e265 WHIRLPOOL d2972323fed42ff9cf52b18cc0356cd0182d6e47104360fac421dfdda8e72c07a5e71b49f7a0aaad2839e45ec71e5a9aabc62df7ccdb1ca2bd1d1046bcfbdab0
+AUX libtabe-0.2.6-ldflags.patch 2026 SHA256 e61552ffe9566903b7bc729983c1e138bbce9a5e6e1064b6c4752e7a102393e2 SHA512 c7aebc251a287d0026f8b78649b30e7551e925ae936033d7af365c74416db6e350dc026f1550d3c84feb50916be661b14060b41534642531ac7871a1a0e5f233 WHIRLPOOL e5fa5ddc153bb3199b3ed9be2405ed7481df318ffe2c884888cc4d24f068b3a87854ea37413784d1ab589e072869d054614b3e143ce99bb54886748e542958b4
+DIST libtabe_0.2.6-1.1.diff.gz 74149 SHA256 92780b9f1727855e6c4e7dcf27fc9f4695cfd66deb6056b52c6b9bf55b863f62 SHA512 001a08d69d93f0092c8a54c11a88afab850de1383febeda68c1a6b2a2b1447d01c929de47c7d947e390706d0bec6b8825b8fe11fc6c8a40d6d047b644009b6e2 WHIRLPOOL a9dd416a05a91986bda4ab1ca76d7d0050b9003d185bf3b4dd10aa4413217fae500381b798cac88262bf6ca10ebed62cb9f143f83502a6a7eec31e78ad3469e7
+DIST libtabe_0.2.6-1.2.diff.gz 74362 SHA256 23315f4086d04120a8edc70599037f329b05507fdd4c40dcd99645ba7b7ea3ec SHA512 011a76f3c8a1c13a6cfd0e96eb41557a8bfbf1aca8cb79daee0f0941b920d25614df5e0479368bf7075cb511851cab4c9113b30656d55b4d29128eb7312d0ef1 WHIRLPOOL 6bb5cd3d7105c5c097d2bc96d7d338459e5011acbbc4d7e8f5d18b8db7d77319dd072353a3f06c6c6b56e8314797819099924b8e384f41da863398307771b13c
+DIST libtabe_0.2.6.orig.tar.gz 1792199 SHA256 7fbe0f7bb853f9385ccd14e0ce85a7b881342ecd702f1dfff6df803510e00d0c SHA512 88f1cb279ccf487de5d0f8a1e9eede8d5ca16e4507b59db0b66241d0cdae609ed0b04093a82eabe0569f885aa397c1d5fa3f0ae3c3270a348ce045d73e01fbc7 WHIRLPOOL 380bcf0d04cd1d69376c8bf1fb894824348772586007e9a2c0809007f2129626fc6087e85f8a4821d6b563a934fab504b2fba6f9136de3c7f13dfb7da8356a14
+EBUILD libtabe-0.2.6.1.2.ebuild 1430 SHA256 d1de54a7f4a97584712481ffdfa77b301471c8b74f4172176ae6801d2fcd2fa8 SHA512 ded09c837b880e516871e58b417218a60cca6ac21f638f116e432a5b1e0ee3ac4ff0af466908ee3c3694beda887d4adb2f50e531b18bb66024135bdf81326391 WHIRLPOOL b97d98580fc047d1fa8448d10f3fd84a9c7e5ad724e114c547d1b8cd86096a849ead51a3033c99e8e69f7a35935bc3c67d113a053676d5bdcc4b1d136a3a4e57
+EBUILD libtabe-0.2.6.ebuild 1089 SHA256 78506386201b4149ae6897500d8062dd46b4cfb68cfece08c7d8e6f17615d6bc SHA512 f14d5168cb992a3b56d3658c6735df75784e0a4cfe1bca31c14d5c67cb5138295149fca72378a7d460aa285780aa87621f02c28cff526aad0af57c3cb6f3b0f3 WHIRLPOOL 94d207baa21b63ab3987a4bb2e95c80fd0601f65246c87555dd56d825a33dcc38b4681f8c3f096a1e9d0cd53194f229df0cccc672f0cf4232280caed565579c3
+MISC ChangeLog 2558 SHA256 d92bced9d6b06d0432d5351a78f40c2576487b596aa5250fb2a9c410618c7119 SHA512 c35ba8cbd0d8193b8e1a7ab4077d27a5d724d188f4b9e54512f5776caacaaadd4d85a2ceba9e9d3aa0d669a0b431ede438dfcd927d35e4bc1b70ada1c701c7d3 WHIRLPOOL b038a78d10f0bbbc821759228396e27151be0046f6124816ec23907af1c26d6cdff0b70ca696130bcd4ff02d63b69647c24b08a2c2ec75222a72a14f0aa1fb33
+MISC ChangeLog-2015 2215 SHA256 81e32fcddb9eb197d2e74c647a4b68bd827de38e6b28a40f74bf9e015f779374 SHA512 8fd6bf006c5a6708c55211c062c451322ca89889b1670ab0e27bc8363e2c31cf81936d8b4ccef4a2959521093c4974c5c31db2dad284fdfa553f79633ac29ae0 WHIRLPOOL 11e62115f5ac2ea9aa44a6b5565dbf0e07094022f6959c1ecd2ecddbca676b5f4a61a7f22f7b102b25565765318de157e66db0044de13eab61a314458a5862f2
+MISC metadata.xml 230 SHA256 5fc421627b578ee2d1317320525119c0b406026597bb1d054f96254a241bf96a SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 WHIRLPOOL b3c1363540645200abd5bf0b5b7fb3cae0b738bfd359f7b13b56d97650f9381fccede1e3f867dbc736461ee7c7906725a3c53eabd9ac99929d5c7c520a831082
diff --git a/app-i18n/libtabe/files/libtabe-0.2.6-fabs.patch b/app-i18n/libtabe/files/libtabe-0.2.6-fabs.patch
new file mode 100644
index 000000000000..79964602e754
--- /dev/null
+++ b/app-i18n/libtabe/files/libtabe-0.2.6-fabs.patch
@@ -0,0 +1,24 @@
+ * QA Notice: Package has poor programming practices which may compile
+ * fine but exhibit random runtime failures.
+ * tabe_tsi.c:385: warning: incompatible implicit declaration of built-in function ‘fabs’
+ * tabe_tsi.c:437: warning: incompatible implicit declaration of built-in function ‘fabs’
+ * tabe_tsi.c:496: warning: incompatible implicit declaration of built-in function ‘fabs’
+ * Please do not file a Gentoo bug and instead report the above QA
+ * issues directly to the upstream developers of this software.
+ * Homepage: https://packages.qa.debian.org/libt/libtabe.html
+
+diff -NrU5 libtabe-0.2.6.orig.really/src/tabe_tsi.c libtabe-0.2.6.orig/src/tabe_tsi.c
+--- libtabe-0.2.6.orig.really/src/tabe_tsi.c 2008-04-20 01:35:56.000000000 +0200
++++ libtabe-0.2.6.orig/src/tabe_tsi.c 2008-04-20 01:36:46.000000000 +0200
+@@ -12,10 +12,11 @@
+ #endif
+
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <math.h>
+
+ #include "tabe.h"
+
+ struct TsiInfo *
+ tabeTsiInfoNew(char *str)
diff --git a/app-i18n/libtabe/files/libtabe-0.2.6-ldflags.patch b/app-i18n/libtabe/files/libtabe-0.2.6-ldflags.patch
new file mode 100644
index 000000000000..0f51b19b71f2
--- /dev/null
+++ b/app-i18n/libtabe/files/libtabe-0.2.6-ldflags.patch
@@ -0,0 +1,57 @@
+diff --git a/src/Makefile.in b/src/Makefile.in
+index ada3dca..6acd71c 100644
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -10,7 +10,7 @@ CPPFLAGS = @CPPFLAGS@
+ DEFS = @DEFS@
+ RANLIB = @RANLIB@
+ LN_S = @LN_S@
+-LDFLAGS = @with_db_lib@
++LDFLAGS = @with_db_lib@ @LDFLAGS@
+ INC = @with_db_inc@
+ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+@@ -55,7 +55,7 @@ all: $(LIBNAME) @build_supports@
+
+ $(LIBNAME): $(LIBOBJS)
+ $(LIBTOOL) --mode=link $(CC) -o $@ $(LIBOBJS) -rpath $(libdir) \
+- -version-info $(CURRENT_VER):$(REVISION_VER):$(AGE_VER)
++ -version-info $(CURRENT_VER):$(REVISION_VER):$(AGE_VER) $(LDFLAGS)
+
+ bims:
+ (cd supports/bims; $(MAKE))
+diff --git a/src/supports/bims/Makefile.in b/src/supports/bims/Makefile.in
+index dc2534d..0e3041b 100644
+--- a/src/supports/bims/Makefile.in
++++ b/src/supports/bims/Makefile.in
+@@ -10,7 +10,7 @@ CPPFLAGS = @CPPFLAGS@
+ DEFS = @DEFS@
+ RANLIB = @RANLIB@
+ LN_S = @LN_S@
+-LDFLAGS = @with_db_lib@
++LDFLAGS = @with_db_lib@ @LDFLAGS@
+ INC = -I../..
+ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+@@ -45,7 +45,7 @@ all: $(LIBNAME)
+
+ $(LIBNAME): $(LIBOBJS)
+ $(LIBTOOL) --mode=link $(CC) -o $@ $(LIBOBJS) -rpath $(libdir) \
+- -version-info $(CURRENT_VER):$(REVISION_VER):$(AGE_VER)
++ -version-info $(CURRENT_VER):$(REVISION_VER):$(AGE_VER) $(LDFLAGS)
+
+ bims.lo: bims.c bims.h
+ $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $(DEFS) $(INC) -o $@ bims.c
+diff --git a/util/Makefile.in b/util/Makefile.in
+index cb82736..16425d1 100644
+--- a/util/Makefile.in
++++ b/util/Makefile.in
+@@ -10,7 +10,7 @@ CPPFLAGS = @CPPFLAGS@
+ DEFS = @DEFS@
+ RANLIB = @RANLIB@
+ LN_S = @LN_S@
+-LDFLAGS = ../src/libtabe.la @with_db_lib@
++LDFLAGS = ../src/libtabe.la @with_db_lib@ @LDFLAGS@
+ INC = -I../src @with_db_inc@
+ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
diff --git a/app-i18n/libtabe/libtabe-0.2.6.1.2.ebuild b/app-i18n/libtabe/libtabe-0.2.6.1.2.ebuild
new file mode 100644
index 000000000000..dfc9cdba7c0c
--- /dev/null
+++ b/app-i18n/libtabe/libtabe-0.2.6.1.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+WANT_AUTOMAKE=1.11
+
+inherit eutils libtool autotools multilib versionator
+
+DEBIAN_PV=$(replace_version_separator 3 '-')
+DEBIAN_PATCH=${PN}_${DEBIAN_PV}.diff
+ORIG_PV=${DEBIAN_PV%-*}
+ORIG_P=${PN}-${ORIG_PV}
+
+DESCRIPTION="Libtabe provides bimsphone support for xcin-2.5+"
+HOMEPAGE="https://packages.qa.debian.org/libt/libtabe.html"
+SRC_URI="mirror://debian/pool/main/${PN:0:4}/${PN}/${PN}_${ORIG_PV}.orig.tar.gz
+ mirror://debian/pool/main/${PN:0:4}/libtabe/${DEBIAN_PATCH}.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="debug"
+
+DEPEND=">=sys-libs/db-4.5
+ x11-libs/libX11"
+
+S=${WORKDIR}/${ORIG_P}.orig
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${WORKDIR}"/${DEBIAN_PATCH}
+ epatch "${FILESDIR}"/${ORIG_P}-fabs.patch
+ epatch "${FILESDIR}"/${ORIG_P}-ldflags.patch
+
+ ln -s script/configure.in . || die
+ eautoreconf
+}
+
+src_compile() {
+ myconf="--with-db-inc=/usr/include
+ --with-db-lib=/usr/$(get_libdir)
+ --with-db-bin=/usr/bin
+ --with-db-name=db
+ --enable-shared
+ --disable-static
+ $(use_enable debug)"
+
+ econf ${myconf}
+
+ # We execute this serially because the Makefiles don't handle
+ # proper cross-directory references.
+ for dir in src util tsi-src; do
+ emake -C ${dir} || die "make failed"
+ done
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc doc/* || die
+}
diff --git a/app-i18n/libtabe/libtabe-0.2.6.ebuild b/app-i18n/libtabe/libtabe-0.2.6.ebuild
new file mode 100644
index 000000000000..baf7f3d3c65d
--- /dev/null
+++ b/app-i18n/libtabe/libtabe-0.2.6.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils libtool autotools multilib
+
+DESCRIPTION="Libtabe provides bimsphone support for xcin-2.5+"
+HOMEPAGE="https://packages.qa.debian.org/libt/libtabe.html"
+SRC_URI="mirror://debian/pool/main/libt/libtabe/${P/-/_}.orig.tar.gz
+ mirror://debian/pool/main/libt/libtabe/${P/-/_}-1.1.diff.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE="debug"
+
+DEPEND=">=sys-libs/db-4.5
+ x11-libs/libX11"
+
+S=${WORKDIR}/${P}.orig
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${WORKDIR}"/${P/-/_}-1.1.diff
+ epatch "${FILESDIR}"/${P}-fabs.patch
+ rm -f configure
+ elibtoolize
+ cd script
+ eautoreconf
+ cp script/* ./
+ cp configure ../
+ cd ..
+}
+
+src_compile() {
+ myconf="--with-db-inc=/usr/include
+ --with-db-lib=/usr/$(get_libdir)
+ --with-db-bin=/usr/bin
+ --with-db-name=db
+ --enable-shared
+ --disable-static
+ $(use_enable debug)"
+
+ econf ${myconf}
+ emake -j1 || die "make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc doc/*
+}
diff --git a/app-i18n/libtabe/metadata.xml b/app-i18n/libtabe/metadata.xml
new file mode 100644
index 000000000000..c921b96adf6c
--- /dev/null
+++ b/app-i18n/libtabe/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-da/Manifest b/app-i18n/man-pages-da/Manifest
new file mode 100644
index 000000000000..d62dad5a12f8
--- /dev/null
+++ b/app-i18n/man-pages-da/Manifest
@@ -0,0 +1,5 @@
+DIST manpages-da-0.1.2.tar.gz 8962 SHA256 7f224420fc1e9d147dfda5fb85130645c820cedbe3bf51151cd0f05856344c2b SHA512 7642908f5952f54c0db6af6886b6592e10889d8734776d8d42fe923b084ef85732820d40a095936e6f1bf48d9430b401afeb28202e530b5a48e4a3447ed5c4c6 WHIRLPOOL 1179bf276e95aa3d41543246e363f48e37c73cc99dad49d4b6767d193929883bbeb549ed908cc3e766e9e211de009405c4028995136b83215088aa50fa64774e
+EBUILD man-pages-da-0.1.2.ebuild 619 SHA256 ca1d50424519838893ffc305ac66531eee7a0716d0e23a605023dd849b88ff62 SHA512 73f2dcbb0d6b2616a604b50c6d70ad6cd92972b97f17ce83d8dc8308e5d8d3a511e0f0ece10788d7149320a3134a8f828fb21f509b5d7dbe77ab34e66e52f9c1 WHIRLPOOL 4ea5854709b18a04e8eef7df260878c895fcc28fa29912f8023767f157fe8cd7770bfcadf46267ea7f980e00356873cac08b12f7330b2e1614c54fe6ea502b4a
+MISC ChangeLog 2537 SHA256 a16506032048ebcf1d4e67f54e4d1113b46a21fc7dfe497ae6c295e9f4d149f4 SHA512 eccb3d0589a0335a20b388fc879cbbd57ec960b22b8445bbed7d29a0a478b6bd0710402319bb003979069ac7d32b9d66b2589cde76b3d0580a7564d5fb9c6de9 WHIRLPOOL 059a62bcf6e35881c0c4222e5012c4e3505332ed243078a43e0a181554957ea3dcc7613b8112f83a94b5ec6c9ca79f91085a738bc4a4e74209694e286809c0af
+MISC ChangeLog-2015 957 SHA256 a959a639e1ad0340a5449710cb563d3fca5bbc8dbf667df9d5558e09a97c0283 SHA512 9f8b68aa1b34a9f4eb4900acf157fc360a7af1424ae0fac45231f97864c1b430773ff10332d2b84df8ab04467f6906764b68694799d347cc76cad9957d8dffee WHIRLPOOL c8900827a61370744d2bd7b7759108f1431521cf8de903d2601e79864ee36419543ccb045e001ad0c4bf0d224ac793d65c33b68965f05fa4988d0eb3fa447dcb
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/app-i18n/man-pages-da/man-pages-da-0.1.2.ebuild b/app-i18n/man-pages-da/man-pages-da-0.1.2.ebuild
new file mode 100644
index 000000000000..17ec81920617
--- /dev/null
+++ b/app-i18n/man-pages-da/man-pages-da-0.1.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="A somewhat comprehensive collection of Danish Linux man pages"
+HOMEPAGE="http://www.sslug.dk/locale/man-sider/"
+SRC_URI="http://www.sslug.dk/locale/man-sider/manpages-da-${PV}.tar.gz"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+RDEPEND="virtual/man"
+
+S=${WORKDIR}/manpages-da-${PV}
+
+src_compile() { :; }
+
+src_install() {
+ dodir /usr/share/man
+ emake install-data PREFIX="${D}"/usr/share
+ dodoc AUTHORS ChangeLog
+}
diff --git a/app-i18n/man-pages-da/metadata.xml b/app-i18n/man-pages-da/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/app-i18n/man-pages-da/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-i18n/man-pages-de/Manifest b/app-i18n/man-pages-de/Manifest
new file mode 100644
index 000000000000..fb285ee0ab90
--- /dev/null
+++ b/app-i18n/man-pages-de/Manifest
@@ -0,0 +1,10 @@
+AUX man-pages-de-1.3-bzip2.patch 604 SHA256 d5e8f0dfe29228c97aef35055b7bd2b8f1ad6323124c5bda855a10c597267deb SHA512 ab07f650572e97cd4bcc31d438d601be182c98998086be9d875b0193a9c7ebe0add85e2cb14867082f70b009acfdd102fe743af02a947f3f41111594c7082932 WHIRLPOOL 620326361f89ab986479997612cc7820f90baf89067991301407d59ba8901677ebe3f5147b42d76884f93bfec47bfe64315f069a21556e4a845c29be764573e3
+DIST manpages-de-1.15.tar.xz 1529576 SHA256 dd2d5f30fb221db23fdd54d1ca27356beaad8257705658252deb0aff242f6303 SHA512 d1f1b9f60c4713d6be650e21b7664ff594dbd542b53148c00d1a2269413d39615dd76be4c4095eeb72e2598b94af134ca5d128b85d9520a1ac404364b8a53948 WHIRLPOOL b0cce22e6cb9e028cae86ff32bf033308df118db49731b65642b065e37f02b614e0af7772db8acf856415ed0c65391a7949930b8e59b9e48ed8fb97ac30355b6
+DIST manpages-de-1.16.tar.xz 1537396 SHA256 7ca7e12e1ae3d058dd32a8df607e991b88455484d6d07f003a86956b4ddc32c4 SHA512 7e070a055804536a7777c573c2e7f7617bb305feafde70324e7a583a232f0463ee3df1b2a255b7e8cee621719db16c6b12b9d13ef4979260b085b0827b230a4f WHIRLPOOL 2c326e6789a4dd2d5619a6177b96f5dbc1c6c04b5f13fe92cbd272a80d5f5935a0dadc6192296f7eda8a8cb2c45d6cd09bc8e244b944e9de86c694a66c6abeea
+DIST manpages-de-1.21.tar.xz 1585600 SHA256 2fa728768a4582f6451486e29e080738341c15d418b5a4778b93e1703be3198f SHA512 24cc36e8e9c2efb8cd2a0c374a3f5da96f6645a306082cc28aae5933081f7de24bac03652f690a2becd32a23a93c17ddd9029190c299dda95eeb25f49b327fac WHIRLPOOL eb05a2ef99c0b3e47e5de8b84d43226b6b36d782c868cfb88cd0f77668762bc8fba890e51e17775ed41a58b1ba4d1350934fd7f30c466e7da5b19dc03fa6f935
+EBUILD man-pages-de-1.15.ebuild 1287 SHA256 1f783e26ceadd4c93a458676dabf9ba5c32c6c3138c8ea9d5b379d83702017b2 SHA512 8c4113a4f0811c7a6a397c6c677e65d1b9089880a50f66bfdc5e07a63971aad78c5e2f7c21f431c2a19158513621c70f03f9a5cfd56d79fff342162691ce2c37 WHIRLPOOL 277dd76fc425cdb4fb29dc69412e7c3cd5ee0b13273050d4753af58c34a387a953d6b463b946310c3aa99f22fecfe96e1b0569504cf34226411cb86300fdf5b2
+EBUILD man-pages-de-1.16.ebuild 1300 SHA256 a0d3371ace6365c81974cd92b061032074bdc9b02483134a8224160c07b58a82 SHA512 3dbfbac056ebd55f65b6e5fdd7aa6800a92d7b67fded7242ac77138b718260a83aac4d6e94f2c89402bd99a013ea72850d736de71d0104e70641c3e972fed5ac WHIRLPOOL a0b7e15323808e39d97adf061f30722d4c719ef87f70bcdf5f76ebd9cda22b6159a0dfc9b2cc4f00c3a1634cd6119f2b6a317293ada9649efa556d4c4a655760
+EBUILD man-pages-de-1.21.ebuild 1250 SHA256 ffb05f1a876f882145cd64ba0e41f3d9593cfb2c699b219420b2f1c63802c025 SHA512 1d0d4a540da9999a7cdfcf5fe63283a1edbe26b8861d06a5ab9e267c1fb615211ae9c5444f344f18f555bd1fbf77adeaed6bd4724aef667e258babc45caaba0a WHIRLPOOL 52eda3802288d382310e08b4eaedcd2a4cae87fdbb07e88d70433719b64f4ad84f6416372fcc98511534a7bf62b00b52c765be5369eb3404888f646d205221f9
+MISC ChangeLog 6322 SHA256 f0fd0bc84e3dfb5c3d1ef1acf2e6a5726b8a96701d8f3fd16242e53a765c70a6 SHA512 ff9036ad385f0a4bc2b60d400a5b3b5da0e7f3d891c5c43f9caf45c6f91dedc32d2a7663c0ed520f7c5d83d5f4a5f77e44398fe54554196639de9cb13721baba WHIRLPOOL 3d184b7456eacf744d8ce5228f9de065f143464e5e7958b2c9aaef5d070d9ec58592bc1755b1a2f4cd0487a466e2c4baf4962f6c02cfc1b53a70e362dff2c82d
+MISC ChangeLog-2015 6680 SHA256 45d40c765680d2808e3b4d0e16adb9b8788566a98ad93baed66ba8c79cb174ba SHA512 c16219851b9d42858a2b437de046417f962929e4272580c85d348bdc0a7812bcff721d1a19a26168e4eec2ca8bba75df93036cb8f60d907e0675765c450e88f8 WHIRLPOOL 780780204b7d353f0e07c101a1dc6ac14227cc410dcad4edf640e43731d7592f01efbd20664cdee7328f64b7eaa52003a41b079f15da5c2f7fb94f5a793eebe4
+MISC metadata.xml 417 SHA256 11e3e559978cd791ae77c651a65fb248aa383c9ce7ed7d8167479f48d3f2d0f1 SHA512 7cf87f09c743467eaed1fb62771293c62984dcee894224368e6cee64949e4b4c0013f09d6e4586eed962f6b0803381e28fbe3506a6dde61d97b91a71e77cb0f9 WHIRLPOOL b450900ce2f8f5d109a6ef6e6c7704fd5d355d1e9f3169a44985861cac781c0e6fa84fd74f380bb0df4af75536583cb0a83589fcb44f5a49e703b42d1ee47391
diff --git a/app-i18n/man-pages-de/files/man-pages-de-1.3-bzip2.patch b/app-i18n/man-pages-de/files/man-pages-de-1.3-bzip2.patch
new file mode 100644
index 000000000000..09a569c23498
--- /dev/null
+++ b/app-i18n/man-pages-de/files/man-pages-de-1.3-bzip2.patch
@@ -0,0 +1,19 @@
+--- a/po/generate-manpage.sh
++++ b/po/generate-manpage.sh
+@@ -38,6 +38,16 @@
+ original="$uncompressed_manpage"
+ fi
+ fi
++# Try a bzip'ed version
++if [ ! -f "$original" ]; then
++ original=/usr/share/man/man$section/$manpage.bz2
++ if [ -f "$original" ]; then
++ # The manpage exists, but needs to be decompressed
++ uncompressed_manpage=`mktemp`
++ bzip2 -d -c "$original" > "$uncompressed_manpage"
++ original="$uncompressed_manpage"
++ fi
++fi
+ # Cannot generate manpage if the original could not be found
+ if [ ! -f "$original" ]; then
+ echo "The original manpage for $manpage could not be found." >&2
diff --git a/app-i18n/man-pages-de/man-pages-de-1.15.ebuild b/app-i18n/man-pages-de/man-pages-de-1.15.ebuild
new file mode 100644
index 000000000000..62a8d5e21b0c
--- /dev/null
+++ b/app-i18n/man-pages-de/man-pages-de-1.15.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+MY_P="${PN/-/}-${PV}"
+
+DESCRIPTION="A somewhat comprehensive collection of Linux german man page translations"
+HOMEPAGE="http://alioth.debian.org/projects/manpages-de/"
+SRC_URI="http://manpages-de.alioth.debian.org/downloads/${MY_P}.tar.xz"
+
+LICENSE="GPL-3+ man-pages GPL-2+ GPL-2 BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+RDEPEND="virtual/man"
+DEPEND="app-text/po4a"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.3-bzip2.patch"
+)
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ default
+
+ # Use the same compression as every other manpage
+ local PORTAGE_COMPRESS_LOCAL=${PORTAGE_COMPRESS-bzip2}
+ if [[ ${PORTAGE_COMPRESS+set} == "set" ]] ; then
+ PORTAGE_COMPRESS_LOCAL="#"
+ fi
+ if [[ ${PORTAGE_COMPRESS_FLAGS+set} != "set" ]] ; then
+ case ${PORTAGE_COMPRESS_LOCAL} in
+ bzip2|gzip) local PORTAGE_COMPRESS_FLAGS_LOCAL="-9"
+ ;;
+ esac
+ fi
+ sed -i -e "s/gzip --best/${PORTAGE_COMPRESS_LOCAL} ${PORTAGE_COMPRESS_FLAGS_LOCAL}/"\
+ po/man{1,2,3,4,5,6,7,8}/Makefile.in po/common.mk || die
+ eautoreconf
+}
+
+src_compile() { :; }
+
+src_install() {
+ emake mandir="${ED}"/usr/share/man install
+ dodoc CHANGES README
+}
diff --git a/app-i18n/man-pages-de/man-pages-de-1.16.ebuild b/app-i18n/man-pages-de/man-pages-de-1.16.ebuild
new file mode 100644
index 000000000000..1dd1327c5197
--- /dev/null
+++ b/app-i18n/man-pages-de/man-pages-de-1.16.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+MY_P="${PN/-/}-${PV}"
+
+DESCRIPTION="A somewhat comprehensive collection of Linux german man page translations"
+HOMEPAGE="http://alioth.debian.org/projects/manpages-de/"
+SRC_URI="http://manpages-de.alioth.debian.org/downloads/${MY_P}.tar.xz"
+
+LICENSE="GPL-3+ man-pages GPL-2+ GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+RDEPEND="virtual/man"
+DEPEND="app-text/po4a"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.3-bzip2.patch"
+)
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ default
+
+ # Use the same compression as every other manpage
+ local PORTAGE_COMPRESS_LOCAL=${PORTAGE_COMPRESS-bzip2}
+ if [[ ${PORTAGE_COMPRESS+set} == "set" ]] ; then
+ PORTAGE_COMPRESS_LOCAL="#"
+ fi
+ if [[ ${PORTAGE_COMPRESS_FLAGS+set} != "set" ]] ; then
+ case ${PORTAGE_COMPRESS_LOCAL} in
+ bzip2|gzip) local PORTAGE_COMPRESS_FLAGS_LOCAL="-9"
+ ;;
+ esac
+ fi
+ sed -i -e "s/gzip --best/${PORTAGE_COMPRESS_LOCAL} ${PORTAGE_COMPRESS_FLAGS_LOCAL}/"\
+ po/man{1,2,3,4,5,6,7,8}/Makefile.in po/common.mk || die
+ eautoreconf
+}
+
+src_compile() { :; }
+
+src_install() {
+ emake mandir="${ED}"/usr/share/man install
+ dodoc CHANGES README
+}
diff --git a/app-i18n/man-pages-de/man-pages-de-1.21.ebuild b/app-i18n/man-pages-de/man-pages-de-1.21.ebuild
new file mode 100644
index 000000000000..af0d19262e70
--- /dev/null
+++ b/app-i18n/man-pages-de/man-pages-de-1.21.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+MY_P="${PN/-/}-${PV}"
+
+DESCRIPTION="A somewhat comprehensive collection of Linux german man page translations"
+HOMEPAGE="http://alioth.debian.org/projects/manpages-de/"
+SRC_URI="http://manpages-de.alioth.debian.org/downloads/${MY_P}.tar.xz"
+
+LICENSE="GPL-3+ man-pages GPL-2+ GPL-2 BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+RDEPEND="virtual/man"
+DEPEND="app-text/po4a"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ default
+
+ # Use the same compression as every other manpage
+ local PORTAGE_COMPRESS_LOCAL=${PORTAGE_COMPRESS-bzip2}
+ if [[ ${PORTAGE_COMPRESS+set} == "set" ]] ; then
+ PORTAGE_COMPRESS_LOCAL="#"
+ fi
+ if [[ ${PORTAGE_COMPRESS_FLAGS+set} != "set" ]] ; then
+ case ${PORTAGE_COMPRESS_LOCAL} in
+ bzip2|gzip) local PORTAGE_COMPRESS_FLAGS_LOCAL="-9"
+ ;;
+ esac
+ fi
+ sed -i -e "s/gzip --best/${PORTAGE_COMPRESS_LOCAL} ${PORTAGE_COMPRESS_FLAGS_LOCAL}/"\
+ po/man{1,2,3,4,5,6,7,8}/Makefile.in po/common.mk || die
+ eautoreconf
+}
+
+src_compile() { :; }
+
+src_install() {
+ emake mandir="${ED}"/usr/share/man install
+ dodoc CHANGES README
+}
diff --git a/app-i18n/man-pages-de/metadata.xml b/app-i18n/man-pages-de/metadata.xml
new file mode 100644
index 000000000000..b8056814b07e
--- /dev/null
+++ b/app-i18n/man-pages-de/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>bureau@jonglieren-jena.de</email>
+ <name>Markus Oehme</name>
+ <description>Assign bugs to him</description>
+ </maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-fr/Manifest b/app-i18n/man-pages-fr/Manifest
new file mode 100644
index 000000000000..fa896579e2f6
--- /dev/null
+++ b/app-i18n/man-pages-fr/Manifest
@@ -0,0 +1,7 @@
+DIST man-pages-fr-3.40.1.tar.bz2 1136351 SHA256 0bab5b5f703c805139bfa38ceb2360173044aca5dd398bc1e307da9745e35988 SHA512 58027da7b78a442a84448ed6d7c6c89ccbe97fd811afb26a9c6580da2e15b86f7fae4c876d773f7ceca1fbe92c265693eae01b76ad4795b52c0298ba25ac1330 WHIRLPOOL dcf6a253a149e41d489fc4362e8430ce37b823f0d7804fc80f2aa97d0f4f9fe1def1804bad69f8f1de4e8ee79c1297b8a32e0b9a4449b4c2b64da4408fe28dbe
+DIST man-pages-fr-3.70-1.tar.xz 1143156 SHA256 6d07c3b51a75c10b72eaab703c3eb5d315fd6fa8b354e145cc29da12e9a158a6 SHA512 7bb6991b2278c898d67d465ebe434dc3a969e9ec5c962ed6b6fdb41e66121a1924573f529d310adf30cd8494515888627b3226f26b906452a8882c4851c290d8 WHIRLPOOL 4858ad94730f9ef509e8684656fb982d8c547f960f8278121e7d514953303d8f40a66540335a71cab6ac5470bad5bd5da1167bdf4d0eb26fff3e07117b1540cb
+EBUILD man-pages-fr-3.40.1.ebuild 618 SHA256 3608871c4175701e71db7e3405744f37c7236d396c586a642bb52a84bdba612f SHA512 b3b1066de261417d929656f4004758a28d5f0866b29da89e361c2f3934b7ba0fabde514fa6a0d4dbc2fac4e8649a8b91c75093f5af32de3b7cbf87cd0560e7ba WHIRLPOOL 7f900468f9a1be29139c4df59bfbef121acc9cec976a2829dc54715192e8476bf917c3200d18f0fc6313ff21bf6c6fdb21675e8360df3a27c417f0ce8e186ce2
+EBUILD man-pages-fr-3.70.ebuild 599 SHA256 f9346ce5421e3a17ad617015a1884a06f86796c11477b53e92b3da875939c4a0 SHA512 af5795905c6ad7125ab80435af15742591d6307d49a1fa88a856eb9b34b976b1bf4da58ab055bbca9c86c7a5cfbb25b310251a6245523af4c917c0388c3f3f26 WHIRLPOOL 5aa03e8e43aed020a240bb5432fffbf6720fc0cf21a009aad5a0073a5a6f464f68612c0e685d78365075c56c90adf197fdd8dcabaa7d6d67d491064fab5108b1
+MISC ChangeLog 2603 SHA256 274dcc956adc29b6662e2bddfa9476a9941fbaec635c09b0a9a2be75b67151c5 SHA512 ee588ab595c451db5cb59f5f85d9be7ac4d6956f70e70089a6a58923432bff612be323e353dbd79436ac3395eb3c4f0faef1c2a9aadb6e89d337d55d62d24fdf WHIRLPOOL 14d866f7180a31eadbfe6396464824d1d0bc53292be029acd137685ab7b06e8859bd57bf11575fc30d5a6c8b183f2a7ad12d98a4e735f57b7111eb48133729d7
+MISC ChangeLog-2015 2323 SHA256 6f036bfba4d9a10ed12dca891c2c615e5dee1ae9b2a01c162f387d074948c2e0 SHA512 be01e92325a89e000e8dd861ff5989410f38d79c9be0eb20be49dfd94c4f34c993255b070a13052973a357634e1d0d2f7a00796688a2ddfbafa6c1be6a7b6e69 WHIRLPOOL e61360c9d869f8b02a652d159bf79e65c0867ee8369186afb31336cdc09776f0f1e5cf9ecbd329cc74854ede85f6f3535b4efe861452fdf50ac7721afba0fe55
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/app-i18n/man-pages-fr/man-pages-fr-3.40.1.ebuild b/app-i18n/man-pages-fr/man-pages-fr-3.40.1.ebuild
new file mode 100644
index 000000000000..dc423e147e4f
--- /dev/null
+++ b/app-i18n/man-pages-fr/man-pages-fr-3.40.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A somewhat comprehensive collection of french Linux man pages"
+HOMEPAGE="https://traduc.org/perkamon"
+SRC_URI="https://alioth.debian.org/frs/download.php/3722/${P}.tar.bz2"
+
+LICENSE="man-pages GPL-1+ GPL-2+ GPL-2 BSD BSD-2 MIT rc LDP-1 public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="virtual/man"
+DEPEND=""
+
+S="${WORKDIR}/fr"
+
+src_install() {
+ dodoc README.fr
+ doman -i18n=fr man*/*
+}
diff --git a/app-i18n/man-pages-fr/man-pages-fr-3.70.ebuild b/app-i18n/man-pages-fr/man-pages-fr-3.70.ebuild
new file mode 100644
index 000000000000..9b8632e36abf
--- /dev/null
+++ b/app-i18n/man-pages-fr/man-pages-fr-3.70.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A somewhat comprehensive collection of french Linux man pages"
+HOMEPAGE="https://traduc.org/perkamon"
+SRC_URI="https://alioth.debian.org/frs/download.php/file/4119/${P}-1.tar.xz"
+
+LICENSE="BSD FDL-1.1 FDL-1.2 GPL-2 GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="virtual/man"
+DEPEND=""
+
+S="${WORKDIR}/fr"
+
+src_install() {
+ dodoc README.fr
+ doman -i18n=fr man*/*
+}
diff --git a/app-i18n/man-pages-fr/metadata.xml b/app-i18n/man-pages-fr/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/app-i18n/man-pages-fr/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-i18n/man-pages-it/Manifest b/app-i18n/man-pages-it/Manifest
new file mode 100644
index 000000000000..050f4ef155bd
--- /dev/null
+++ b/app-i18n/man-pages-it/Manifest
@@ -0,0 +1,7 @@
+DIST man-pages-it-2.80.tar.gz 1789480 SHA256 a9c88fd61b057e31ea4a3183fbaf71927aa3962928eefc4c393364e7b0ad8492 SHA512 81cee1b4d0c818b83830355ba1347df7a309b87ebfe3169db7763b22de8638273eacf377d0b9127aa1e748c8fd427eb268dda6d6c4b543c6d3788edda86980ef WHIRLPOOL cae8dea02428f17409421a46c0a475f583e7a84d2eeb0c831061bf09571fde796e4de86799197a7acf6b09922be635f0078c62796509343c5547607f5439d5a7
+DIST man-pages-it-4.00.tar.xz 349192 SHA256 780bc7280508d56a4e585248e336d3b31e9c91f4d88d783242b7b0f3c6c41916 SHA512 6392b42254eba42bd76f3aef3b6206396a817019df61462e44bd0f7dc519768cb1b1107726c45e402a0cf27e6f2ca8c8912363bd9bec7562b10e8fd5dcc60ffe WHIRLPOOL bc8a8d9e633c1f029b5a4b1bbe3d202dfb5b2a39de92cbafc3bcad32c366f25acde209748d6fa4577f7caeb768f7dcd6a147226264845f76704a22d20061e707
+EBUILD man-pages-it-2.80-r1.ebuild 719 SHA256 f30f2df4864b4df7362f1a5b3e6eaea9794de76ad1f16cd4e20ec89b78370e72 SHA512 63361bfbe5770c970332fcb43df2ee706a6ea06a098562eda2b55de9d6eef893e6dec1ee17c25678060599e1440b0f9032a5ba910364cf6ec8f46a29434f7cc1 WHIRLPOOL e0d353a53c509b170be6ee47bfc8314fa165e11139770e7d041230f6b520f3b2b7d5aa205b438c36a65430946306e3f9514e69a25d5e0fb01276117a86338df3
+EBUILD man-pages-it-4.00.ebuild 725 SHA256 bfa4a3ac6996968c10bebafc20d5f584937996e1f6e5f008602439743239737f SHA512 7c0cea795a609daa7c28e853131238de2b4aef497d6c3f07da23ecd21e99b5c4becee02c2d168d02b9b975a5aae1994605d3d4a4f2b90174054f006c9c1d445d WHIRLPOOL ea6664d9bc5cb905ad772d63681a2c094bc25daf678bc4891174171d59930381bf773a5f60c3eeb3f464457eeb8ffd7533a385b421ca92d58ee3c511478976b6
+MISC ChangeLog 2962 SHA256 5fb9195e240a502034191bd399c24215f4bf382b9ea995c26da24ffa0192e313 SHA512 5cf57f7eb08d7645da3abef55fb0a91d693624cb4fca0a7e06f0b377be1024482ca4f0d921b90b6f560d5bdc14a70db315f523e346ae2f9eb797339fb1cc9349 WHIRLPOOL 96dabfc51d3f99baf4fb44b0f3d255b4c9e537df85e11df4d9543e3701043018eb38de315ea51dfa470484dd8e80cbd3f8d1793a39c1689a39ec23684654b160
+MISC ChangeLog-2015 3612 SHA256 db51c9158cce47d98a2ad03972b2d01002865fbda5140a08ab4ffaa87e1707b2 SHA512 8a4fc290d3cb387cc8adab53dbdc3c88499561f63b3e7c07cd280983edcf49719c14308abab40cc147618da4beec94a93d2a2ff58e4342565e431e78d2943e0b WHIRLPOOL 9171cdbcd945a7dd22e0f3f6a87b2870884e63aab73af13665ecd1d502896680ea89ba19f2d1eb2733a3192b8ce39cdb4b5945264305a63e43807dba6cdc6cb6
+MISC metadata.xml 700 SHA256 73749bd2d1f8e9d43ced28044c2f4b1a1dd7ce11c31129027481e649e72e45a2 SHA512 8e0626079b0d3fdd5ca35cd03c9f3a9fe648ede6f56aabbbf011f94c29fc9d512951af67f1e1b988cc03faad06a5d06107aad13c2defc8f41454eb0bd7257d0e WHIRLPOOL ecd615b0fde0f869f9c593e74c642fb09012264b8741024270078eaa83ca260926bc9058f61f6211fcd49c56112b503a924b27bc81265d86d55074133082e624
diff --git a/app-i18n/man-pages-it/man-pages-it-2.80-r1.ebuild b/app-i18n/man-pages-it/man-pages-it-2.80-r1.ebuild
new file mode 100644
index 000000000000..2a3c4dbf7b29
--- /dev/null
+++ b/app-i18n/man-pages-it/man-pages-it-2.80-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A somewhat comprehensive collection of Italian Linux man pages"
+HOMEPAGE="http://it.tldp.org/man/"
+SRC_URI="ftp://ftp.pluto.it/pub/pluto/ildp/man/${P}.tar.gz"
+
+LICENSE="man-pages GPL-2+ BSD MIT FDL-1.1+ public-domain man-pages-posix"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+RDEPEND="virtual/man"
+
+src_prepare() {
+ # bug 480970
+ rm man5/{dpkg.cfg,deb,deb-control}.5 || die
+}
+
+src_compile() { :; } # emake does bad things here
+
+src_install() {
+ doman -i18n=it man*/*
+
+ dodoc description readme CHANGELOG HOWTOHELP POSIX-COPYRIGHT
+}
diff --git a/app-i18n/man-pages-it/man-pages-it-4.00.ebuild b/app-i18n/man-pages-it/man-pages-it-4.00.ebuild
new file mode 100644
index 000000000000..162f6b988e84
--- /dev/null
+++ b/app-i18n/man-pages-it/man-pages-it-4.00.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A somewhat comprehensive collection of Italian Linux man pages"
+HOMEPAGE="http://it.tldp.org/man/"
+SRC_URI="ftp://ftp.pluto.it/pub/pluto/ildp/man/${P}.tar.xz"
+
+LICENSE="man-pages GPL-2+ BSD MIT FDL-1.1+ public-domain man-pages-posix"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+RDEPEND="virtual/man"
+
+src_compile() { :; } # emake does bad things here
+
+src_install() {
+ doman -i18n=it man-pages/man[1-9]/* binutils/man[1-9]/* inetutils/man[1-9]/* \
+ util-linux/man[1-9]/* misc/man[1-9]/*
+
+ dodoc description README CHANGELOG
+}
diff --git a/app-i18n/man-pages-it/metadata.xml b/app-i18n/man-pages-it/metadata.xml
new file mode 100644
index 000000000000..fcde396b42d7
--- /dev/null
+++ b/app-i18n/man-pages-it/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>axelgenus@gmail.com</email>
+ <name>Alessandro Calorì</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <maintainer status="active">
+ <email>giulio@pluto.it</email>
+ <name>Giulio Daprelà</name>
+ </maintainer>
+ </upstream>
+ <longdescription lang="en">
+ A somewhat comprehensive collection of Italian Linux man pages.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-ja/Manifest b/app-i18n/man-pages-ja/Manifest
new file mode 100644
index 000000000000..caa212795e29
--- /dev/null
+++ b/app-i18n/man-pages-ja/Manifest
@@ -0,0 +1,8 @@
+DIST man-pages-ja-20130215.tar.gz 4384182 SHA256 c5b859e4baa62c9ceee50e22d78c6a6c91d2f4473bc623a8e2a848e285314b1b SHA512 655e9481dfdfc619013f8cae2928d7ccd70bba31631f7b10b894b1d96ab64bae4846be68d8a633791f1c169faed6d42466bd60ee4d7f92031f596d8f23cb6138 WHIRLPOOL e2576a225fddd55f73cac7bc04f352c07a70ae6afda8ebe910e0828f9ce5fb2d3f6952e643b14efd3f23bce699744ad33450a85ea859a434f352233dc19cc4d7
+DIST man-pages-ja-20131015.tar.gz 4546129 SHA256 e21a37f307f430dd1ec9826ac9b2190d1976867292aef869cbe5951e93de0781 SHA512 afd2aa2fb227814a8de4b75baec4359e401ef055e23795719b964cba10e5018a368ba924719b017709c2bb34a5ebca58d6eb85512871515d6e7867fc4b0e4982 WHIRLPOOL c9cac54aca4eb6f67380efad4e3b7667ef4e92f4f866108379222b7e7a5d19752a33bb5342d1160eb18b85948eccfcd8123dcae384991fb82410cf32092989d6
+DIST portage-man-pages-ja-20060415.tar.gz 67347 SHA256 e847d0ab11b7cc1b5b9e8c2c11591665efe8f00d6d7a277c0b9489906d4eaf3a SHA512 37364cdcb27b460663bdae31fea1ac653317ba4d928a5325c51814eb1677d7d9fb9bcc55cf64d63a8e6daaefa34d8604e0efe3582308957397cad31325a6eaad WHIRLPOOL 4b574be2fed47e5a51fe23d52a352d87740366138385536055efb9b024461885465c095e9767aea202de86caf0b6901f1e206bd832d36c01ea9043f895e44c1c
+EBUILD man-pages-ja-20130215.ebuild 1967 SHA256 96e6be3feee9a47080ca20d6406ee9464f8f6b96ad2b8dd1e7ed56ce0c86576c SHA512 0e02d9bcf229ff70cc7a251974ab1acbae4f0a45f5d099f829bcc3c94bb305bac9cef6cfbf768b67340c5332abc4f755275c1971c3c53d86e883aa1ca4e6be94 WHIRLPOOL eebd63d1d03b9cc790929741b91be60df30d056294d17f1ddb135d6d287dbf656d832290e3f3c985f16f2f35f6bd0cddc5056fe15e8545ed50bc4c663bc0fc2e
+EBUILD man-pages-ja-20131015.ebuild 2061 SHA256 1cddc9262042e2985a54b82aecce1b3c60a6ee0ffccbf6a98c1b861f8e2df378 SHA512 a657113b191e7c6f46ed77d7400d94a68f351f3ca603ae985c2fd16b2f00cc5ae80801a8cfb11fdb5d772aad96cde93f2b05e5619b8f2604b4d429b8dad1f276 WHIRLPOOL fcb652315175635983cd906d2a7fed2481d87193d1539a62e2d4889d46c6435e1b027fe420e83135a8ad9420d12ba243b9b3b0414336ad0a86b2832069da9dbb
+MISC ChangeLog 3124 SHA256 f84d6887f58cbdf85a92e6d9962a8107330609b46d8108994d44ab479f753790 SHA512 bcdb5c0004fc587afdaf47bef6058f883d52271787948134badefe453c45ec72230e81665386c0776ca62fca22f805fe513571e55916724d07f6b2d7842ea22b WHIRLPOOL 282965a7309db078133286f36c93b7d9dfe79f2455498231d8341cd563806698691d322375bc572f53468e2f898961dcdf5648f7bbe4a6bb3b0adec69c8c2c2e
+MISC ChangeLog-2015 13373 SHA256 f5f606a90d04f0946e3a1381c30f4d4482bc26628696f4ed0068c7d633e99abf SHA512 b15292b0359640a94681cebfdfde5ba2c5014c49b60f8a5927d3994912ab49b9906377d4639bc5e0ece1be4dd8c87195439dd2eff24b0ee0320422761fc4c27a WHIRLPOOL 72925b6d87b9abc027bc4e99824a31e8bef8041bd7c215c43f25184fbfa53e6e28846979f437efe31eb99b82e051dc6ffcd9e6d208e6a561bdfb39e3f54e5528
+MISC metadata.xml 674 SHA256 5c03c89d527d948f2fe2bb7ade5920405cc4c18260d5d248dc958638c9c58088 SHA512 4930172347182e65fa0fa30e2fcef5bfc391e6fb1dfefaa872ebe609c9583b58a5d8a62bfbddaf8b8ecf2a80ec30752c71fb658dfd4569a4493bc9eeff6de2b3 WHIRLPOOL c3c702c5919087ba98fc5ab78493af9707a373dd224953257b8a2b8547288a35582a2bc27e647a4cdf7ddc94aaf2f2dc5b145c20dd4f4c435a629a9e405832a7
diff --git a/app-i18n/man-pages-ja/man-pages-ja-20130215.ebuild b/app-i18n/man-pages-ja/man-pages-ja-20130215.ebuild
new file mode 100644
index 000000000000..1a9fc078196a
--- /dev/null
+++ b/app-i18n/man-pages-ja/man-pages-ja-20130215.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+GENTOO_MAN_P="portage-${PN}-20060415"
+
+DESCRIPTION="A collection of manual pages translated into Japanese"
+HOMEPAGE="http://linuxjm.sourceforge.jp/ http://www.gentoo.gr.jp/jpmain/translation.xml"
+SRC_URI="http://linuxjm.sourceforge.jp/${P}.tar.gz
+ https://dev.gentoo.org/~hattya/distfiles/${GENTOO_MAN_P}.tar.gz"
+
+LICENSE="GPL-2+ GPL-2 LGPL-2+ LGPL-2 BSD MIT ISC HPND FDL-1.1+ LDP-1 LDP-1a man-pages Texinfo-manual"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+RDEPEND="virtual/man"
+
+src_prepare() {
+
+ sed -i -e "/^\(man\|shadow\)/s:Y:N:" script/pkgs.list || die
+
+ # remove man pages that are provided by other packages.
+ # - sys-apps/shadow +nls
+ rm -f manual/*/man1/{chfn,chsh,newgrp,su,passwd,groups}.1 || die
+ rm -f manual/*/man8/{vigr,vipw}.8 || die
+ # - app-arch/rpm +nls
+ rm -f manual/rpm/man8/rpm*.8 || die
+
+ for f in manual/*/man8/ld{,-linux}.so.8 ; do
+ mv ${f} ${f/.so.8/.so.ja.8} || die
+ done
+ mv "${WORKDIR}"/${GENTOO_MAN_P}/portage/g-cpan.pl{,.ja}.1 || die
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+
+ local x y z pkg
+
+ for x in $(tac script/pkgs.list | grep -v '^[#].*'); do
+ if [[ -z "$pkg" ]]; then
+ pkg=$x
+ continue
+ fi
+
+ if [[ "$x" == "N" ]]; then
+ pkg=
+ continue
+ fi
+
+ einfo "install $pkg"
+
+ for y in $(ls -d manual/$pkg/man* 2>/dev/null); do
+ doman -i18n=ja $y/*
+ done
+
+ pkg=
+ done
+
+ dodoc README || die
+
+ cd "${WORKDIR}"/${GENTOO_MAN_P}
+
+ for x in *; do
+ if [ -d "$x" ]; then
+ einfo "install $x"
+
+ for z in $(for y in $x/*.[1-9]; do echo ${y##*.}; done | sort | uniq); do
+ doman -i18n=ja $x/*.$z
+ done
+ fi
+ done
+
+ newdoc ChangeLog ChangeLog.GentooJP || die
+
+}
+
+pkg_postinst() {
+
+ echo
+ elog "You need to set appropriate LANG variables to use"
+ elog "Japanese manpages."
+ elog "e.g."
+ elog "\tLANG=\"ja_JP.eucJP\""
+ elog "\texport LANG"
+ echo
+
+}
diff --git a/app-i18n/man-pages-ja/man-pages-ja-20131015.ebuild b/app-i18n/man-pages-ja/man-pages-ja-20131015.ebuild
new file mode 100644
index 000000000000..8b933def20b0
--- /dev/null
+++ b/app-i18n/man-pages-ja/man-pages-ja-20131015.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+GENTOO_MAN_P="portage-${PN}-20060415"
+
+DESCRIPTION="A collection of manual pages translated into Japanese"
+HOMEPAGE="http://linuxjm.sourceforge.jp/ http://www.gentoo.gr.jp/jpmain/translation.xml"
+SRC_URI="http://linuxjm.sourceforge.jp/${P}.tar.gz
+ https://dev.gentoo.org/~hattya/distfiles/${GENTOO_MAN_P}.tar.gz"
+
+LICENSE="GPL-2+ GPL-2 LGPL-2+ LGPL-2 BSD MIT ISC HPND FDL-1.1+ LDP-1 LDP-1a man-pages Texinfo-manual"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+RDEPEND="virtual/man"
+
+src_prepare() {
+
+ sed -i -e "/^\(man\|shadow\)/s:Y:N:" script/pkgs.list || die
+
+ # remove man pages that are provided by other packages.
+ # - sys-apps/shadow +nls
+ rm -f manual/*/man1/{chfn,chsh,newgrp,su,passwd,groups}.1 || die
+ rm -f manual/*/man8/{vigr,vipw}.8 || die
+ # - app-arch/rpm +nls
+ rm -f manual/rpm/man8/rpm*.8 || die
+
+ for f in manual/*/man8/ld{,-linux}.so.8 ; do
+ mv ${f} ${f/.so.8/.so.ja.8} || die
+ done
+ mv "${WORKDIR}"/${GENTOO_MAN_P}/portage/g-cpan.pl{,.ja}.1 || die
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+
+ local x y z pkg
+
+ for x in $(tac script/pkgs.list | grep -v '^[#].*'); do
+ if [[ -z "$pkg" ]]; then
+ pkg=$x
+ continue
+ fi
+
+ if [[ "$x" == "N" ]]; then
+ pkg=
+ continue
+ fi
+
+ einfo "install $pkg"
+
+ for y in $(ls -d manual/$pkg/man* 2>/dev/null); do
+ doman -i18n=ja $y/*
+ done
+
+ pkg=
+ done
+
+ dodoc README || die
+
+ cd "${WORKDIR}"/${GENTOO_MAN_P}
+
+ for x in *; do
+ if [ -d "$x" ]; then
+ einfo "install $x"
+
+ for z in $(for y in $x/*.[1-9]; do echo ${y##*.}; done | sort | uniq); do
+ doman -i18n=ja $x/*.$z
+ done
+ fi
+ done
+
+ newdoc ChangeLog ChangeLog.GentooJP || die
+
+}
+
+pkg_postinst() {
+
+ echo
+ elog "JM (Japanese Manual) project has used utf8 encoding"
+ elog "since 2012/04."
+ elog "You need to set appropriate LANG variables to use"
+ elog "Japanese manpages."
+ elog "e.g."
+ elog "\tLANG=\"ja_JP.utf8\""
+ elog "\texport LANG"
+ echo
+
+}
diff --git a/app-i18n/man-pages-ja/metadata.xml b/app-i18n/man-pages-ja/metadata.xml
new file mode 100644
index 000000000000..77b309c35972
--- /dev/null
+++ b/app-i18n/man-pages-ja/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription>
+ Japanese translation of portage/gentoolkit man pages are contributed by
+ Gentoo Linux User Group Japan and maintained by that mailing list
+ (gentoojp-docs@ml.gentoo.gr.jp). All questions and comments should be
+ posted to that list with regard to man pages translation for
+ portage/gentoolkit.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge-jp">linuxjm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-nl/Manifest b/app-i18n/man-pages-nl/Manifest
new file mode 100644
index 000000000000..764c80f21ecf
--- /dev/null
+++ b/app-i18n/man-pages-nl/Manifest
@@ -0,0 +1,5 @@
+DIST manpages-nl-0.13.3.tar.gz 303975 SHA256 925b2f9e73b4be755fc4c415bec93b48977b8a79eecf01e4b2825b17facc4f05 SHA512 2fe12911105366e3355a46f7da988ccb888ada5f20760a4651dd34a7dcb354e85796ca70f54c06b921dd7fffc7b5c9141b4a09b0a53bff383540621652e59591 WHIRLPOOL 80db76a81488ec70c4ff472a82d44cc599b4ef285f44f2ceac33459469dd11b3315685e53429b3389c6789ec747d6e60de89b9816962e8d438ae23aa8164ba99
+EBUILD man-pages-nl-0.13.3.ebuild 603 SHA256 8bdf2e1b4f254d47ed2d59d868202e87e533c7047fc84236676867e0bfbfde3b SHA512 b1c8efc3988fc107f70efba418d8c557f37da22bdf32b0edf19ed5770ebecd173602acf3e028e5cb771a6063f688426ba794960bb2539a3a8d8204ba60f50df6 WHIRLPOOL d8e6749786f8c07e884cbcac116ad23827c1bc6d91c0595ea6a213aae8256b704750f6374cd16d415ce41d6732f12fcb083bd0f29d1a3b53320794e202cfc0db
+MISC ChangeLog 2539 SHA256 705b22da4aa42d2badeee9780f1f0a786e0d9ed54b86da0ee59128c29af7bb0e SHA512 d7c3f801a8547eaa2c9c412eb6ad9e6f4beabfb5c024ead902e8364844e4a6ac5c93b779ec574f966d45a4985d7caea2b172c46d61c01080c855711bea407163 WHIRLPOOL 52d02321acd140d54aa08a5eab4804146603496cda497546f28af6c18ea0369afb9532a162c123d9443bd8c29aa440cea37f51beb9a6b05cc4768aea8c36034f
+MISC ChangeLog-2015 906 SHA256 8632a9f84ae95d8738808f4168c837d39bf04631095e2e4218d82a2e6fbf3387 SHA512 bc3d6dcdb0afbc73047a85975cb265726dd7ff12ad3e7dd23203f8c69d6cf0b9e74b4d2ad8d92de11e46b7b7602ce0fd9ece04fa2901255ae4eaaefa707dc500 WHIRLPOOL 55df4e29958119b07074a386bda9d3e3c8a19c6b125273440db3e06557ff74c45bed9957aaaf8e709b2d1ee7f058a7e63835dc60fc281175603157044e477933
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/app-i18n/man-pages-nl/man-pages-nl-0.13.3.ebuild b/app-i18n/man-pages-nl/man-pages-nl-0.13.3.ebuild
new file mode 100644
index 000000000000..308ad6d1bd9c
--- /dev/null
+++ b/app-i18n/man-pages-nl/man-pages-nl-0.13.3.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="A somewhat comprehensive collection of Dutch Linux man pages"
+HOMEPAGE="http://doc.nl.linux.org/MANPAGE/"
+SRC_URI="ftp://ftp.nl.linux.org/pub/DOC-NL/manpages-nl/manpages-nl-${PV}.tar.gz"
+
+LICENSE="man-pages GPL-2+ GPL-2 BSD LDP-1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+RDEPEND="virtual/man"
+
+S=${WORKDIR}/manpages-nl-${PV}
+
+src_install() {
+ make install DESTDIR="${D}" || die
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}
diff --git a/app-i18n/man-pages-nl/metadata.xml b/app-i18n/man-pages-nl/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/app-i18n/man-pages-nl/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-i18n/man-pages-pl/Manifest b/app-i18n/man-pages-pl/Manifest
new file mode 100644
index 000000000000..29fafe0ac85a
--- /dev/null
+++ b/app-i18n/man-pages-pl/Manifest
@@ -0,0 +1,7 @@
+DIST man-PL28-06-2007.tar.gz 3436680 SHA256 9cd783f5b6e42fd53b7cc929225824f3b8e9e8cb1615e481ac02a43ac29a510b SHA512 cc5de191b5dc7963018db8c2e7094b8e4e6db0dc0afefaa3a36e73a0bc70a3889d68ce78c4a900862dc5590a00bf57a3897050ed25c45d2f6f33765858cc4c8b WHIRLPOOL e490e6c12c31a55959473299364cff5009b2d97f9f98c2aea2252588e2f6b0e5fb7a6ddf0756ef46bda03369c4ada77646407c5d96642e77be141f468065bc3a
+DIST manpages-pl-0.6.tar.bz2 3513993 SHA256 0b7debc15608775d4517d91581e19659683b7a204fec1444c7db2ab761ad0e0e SHA512 ff1841ae4e1d01af46f6f3e28ad1543d3f46ce9580665a9b4a538e96e87f77ec5b36ad26c7dc38ac816dd3c864643d47e0f809c8382e56d0c1418209849eeffa WHIRLPOOL ae526e82093519c97b96f796465112f69006d0990b45f29064696603bf87bb441be70525c0333f7452927919aac3418101b2c07c92eeb4dbe51db0ca33186181
+EBUILD man-pages-pl-0.6.ebuild 662 SHA256 471eef41f85eea5d90f332564d8387cebcff2081b291c4f22d11a7d84d943391 SHA512 77aeaabfb8d23d76ffb005b37c1165fec78e89ba5038f3cc08375f7dc664d4c82069a009270bf606968f905a862183f40e0e70aba53b581282a7115067cea055 WHIRLPOOL e787bcef09dca11b66ef468202dcadf9fa5809eddef6f33834cc42fb0a81cbb453ec5afb9585c49b466c4ce64689809ad6460ba186f32ac8948d6924a7605844
+EBUILD man-pages-pl-0_pre20070628-r2.ebuild 1188 SHA256 3d90631faf6f22a5bb5102b991c51afce610fa9121ea9cfd0aafcabc15b35848 SHA512 8403f9b302ca681e6b53afd7afa3f83c7e8ac01e72d7424b74b4eb74103229eae5c83fdb846a159f7db68151d664ddaba7c461d19e29a4f671ce988199bbea07 WHIRLPOOL 7f6c42800b092d2583e7dd15c8c451d1e38102c2e9459914cab072b9900d39d60b2b67e471f319dfea2d93dce6040e66dec9f3f6508c5cbea7c0264a95141c9c
+MISC ChangeLog 4099 SHA256 308914fca6e57d8c2fef8fd51d33a3d80bf5d700613314b792a082e686099877 SHA512 e844196de390debb9da75d52a5f0b8b36cf54925f2b7d7759fbc6f6ab59bc498877a7dc1092738f843722448f25f68cbd5cb08c89f7a0bb4f83d07357d4c3cc2 WHIRLPOOL cba28d9a13baf736cbc4fe506c4879b78e03950c931fcb16d764cc662a7567f2fe8cdbccb3e8ca923315bee553d37ddc9037198e8196cba46a4346c24903a673
+MISC ChangeLog-2015 5635 SHA256 c9774c354bbd0c3363d9b04d5c3f2a0260c9318796bf3b3446eaa39b5b128fba SHA512 a773baf69f634319ee4567b78ead8c29529d0fe4cfca5efe0ea8e4040386e8b8b0eb068dea7ac8311946e9595e23c15a38868e81500a4094a1dbb9e7b750ad5a WHIRLPOOL 7faf45d0d70218d7c88bda3a9de9ec20d6b851ac511fe766f2dfdd7b1aeb4b3bbd0394a0784e3da023bc7ae7ccbb38ce8a7545ad06e989b313e823c161fc2dc9
+MISC metadata.xml 513 SHA256 ce5d4565e4b498210826c0e949f9711215f42eb253125151253bfbbb41df2ae7 SHA512 b791d789e787eb4663468315b598af18e2463cdad6a083bfec089a77f83b4fe06c4a7a2f7996b999e11002b19cc64fa8366243271528dc90314b002e83893544 WHIRLPOOL 7caf5705f32cd098ee2f1c7d4f7301bcf997c17ffdd1f528bc4eb228ce411bc5bf6dcf3ebf9cba3751dfa8ca2cacc0dffd0c6a4b7a47e3fa6c14a486d1ae5443
diff --git a/app-i18n/man-pages-pl/man-pages-pl-0.6.ebuild b/app-i18n/man-pages-pl/man-pages-pl-0.6.ebuild
new file mode 100644
index 000000000000..b957174175b5
--- /dev/null
+++ b/app-i18n/man-pages-pl/man-pages-pl-0.6.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A collection of Polish translations of Linux manual pages"
+HOMEPAGE="https://sourceforge.net/projects/manpages-pl/"
+SRC_URI="mirror://sourceforge/manpages-pl/manpages-pl-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+
+DOCS=( AUTHORS README )
+
+S="${WORKDIR}/manpages-pl-${PV}"
+
+src_prepare() {
+ epatch_user
+ #mans provided by other packages
+ mans="generated/man1/groups.1 po/man1/groups.1.po"
+
+ for man in ${mans}; do
+ rm ${man} || die
+ done
+}
diff --git a/app-i18n/man-pages-pl/man-pages-pl-0_pre20070628-r2.ebuild b/app-i18n/man-pages-pl/man-pages-pl-0_pre20070628-r2.ebuild
new file mode 100644
index 000000000000..06ebc4399c2e
--- /dev/null
+++ b/app-i18n/man-pages-pl/man-pages-pl-0_pre20070628-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools
+
+DESCRIPTION="A collection of Polish translations of Linux manual pages"
+HOMEPAGE="http://www.batnet.pl/ptm/"
+SRC_URI="http://www.batnet.pl/ptm/man-PL28-06-2007.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND=""
+
+DOCS=(AUTHORS ChangeLog FAQ NEWS README TODO)
+
+S="${WORKDIR}/pl_PL"
+
+src_prepare() {
+ # missing manpages
+ sed -i -e '/\tpasswd.1/ d' man1/Makefile.am || die
+
+ # manpages provided by other packages
+ mans="gendiff.1 groups.1 apropos.1 man.1 su.1 newgrp.1 whatis.1 gpasswd.1 chsh.1 \
+ chfn.1 limits.5 login.1 expiry.1 porttime.5 lastlog.8 faillog.8 logoutd.8 \
+ rpm.8 rpmdeps.8 rpmbuild.8 rpmcache.8 rpmgraph.8 rpm2cpio.8 evim.1 vim.1 \
+ vimdiff.1 vimtutor.1 ex.1 rview.1 rvim.1 view.1 suauth.5 mc.1"
+ # bug #375623:
+ mans="${mans} manpath.5 catman.8 mandb.8 zsoelim.1 manpath.1"
+ # bug #403379:
+ mans="${mans} shadow.3"
+ for page in ${mans} ; do
+ sed -i -e "/\\t${page}/d; \$s,\\\,,;" man${page: -1}/Makefile.am || die
+ done
+
+ eautoreconf
+}
diff --git a/app-i18n/man-pages-pl/metadata.xml b/app-i18n/man-pages-pl/metadata.xml
new file mode 100644
index 000000000000..36b963f1d6d6
--- /dev/null
+++ b/app-i18n/man-pages-pl/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>yoshi3@autograf.pl</email>
+ <name>Marcin Kowalski</name>
+ <description>Proxy Maintainer, Assign bugs to him</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">manpages-pl</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-ro/Manifest b/app-i18n/man-pages-ro/Manifest
new file mode 100644
index 000000000000..09262d85b544
--- /dev/null
+++ b/app-i18n/man-pages-ro/Manifest
@@ -0,0 +1,5 @@
+DIST man-pages-ro-0.2.tar.gz 42764 SHA256 60fecd0c3e8cdb34bbff8370a2c12de6404eb2a8133ab7dfe93e50013f35af52 SHA512 d45deab53dbc34ef9809c19c00cded7f67bf78979cd9a8dc4a5e418465a2d56327822a07736d38fdfc34d036909866b67fdd78d1c2dcbbdb7e60d5bfbfb2599a WHIRLPOOL d69c39140007c3656995beebd47d4ee855279605b6061f5abc1ef0f7948b517d4e22fa09993b92dc1144d6df0bdcfa0b225531124c5d07cbe17d87d24f360ad1
+EBUILD man-pages-ro-0.2.ebuild 565 SHA256 3aa67e6a07d34d6cfe64ddcd69dc0077d17bdd13da83e9a57a8c2fee651e4359 SHA512 9ab47be52547cd34b9e2e74a1a5ce9efff85e2fb590515869590f8e4b1493fb64813a1ee9153e755531b96c712b6983dd5b2c8e95636f69ba8b49ce8469ef832 WHIRLPOOL f054f37993907d31a1fa27d525896f8d17d072fa376e16f2ed02c15edfdc0d77f930d96c292c5d1bb05ec4c6c5db5e9408a06e70874a7cc9f3078f9cf0269296
+MISC ChangeLog 2533 SHA256 20b6e80dba7282d93319bc8b3f60289dc34bf49e0b7ecacb0d0e94bf8fb7a4b8 SHA512 07d6d1abb099576f9a1ae944b1017c8f37ec6cf307246f410bd205128cc10d00a159db83db0798fc334c958ed79541f3786b9b56fd04ba2cf94418cfb501aa0c WHIRLPOOL 60b0dd4ffed7ca3efef64cc856eaf8dcd0c2325f374f4635fd8b64e1d172a69ac43ef6931699813aa157b640bb6321c479802d21314d5bf49a57d08720c4b4b4
+MISC ChangeLog-2015 728 SHA256 dbc4b3031b5b6d5e9f089354c38d27b295fc7de6ec5452e387352efa9525c72f SHA512 d45b0d01b70584c1bb920cd782cf69ef531bf40ef19c5cc36dc5d070b8e8c29a8f5768aa0d754bd09bbb59f95bbe76d4b09a6030c862d87c0edd331534d1dcb8 WHIRLPOOL 7460c3e5f2d2ed15abdd24d0814fdfb43b06e8c8f9b7f49c9cb334fc15988e27bc3262409fad92fd94128a38ba6916f680a36de469f571a5162b396043f5e9a3
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/app-i18n/man-pages-ro/man-pages-ro-0.2.ebuild b/app-i18n/man-pages-ro/man-pages-ro-0.2.ebuild
new file mode 100644
index 000000000000..f63a9c4c8acd
--- /dev/null
+++ b/app-i18n/man-pages-ro/man-pages-ro-0.2.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="A somewhat comprehensive collection of Romanian Linux man pages"
+HOMEPAGE="http://www.rolix.org/man/arhiva/"
+SRC_URI="http://www.rolix.org/man/arhiva/${P}.tar.gz"
+
+LICENSE="LDP-1 GPL-2+ man-pages"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+RDEPEND="virtual/man"
+
+S=${WORKDIR}/man-ro
+
+src_compile() { :; }
+
+src_install() {
+ insinto /usr/share/man/ro/man1
+ doins man1/*.1 || die "doins"
+}
diff --git a/app-i18n/man-pages-ro/metadata.xml b/app-i18n/man-pages-ro/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/app-i18n/man-pages-ro/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-i18n/man-pages-ru/Manifest b/app-i18n/man-pages-ru/Manifest
new file mode 100644
index 000000000000..9f94aeca99cb
--- /dev/null
+++ b/app-i18n/man-pages-ru/Manifest
@@ -0,0 +1,5 @@
+DIST man-pages-ru_4.08-2329-2329-20170422.tar.bz2 1543256 SHA256 beccdb2868e1101ee7d4bcabe2b2e2db73d6cb6bc80eb3674858335dd49976ef SHA512 4cfb9b67118d0b3ed44d7ec2f5cbd3e711e738225fe528e7a80c9503bc9136bbf81423772ce9e25abd46f172b90dcee931ebfec26ed79a6bf6d36cc0287af51f WHIRLPOOL 181c5ab3d063c064f75b87ec519533bd54286045d1a7e6fee3536b62b4595c9dd68a3fc9aa44be9fa3d2cc4cecdcb0894ced5733a1e6efd38c5f2c95af45f1fc
+EBUILD man-pages-ru-4.08.2329.2329.20170422.ebuild 669 SHA256 c641da355517461576c7c57dd934187f0b46db621b43f69527a5a76333d0c3da SHA512 35201a3994ee6354ac8f435a99387725ffc06fa8f9c5af3acebb3fc82b78a74de14358cda3777f795fbebf92693699d12db6156e7b5fe2574bd9648e2dc3be9d WHIRLPOOL 59d05f88a9c29cd12ace66547500dfe3bfdf0779b874196bbcf96f0ae92539718a5651c08da13020c224adafea940f94d77dd674d78077ff7bc3dc8ab343a525
+MISC ChangeLog 3314 SHA256 5afa4742cbc3b2e5f3a0c274fe62d3f30034f4713b3490fd498d215881953f6a SHA512 676f209db63869cf03264fe5a3299aeb6c8675f9ac775d0438fb56471efeeed83ce99521b6b3b720b74109b9e21531dcfca33dfecc52a42f0c6529f55355b5d8 WHIRLPOOL 5ddbff33c76f2769e10fa5469076f8fc97eda0b8ad6362127c6753d086c9bedf6a4e53a55ecb3ab16dcbd9e265e488d5d27d779d26cef1ab38bf65bd85466f6e
+MISC ChangeLog-2015 9483 SHA256 dc9570bce3c909acc5c8eeda7b7c5c12b9162dc7b6a758acad546b40a6b9b474 SHA512 1a90003bad33952756bc2a2ed7431b9a825d86c41f788b9c59c0828006bb2bca28cb53c18fb929cfe96ae514be00808153a9e3c1e7547dfc0d027ba3289de870 WHIRLPOOL c0982649fe5f8cf1481963a44b28140a113cef86157132d41bb0827b6e99faf53f303353650ca1360faf578fe525595dc051d66f17efa2d2fe5aa7d22f252126
+MISC metadata.xml 436 SHA256 2447ad7198fed13a143464a43513616b699eaec1ed257442492a18aa1203cb2d SHA512 1f7c55f697fe501f62c9cde15f0f82cedf7cf62251efba961c4e236ec99974fe7345fd77a48d92eee9472fe519e7c4ea040fda5df31d743f2eddf09644ae81a5 WHIRLPOOL cbc262c6b5477abed5988641a293114a5a91a35a3a0a01613ba5072efe791380163c4abe048ed4e4c54750a99a90ac900f731d02e06f29dfc6310df0e20c8e2f
diff --git a/app-i18n/man-pages-ru/man-pages-ru-4.08.2329.2329.20170422.ebuild b/app-i18n/man-pages-ru/man-pages-ru-4.08.2329.2329.20170422.ebuild
new file mode 100644
index 000000000000..ec58b1873370
--- /dev/null
+++ b/app-i18n/man-pages-ru/man-pages-ru-4.08.2329.2329.20170422.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator
+
+MY_PV="$(replace_version_separator 1 . $(replace_all_version_separators -))"
+
+DESCRIPTION="A collection of Russian translations of Linux manual pages"
+HOMEPAGE="http://man-pages-ru.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}_${MY_PV}.tar.bz2"
+
+LICENSE="FDL-1.3"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux"
+
+DEPEND=""
+RDEPEND="virtual/man"
+
+S="${WORKDIR}/${PN}_${MY_PV}"
+
+src_install() {
+ insinto /usr/share/man/ru
+ doins -r man*
+ dodoc README
+}
diff --git a/app-i18n/man-pages-ru/metadata.xml b/app-i18n/man-pages-ru/metadata.xml
new file mode 100644
index 000000000000..d38c2811a3aa
--- /dev/null
+++ b/app-i18n/man-pages-ru/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 type="person">
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">man-pages-ru</remote-id>
+ <maintainer>
+ <email>azamat.hackimov@gmail.com</email>
+ <name>Azamat Hackimov</name>
+ </maintainer>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-zh_CN/Manifest b/app-i18n/man-pages-zh_CN/Manifest
new file mode 100644
index 000000000000..323733501545
--- /dev/null
+++ b/app-i18n/man-pages-zh_CN/Manifest
@@ -0,0 +1,5 @@
+DIST man-pages-zh_CN-1.5.tar.gz 3762338 SHA256 e78fac5063c86fbab1c30323afbbe4fe8dbb68e2556bb32c35ef4bdebdb3ecf0 SHA512 799eac7e6c64dd9bb647bf490457bc6ece76870d261606e33f48df977762b66f778fb5afe3608443be100e516988c700ddb53de2a226e7b29d32348fa240ce91 WHIRLPOOL 793b2bac8216b585cff39189b60c74b833d312f44af89ecba0f9f4e845cb770a725ee52cbe48ea37b2dd9c72d3723efca4114fc6bf3ec74c173df4c60b587644
+EBUILD man-pages-zh_CN-1.5.ebuild 643 SHA256 b24877175367e14fcd38da776d2e7e23502c4e08397d25a69bf55185a0285a28 SHA512 2311e3c84969eb1a5654b5e5f1eabf6c6331ffec4d566e3035f36946c830104171f65da7c5b2564e37f0dff3c72581cf94d44a979370cb2f223a06696fcea12b WHIRLPOOL af296fd33352cdf4b04cdbc56dd52e5c3643a8ce471d64d6101690c56d3f3083e88621e18678eb3d0d4932efff59c96c893086bf5b2032be487fa73b28314918
+MISC ChangeLog 2542 SHA256 e805db84e80dafdf88b8da15136c05a9c41c20dba5e640c20c2307279c71a76f SHA512 9f6227f19de34b744f6850d6f91665c92aa20a460adb28780d2be57f628e5484526c1516b0e5736ed1ed19de99794652b95e27429d49d252bd57b22eb9673ab2 WHIRLPOOL dcb623dfc2caeb79d784454167c999552c86a7dfce0ec4a6f0c1c51a4c0a82b10d6e4b1add640d0e551d0800bbb8785f455b49c163971877bebe9ea8578c62e7
+MISC ChangeLog-2015 987 SHA256 5a2c9cf2254f4dae91da56b5042b6868ceec5be3d3d73fd44db18bb30d71e444 SHA512 b3d93222cf929641ce270de145771bb96d9a938fdeb856f5f0e4043950a63c4b4315ec8b5ecff88cb060d42add37492c6f34f69d0242556af977756b13b0c086 WHIRLPOOL 5e6dda2ee4b59e211dfcfc2e9b4d556bb2b5b280b5e27333509ddd409430b059cbdee8be6e5353389928db5b57567eec2c8b2fb56df368913d5e9a02cd8d988b
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/app-i18n/man-pages-zh_CN/man-pages-zh_CN-1.5.ebuild b/app-i18n/man-pages-zh_CN/man-pages-zh_CN-1.5.ebuild
new file mode 100644
index 000000000000..c1d639ba7f7f
--- /dev/null
+++ b/app-i18n/man-pages-zh_CN/man-pages-zh_CN-1.5.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A somewhat comprehensive collection of Chinese Linux man pages"
+HOMEPAGE="http://cmpp.linuxforum.net/"
+SRC_URI="http://download.sf.linuxforum.net/cmpp/${P}.tar.gz"
+
+LICENSE="FDL-1.2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="virtual/man"
+
+src_prepare() {
+ ecvs_clean
+}
+
+src_configure() { :; }
+
+src_compile() {
+ emake u8
+}
+
+src_install() {
+ emake install-u8 DESTDIR="${ED}"/usr/share
+ dodoc README* DOCS/*
+}
diff --git a/app-i18n/man-pages-zh_CN/metadata.xml b/app-i18n/man-pages-zh_CN/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/app-i18n/man-pages-zh_CN/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-i18n/mecab-skkserv/Manifest b/app-i18n/mecab-skkserv/Manifest
new file mode 100644
index 000000000000..b96c2b7aad35
--- /dev/null
+++ b/app-i18n/mecab-skkserv/Manifest
@@ -0,0 +1,8 @@
+AUX mecab-skkserv-cflags.patch 312 SHA256 6df735ae655c613999494f25a1743d671aec22688a9b85489e7c72eb2ec58b6b SHA512 7b3ae93eab4d0a13701c590d7cfd033fb3d34aa085beb59224bcd60823829c87674e0ee8edff2f8d73c204c56be668673e6dabd3ac5f60da34afae927bcc1106 WHIRLPOOL c648f6514cf8d2df893e4f8e7c8acc4ec68ba62c2ac571f5bf04f6c02f7847d3850aba0bbb240c9791fe5bba5a3704f2377fd44fa51d0f2c482f13d6b36ce56c
+AUX mecab-skkserv-dicrc.patch 146 SHA256 c8678072bb4ffa8e6fbf498930ac4241e27f3c94e0162b73511bde315a5ede61 SHA512 9c96b2c71e8c06c1a7e12c5c4952a9202d06943aebb1e96b63d00084f77822af657745dbf2c926358739723444a99be86537d638d3eea5728b4392a22471314d WHIRLPOOL e2cbf7c011b3e7ef1aef2fbda79ff059128b92b1bc406550c154b68be65f9305ba130002f567f9f0c803c44c90e2805496a37e52c6b6ca1b6de9b8d2860d2f36
+AUX mecab-skkserv.xinetd 238 SHA256 8ae080ebff39ea572d7139b8add851f8d8180088f199336cf7413adb7d26a766 SHA512 181ab3fb6abe4f4d7555db674881430d6149561459dbaca6fbc5081bfcba2154670e54a383dafd4b3339ed8f412a32d93f3c9024841c3b28c8c00808b5a5f366 WHIRLPOOL cde44628b4e8a23c5183d174dc2e4bb685d5e804288e8b722f0bc66ade8988d1ed2692c97c0e8d181d71313cca3957360ade84a898e8d8d6e3c46d71e307dc31
+DIST mecab-skkserv-0.03.tar.gz 5398452 SHA256 d036402ab37170034ff8ed38b9d25f1bab75170fbda865ac297ccee77570f0da SHA512 268621035391ec780b8aa04980d668afc83410853d25f06b4578dba3d4e3803ebfea42aabde1325fd80edad7524a4658480e40a00c6bfec1f04310a8d47bb2c9 WHIRLPOOL be29e7fa5571dfdca08d8c1dc59260514dda34c29900d541f6cb216a298f3602ad4c6fcaf919af600cac4fb6e79194f0d024664ba186ab5cbc53fd996e252411
+EBUILD mecab-skkserv-0.03.ebuild 760 SHA256 4ad5df7f5f1360d5838ed21611bd4f3a7b1e4a861c50867d562d5bb618262d40 SHA512 08aba49f5541f55b8eb81468e46c5329a9e1de1e130391367440b1a8cf2a9e57128a4e185ea7a6b472b33bf8421e683b2966edb4b30753fda2fb33548be21b57 WHIRLPOOL 51d68a9f224d0bd6dec709c688030c9d353a75333080a56b5ad60d1660d896af91e86a0aaa9317ffd761ed05dec222ab7af68d1e3f96b8d484de749228bcdfcc
+MISC ChangeLog 2548 SHA256 528c0b33e555b5deda1f40e01f3a7a52f6b3da952242b33f5fec102b23e3941e SHA512 8f6a833e786e6498ec297ecec87185a6f2ae1d718fcf062108eabbe6f788329074ee59ffbb47fc511f5d06117f0c1581219fc79ff684ea7454c101555ae12130 WHIRLPOOL 308acaacf678d04e16ec46132e5725d4317bfcf1bdfd5bb251791cb94bc86035de2827dd4af5f6d3b4c5d4c9b4e95bdd4675731ce31c2cb19480a9de173c49d0
+MISC ChangeLog-2015 1520 SHA256 c165a7bd0b7d41cf472bbc3575f525791402f20220286553a0cba67854d5933b SHA512 3a7b63b282d209dfce7782f6007a04fac857b7b63db0aaab80d5b25769edfb79736b403d48c42e736808a3996ee1afa0d73ffe434ab180b22087f7b1a499eb04 WHIRLPOOL f671f155897f6eb31ff1ad83efaeade426e57465514309f734396a48c452229f048e2431b5197750e73527cf4996cfeaf967e359e3385e462e610cb65498f422
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/mecab-skkserv/files/mecab-skkserv-cflags.patch b/app-i18n/mecab-skkserv/files/mecab-skkserv-cflags.patch
new file mode 100644
index 000000000000..4dcb1abc326e
--- /dev/null
+++ b/app-i18n/mecab-skkserv/files/mecab-skkserv-cflags.patch
@@ -0,0 +1,13 @@
+--- a/configure.in
++++ b/configure.in
+@@ -19,8 +19,8 @@ AC_CHECK_FUNCS(getopt)
+ AC_CHECK_FUNCS(getopt_long)
+
+ if test -n "$GCC"; then
+- CFLAGS="-O3 -Wno-deprecated -Wall"
+- CXXFLAGS="-O3 -Wno-deprecated -Wall"
++ CFLAGS+=" -Wno-deprecated -Wall"
++ CXXFLAGS+=" -Wno-deprecated -Wall"
+ fi
+
+ AC_ARG_WITH(
diff --git a/app-i18n/mecab-skkserv/files/mecab-skkserv-dicrc.patch b/app-i18n/mecab-skkserv/files/mecab-skkserv-dicrc.patch
new file mode 100644
index 000000000000..db7637775a45
--- /dev/null
+++ b/app-i18n/mecab-skkserv/files/mecab-skkserv-dicrc.patch
@@ -0,0 +1,7 @@
+--- a/dicrc
++++ b/dicrc
+@@ -2,3 +2,4 @@ bos-feature = BOS/EOS
+ node-format-ime = %H
+ unk-format-ime = %M
+ eos-format-ime = \n
++cost-factor = 700
diff --git a/app-i18n/mecab-skkserv/files/mecab-skkserv.xinetd b/app-i18n/mecab-skkserv/files/mecab-skkserv.xinetd
new file mode 100644
index 000000000000..f5d14c3a6ce3
--- /dev/null
+++ b/app-i18n/mecab-skkserv/files/mecab-skkserv.xinetd
@@ -0,0 +1,11 @@
+service skkserv
+{
+ disable = yes
+ socket_type = stream
+ wait = no
+ user = nobody
+ server = /usr/bin/mecab-skkserv
+ only_from = 127.0.0.1
+ log_on_failure += USERID
+ port = 1178
+}
diff --git a/app-i18n/mecab-skkserv/mecab-skkserv-0.03.ebuild b/app-i18n/mecab-skkserv/mecab-skkserv-0.03.ebuild
new file mode 100644
index 000000000000..a988749886da
--- /dev/null
+++ b/app-i18n/mecab-skkserv/mecab-skkserv-0.03.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+DESCRIPTION="mecab-skkserv is a Kana-Kanji conversion server using MeCab"
+HOMEPAGE="http://chasen.org/~taku/software/mecab-skkserv/"
+SRC_URI="http://chasen.org/~taku/software/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2 ipadic"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-text/mecab"
+RDEPEND="${DEPEND}
+ sys-apps/xinetd"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-cflags.patch
+ "${FILESDIR}"/${PN}-dicrc.patch
+)
+HTML_DOCS=( index.html ${PN}.css )
+
+src_prepare() {
+ sed -i "/^dictdir/s:lib:$(get_libdir):" Makefile.am
+
+ default
+ eautoreconf
+}
+
+src_install() {
+ default
+
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}"/${PN}.xinetd ${PN}
+}
diff --git a/app-i18n/mecab-skkserv/metadata.xml b/app-i18n/mecab-skkserv/metadata.xml
new file mode 100644
index 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/mecab-skkserv/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/metadata.xml b/app-i18n/metadata.xml
new file mode 100644
index 000000000000..44756a003f77
--- /dev/null
+++ b/app-i18n/metadata.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The app-i18n category contains internationalisation-related packages.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie app-i18n enthält Programme im Zusammenhang mit Internationalisierung.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría app-i18n contiene paquetes para Internacionalización.
+ </longdescription>
+ <longdescription lang="ja">
+ app-i18nカテゴリã«ã¯å›½éš›åŒ–関連パッケージãŒå«ã¾ã‚Œã¾ã™ã€‚
+ </longdescription>
+ <longdescription lang="nl">
+ De app-i18n categorie bevat applicaties om te internationaliseren (vertalen).
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm app-i18n chứa các gói liên quan đến
+ quốc tế hoá (i18n).
+ </longdescription>
+ <longdescription lang="it">
+ La categoria app-i18n contiene pacchetti per l'internazionalizzazione.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria app-i18n contém pacotes para internacionalização.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria app-i18n zawiera pakiety zawierające tłumaczenia różnych
+ składników systemu na różne języki.
+ </longdescription>
+</catmetadata>
+
diff --git a/app-i18n/mozc/Manifest b/app-i18n/mozc/Manifest
new file mode 100644
index 000000000000..f55bfab04b9a
--- /dev/null
+++ b/app-i18n/mozc/Manifest
@@ -0,0 +1,28 @@
+AUX 50mozc-gentoo.el 121 SHA256 833039439dea484a430e832df869b3af0b8d42bae63c4d6999e72c97d55d897b SHA512 2d67a6723374872717ab7132f02f4030f00ddecabb8a1fc20c9d69d64406dc2ba2a1109734378fae7b4718a8ae9601beff4b6f27cb43a280fa2e0f946da70685 WHIRLPOOL b9e5235177ee432509c9428b632a1148e8788c1bf9b6fe57bbc4f3f747a038008ef4752a1dfacb86a5be9a018504405e6a68053dd54d381af1fd9170ba9c6ed7
+AUX mozc-1.10.1390.102-drop-Werror.patch 353 SHA256 894411a2dc704157661cc7386abf32b62abea9dc5621bc30474ce3161c54adf7 SHA512 203066f08a5094306d09c3c58f81bfb7a4069bb1eacd31f0d257701a4560adee5452a516351cd9bc5ea7227e40d31bbc6eb177422d3c37514f7573398b389bc2 WHIRLPOOL 0a3cdabbc653c42403fa60d9486927a8b4d9c2003262b973a4f4264424331a02a8fb3c413a736e797525e57f25b12a7ba2fb328ff7a7684b4bb2533f35b2ba96
+AUX mozc-1.13.1651.102-gtk-renderer.patch 547 SHA256 6daa6d077dffbcc133f49745bce5b2503b6097d8280c52a602a99b24eaac7b40 SHA512 7b4a4910a8a0a821fd8130e77ecd0b4f846f7fc2b573607e2ce0280889d625f4e374c60e35995dd5cbc2e8ccaf3443652b60764f538584e0a9d351ca67a28af4 WHIRLPOOL f4dabc1a7a4d29f5830bc641019b939405abc6c36d6acc384ed74a06995dfc31d5993653965acf60f8208969e9643ba97c1d4aca3bb7eac19ee73b4bccbd22e3
+AUX mozc-2.20.2673.102-system_libraries.patch 9659 SHA256 658ccac9192258e4838b4f25a7aed107fc2121ae16e4e92cf61570a53251f9ad SHA512 c0f858a9536fc449e0d9fb3191df2419f0273a478c31d0404713fc4feae5ffb72afec7b47b57ae2111ed0bf40ead4a75e31a68286440113968e2f4e4d6c2d856 WHIRLPOOL 068e3a5f2d41314cc5f6b3d42787b99ac3f92039061fa83fe4d9728e0d5ff22afad23762b0a75126a273d985a8e3869855bd5eaf381b7e62df9c286b13646763
+AUX mozc-2.20.2673.102-tests_build.patch 1037 SHA256 1f8e35f257e7952fc7818da1748b1be4af578066150304a7f62bdabbc1b95233 SHA512 d99ee7edbb406e123b26ec186933608b42d36193b7bfe67232810c0fbd7a92bd8cfff26dc45eae4f020e82e9a8370cf2033c750250455585b6b3d88cc8c973ef WHIRLPOOL e9384d30f4f8add826dc53fdda1e816563c51c4f7444170667fb041b18782a20f7a3f79c51d7cef19b9a27a078b375d33fdc67d6f5f6bc4321a8a3e03b208329
+AUX mozc-2.20.2673.102-tests_skipping.patch 2086 SHA256 dc86b4d5124e5c3bbce38cf12a0eaf04f7ebad932330fb3a86e7391d14e5843d SHA512 4a2e5a35c5e65ebeb737f656d6efb313c660c2c7cf62abd5d9295fd16e2dffde21d069cd74fd0cfd2454cd7f7c9d136dfbadbf79832db8441c619ff37c7e4b0e WHIRLPOOL f7576123d2e9c096d9301bb3085e3875cb8c72f53621a8adad162b826b8c5784885f4cca6cbfd28a7f7b6d589ffec4e509adcfa1d0c2d2b7e8dfdb4def89fede
+AUX mozc-ibus-1.5.4.patch 10078 SHA256 8164b72ef41800f4327bf4571fa788ce927511c42c6026936a48823a76466511 SHA512 4b2c8027409acac0c70dc1b665ba2cb103bf37ac4e808c9f102e7f860d17fa5bb376d7d9bbe52b255bba87918118002eb85094b74ab70c879410ed32b5f3557e WHIRLPOOL 3850def4d1602ed594369ca8963a776a1d72d0cb008bc374779fb6fdb012c921edc0ea67388df96773c2004addcc238f0b9edb80357b4b0a115800a011eddb7f
+DIST fcitx-mozc-2.16.2037.102.2.patch 140421 SHA256 ff175f3e0301c33f750780765ea264887827d00bc7a59fc8b55ae514ba449a1e SHA512 22b885859588bb8e0efd354d153da461a654203729c723156a419bf33fae473e3f7165964aa3cb3b5c969f97c2727f9d87b0d587330e4eeab67f07d4458542a3 WHIRLPOOL cd9534c8904a7c9f866a8ddd41ab4c57b3ad8b5650fda4cf9ccc1e544c8e0da25c749870606687ee66e4252f224babdbe10415e035038ced654812bad8d299dc
+DIST fcitx-mozc-2.18.2612.102.1.patch 140722 SHA256 0ec5dc2e9798ce7a6dbcbe847cf016b0b49be1851008143d167c13333a15ed27 SHA512 725c464727f230707b90975705ef1565f1178f9144e66c5a688696a4ef520a6fec1d11f7aa68ee05f82aa9417060b1cccf49a155e30734871a525eaa4c76addb WHIRLPOOL 25d0efd313175f6648504b989302c73ab6d82a0cf4eecf332b68347331e1feff2df6251edd49c3d4e9251a2c7e01df56eb8de54ebbbc31582f7c2b89d1da53c1
+DIST gmock-1.6.0.zip 2053682 SHA256 341ad07c31c619ba32c88c2265bc23693da1df062f47f146a7ed340f646d82b7 SHA512 7adff00bb6ff81a6ffb704be71d0747636d69e24b4a8b709e1fb8c177a9a47f6dea8d14fde73034ebfb1529c291c7212a944ad92a34f88abdfe23c2d0b11b6f7 WHIRLPOOL 1a03ff8f2d96287f5deb24f970688f20f3480e77a4a71089ef1399a87f28f616bf0feaedc217e7ac1ca8ca1246e53f5d882f350704be111ae547961949939530
+DIST gtest-1.6.0.zip 1121697 SHA256 5ec97df8e75b4ee796604e74716d1b50582beba22c5502edd055a7e67a3965d8 SHA512 f4718dfbfa3339bb9449c3f14e5b44ae405ea7df64c10a0957a6300985b71c4642981d069a1382e27ae041a4e2873527a9e442aff978447e795a190f99fac115 WHIRLPOOL 745a49020d4353ed2fa38adfc80bbd777358c831719bbe3b7c90d243f84256615222ba5f04d48d98b9e1a803bb40766799b3aedd575024c19d853d9239a12f8a
+DIST gyp-20140602.tar.bz2 432422 SHA256 f67be748f4dc36aa1619f43d4624c746728cf268af7f4ebf78dab3fa6d43d973 SHA512 e3a59daac57ddafc5804384c01cf51d4b90cd119d263afd83ec6eef9239c38bc7715736f70e20e44fae04fd8be1b86aa5323908a92d574372aa298f3355ce15f WHIRLPOOL 17e4630dcd7592e8ee197b4130d6147d9fd63404938f62e08ad10a204bd4bddcfc7d394abf3572a337e3dea46d4a7361dbc0cccc02e07ab99ed8f90e80830451
+DIST japanese-usage-dictionary-10.tar.bz2 56142 SHA256 8c22284c97fdfad854790517f9200c439453c033db8f6a9d25aa5d95266b2384 SHA512 f299cf9183b9ec219d80c1fa745f351765d246d601f3c4091d1705e3c8b5ef66a32288d4c162e7bbc456b6d49ee90f1e5bf33721e1229165f3ee069daddd3198 WHIRLPOOL d2f690335cf271b0780c969f56616ece9d28f3dbe990548053a252c855db18a4a31d21e6bd8c34160c0893c21fab4543e5ff3cecb48c7f6ecfd5c84465d314a6
+DIST japanese-usage-dictionary-20120416091336.tar.gz 71051 SHA256 0b6efee0eebac2c1a8eeea333278aa40fcef7846bba9a379962c6e567e7e3dc1 SHA512 b7e997a979b6d50e49b9af5dc830ea4df0532f6ab1321b9ef14983f65bb54f1b2967375c82e07957ae7693ebbf43c9b56ecea6bfea8dd1fdaee444bd549d83a7 WHIRLPOOL 1c4324a6408cfc0b2e1df33a32583384ccf10374bc1a8f49f574e681a72174f7bee7e8500c93d714ee6459c087f7cd408e57cb52b8506ec50292249e50045cd2
+DIST jsoncpp-src-0.6.0-rc2.tar.gz 117661 SHA256 d4d193d163f520b08b9155cba978615892ca1359d77e3fb261fce2f86d09b283 SHA512 5d44e766aa2d7657bc68cf16173130febaa6744d5fca0c6df5465617a3f306023a17cbeb07a62ad1a34c2d183d916401b4be48f37c2416c895db4ad5d9481b3d WHIRLPOOL bfa7e70e14f3ed0911c5127da0d2099ca8b9159a900a5bc5147d1e50b5a9f9d5be69a8d46a761d277ca1edabaab8d0d3b9f81417572e4664ed8239fd83c953e6
+DIST mozc-1.10.1390.102.tar.bz2 57879881 SHA256 72a8ed6657daa1c03b1efe50c262a69be2ab66d45747a47df6e54996b6d5ee39 SHA512 4482e822f8a14bffd02cb1eaa5d14ba0a213266b2f0dd6402c42b9b357bf0d8c4dd572cef79f1d400bd68b7bd6cb4367933574f8f5967f68738249a300e3cfb9 WHIRLPOOL 90518e621ef784b438fcf677e211fdb6753719f3d78d14ce866ccea22d6d87f8d64e334bc568eebe93cb2850d3d545eb0b73d6f6de820eaf1d43f16bfdef4100
+DIST mozc-1.13.1651.102.tar.bz2 31635636 SHA256 a275accc726d55d696adf235fa40822ae099f0a02d3dc9f8d0257ba191a1bc49 SHA512 caa75e60704e904a72fd06e315a219ff304a54adaeee70a8ab75d413f7801960add103b9aae1c19ee92f6d10c4c408fd840cf78c5dde0cc21c605feac59deaf4 WHIRLPOOL 72a870cc1bc5bc63227bba61c73183f69160aa5c58c9b89e75fa65bf16bbdc2c2b873b7407d0543b3847bc046866392d9bbe6d771d7b4b7eb3f6be759f1a63b4
+DIST mozc-2.16.2037.102.tar.bz2 41172838 SHA256 4b78769b36366f056282267935a859e587f77e9aaf17132687d0e4d0c4da5cd0 SHA512 ff114a93054b43109407c44bc7c75de79fa2b028f9dba5c2ecc1776c5cbb032f184a91155b6b31bc17f0183dd70b0150ce13e80f59e26810daf4b65ba7e52be1 WHIRLPOOL 625c5a28da164ee96cdf523af32a7101357254cea1d57cd7f272bdf86ba8344d3e39bf2b2bfb0a79640d7961fd46c183eabc4002c8d86215ecffe183e4e0d193
+DIST mozc-2.20.2673.102.tar.gz 48624369 SHA256 004cb773d335e7e1075cf20fd9e713f6dcf6d158d75077bcb95358a116ad3cca SHA512 ad7a78b03b29847057625fd5422c03ac8fc5755c5e85c66fd6e80f81be719dd56bf1349a1d745797118deed239641512789687b4f9ffe49bab1bc966385229ae WHIRLPOOL f78140126a950eb28548c6ef8b20ec5599e04ac1de7d22d2b0ba00cc2471d43ec9823996e399f9025cfcbc7b50a3ecdbd3283463acb423b65089f56c96cc88db
+DIST protobuf-2.5.0.tar.bz2 1866763 SHA256 13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677 SHA512 5994b3669808b82fef5c860ecad36358c0767f84acac877e7bfcf722e59d972835a955714149bdd4158fbd1328a51d01397a563991d26475351ee72be48142ee WHIRLPOOL 7e6786e1f20bf253d0e386a95c2bbfe1b443f484d492f97552cadcea62c24461436aa88130e3ff20b4dc9f352c101458cb8c03686f1cc4e6e2133b6e78f5b70d
+EBUILD mozc-1.10.1390.102-r1.ebuild 4854 SHA256 f0c67e771fbe8f2dd8d324f0525e6cf90f14e84d9b1d7919da075f2262818efd SHA512 f84435093d31d49b8b7dd5b71c4f753ed8d0da7fb5666ff4381578dff7d9ab8cbbc02b728923f3f75c00dfe4591f7709f85df9ac7e586a1c3653b79ec0d3c60d WHIRLPOOL a97880e4d4c14843052465f1e981737e5e379d21febd2115a515cc9b20659c0f38f7af6f772f0e00e7b7b5d2bca1adf5887b7358f6d5d319db661befb7d004ae
+EBUILD mozc-1.13.1651.102.ebuild 5036 SHA256 968aa5ea57c352fe27832db8242637d57f2f809b45362144d7556760e17dc405 SHA512 ee8f4d4feffc39dd01dc70ae03a5f4f307d0fff5319c38c25d7dabc35ea66855e58d84e71220ab812e31dcdb47c32097ff6685be945299213dbba24a8836fecb WHIRLPOOL a7fab3c787335db1b8f32bb693b566edb747074df9f278d55abbc22af2443fdc0e8623f1f2b4dd582ba1a854eb8dc64d5bcf38288648fa34c12bc9084ff9c598
+EBUILD mozc-2.16.2037.102.ebuild 6726 SHA256 9dc66731dcb8a792b0a309fc21b262625e1f8c22016ce2bb580b872856730e25 SHA512 eb4d744a8fb5902c66296b96987f8b50e0a3e5d8792951fe44bb84f12c3308d2512341ac89781b62e9db4d1c19b40646a3948449ea744e2e7470e28c048ecaf6 WHIRLPOOL 991dc805f479a90f2ad540ea1d1ed1fd6147f628081e9048554cb85e47583c53b7e1cec19cada1200475a8d8d42d30ea8e5acbf57869a32f1565dac3cde25b75
+EBUILD mozc-2.20.2673.102.ebuild 8922 SHA256 fe3d0ea5bccb5e22934c621e8a30f7b181920e7037b047dfa08473f3bb6a805b SHA512 7167848180259f4730aec41ca8f56a2611894d6670ae0e806109e8b8aa12989637d09c9aa3c106cf4b99f88a7a4a5c230ce07b69af50a6c6a4a2a9b948d14985 WHIRLPOOL 60404395f9c37b6f0be34462167279716615ddfcfef7392616a6da23379e98dcaf1c295ec12cb276e3eac30662edccfe6a9f6dd5dcf191d793a6bf0ac5b3158e
+EBUILD mozc-9999.ebuild 8817 SHA256 38c8908784b01fb85be41365b8b668d57c8dee7a9ea140f4f978fac9f253a709 SHA512 509e26b5bac136458e8da631b8ef2cba9b0489be96dfb08f3ece836dab8e4f3e46db2b77c9bba8094db234d1ef5fcc864ef8b3e5f6200c1dc6cb52d09cebe51b WHIRLPOOL 75da7473481383e6664ed8d95f336163352862a3f77617b14edc79a3bb4aee9cef7a4a89dd3a8c8fb9df37030eccecf817a89a92a252840f3f02deaa5673ed5e
+MISC ChangeLog 3991 SHA256 40dc9da4e7d6d62958c610f045da2e78bdca028852617be136838e3cdb707fdb SHA512 ad3b884e40c14154afe299f353dde7cd3fc08555e281911a1b97b2da60e6e5a34c4de396b974b59bfd9cda4ca6068b74e0ce3cef24c3828d55b708c16fffbcbe WHIRLPOOL 99d04bfcd81c2cce998a72f71a3b6577650d413c02fb05b36ac2e82a8ab3fc625076ff51a5093b5f682fd1c2224b8d6af3813bb7684ed8891e74d2f9425dda9e
+MISC ChangeLog-2015 8901 SHA256 096cea82e38f33a34acfac0b7622c959de656cfe4f1cb3afd3f148e12f3e013d SHA512 2f9acbcf3e7eafd3a1b7052e9b0e7f9a41c565d876cb4eb78360964b3fb7acd9dee3b45ee6a3ed76fe04c00b175e56c63b0b83698c0dbfc6554ab4b474566e87 WHIRLPOOL eed311405f838d6daa955f118d9429db8508a1b08120bed39debe3af397c8bdd5100a6cda0c0b77ae48550407a6b2d49bb63f2c40f6faac62aa183c1479479d6
+MISC metadata.xml 1334 SHA256 a4f99e39449d176f6d38e09097c5df85be755c5747430bfdc41f0a7e1aedf276 SHA512 07979f2fb42667e6281f7617f88d86eae9117e7fb33203acb456379db9468992e2105e520c1ecb7e77c9ad79900daa8c11d57c53b03b5ea89f644dcca020f9de WHIRLPOOL 5c3c78f349c84e394d98d7468145b7ab6e73786b59621987f135ab8fdb6182418d26e0c9bcd18d458062a28d89d81f1bf7b7691fa40b46eb3594109356499207
diff --git a/app-i18n/mozc/files/50mozc-gentoo.el b/app-i18n/mozc/files/50mozc-gentoo.el
new file mode 100644
index 000000000000..121c62249eb7
--- /dev/null
+++ b/app-i18n/mozc/files/50mozc-gentoo.el
@@ -0,0 +1,4 @@
+;;; app-i18n/ibus-mozc site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'mozc-mode "mozc" nil t)
diff --git a/app-i18n/mozc/files/mozc-1.10.1390.102-drop-Werror.patch b/app-i18n/mozc/files/mozc-1.10.1390.102-drop-Werror.patch
new file mode 100644
index 000000000000..e254f38b8745
--- /dev/null
+++ b/app-i18n/mozc/files/mozc-1.10.1390.102-drop-Werror.patch
@@ -0,0 +1,12 @@
+diff --git a/gyp/common.gypi b/gyp/common.gypi
+index 6c176ff..3613b1b 100755
+--- a/gyp/common.gypi
++++ b/gyp/common.gypi
+@@ -58,7 +58,6 @@
+ # warning_cflags will be shared with Mac and Linux.
+ 'warning_cflags': [
+ '-Wall',
+- '-Werror',
+ '-Wno-char-subscripts',
+ '-Wno-sign-compare',
+ '-Wno-deprecated-declarations',
diff --git a/app-i18n/mozc/files/mozc-1.13.1651.102-gtk-renderer.patch b/app-i18n/mozc/files/mozc-1.13.1651.102-gtk-renderer.patch
new file mode 100644
index 000000000000..bff0822a602d
--- /dev/null
+++ b/app-i18n/mozc/files/mozc-1.13.1651.102-gtk-renderer.patch
@@ -0,0 +1,13 @@
+diff --git a/unix/ibus/mozc_engine.cc b/unix/ibus/mozc_engine.cc
+index e256ea4..534262e 100755
+--- a/unix/ibus/mozc_engine.cc
++++ b/unix/ibus/mozc_engine.cc
+@@ -250,8 +250,6 @@ MozcEngine::MozcEngine()
+ #ifdef ENABLE_GTK_RENDERER
+ gtk_candidate_window_handler_(new GtkCandidateWindowHandler(
+ new renderer::RendererClient())),
+-#else
+- gtk_candidate_window_handler_(NULL),
+ #endif // ENABLE_GTK_RENDERER
+ ibus_candidate_window_handler_(new IBusCandidateWindowHandler()),
+ preedit_method_(config::Config::ROMAN) {
diff --git a/app-i18n/mozc/files/mozc-2.20.2673.102-system_libraries.patch b/app-i18n/mozc/files/mozc-2.20.2673.102-system_libraries.patch
new file mode 100644
index 000000000000..2b2828b79997
--- /dev/null
+++ b/app-i18n/mozc/files/mozc-2.20.2673.102-system_libraries.patch
@@ -0,0 +1,291 @@
+--- /src/gyp/defines.gypi
++++ /src/gyp/defines.gypi
+@@ -71,6 +71,12 @@
+ # use_libibus represents if ibus library is used or not.
+ # This option is only for Linux.
+ 'use_libibus%': '0',
++
++ # use_libgtest represents if gtest library is used or not.
++ 'use_libgtest%': '0',
++
++ # use_libjsoncpp represents if jsoncpp library is used or not.
++ 'use_libjsoncpp%': '0',
+ },
+ 'target_defaults': {
+ 'defines': [
+--- /src/net/jsoncpp.gyp
++++ /src/net/jsoncpp.gyp
+@@ -31,32 +31,57 @@
+ 'targets': [
+ {
+ 'target_name': 'jsoncpp',
+- 'type': 'static_library',
+- 'variables': {
+- 'jsoncpp_root': '<(third_party_dir)/jsoncpp',
+- 'jsoncpp_srcs': [
+- '<(jsoncpp_root)/src/lib_json/json_reader.cpp',
+- '<(jsoncpp_root)/src/lib_json/json_value.cpp',
+- '<(jsoncpp_root)/src/lib_json/json_writer.cpp',
+- ],
+- 'jsoncpp_include_dirs': ['<(jsoncpp_root)/include'],
+- 'jsoncpp_additional_macros': ['JSON_USE_EXCEPTION=0'],
+- },
+- 'defines': [
+- '<@(jsoncpp_additional_macros)',
++ 'conditions': [
++ ['use_libjsoncpp==1', {
++ 'type': 'none',
++ 'variables': {
++ 'jsoncpp_additional_macros': ['JSON_USE_EXCEPTION=0'],
++ },
++ 'all_dependent_settings': {
++ 'defines': [
++ '<@(jsoncpp_additional_macros)',
++ ],
++ 'cflags': [
++ '<!@(pkg-config --cflags jsoncpp)',
++ ],
++ 'link_settings': {
++ 'libraries': [
++ '<!@(pkg-config --libs-only-l jsoncpp)',
++ ],
++ 'ldflags': [
++ '<!@(pkg-config --libs-only-L jsoncpp)',
++ ],
++ }
++ },
++ }, {
++ 'type': 'static_library',
++ 'variables': {
++ 'jsoncpp_root': '<(third_party_dir)/jsoncpp',
++ 'jsoncpp_srcs': [
++ '<(jsoncpp_root)/src/lib_json/json_reader.cpp',
++ '<(jsoncpp_root)/src/lib_json/json_value.cpp',
++ '<(jsoncpp_root)/src/lib_json/json_writer.cpp',
++ ],
++ 'jsoncpp_include_dirs': ['<(jsoncpp_root)/include'],
++ 'jsoncpp_additional_macros': ['JSON_USE_EXCEPTION=0'],
++ },
++ 'defines': [
++ '<@(jsoncpp_additional_macros)',
++ ],
++ 'sources': [
++ '<@(jsoncpp_srcs)',
++ 'jsoncpp.h',
++ ],
++ 'include_dirs': [
++ '<@(jsoncpp_include_dirs)',
++ ],
++ 'all_dependent_settings': {
++ 'defines': [
++ '<@(jsoncpp_additional_macros)',
++ ],
++ },
++ }],
+ ],
+- 'sources': [
+- '<@(jsoncpp_srcs)',
+- 'jsoncpp.h',
+- ],
+- 'include_dirs': [
+- '<@(jsoncpp_include_dirs)',
+- ],
+- 'all_dependent_settings': {
+- 'defines': [
+- '<@(jsoncpp_additional_macros)',
+- ],
+- },
+ },
+ ],
+ }
+--- /src/net/jsoncpp.h
++++ /src/net/jsoncpp.h
+@@ -35,7 +35,7 @@
+ // Mozc basically disables C++ exception.
+ #define JSON_USE_EXCEPTION 0
+ #endif // !JSON_USE_EXCEPTION
+-#include "third_party/jsoncpp/include/json/json.h"
++#include <json/json.h>
+ #define MOZC_JSONCPP_JSON_H_INCLUDED
+ #endif // !MOZC_JSONCPP_JSON_H_INCLUDED
+
+--- /src/testing/testing.gyp
++++ /src/testing/testing.gyp
+@@ -53,76 +53,111 @@
+ 'targets': [
+ {
+ 'target_name': 'testing',
+- 'type': 'static_library',
+- 'variables': {
+- 'gtest_defines': [
+- 'GTEST_LANG_CXX11=1',
+- 'GTEST_HAS_TR1_TUPLE=0', # disable tr1 tuple in favor of C++11 tuple.
+- ],
+- 'gtest_dir': '<(third_party_dir)/gtest/googletest',
+- 'gmock_dir': '<(third_party_dir)/gtest/googlemock',
+- 'conditions': [
+- ['_toolset=="target" and target_platform=="Android"', {
+- 'gtest_defines': [
+- 'GTEST_HAS_RTTI=0', # Android NDKr7 requires this.
+- 'GTEST_HAS_CLONE=0',
+- 'GTEST_HAS_GLOBAL_WSTRING=0',
+- 'GTEST_HAS_POSIX_RE=0',
+- 'GTEST_HAS_STD_WSTRING=0',
+- 'GTEST_OS_LINUX=1',
+- 'GTEST_OS_LINUX_ANDROID=1',
+- ],
+- }],
+- ],
+- },
+- 'sources': [
+- '<(gmock_dir)/src/gmock-cardinalities.cc',
+- '<(gmock_dir)/src/gmock-internal-utils.cc',
+- '<(gmock_dir)/src/gmock-matchers.cc',
+- '<(gmock_dir)/src/gmock-spec-builders.cc',
+- '<(gmock_dir)/src/gmock.cc',
+- '<(gtest_dir)/src/gtest-death-test.cc',
+- '<(gtest_dir)/src/gtest-filepath.cc',
+- '<(gtest_dir)/src/gtest-port.cc',
+- '<(gtest_dir)/src/gtest-printers.cc',
+- '<(gtest_dir)/src/gtest-test-part.cc',
+- '<(gtest_dir)/src/gtest-typed-test.cc',
+- '<(gtest_dir)/src/gtest.cc',
+- ],
+- 'include_dirs': [
+- '<(gmock_dir)',
+- '<(gmock_dir)/include',
+- '<(gtest_dir)',
+- '<(gtest_dir)/include',
+- ],
+- 'defines': [
+- '<@(gtest_defines)',
+- ],
+- 'all_dependent_settings': {
+- 'defines': [
+- '<@(gtest_defines)',
+- ],
+- 'include_dirs': [
+- '<(gmock_dir)/include',
+- '<(gtest_dir)/include',
+- ],
+- },
+ 'conditions': [
+- ['(_toolset=="target" and compiler_target=="clang") or '
+- '(_toolset=="host" and compiler_host=="clang")', {
+- 'cflags': [
+- '-Wno-missing-field-initializers',
+- '-Wno-unused-private-field',
++ ['use_libgtest==1', {
++ 'type': 'none',
++ 'variables': {
++ 'gtest_defines': [
++ 'GTEST_LANG_CXX11=1',
++ 'GTEST_HAS_TR1_TUPLE=0', # disable tr1 tuple in favor of C++11 tuple.
++ ],
++ 'conditions': [
++ ['_toolset=="target" and target_platform=="Android"', {
++ 'gtest_defines': [
++ 'GTEST_HAS_RTTI=0', # Android NDKr7 requires this.
++ 'GTEST_HAS_CLONE=0',
++ 'GTEST_HAS_GLOBAL_WSTRING=0',
++ 'GTEST_HAS_POSIX_RE=0',
++ 'GTEST_HAS_STD_WSTRING=0',
++ 'GTEST_OS_LINUX=1',
++ 'GTEST_OS_LINUX_ANDROID=1',
++ ],
++ }],
++ ],
++ },
++ 'all_dependent_settings': {
++ 'defines': [
++ '<@(gtest_defines)',
++ ],
++ 'link_settings': {
++ 'libraries': [
++ '-lgmock -lgtest',
++ ],
++ },
++ },
++ }, {
++ 'type': 'static_library',
++ 'variables': {
++ 'gtest_defines': [
++ 'GTEST_LANG_CXX11=1',
++ 'GTEST_HAS_TR1_TUPLE=0', # disable tr1 tuple in favor of C++11 tuple.
++ ],
++ 'gtest_dir': '<(third_party_dir)/gtest/googletest',
++ 'gmock_dir': '<(third_party_dir)/gtest/googlemock',
++ 'conditions': [
++ ['_toolset=="target" and target_platform=="Android"', {
++ 'gtest_defines': [
++ 'GTEST_HAS_RTTI=0', # Android NDKr7 requires this.
++ 'GTEST_HAS_CLONE=0',
++ 'GTEST_HAS_GLOBAL_WSTRING=0',
++ 'GTEST_HAS_POSIX_RE=0',
++ 'GTEST_HAS_STD_WSTRING=0',
++ 'GTEST_OS_LINUX=1',
++ 'GTEST_OS_LINUX_ANDROID=1',
++ ],
++ }],
++ ],
++ },
++ 'sources': [
++ '<(gmock_dir)/src/gmock-cardinalities.cc',
++ '<(gmock_dir)/src/gmock-internal-utils.cc',
++ '<(gmock_dir)/src/gmock-matchers.cc',
++ '<(gmock_dir)/src/gmock-spec-builders.cc',
++ '<(gmock_dir)/src/gmock.cc',
++ '<(gtest_dir)/src/gtest-death-test.cc',
++ '<(gtest_dir)/src/gtest-filepath.cc',
++ '<(gtest_dir)/src/gtest-port.cc',
++ '<(gtest_dir)/src/gtest-printers.cc',
++ '<(gtest_dir)/src/gtest-test-part.cc',
++ '<(gtest_dir)/src/gtest-typed-test.cc',
++ '<(gtest_dir)/src/gtest.cc',
++ ],
++ 'include_dirs': [
++ '<(gmock_dir)',
++ '<(gmock_dir)/include',
++ '<(gtest_dir)',
++ '<(gtest_dir)/include',
++ ],
++ 'defines': [
++ '<@(gtest_defines)',
+ ],
++ 'all_dependent_settings': {
++ 'defines': [
++ '<@(gtest_defines)',
++ ],
++ 'include_dirs': [
++ '<(gmock_dir)/include',
++ '<(gtest_dir)/include',
++ ],
++ },
++ 'conditions': [
++ ['(_toolset=="target" and compiler_target=="clang") or '
++ '(_toolset=="host" and compiler_host=="clang")', {
++ 'cflags': [
++ '-Wno-missing-field-initializers',
++ '-Wno-unused-private-field',
++ ],
++ }],
++ ],
++ 'xcode_settings': {
++ # Remove the force included file. This is not necessary for third
++ # party libraries, and it causes a build error.
++ 'OTHER_CFLAGS!' : [
++ '-include base/namespace.h',
++ ],
++ },
+ }],
+ ],
+- 'xcode_settings': {
+- # Remove the force included file. This is not necessary for third
+- # party libraries, and it causes a build error.
+- 'OTHER_CFLAGS!' : [
+- '-include base/namespace.h',
+- ],
+- },
+ },
+ {
+ 'target_name': 'gen_mozc_data_dir_header',
diff --git a/app-i18n/mozc/files/mozc-2.20.2673.102-tests_build.patch b/app-i18n/mozc/files/mozc-2.20.2673.102-tests_build.patch
new file mode 100644
index 000000000000..b8b4477437f8
--- /dev/null
+++ b/app-i18n/mozc/files/mozc-2.20.2673.102-tests_build.patch
@@ -0,0 +1,27 @@
+--- /src/net/json_util_test.cc
++++ /src/net/json_util_test.cc
+@@ -784,13 +784,13 @@
+ for (size_t i = 0; i < arraysize(kNumS32ValueKeys); ++i) {
+ {
+ Json::Value json_value;
+- json_value[kNumS32ValueKeys[i]] = -2147483649ll;
++ json_value[kNumS32ValueKeys[i]] = static_cast<Json::Value::Int64>(-2147483649ll);
+ TestMsg msg;
+ EXPECT_FALSE(JsonUtil::JsonValueToProtobufMessage(json_value, &msg));
+ }
+ {
+ Json::Value json_value;
+- json_value[kNumS32ValueKeys[i]] = 2147483648ull;
++ json_value[kNumS32ValueKeys[i]] = static_cast<Json::Value::UInt64>(2147483648ull);
+ TestMsg msg;
+ EXPECT_FALSE(JsonUtil::JsonValueToProtobufMessage(json_value, &msg));
+ }
+@@ -805,7 +805,7 @@
+ }
+ {
+ Json::Value json_value;
+- json_value[kNumU32ValueKeys[i]] = 4294967296ull;
++ json_value[kNumU32ValueKeys[i]] = static_cast<Json::Value::UInt64>(4294967296ull);
+ TestMsg msg;
+ EXPECT_FALSE(JsonUtil::JsonValueToProtobufMessage(json_value, &msg));
+ }
diff --git a/app-i18n/mozc/files/mozc-2.20.2673.102-tests_skipping.patch b/app-i18n/mozc/files/mozc-2.20.2673.102-tests_skipping.patch
new file mode 100644
index 000000000000..28c5486de50d
--- /dev/null
+++ b/app-i18n/mozc/files/mozc-2.20.2673.102-tests_skipping.patch
@@ -0,0 +1,70 @@
+Disable test leaving mozc_server orphan process.
+
+--- /src/unix/ibus/mozc_engine_test.cc
++++ /src/unix/ibus/mozc_engine_test.cc
+@@ -41,65 +41,5 @@
+ namespace mozc {
+ namespace ibus {
+
+-class LaunchToolTest : public testing::Test {
+- public:
+- LaunchToolTest() {
+- g_type_init();
+- }
+-
+- protected:
+- virtual void SetUp() {
+- mozc_engine_.reset(new MozcEngine());
+-
+- mock_ = new client::ClientMock();
+- mock_->ClearFunctionCounter();
+- mozc_engine_->client_.reset(mock_);
+- }
+-
+- virtual void TearDown() {
+- mozc_engine_.reset();
+- }
+-
+- client::ClientMock* mock_;
+- unique_ptr<MozcEngine> mozc_engine_;
+-
+- private:
+- DISALLOW_COPY_AND_ASSIGN(LaunchToolTest);
+-};
+-
+-TEST_F(LaunchToolTest, LaunchToolTest) {
+- commands::Output output;
+-
+- // Launch config dialog
+- mock_->ClearFunctionCounter();
+- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", true);
+- output.set_launch_tool_mode(commands::Output::CONFIG_DIALOG);
+- EXPECT_TRUE(mozc_engine_->LaunchTool(output));
+-
+- // Launch dictionary tool
+- mock_->ClearFunctionCounter();
+- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", true);
+- output.set_launch_tool_mode(commands::Output::DICTIONARY_TOOL);
+- EXPECT_TRUE(mozc_engine_->LaunchTool(output));
+-
+- // Launch word register dialog
+- mock_->ClearFunctionCounter();
+- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", true);
+- output.set_launch_tool_mode(commands::Output::WORD_REGISTER_DIALOG);
+- EXPECT_TRUE(mozc_engine_->LaunchTool(output));
+-
+- // Launch no tool(means do nothing)
+- mock_->ClearFunctionCounter();
+- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", false);
+- output.set_launch_tool_mode(commands::Output::NO_TOOL);
+- EXPECT_FALSE(mozc_engine_->LaunchTool(output));
+-
+- // Something occurring in client::Client::LaunchTool
+- mock_->ClearFunctionCounter();
+- mock_->SetBoolFunctionReturn("LaunchToolWithProtoBuf", false);
+- output.set_launch_tool_mode(commands::Output::CONFIG_DIALOG);
+- EXPECT_FALSE(mozc_engine_->LaunchTool(output));
+-}
+-
+ } // namespace ibus
+ } // namespace mozc
diff --git a/app-i18n/mozc/files/mozc-ibus-1.5.4.patch b/app-i18n/mozc/files/mozc-ibus-1.5.4.patch
new file mode 100644
index 000000000000..619b1d251507
--- /dev/null
+++ b/app-i18n/mozc/files/mozc-ibus-1.5.4.patch
@@ -0,0 +1,299 @@
+Index: engine_interface.h
+===================================================================
+--- unix/ibus/engine_interface.h (revision 177)
++++ unix/ibus/engine_interface.h (working copy)
+@@ -106,6 +106,11 @@
+ gint y,
+ gint w,
+ gint h) = 0;
++
++ // The interface function for the "set-content-type" signal
++ virtual void SetContentType(IBusEngine *engine,
++ guint purpose,
++ guint hints) = 0;
+ };
+
+ } // namespace ibus
+Index: engine_registrar.cc
+===================================================================
+--- unix/ibus/engine_registrar.cc (revision 177)
++++ unix/ibus/engine_registrar.cc (working copy)
+@@ -63,7 +63,9 @@
+ engine_class->reset = Reset;
+ engine_class->set_capabilities = SetCapabilities;
+ engine_class->set_cursor_location = SetCursorLocation;
+-
++#if defined(MOZC_ENABLE_IBUS_INPUT_PURPOSE)
++ engine_class->set_content_type = SetContentType;
++#endif // MOZC_ENABLE_IBUS_INPUT_PURPOSE
+ return true;
+ }
+
+@@ -87,6 +89,9 @@
+ engine_class->reset = NULL;
+ engine_class->set_capabilities = NULL;
+ engine_class->set_cursor_location = NULL;
++#if defined(MOZC_ENABLE_IBUS_INPUT_PURPOSE)
++ engine_class->set_content_type = NULL;
++#endif // MOZC_ENABLE_IBUS_INPUT_PURPOSE
+
+ mozc::ibus::EngineInterface *previous = g_engine;
+ g_engine = NULL;
+@@ -179,5 +184,12 @@
+ g_engine->SetCursorLocation(engine, x, y, w, h);
+ }
+
++void EngineRegistrar::SetContentType(
++ IBusEngine *engine,
++ guint purpose,
++ guint hints) {
++ g_engine->SetContentType(engine, purpose, hints);
++}
++
+ } // namespace ibus
+ } // namespace mozc
+Index: engine_registrar.h
+===================================================================
+--- unix/ibus/engine_registrar.h (revision 177)
++++ unix/ibus/engine_registrar.h (working copy)
+@@ -84,6 +84,9 @@
+ gint y,
+ gint w,
+ gint h);
++ static void SetContentType(IBusEngine *engine,
++ guint purpose,
++ guint hints);
+ };
+
+ } // namespace ibus
+Index: ibus_header.h
+===================================================================
+--- unix/ibus/ibus_header.h (revision 177)
++++ unix/ibus/ibus_header.h (working copy)
+@@ -36,5 +36,10 @@
+ #error "ibus-mozc now requires IBus>=1.4.1"
+ #endif // libibus (<1.4.1)
+
++#if IBUS_CHECK_VERSION(1, 5, 4)
++#if !defined(MOZC_ENABLE_IBUS_INPUT_PURPOSE)
++#define MOZC_ENABLE_IBUS_INPUT_PURPOSE
++#endif // !MOZC_ENABLE_IBUS_INPUT_PURPOSE
++#endif // libibus(>=1.5.4)
+
+ #endif // MOZC_UNIX_IBUS_IBUS_HEADER_H_
+Index: mozc_engine.cc
+===================================================================
+--- unix/ibus/mozc_engine.cc (revision 177)
++++ unix/ibus/mozc_engine.cc (working copy)
+@@ -372,6 +372,7 @@
+
+ void MozcEngine::FocusOut(IBusEngine *engine) {
+ GetCandidateWindowHandler(engine)->Hide(engine);
++ property_handler_->ResetContentType(engine);
+
+ // Do not call SubmitSession or RevertSession. Preedit string will commit on
+ // Focus Out event automatically by ibus_engine_update_preedit_text_with_mode
+@@ -397,6 +398,11 @@
+ VLOG(2) << "keyval: " << keyval
+ << ", keycode: " << keycode
+ << ", modifiers: " << modifiers;
++ if (property_handler_->IsDisabled()) {
++ // It is each enginze's responsibility for ignoreing keyevents on
++ // the password field on the locked screen since IBus 1.5.4.
++ return FALSE;
++ }
+
+ // Send current caret location to mozc_server to manage suggest window
+ // position.
+@@ -501,6 +507,18 @@
+ // Do nothing
+ }
+
++void MozcEngine::SetContentType(IBusEngine *engine,
++ guint purpose,
++ guint hints) {
++ const bool prev_disabled =
++ property_handler_->IsDisabled();
++ property_handler_->UpdateContentType(engine);
++ if (!prev_disabled && property_handler_->IsDisabled()) {
++ // Make sure on-going composition is reverted.
++ RevertSession(engine);
++ }
++}
++
+ GType MozcEngine::GetType() {
+ static GType type = 0;
+
+Index: mozc_engine.h
+===================================================================
+--- unix/ibus/mozc_engine.h (revision 177)
++++ unix/ibus/mozc_engine.h (working copy)
+@@ -99,6 +99,9 @@
+ gint y,
+ gint w,
+ gint h);
++ void SetContentType(IBusEngine *engine,
++ guint purpose,
++ guint hints);
+
+ // Returns the GType which this class represents.
+ static GType GetType();
+Index: property_handler.cc
+===================================================================
+--- unix/ibus/property_handler.cc (revision 177)
++++ unix/ibus/property_handler.cc (working copy)
+@@ -61,6 +61,19 @@
+ bool IsMozcToolAvailable() {
+ return FileUtil::FileExists(SystemUtil::GetToolPath());
+ }
++
++bool GetDisabled(IBusEngine *engine) {
++ bool disabled = false;
++#if defined(MOZC_ENABLE_IBUS_INPUT_PURPOSE)
++ guint purpose = IBUS_INPUT_PURPOSE_FREE_FORM;
++ guint hints = IBUS_INPUT_HINT_NONE;
++ ibus_engine_get_content_type(engine, &purpose, &hints);
++ disabled = (purpose == IBUS_INPUT_PURPOSE_PASSWORD ||
++ purpose == IBUS_INPUT_PURPOSE_PIN);
++#endif // MOZC_ENABLE_IBUS_INPUT_PURPOSE
++ return disabled;
++}
++
+ } // namespace
+
+ PropertyHandler::PropertyHandler(MessageTranslatorInterface *translator,
+@@ -71,7 +84,8 @@
+ client_(client),
+ translator_(translator),
+ original_composition_mode_(kMozcEngineInitialCompositionMode),
+- is_activated_(true) {
++ is_activated_(true),
++ is_disabled_(false) {
+
+ AppendCompositionPropertyToPanel();
+ #ifndef OS_CHROMEOS
+@@ -105,6 +119,7 @@
+
+ void PropertyHandler::Register(IBusEngine *engine) {
+ ibus_engine_register_properties(engine, prop_root_);
++ UpdateContentType(engine);
+ }
+
+ // TODO(nona): do not use kMozcEngine*** directory.
+@@ -228,8 +243,34 @@
+ ibus_prop_list_append(prop_root_, prop_mozc_tool_);
+ }
+
++void PropertyHandler::UpdateContentTypeImpl(IBusEngine *engine,
++ bool disabled) {
++ const bool prev_is_disabled = is_disabled_;
++ is_disabled_ = disabled;
++ if (prev_is_disabled == is_disabled_) {
++ return;
++ }
++ const commands::CompositionMode visible_mode =
++ (prev_is_disabled && !is_disabled_ && IsActivated())
++ ? original_composition_mode_ :
++ kMozcEnginePropertyIMEOffState->composition_mode;
++ UpdateCompositionModeIcon(engine, visible_mode);
++}
++
++void PropertyHandler::ResetContentType(IBusEngine *engine) {
++ UpdateContentTypeImpl(engine, false);
++}
++
++void PropertyHandler::UpdateContentType(IBusEngine *engine) {
++ UpdateContentTypeImpl(engine, GetDisabled(engine));
++}
++
+ void PropertyHandler::Update(IBusEngine *engine,
+ const commands::Output &output) {
++ if (IsDisabled()) {
++ return;
++ }
++
+ if (output.has_status() &&
+ (output.status().activated() != is_activated_ ||
+ output.status().mode() != original_composition_mode_)) {
+@@ -325,6 +366,10 @@
+ const gchar *property_name,
+ guint property_state) {
+ #ifndef OS_CHROMEOS
++ if (IsDisabled()) {
++ return;
++ }
++
+ if (prop_mozc_tool_) {
+ for (guint prop_index = 0; ; ++prop_index) {
+ IBusProperty *prop = ibus_prop_list_get(
+@@ -371,9 +416,13 @@
+ }
+
+ bool PropertyHandler::IsActivated() const {
+- return is_activated_;
++ return is_activated_ && !IsDisabled();
+ }
+
++bool PropertyHandler::IsDisabled() const {
++ return is_disabled_;
++}
++
+ commands::CompositionMode PropertyHandler::GetOriginalCompositionMode() const {
+ return original_composition_mode_;
+ }
+Index: property_handler.h
+===================================================================
+--- unix/ibus/property_handler.h (revision 177)
++++ unix/ibus/property_handler.h (working copy)
+@@ -54,14 +54,19 @@
+ virtual ~PropertyHandler();
+
+ virtual void Register(IBusEngine *engine);
++ virtual void ResetContentType(IBusEngine *engine);
++ virtual void UpdateContentType(IBusEngine *engine);
+ virtual void Update(IBusEngine *engine, const commands::Output &output);
+ virtual void ProcessPropertyActivate(IBusEngine *engine,
+ const gchar *property_name,
+ guint property_state);
+ virtual bool IsActivated() const;
++ virtual bool IsDisabled() const;
+ virtual commands::CompositionMode GetOriginalCompositionMode() const;
+
+ private:
++ void UpdateContentTypeImpl(IBusEngine *engine, bool disabled);
++
+ // Appends composition properties into panel
+ void AppendCompositionPropertyToPanel();
+ // Appends tool properties into panel
+@@ -79,6 +84,7 @@
+ scoped_ptr<MessageTranslatorInterface> translator_;
+ commands::CompositionMode original_composition_mode_;
+ bool is_activated_;
++ bool is_disabled_;
+ };
+
+ } // namespace ibus
+Index: property_handler_interface.h
+===================================================================
+--- unix/ibus/property_handler_interface.h (revision 177)
++++ unix/ibus/property_handler_interface.h (working copy)
+@@ -45,6 +45,9 @@
+ // Registers current properties into engine.
+ virtual void Register(IBusEngine *engine) ABSTRACT;
+
++ virtual void ResetContentType(IBusEngine *engine) ABSTRACT;
++ virtual void UpdateContentType(IBusEngine *engine) ABSTRACT;
++
+ // Update properties.
+ virtual void Update(IBusEngine *engine,
+ const commands::Output &output) ABSTRACT;
+@@ -55,6 +58,9 @@
+ // Returns if IME is activated or not.
+ virtual bool IsActivated() const ABSTRACT;
+
++ // Returns if IME is forcesully disabled, e.g. on a password field.
++ virtual bool IsDisabled() const ABSTRACT;
++
+ // Returns original composition mode before.
+ virtual commands::CompositionMode GetOriginalCompositionMode() const ABSTRACT;
+ };
diff --git a/app-i18n/mozc/metadata.xml b/app-i18n/mozc/metadata.xml
new file mode 100644
index 000000000000..f5031cbbd25c
--- /dev/null
+++ b/app-i18n/mozc/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+Mozc is a Japanese Input Method Editor (IME) designed for multi-platform such as Chromium OS, Windows, Mac and Linux. This open-source project originates from Google Japanese Input.
+</longdescription>
+ <use>
+ <flag name="fcitx">Enable support for <pkg>app-i18n/fcitx</pkg></flag>
+ <flag name="fcitx4">Enable support for <pkg>app-i18n/fcitx</pkg> 4</flag>
+ <flag name="gui">Install graphical user interface tool (mozc_tool)</flag>
+ <flag name="handwriting-tegaki">Use handwriting recognition model from <pkg>app-i18n/tegaki-zinnia-japanese</pkg></flag>
+ <flag name="handwriting-tomoe">Use handwriting recognition model from <pkg>app-i18n/zinnia-tomoe</pkg></flag>
+ <flag name="ibus">Enable support for <pkg>app-i18n/ibus</pkg></flag>
+ <flag name="renderer">Enable native candidate window</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">jsoncpp</remote-id>
+ <remote-id type="github">google/mozc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/mozc/mozc-1.10.1390.102-r1.ebuild b/app-i18n/mozc/mozc-1.10.1390.102-r1.ebuild
new file mode 100644
index 000000000000..7aa21965a5f9
--- /dev/null
+++ b/app-i18n/mozc/mozc-1.10.1390.102-r1.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+inherit elisp-common eutils multilib multiprocessing python-single-r1 toolchain-funcs
+
+DESCRIPTION="The Mozc engine for IBus Framework"
+HOMEPAGE="https://github.com/google/mozc"
+
+PROTOBUF_VER="2.5.0"
+GMOCK_VER="1.6.0"
+GTEST_VER="1.6.0"
+JSONCPP_VER="0.6.0-rc2"
+MOZC_URL="https://mozc.googlecode.com/files/${P}.tar.bz2"
+PROTOBUF_URL="https://protobuf.googlecode.com/files/protobuf-${PROTOBUF_VER}.tar.bz2"
+GMOCK_URL="https://googlemock.googlecode.com/files/gmock-${GMOCK_VER}.zip"
+GTEST_URL="https://googletest.googlecode.com/files/gtest-${GTEST_VER}.zip"
+JSONCPP_URL="mirror://sourceforge/jsoncpp/jsoncpp-src-${JSONCPP_VER}.tar.gz"
+SRC_URI="${MOZC_URL} ${PROTOBUF_URL}
+ test? ( ${GMOCK_URL} ${GTEST_URL} ${JSONCPP_URL} )"
+
+LICENSE="BSD ipadic public-domain unicode"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="emacs +ibus +qt4 renderer test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/openssl:0=
+ x11-libs/libxcb
+ emacs? ( virtual/emacs )
+ ibus? ( >=app-i18n/ibus-1.4.1 )
+ renderer? ( x11-libs/gtk+:2 )
+ qt4? (
+ dev-qt/qtgui:4
+ app-i18n/zinnia
+ )
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+BUILDTYPE="${BUILDTYPE:-Release}"
+
+RESTRICT="test"
+
+SITEFILE=50${PN}-gentoo.el
+
+src_unpack() {
+ unpack $(basename ${MOZC_URL})
+
+ cd "${S}"/protobuf
+ unpack $(basename ${PROTOBUF_URL})
+ mv protobuf-${PROTOBUF_VER} files || die
+
+ if use test; then
+ cd "${S}"/third_party
+ unpack $(basename ${GMOCK_URL}) $(basename ${GTEST_URL}) \
+ $(basename ${JSONCPP_URL})
+ mv gmock-${GMOCK_VER} gmock || die
+ mv gtest-${GTEST_VER} gtest || die
+ mv jsoncpp-src-${JSONCPP_VER} jsoncpp || die
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-drop-Werror.patch
+ epatch "${FILESDIR}"/${PN}-ibus-1.5.4.patch
+ epatch_user
+}
+
+src_configure() {
+ local myconf="--server_dir=/usr/$(get_libdir)/mozc"
+
+ if ! use qt4 ; then
+ myconf+=" --noqt"
+ export GYP_DEFINES="use_libzinnia=0"
+ fi
+
+ if ! use renderer ; then
+ export GYP_DEFINES="${GYP_DEFINES} enable_gtk_renderer=0"
+ fi
+
+ # export GYP_DEFINES="${GYP_DEFINES} use_libprotobuf=1"
+
+ "${PYTHON}" build_mozc.py gyp ${myconf} || die "gyp failed"
+}
+
+src_compile() {
+ tc-export CC CXX AR AS RANLIB LD
+
+ local my_makeopts=$(makeopts_jobs)
+ # This is for a safety. -j without a number, makeopts_jobs returns 999.
+ local myjobs=-j${my_makeopts/999/1}
+
+ local mytarget="server/server.gyp:mozc_server"
+ use emacs && mytarget="${mytarget} unix/emacs/emacs.gyp:mozc_emacs_helper"
+ use ibus && mytarget="${mytarget} unix/ibus/ibus.gyp:ibus_mozc"
+ use renderer && mytarget="${mytarget} renderer/renderer.gyp:mozc_renderer"
+ if use qt4 ; then
+ export QTDIR="${EPREFIX}/usr"
+ mytarget="${mytarget} gui/gui.gyp:mozc_tool"
+ fi
+
+ V=1 "${PYTHON}" build_mozc.py build_tools -c "${BUILDTYPE}" ${myjobs} || die
+ V=1 "${PYTHON}" build_mozc.py build -c "${BUILDTYPE}" ${mytarget} ${myjobs} || die
+
+ if use emacs ; then
+ elisp-compile unix/emacs/*.el || die
+ fi
+}
+
+src_test() {
+ tc-export CC CXX AR AS RANLIB LD
+ V=1 "${PYTHON}" build_mozc.py runtests -c "${BUILDTYPE}" || die
+}
+
+src_install() {
+ if use emacs ; then
+ dobin "out_linux/${BUILDTYPE}/mozc_emacs_helper" || die
+ elisp-install ${PN} unix/emacs/*.{el,elc} || die
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${PN} || die
+ fi
+
+ if use ibus ; then
+ exeinto /usr/libexec || die
+ newexe "out_linux/${BUILDTYPE}/ibus_mozc" ibus-engine-mozc || die
+ insinto /usr/share/ibus/component || die
+ doins "out_linux/${BUILDTYPE}/obj/gen/unix/ibus/mozc.xml" || die
+ insinto /usr/share/ibus-mozc || die
+ (
+ cd data/images/unix
+ newins ime_product_icon_opensource-32.png product_icon.png || die
+ for f in ui-*
+ do
+ newins ${f} ${f/ui-} || die
+ done
+ )
+
+ fi
+
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_server" || die
+
+ if use qt4 ; then
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_tool" || die
+ fi
+
+ if use renderer ; then
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_renderer" || die
+ fi
+}
+
+pkg_postinst() {
+ if use emacs ; then
+ elisp-site-regen
+ elog "You can use mozc-mode via LEIM (Library of Emacs Input Method)."
+ elog "Write the following settings into your init file (~/.emacs.d/init.el"
+ elog "or ~/.emacs) in order to use mozc-mode by default, or you can call"
+ elog "\`set-input-method' and set \"japanese-mozc\" anytime you have loaded"
+ elog "mozc.el"
+ elog
+ elog " (require 'mozc)"
+ elog " (set-language-environment \"Japanese\")"
+ elog " (setq default-input-method \"japanese-mozc\")"
+ elog
+ elog "Having the above settings, just type C-\\ which is bound to"
+ elog "\`toggle-input-method' by default."
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/app-i18n/mozc/mozc-1.13.1651.102.ebuild b/app-i18n/mozc/mozc-1.13.1651.102.ebuild
new file mode 100644
index 000000000000..6fa63db9ed91
--- /dev/null
+++ b/app-i18n/mozc/mozc-1.13.1651.102.ebuild
@@ -0,0 +1,181 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+inherit elisp-common eutils multilib multiprocessing python-single-r1 toolchain-funcs
+
+DESCRIPTION="The Mozc engine for IBus Framework"
+HOMEPAGE="https://github.com/google/mozc"
+
+PROTOBUF_VER="2.5.0"
+GMOCK_VER="1.6.0"
+GTEST_VER="1.6.0"
+JSONCPP_VER="0.6.0-rc2"
+GYP_DATE="20140602"
+MOZC_URL="https://mozc.googlecode.com/files/${P}.tar.bz2"
+PROTOBUF_URL="https://protobuf.googlecode.com/files/protobuf-${PROTOBUF_VER}.tar.bz2"
+GMOCK_URL="https://googlemock.googlecode.com/files/gmock-${GMOCK_VER}.zip"
+GTEST_URL="https://googletest.googlecode.com/files/gtest-${GTEST_VER}.zip"
+JSONCPP_URL="mirror://sourceforge/jsoncpp/jsoncpp-src-${JSONCPP_VER}.tar.gz"
+GYP_URL="https://dev.gentoo.org/~naota/files/gyp-${GYP_DATE}.tar.bz2"
+SRC_URI="${MOZC_URL} ${PROTOBUF_URL} ${GYP_URL}
+ test? ( ${GMOCK_URL} ${GTEST_URL} ${JSONCPP_URL} )"
+
+LICENSE="BSD ipadic public-domain unicode"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="emacs +ibus +qt4 renderer test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/openssl:0=
+ >=dev-libs/protobuf-2.5.0
+ x11-libs/libxcb
+ emacs? ( virtual/emacs )
+ ibus? ( >=app-i18n/ibus-1.4.1 )
+ renderer? ( x11-libs/gtk+:2 )
+ qt4? (
+ dev-qt/qtgui:4
+ app-i18n/zinnia
+ )
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+BUILDTYPE="${BUILDTYPE:-Release}"
+
+RESTRICT="test"
+
+SITEFILE=50${PN}-gentoo.el
+
+src_unpack() {
+ unpack $(basename ${MOZC_URL})
+
+ unpack $(basename ${GYP_URL})
+ mv gyp-${GYP_DATE}/* "${S}"/third_party/gyp || die
+
+ cd "${S}"/protobuf
+ unpack $(basename ${PROTOBUF_URL})
+ mv protobuf-${PROTOBUF_VER} files || die
+
+ if use test; then
+ cd "${S}"/third_party
+ unpack $(basename ${GMOCK_URL}) $(basename ${GTEST_URL}) \
+ $(basename ${JSONCPP_URL})
+ mv gmock-${GMOCK_VER} gmock || die
+ mv gtest-${GTEST_VER} gtest || die
+ mv jsoncpp-src-${JSONCPP_VER} jsoncpp || die
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gtk-renderer.patch
+ epatch_user
+}
+
+src_configure() {
+ local myconf="--server_dir=/usr/$(get_libdir)/mozc"
+
+ if ! use qt4 ; then
+ myconf+=" --noqt"
+ export GYP_DEFINES="use_libzinnia=0"
+ fi
+
+ if ! use renderer ; then
+ export GYP_DEFINES="${GYP_DEFINES} enable_gtk_renderer=0"
+ fi
+
+ export GYP_DEFINES="${GYP_DEFINES} use_libprotobuf=1"
+
+ "${PYTHON}" build_mozc.py gyp ${myconf} || die "gyp failed"
+}
+
+src_compile() {
+ tc-export CC CXX AR AS RANLIB LD
+
+ local my_makeopts=$(makeopts_jobs)
+ # This is for a safety. -j without a number, makeopts_jobs returns 999.
+ local myjobs=-j${my_makeopts/999/1}
+
+ local mytarget="server/server.gyp:mozc_server"
+ use emacs && mytarget="${mytarget} unix/emacs/emacs.gyp:mozc_emacs_helper"
+ use ibus && mytarget="${mytarget} unix/ibus/ibus.gyp:ibus_mozc"
+ use renderer && mytarget="${mytarget} renderer/renderer.gyp:mozc_renderer"
+ if use qt4 ; then
+ export QTDIR="${EPREFIX}/usr"
+ mytarget="${mytarget} gui/gui.gyp:mozc_tool"
+ fi
+
+ V=1 "${PYTHON}" build_mozc.py build_tools -c "${BUILDTYPE}" ${myjobs} || die
+ V=1 "${PYTHON}" build_mozc.py build -c "${BUILDTYPE}" ${mytarget} ${myjobs} || die
+
+ if use emacs ; then
+ elisp-compile unix/emacs/*.el || die
+ fi
+}
+
+src_test() {
+ tc-export CC CXX AR AS RANLIB LD
+ V=1 "${PYTHON}" build_mozc.py runtests -c "${BUILDTYPE}" || die
+}
+
+src_install() {
+ if use emacs ; then
+ dobin "out_linux/${BUILDTYPE}/mozc_emacs_helper" || die
+ elisp-install ${PN} unix/emacs/*.{el,elc} || die
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${PN} || die
+ fi
+
+ if use ibus ; then
+ exeinto /usr/$(get_libdir)/ibus-mozc || die
+ newexe "out_linux/${BUILDTYPE}/ibus_mozc" ibus-engine-mozc || die
+ insinto /usr/share/ibus/component || die
+ doins "out_linux/${BUILDTYPE}/obj/gen/unix/ibus/mozc.xml" || die
+ insinto /usr/share/ibus-mozc || die
+ (
+ cd data/images/unix
+ newins ime_product_icon_opensource-32.png product_icon.png || die
+ for f in ui-*
+ do
+ newins ${f} ${f/ui-} || die
+ done
+ )
+
+ fi
+
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_server" || die
+
+ if use qt4 ; then
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_tool" || die
+ fi
+
+ if use renderer ; then
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_renderer" || die
+ fi
+}
+
+pkg_postinst() {
+ if use emacs ; then
+ elisp-site-regen
+ elog "You can use mozc-mode via LEIM (Library of Emacs Input Method)."
+ elog "Write the following settings into your init file (~/.emacs.d/init.el"
+ elog "or ~/.emacs) in order to use mozc-mode by default, or you can call"
+ elog "\`set-input-method' and set \"japanese-mozc\" anytime you have loaded"
+ elog "mozc.el"
+ elog
+ elog " (require 'mozc)"
+ elog " (set-language-environment \"Japanese\")"
+ elog " (setq default-input-method \"japanese-mozc\")"
+ elog
+ elog "Having the above settings, just type C-\\ which is bound to"
+ elog "\`toggle-input-method' by default."
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/app-i18n/mozc/mozc-2.16.2037.102.ebuild b/app-i18n/mozc/mozc-2.16.2037.102.ebuild
new file mode 100644
index 000000000000..cb43400250d9
--- /dev/null
+++ b/app-i18n/mozc/mozc-2.16.2037.102.ebuild
@@ -0,0 +1,230 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+PLOCALES="de ja zh_CN zh_TW"
+inherit elisp-common eutils l10n multilib multiprocessing python-single-r1 toolchain-funcs
+
+DESCRIPTION="The Mozc engine for IBus Framework"
+HOMEPAGE="https://github.com/google/mozc"
+
+PROTOBUF_VER="2.5.0"
+GMOCK_VER="1.6.0"
+GTEST_VER="1.6.0"
+JSONCPP_VER="0.6.0-rc2"
+GYP_DATE="20140602"
+JAPANESE_USAGE_DICT_VER="10"
+FCITX_PATCH_VER="2"
+FCITX_PATCH="fcitx-mozc-${PV}.${FCITX_PATCH_VER}.patch"
+MOZC_URL="https://dev.gentoo.org/~naota/files/${P}.tar.bz2"
+PROTOBUF_URL="https://protobuf.googlecode.com/files/protobuf-${PROTOBUF_VER}.tar.bz2"
+GMOCK_URL="https://googlemock.googlecode.com/files/gmock-${GMOCK_VER}.zip"
+GTEST_URL="https://googletest.googlecode.com/files/gtest-${GTEST_VER}.zip"
+JSONCPP_URL="mirror://sourceforge/jsoncpp/jsoncpp-src-${JSONCPP_VER}.tar.gz"
+GYP_URL="https://dev.gentoo.org/~naota/files/gyp-${GYP_DATE}.tar.bz2"
+JAPANESE_USAGE_DICT_URL="https://dev.gentoo.org/~naota/files/japanese-usage-dictionary-${JAPANESE_USAGE_DICT_VER}.tar.bz2"
+FCITX_PATCH_URL="http://download.fcitx-im.org/fcitx-mozc/${FCITX_PATCH}"
+SRC_URI="${MOZC_URL} ${PROTOBUF_URL} ${GYP_URL} ${JAPANESE_USAGE_DICT_URL}
+ fcitx? ( ${FCITX_PATCH_URL} )
+ test? ( ${GMOCK_URL} ${GTEST_URL} ${JSONCPP_URL} )"
+
+LICENSE="BSD ipadic public-domain unicode"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="emacs fcitx +ibus +qt4 renderer test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="app-i18n/tegaki-zinnia-japanese
+ dev-libs/glib:2
+ >=dev-libs/protobuf-2.5.0
+ x11-libs/libxcb
+ emacs? ( virtual/emacs )
+ fcitx? ( app-i18n/fcitx )
+ ibus? (
+ >=app-i18n/ibus-1.4.1
+ qt4? ( app-i18n/ibus-qt )
+ )
+ renderer? ( x11-libs/gtk+:2 )
+ qt4? (
+ dev-qt/qtgui:4
+ app-i18n/zinnia
+ )
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+ dev-util/ninja
+ virtual/pkgconfig"
+
+BUILDTYPE="${BUILDTYPE:-Release}"
+
+RESTRICT="test"
+
+SITEFILE=50${PN}-gentoo.el
+
+src_unpack() {
+ unpack $(basename ${MOZC_URL})
+
+ unpack $(basename ${GYP_URL})
+ unpack $(basename ${JAPANESE_USAGE_DICT_URL})
+ mv gyp-${GYP_DATE} "${S}"/third_party/gyp || die
+ mv japanese-usage-dictionary-${JAPANESE_USAGE_DICT_VER} "${S}"/third_party/japanese_usage_dictionary || die
+
+ cd "${S}"/protobuf
+ unpack $(basename ${PROTOBUF_URL})
+ mv protobuf-${PROTOBUF_VER} files || die
+
+ if use test; then
+ cd "${S}"/third_party
+ unpack $(basename ${GMOCK_URL}) $(basename ${GTEST_URL}) \
+ $(basename ${JSONCPP_URL})
+ mv gmock-${GMOCK_VER} gmock || die
+ mv gtest-${GTEST_VER} gtest || die
+ mv jsoncpp-src-${JSONCPP_VER} jsoncpp || die
+ fi
+}
+
+src_prepare() {
+ # verbose build
+ sed -i -e "/RunOrDie(\[make_command\]/s/build_args/build_args + [\"-v\"]/" \
+ build_mozc.py || die
+ sed -i -e "s/<!(which clang)/$(tc-getCC)/" \
+ -e "s/<!(which clang++)/$(tc-getCXX)/" \
+ gyp/common.gypi || die
+ if use fcitx; then
+ EPATCH_OPTS="-p2" epatch "${DISTDIR}/${FCITX_PATCH}"
+ fi
+ epatch_user
+}
+
+src_configure() {
+ local myconf="--server_dir=/usr/$(get_libdir)/mozc"
+
+ if ! use qt4 ; then
+ myconf+=" --noqt"
+ export GYP_DEFINES="use_libzinnia=0"
+ fi
+
+ if ! use renderer ; then
+ export GYP_DEFINES="${GYP_DEFINES} enable_gtk_renderer=0"
+ fi
+
+ export GYP_DEFINES="${GYP_DEFINES} use_libprotobuf=1 compiler_target=gcc compiler_host=gcc"
+
+ tc-export CC CXX AR AS RANLIB LD NM
+
+ "${PYTHON}" build_mozc.py gyp -v ${myconf} || die "gyp failed"
+}
+
+src_compile() {
+ tc-export CC CXX AR AS RANLIB LD
+
+ local my_makeopts=$(makeopts_jobs)
+ # This is for a safety. -j without a number, makeopts_jobs returns 999.
+ local myjobs=-j${my_makeopts/999/1}
+
+ local mytarget="server/server.gyp:mozc_server"
+ use emacs && mytarget="${mytarget} unix/emacs/emacs.gyp:mozc_emacs_helper"
+ use fcitx && mytarget="${mytarget} unix/fcitx/fcitx.gyp:fcitx-mozc"
+ use ibus && mytarget="${mytarget} unix/ibus/ibus.gyp:ibus_mozc"
+ use renderer && mytarget="${mytarget} renderer/renderer.gyp:mozc_renderer"
+ if use qt4 ; then
+ export QTDIR="${EPREFIX}/usr"
+ mytarget="${mytarget} gui/gui.gyp:mozc_tool"
+ fi
+
+ # V=1 "${PYTHON}" build_mozc.py build_tools -c "${BUILDTYPE}" ${myjobs} || die
+ "${PYTHON}" build_mozc.py build -v -c "${BUILDTYPE}" ${mytarget} ${myjobs} || die
+
+ if use emacs ; then
+ elisp-compile unix/emacs/*.el || die
+ fi
+}
+
+src_test() {
+ tc-export CC CXX AR AS RANLIB LD
+ V=1 "${PYTHON}" build_mozc.py runtests -c "${BUILDTYPE}" || die
+}
+src_install() {
+ install_fcitx_locale() {
+ lang=$1
+ insinto "/usr/share/locale/${lang}/LC_MESSAGES/"
+ newins out_linux/${BUILDTYPE}/gen/unix/fcitx/po/${lang}.mo fcitx-mozc.mo
+ }
+
+ if use emacs ; then
+ dobin "out_linux/${BUILDTYPE}/mozc_emacs_helper" || die
+ elisp-install ${PN} unix/emacs/*.{el,elc} || die
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${PN} || die
+ fi
+
+ if use fcitx; then
+ exeinto /usr/$(get_libdir)/fcitx
+ doexe "out_linux/${BUILDTYPE}/fcitx-mozc.so"
+ insinto /usr/share/fcitx/addon
+ doins "unix/fcitx/fcitx-mozc.conf"
+ insinto /usr/share/fcitx/inputmethod
+ doins "unix/fcitx/mozc.conf"
+ insinto /usr/share/fcitx/mozc/icon
+ (
+ cd data/images
+ newins product_icon_32bpp-128.png mozc.png
+ cd unix
+ for f in ui-* ; do
+ newins ${f} mozc-${f/ui-}
+ done
+ )
+ l10n_for_each_locale_do install_fcitx_locale
+ fi
+
+ if use ibus ; then
+ exeinto /usr/$(get_libdir)/ibus-mozc || die
+ newexe "out_linux/${BUILDTYPE}/ibus_mozc" ibus-engine-mozc || die
+ insinto /usr/share/ibus/component || die
+ doins "out_linux/${BUILDTYPE}/gen/unix/ibus/mozc.xml" || die
+ insinto /usr/share/ibus-mozc || die
+ (
+ cd data/images/unix
+ newins ime_product_icon_opensource-32.png product_icon.png || die
+ for f in ui-*
+ do
+ newins ${f} ${f/ui-} || die
+ done
+ )
+
+ fi
+
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_server" || die
+
+ if use qt4 ; then
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_tool" || die
+ fi
+
+ if use renderer ; then
+ exeinto "/usr/$(get_libdir)/mozc" || die
+ doexe "out_linux/${BUILDTYPE}/mozc_renderer" || die
+ fi
+}
+
+pkg_postinst() {
+ if use emacs ; then
+ elisp-site-regen
+ elog "You can use mozc-mode via LEIM (Library of Emacs Input Method)."
+ elog "Write the following settings into your init file (~/.emacs.d/init.el"
+ elog "or ~/.emacs) in order to use mozc-mode by default, or you can call"
+ elog "\`set-input-method' and set \"japanese-mozc\" anytime you have loaded"
+ elog "mozc.el"
+ elog
+ elog " (require 'mozc)"
+ elog " (set-language-environment \"Japanese\")"
+ elog " (setq default-input-method \"japanese-mozc\")"
+ elog
+ elog "Having the above settings, just type C-\\ which is bound to"
+ elog "\`toggle-input-method' by default."
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/app-i18n/mozc/mozc-2.20.2673.102.ebuild b/app-i18n/mozc/mozc-2.20.2673.102.ebuild
new file mode 100644
index 000000000000..eb93090b7361
--- /dev/null
+++ b/app-i18n/mozc/mozc-2.20.2673.102.ebuild
@@ -0,0 +1,311 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=(python2_7)
+
+inherit elisp-common multiprocessing python-any-r1 toolchain-funcs
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/google/mozc"
+ EGIT_SUBMODULES=(src/third_party/japanese_usage_dictionary)
+else
+ MOZC_GIT_REVISION="280e38fe3d9db4df52f0713acf2ca65898cd697a"
+ JAPANESE_USAGE_DICTIONARY_GIT_REVISION="e5b3425575734c323e1d947009dd74709437b684"
+ JAPANESE_USAGE_DICTIONARY_DATE="20120416091336"
+fi
+
+FCITX_PATCH_VERSION="2.18.2612.102.1"
+
+DESCRIPTION="Mozc - Japanese input method editor"
+HOMEPAGE="https://github.com/google/mozc"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://github.com/google/${PN}/archive/${MOZC_GIT_REVISION}.tar.gz -> ${P}.tar.gz
+ https://github.com/hiroyuki-komatsu/japanese-usage-dictionary/archive/${JAPANESE_USAGE_DICTIONARY_GIT_REVISION}.tar.gz -> japanese-usage-dictionary-${JAPANESE_USAGE_DICTIONARY_DATE}.tar.gz"
+fi
+SRC_URI+=" fcitx4? ( https://download.fcitx-im.org/fcitx-mozc/fcitx-mozc-${FCITX_PATCH_VERSION}.patch )"
+
+# Mozc: BSD
+# src/data/dictionary_oss: ipadic, public-domain
+# src/data/unicode: unicode
+# japanese-usage-dictionary: BSD-2
+LICENSE="BSD BSD-2 ipadic public-domain unicode"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug emacs fcitx4 +gui +handwriting-tegaki handwriting-tomoe ibus renderer test"
+REQUIRED_USE="|| ( emacs fcitx4 ibus ) gui? ( ^^ ( handwriting-tegaki handwriting-tomoe ) ) !gui? ( !handwriting-tegaki !handwriting-tomoe )"
+
+RDEPEND=">=dev-libs/protobuf-3.0.0:=
+ emacs? ( virtual/emacs )
+ fcitx4? ( app-i18n/fcitx:4 )
+ gui? (
+ app-i18n/zinnia
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ handwriting-tegaki? ( app-i18n/tegaki-zinnia-japanese )
+ handwriting-tomoe? ( app-i18n/zinnia-tomoe )
+ )
+ ibus? (
+ >=app-i18n/ibus-1.4.1
+ dev-libs/glib:2
+ x11-libs/libxcb
+ )
+ renderer? (
+ dev-libs/glib:2
+ x11-libs/cairo
+ x11-libs/gtk+:2
+ x11-libs/pango
+ )"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ dev-util/gyp
+ dev-util/ninja
+ virtual/pkgconfig
+ test? (
+ >=dev-cpp/gtest-1.8.0
+ dev-libs/jsoncpp
+ )"
+
+S="${WORKDIR}/${P}/src"
+
+SITEFILE="50${PN}-gentoo.el"
+
+execute() {
+ einfo "$@"
+ "$@"
+}
+
+src_unpack() {
+ if [[ "${PV}" == "9999" ]]; then
+ git-r3_src_unpack
+ else
+ unpack ${P}.tar.gz
+ mv mozc-${MOZC_GIT_REVISION} ${P} || die
+
+ unpack japanese-usage-dictionary-${JAPANESE_USAGE_DICTIONARY_DATE}.tar.gz
+ cp -p japanese-usage-dictionary-${JAPANESE_USAGE_DICTIONARY_GIT_REVISION}/usage_dict.txt ${P}/src/third_party/japanese_usage_dictionary || die
+ fi
+}
+
+src_prepare() {
+ eapply -p2 "${FILESDIR}/${PN}-2.20.2673.102-system_libraries.patch"
+ eapply -p2 "${FILESDIR}/${PN}-2.20.2673.102-tests_build.patch"
+ eapply -p2 "${FILESDIR}/${PN}-2.20.2673.102-tests_skipping.patch"
+
+ if use fcitx4; then
+ eapply -p2 "${DISTDIR}/fcitx-mozc-${FCITX_PATCH_VERSION}.patch"
+ fi
+
+ eapply_user
+
+ sed \
+ -e "s/def GypMain(options, unused_args):/def GypMain(options, gyp_args):/" \
+ -e "s/RunOrDie(gyp_command + gyp_options)/RunOrDie(gyp_command + gyp_options + gyp_args)/" \
+ -e "s/RunOrDie(\[ninja/&, '-j$(makeopts_jobs)', '-l$(makeopts_loadavg "${MAKEOPTS}" 0)', '-v'/" \
+ -i build_mozc.py || die
+
+ sed \
+ -e "s/'release_extra_cflags%': \['-O2'\]/'release_extra_cflags%': []/" \
+ -e "s/'debug_extra_cflags%': \['-O0', '-g'\]/'debug_extra_cflags%': []/" \
+ -i gyp/common.gypi || die
+
+ local ar=($(tc-getAR))
+ local cc=($(tc-getCC))
+ local cxx=($(tc-getCXX))
+ local ld=($(tc-getLD))
+ local nm=($(tc-getNM))
+ local readelf=($(tc-getPROG READELF readelf))
+
+ # Use absolute paths. Non-absolute paths are mishandled by GYP.
+ ar[0]=$(type -P ${ar[0]})
+ cc[0]=$(type -P ${cc[0]})
+ cxx[0]=$(type -P ${cxx[0]})
+ ld[0]=$(type -P ${ld[0]})
+ nm[0]=$(type -P ${nm[0]})
+ readelf[0]=$(type -P ${readelf[0]})
+
+ sed \
+ -e "s:<!(which ar):${ar[@]}:" \
+ -e "s:<!(which clang):${cc[@]}:" \
+ -e "s:<!(which clang++):${cxx[@]}:" \
+ -e "s:<!(which ld):${ld[@]}:" \
+ -e "s:<!(which nm):${nm[@]}:" \
+ -e "s:<!(which readelf):${readelf[@]}:" \
+ -i gyp/common.gypi || die
+}
+
+src_configure() {
+ if use debug; then
+ BUILD_TYPE="Debug"
+ else
+ BUILD_TYPE="Release"
+ fi
+
+ local gyp_arguments=()
+
+ if tc-is-gcc; then
+ gyp_arguments+=(-D compiler_host=gcc -D compiler_target=gcc)
+ elif tc-is-clang; then
+ gyp_arguments+=(-D compiler_host=clang -D compiler_target=clang)
+ else
+ gyp_arguments+=(-D compiler_host=unknown -D compiler_target=unknown)
+ fi
+
+ gyp_arguments+=(-D use_libgtest=$(usex test 1 0))
+ gyp_arguments+=(-D use_libibus=$(usex ibus 1 0))
+ gyp_arguments+=(-D use_libjsoncpp=$(usex test 1 0))
+ gyp_arguments+=(-D use_libprotobuf=1)
+ gyp_arguments+=(-D use_libzinnia=$(usex gui 1 0))
+ gyp_arguments+=(-D enable_gtk_renderer=$(usex renderer 1 0))
+
+ gyp_arguments+=(-D server_dir="${EPREFIX}/usr/libexec/mozc")
+ gyp_arguments+=(-D document_dir="${EPREFIX}/usr/libexec/mozc/documents")
+
+ if use handwriting-tegaki; then
+ gyp_arguments+=(-D zinnia_model_file="${EPREFIX}/usr/share/tegaki/models/zinnia/handwriting-ja.model")
+ elif use handwriting-tomoe; then
+ gyp_arguments+=(-D zinnia_model_file="${EPREFIX}/usr/$(get_libdir)/zinnia/model/tomoe/handwriting-ja.model")
+ fi
+
+ if use ibus; then
+ gyp_arguments+=(-D ibus_mozc_path="${EPREFIX}/usr/libexec/ibus-engine-mozc")
+ gyp_arguments+=(-D ibus_mozc_icon_path="${EPREFIX}/usr/share/ibus-mozc/product_icon.png")
+ fi
+
+ unset AR CC CXX LD NM READELF
+
+ execute "${PYTHON}" build_mozc.py gyp \
+ --gypdir="${EPREFIX}/usr/bin" \
+ --server_dir="${EPREFIX}/usr/libexec/mozc" \
+ --verbose \
+ $(usex gui "" --noqt) \
+ -- "${gyp_arguments[@]}" || die "Configuration failed"
+}
+
+src_compile() {
+ local targets=(server/server.gyp:mozc_server)
+ if use emacs; then
+ targets+=(unix/emacs/emacs.gyp:mozc_emacs_helper)
+ fi
+ if use fcitx4; then
+ targets+=(unix/fcitx/fcitx.gyp:fcitx-mozc)
+ fi
+ if use gui; then
+ targets+=(gui/gui.gyp:mozc_tool)
+ fi
+ if use ibus; then
+ targets+=(unix/ibus/ibus.gyp:ibus_mozc)
+ fi
+ if use renderer; then
+ targets+=(renderer/renderer.gyp:mozc_renderer)
+ fi
+ if use test; then
+ targets+=(gyp/tests.gyp:unittests)
+ fi
+
+ execute "${PYTHON}" build_mozc.py build -c ${BUILD_TYPE} -v "${targets[@]}" || die "Building failed"
+
+ if use emacs; then
+ elisp-compile unix/emacs/*.el
+ fi
+}
+
+src_test() {
+ execute "${PYTHON}" build_mozc.py runtests -c ${BUILD_TYPE} --test_jobs 1 || die "Testing failed"
+}
+
+src_install() {
+ exeinto /usr/libexec/mozc
+ doexe out_linux/${BUILD_TYPE}/mozc_server
+
+ if use gui; then
+ doexe out_linux/${BUILD_TYPE}/mozc_tool
+ fi
+
+ if use renderer; then
+ doexe out_linux/${BUILD_TYPE}/mozc_renderer
+ fi
+
+ insinto /usr/libexec/mozc/documents
+ doins data/installer/credits_en.html
+
+ if use emacs; then
+ dobin out_linux/${BUILD_TYPE}/mozc_emacs_helper
+ elisp-install ${PN} unix/emacs/*.{el,elc}
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${PN}
+ fi
+
+ if use fcitx4; then
+ exeinto /usr/$(get_libdir)/fcitx
+ doexe out_linux/${BUILD_TYPE}/fcitx-mozc.so
+
+ insinto /usr/share/fcitx/addon
+ doins unix/fcitx/fcitx-mozc.conf
+
+ insinto /usr/share/fcitx/inputmethod
+ doins unix/fcitx/mozc.conf
+
+ insinto /usr/share/fcitx/mozc/icon
+ newins data/images/product_icon_32bpp-128.png mozc.png
+ local image
+ for image in data/images/unix/ui-*.png; do
+ newins "${image}" "mozc-${image#data/images/unix/ui-}"
+ done
+
+ local locale mo_file
+ for mo_file in out_linux/${BUILD_TYPE}/gen/unix/fcitx/po/*.mo; do
+ locale="${mo_file##*/}"
+ locale="${locale%.mo}"
+ insinto /usr/share/locale/${locale}/LC_MESSAGES
+ newins "${mo_file}" fcitx-mozc.mo
+ done
+ fi
+
+ if use ibus; then
+ exeinto /usr/libexec
+ newexe out_linux/${BUILD_TYPE}/ibus_mozc ibus-engine-mozc
+
+ insinto /usr/share/ibus/component
+ doins out_linux/${BUILD_TYPE}/gen/unix/ibus/mozc.xml
+
+ insinto /usr/share/ibus-mozc
+ newins data/images/unix/ime_product_icon_opensource-32.png product_icon.png
+ local image
+ for image in data/images/unix/ui-*.png; do
+ newins "${image}" "${image#data/images/unix/ui-}"
+ done
+ fi
+}
+
+pkg_postinst() {
+ if use emacs; then
+ elisp-site-regen
+
+ elog "USAGE IN EMACS"
+ elog
+ elog "mozc-mode is minor mode to input Japanese text using Mozc server."
+ elog "mozc-mode can be used via LEIM (Library of Emacs Input Method)."
+ elog
+ elog "In order to use mozc-mode by default, the following settings should be added to"
+ elog "Emacs init file (~/.emacs.d/init.el or ~/.emacs):"
+ elog
+ elog " (require 'mozc)"
+ elog " (set-language-environment \"Japanese\")"
+ elog " (setq default-input-method \"japanese-mozc\")"
+ elog
+ elog "With the above settings, typing C-\\ (which is bound to \"toggle-input-method\""
+ elog "by default) will enable mozc-mode."
+ elog
+ elog "Alternatively, at run time, after loading mozc.el, mozc-mode can be activated by"
+ elog "calling \"set-input-method\" and entering \"japanese-mozc\"."
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/app-i18n/mozc/mozc-9999.ebuild b/app-i18n/mozc/mozc-9999.ebuild
new file mode 100644
index 000000000000..c56eb0e73da6
--- /dev/null
+++ b/app-i18n/mozc/mozc-9999.ebuild
@@ -0,0 +1,311 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=(python2_7)
+
+inherit elisp-common multiprocessing python-any-r1 toolchain-funcs
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/google/mozc"
+ EGIT_SUBMODULES=(src/third_party/japanese_usage_dictionary)
+else
+ MOZC_GIT_REVISION=""
+ JAPANESE_USAGE_DICTIONARY_GIT_REVISION=""
+ JAPANESE_USAGE_DICTIONARY_DATE=""
+fi
+
+FCITX_PATCH_VERSION="2.18.2612.102.1"
+
+DESCRIPTION="Mozc - Japanese input method editor"
+HOMEPAGE="https://github.com/google/mozc"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://github.com/google/${PN}/archive/${MOZC_GIT_REVISION}.tar.gz -> ${P}.tar.gz
+ https://github.com/hiroyuki-komatsu/japanese-usage-dictionary/archive/${JAPANESE_USAGE_DICTIONARY_GIT_REVISION}.tar.gz -> japanese-usage-dictionary-${JAPANESE_USAGE_DICTIONARY_DATE}.tar.gz"
+fi
+SRC_URI+=" fcitx4? ( https://download.fcitx-im.org/fcitx-mozc/fcitx-mozc-${FCITX_PATCH_VERSION}.patch )"
+
+# Mozc: BSD
+# src/data/dictionary_oss: ipadic, public-domain
+# src/data/unicode: unicode
+# japanese-usage-dictionary: BSD-2
+LICENSE="BSD BSD-2 ipadic public-domain unicode"
+SLOT="0"
+KEYWORDS=""
+IUSE="debug emacs fcitx4 +gui +handwriting-tegaki handwriting-tomoe ibus renderer test"
+REQUIRED_USE="|| ( emacs fcitx4 ibus ) gui? ( ^^ ( handwriting-tegaki handwriting-tomoe ) ) !gui? ( !handwriting-tegaki !handwriting-tomoe )"
+
+RDEPEND=">=dev-libs/protobuf-3.0.0:=
+ emacs? ( virtual/emacs )
+ fcitx4? ( app-i18n/fcitx:4 )
+ gui? (
+ app-i18n/zinnia
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ handwriting-tegaki? ( app-i18n/tegaki-zinnia-japanese )
+ handwriting-tomoe? ( app-i18n/zinnia-tomoe )
+ )
+ ibus? (
+ >=app-i18n/ibus-1.4.1
+ dev-libs/glib:2
+ x11-libs/libxcb
+ )
+ renderer? (
+ dev-libs/glib:2
+ x11-libs/cairo
+ x11-libs/gtk+:2
+ x11-libs/pango
+ )"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ dev-util/gyp
+ dev-util/ninja
+ virtual/pkgconfig
+ test? (
+ >=dev-cpp/gtest-1.8.0
+ dev-libs/jsoncpp
+ )"
+
+S="${WORKDIR}/${P}/src"
+
+SITEFILE="50${PN}-gentoo.el"
+
+execute() {
+ einfo "$@"
+ "$@"
+}
+
+src_unpack() {
+ if [[ "${PV}" == "9999" ]]; then
+ git-r3_src_unpack
+ else
+ unpack ${P}.tar.gz
+ mv mozc-${MOZC_GIT_REVISION} ${P} || die
+
+ unpack japanese-usage-dictionary-${JAPANESE_USAGE_DICTIONARY_DATE}.tar.gz
+ cp -p japanese-usage-dictionary-${JAPANESE_USAGE_DICTIONARY_GIT_REVISION}/usage_dict.txt ${P}/src/third_party/japanese_usage_dictionary || die
+ fi
+}
+
+src_prepare() {
+ eapply -p2 "${FILESDIR}/${PN}-2.20.2673.102-system_libraries.patch"
+ eapply -p2 "${FILESDIR}/${PN}-2.20.2673.102-tests_build.patch"
+ eapply -p2 "${FILESDIR}/${PN}-2.20.2673.102-tests_skipping.patch"
+
+ if use fcitx4; then
+ eapply -p2 "${DISTDIR}/fcitx-mozc-${FCITX_PATCH_VERSION}.patch"
+ fi
+
+ eapply_user
+
+ sed \
+ -e "s/def GypMain(options, unused_args):/def GypMain(options, gyp_args):/" \
+ -e "s/RunOrDie(gyp_command + gyp_options)/RunOrDie(gyp_command + gyp_options + gyp_args)/" \
+ -e "s/RunOrDie(\[ninja/&, '-j$(makeopts_jobs)', '-l$(makeopts_loadavg "${MAKEOPTS}" 0)', '-v'/" \
+ -i build_mozc.py || die
+
+ sed \
+ -e "s/'release_extra_cflags%': \['-O2'\]/'release_extra_cflags%': []/" \
+ -e "s/'debug_extra_cflags%': \['-O0', '-g'\]/'debug_extra_cflags%': []/" \
+ -i gyp/common.gypi || die
+
+ local ar=($(tc-getAR))
+ local cc=($(tc-getCC))
+ local cxx=($(tc-getCXX))
+ local ld=($(tc-getLD))
+ local nm=($(tc-getNM))
+ local readelf=($(tc-getPROG READELF readelf))
+
+ # Use absolute paths. Non-absolute paths are mishandled by GYP.
+ ar[0]=$(type -P ${ar[0]})
+ cc[0]=$(type -P ${cc[0]})
+ cxx[0]=$(type -P ${cxx[0]})
+ ld[0]=$(type -P ${ld[0]})
+ nm[0]=$(type -P ${nm[0]})
+ readelf[0]=$(type -P ${readelf[0]})
+
+ sed \
+ -e "s:<!(which ar):${ar[@]}:" \
+ -e "s:<!(which clang):${cc[@]}:" \
+ -e "s:<!(which clang++):${cxx[@]}:" \
+ -e "s:<!(which ld):${ld[@]}:" \
+ -e "s:<!(which nm):${nm[@]}:" \
+ -e "s:<!(which readelf):${readelf[@]}:" \
+ -i gyp/common.gypi || die
+}
+
+src_configure() {
+ if use debug; then
+ BUILD_TYPE="Debug"
+ else
+ BUILD_TYPE="Release"
+ fi
+
+ local gyp_arguments=()
+
+ if tc-is-gcc; then
+ gyp_arguments+=(-D compiler_host=gcc -D compiler_target=gcc)
+ elif tc-is-clang; then
+ gyp_arguments+=(-D compiler_host=clang -D compiler_target=clang)
+ else
+ gyp_arguments+=(-D compiler_host=unknown -D compiler_target=unknown)
+ fi
+
+ gyp_arguments+=(-D use_libgtest=$(usex test 1 0))
+ gyp_arguments+=(-D use_libibus=$(usex ibus 1 0))
+ gyp_arguments+=(-D use_libjsoncpp=$(usex test 1 0))
+ gyp_arguments+=(-D use_libprotobuf=1)
+ gyp_arguments+=(-D use_libzinnia=$(usex gui 1 0))
+ gyp_arguments+=(-D enable_gtk_renderer=$(usex renderer 1 0))
+
+ gyp_arguments+=(-D server_dir="${EPREFIX}/usr/libexec/mozc")
+ gyp_arguments+=(-D document_dir="${EPREFIX}/usr/libexec/mozc/documents")
+
+ if use handwriting-tegaki; then
+ gyp_arguments+=(-D zinnia_model_file="${EPREFIX}/usr/share/tegaki/models/zinnia/handwriting-ja.model")
+ elif use handwriting-tomoe; then
+ gyp_arguments+=(-D zinnia_model_file="${EPREFIX}/usr/$(get_libdir)/zinnia/model/tomoe/handwriting-ja.model")
+ fi
+
+ if use ibus; then
+ gyp_arguments+=(-D ibus_mozc_path="${EPREFIX}/usr/libexec/ibus-engine-mozc")
+ gyp_arguments+=(-D ibus_mozc_icon_path="${EPREFIX}/usr/share/ibus-mozc/product_icon.png")
+ fi
+
+ unset AR CC CXX LD NM READELF
+
+ execute "${PYTHON}" build_mozc.py gyp \
+ --gypdir="${EPREFIX}/usr/bin" \
+ --server_dir="${EPREFIX}/usr/libexec/mozc" \
+ --verbose \
+ $(usex gui "" --noqt) \
+ -- "${gyp_arguments[@]}" || die "Configuration failed"
+}
+
+src_compile() {
+ local targets=(server/server.gyp:mozc_server)
+ if use emacs; then
+ targets+=(unix/emacs/emacs.gyp:mozc_emacs_helper)
+ fi
+ if use fcitx4; then
+ targets+=(unix/fcitx/fcitx.gyp:fcitx-mozc)
+ fi
+ if use gui; then
+ targets+=(gui/gui.gyp:mozc_tool)
+ fi
+ if use ibus; then
+ targets+=(unix/ibus/ibus.gyp:ibus_mozc)
+ fi
+ if use renderer; then
+ targets+=(renderer/renderer.gyp:mozc_renderer)
+ fi
+ if use test; then
+ targets+=(gyp/tests.gyp:unittests)
+ fi
+
+ execute "${PYTHON}" build_mozc.py build -c ${BUILD_TYPE} -v "${targets[@]}" || die "Building failed"
+
+ if use emacs; then
+ elisp-compile unix/emacs/*.el
+ fi
+}
+
+src_test() {
+ execute "${PYTHON}" build_mozc.py runtests -c ${BUILD_TYPE} --test_jobs 1 || die "Testing failed"
+}
+
+src_install() {
+ exeinto /usr/libexec/mozc
+ doexe out_linux/${BUILD_TYPE}/mozc_server
+
+ if use gui; then
+ doexe out_linux/${BUILD_TYPE}/mozc_tool
+ fi
+
+ if use renderer; then
+ doexe out_linux/${BUILD_TYPE}/mozc_renderer
+ fi
+
+ insinto /usr/libexec/mozc/documents
+ doins data/installer/credits_en.html
+
+ if use emacs; then
+ dobin out_linux/${BUILD_TYPE}/mozc_emacs_helper
+ elisp-install ${PN} unix/emacs/*.{el,elc}
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${PN}
+ fi
+
+ if use fcitx4; then
+ exeinto /usr/$(get_libdir)/fcitx
+ doexe out_linux/${BUILD_TYPE}/fcitx-mozc.so
+
+ insinto /usr/share/fcitx/addon
+ doins unix/fcitx/fcitx-mozc.conf
+
+ insinto /usr/share/fcitx/inputmethod
+ doins unix/fcitx/mozc.conf
+
+ insinto /usr/share/fcitx/mozc/icon
+ newins data/images/product_icon_32bpp-128.png mozc.png
+ local image
+ for image in data/images/unix/ui-*.png; do
+ newins "${image}" "mozc-${image#data/images/unix/ui-}"
+ done
+
+ local locale mo_file
+ for mo_file in out_linux/${BUILD_TYPE}/gen/unix/fcitx/po/*.mo; do
+ locale="${mo_file##*/}"
+ locale="${locale%.mo}"
+ insinto /usr/share/locale/${locale}/LC_MESSAGES
+ newins "${mo_file}" fcitx-mozc.mo
+ done
+ fi
+
+ if use ibus; then
+ exeinto /usr/libexec
+ newexe out_linux/${BUILD_TYPE}/ibus_mozc ibus-engine-mozc
+
+ insinto /usr/share/ibus/component
+ doins out_linux/${BUILD_TYPE}/gen/unix/ibus/mozc.xml
+
+ insinto /usr/share/ibus-mozc
+ newins data/images/unix/ime_product_icon_opensource-32.png product_icon.png
+ local image
+ for image in data/images/unix/ui-*.png; do
+ newins "${image}" "${image#data/images/unix/ui-}"
+ done
+ fi
+}
+
+pkg_postinst() {
+ if use emacs; then
+ elisp-site-regen
+
+ elog "USAGE IN EMACS"
+ elog
+ elog "mozc-mode is minor mode to input Japanese text using Mozc server."
+ elog "mozc-mode can be used via LEIM (Library of Emacs Input Method)."
+ elog
+ elog "In order to use mozc-mode by default, the following settings should be added to"
+ elog "Emacs init file (~/.emacs.d/init.el or ~/.emacs):"
+ elog
+ elog " (require 'mozc)"
+ elog " (set-language-environment \"Japanese\")"
+ elog " (setq default-input-method \"japanese-mozc\")"
+ elog
+ elog "With the above settings, typing C-\\ (which is bound to \"toggle-input-method\""
+ elog "by default) will enable mozc-mode."
+ elog
+ elog "Alternatively, at run time, after loading mozc.el, mozc-mode can be activated by"
+ elog "calling \"set-input-method\" and entering \"japanese-mozc\"."
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/app-i18n/multiskkserv/Manifest b/app-i18n/multiskkserv/Manifest
new file mode 100644
index 000000000000..de39c6443669
--- /dev/null
+++ b/app-i18n/multiskkserv/Manifest
@@ -0,0 +1,8 @@
+AUX multiskkserv-cdb.patch 1525 SHA256 0bfb5dc836329c1d6fc099bc4b66d7f1e6a9a8eee825b6ac3b585a3a233803cd SHA512 d063be9d8eaa44caf15dce002effde12119d32799974db3ce82a293bd5264bb594865863a26f3f498c7d532f6b48b02db832526a1f277578def7e82cee0594dd WHIRLPOOL eff12886564d1922d3735e261c76317f6477f0c448115a2c060b37d68aa8b2a42d08b495be6ea2bee7067e5030425902baffbc7262bc5ebd70475b4ffd000f58
+AUX multiskkserv.confd 230 SHA256 2829e893c3b4a1d80cb027f2d8090ffadf0a2017e83de10635fe750a8d667b90 SHA512 3751257be6a4ee994b7dff2293b0c724cdfef7006db18b970f5a0e23fb1620d0fd76ebce80bd6ac6c2623bf2f8759f99e26b4087b7ecc83f1b3fdd1de877ce13 WHIRLPOOL 931373919f1d7234d543d5585872d922c71a11cad746e9503f9ca4f5a41ea0e0701524941febe161b455d5912de7d215f4e9193b6fde32adfc9754a17190156a
+AUX multiskkserv.initd 305 SHA256 95f6cd560c5fae083bc48cb3fbee7885250761a8d912af4b7c8c18dc72834099 SHA512 eae9fcbfe18baec133ad0ee624a758cec1ceeb0134e11a4fe2b10099877b0f5bf96032704683521e5c874442595212950ab5164dc689ea523cec9213b7c2bec2 WHIRLPOOL 48f234afeef7da52069e2a670333e3af2247387a33bc31d7dede32d91d4c431e02081553dd82f1d451e271aafa18283a9ba0d3061b03a841599100d230832b92
+DIST multiskkserv-20100128.tar.xz 250004 SHA256 e216026891af86b5ce17d5103bdce25d7aac923e53306728fafa7ed7863681bc SHA512 27409600f549317dd2e2fcd0f0a35406a5d445c74e0ba266ed3c19cec849b6d508a30edd65bf72931b0222f003d934a802e5c3c979d5b52ab30da473cabbf5a5 WHIRLPOOL 8cc5ffb53b143b936462bac7b1d2a4021744199f3b151127fb22c1706ca22f25bcd8ccdb4a2b0f7b4208d488c475e8661daff4b16c3fef65b7d7519e224ca327
+EBUILD multiskkserv-20100128.ebuild 761 SHA256 da6f093b7a28016fdc7f1085c5fdfa28599e859dacdc4449cb53d189a5dc34fb SHA512 aa89987538dfb61cd328c8a1c880bdb4876a0b567c41050de5fa6450036dd954c996c9ba88fb30b9d82269c2a09174f9b31501a42a4c66abd01ac305a1578269 WHIRLPOOL f8e96f808bed58815846b4bbff9845faa717efba88592684c622cb52191cec4e43bc44f8d0470df9cc2f2dd167853e18d870e11323f3dfe7aed0543b1b56ee8f
+MISC ChangeLog 2680 SHA256 afebc727124f7a48be8ae511785aa4c5295a3aef714b3520f2cbb24d8d7158da SHA512 fdb27b069599065012ee51a876d74285d156d6321b675ba63f350bb861880540cdcfb7bbfa1b4aaeb4c5b36c99d3052bb6dde7d0ec3ea498e0f62fe6d104d4d6 WHIRLPOOL ccd2dbbb103b08eeb5b3c00c6db48b85d000f438723e563afaf91eeaf7a24c71e025611a16785130a5aa2fcae3d2cc01ec31844f089645bd1735a210b145c0c5
+MISC ChangeLog-2015 3309 SHA256 7ef02c57122ddc915325ef6a6b58da9961f8d85d5b3d7ba4e1292920cf89d3a8 SHA512 7a3b84b4d0444c74e96cb01f7e87d4c6e1e63a230e12158fcf10a1d0252e5e9a2a0c31cd404973962e020147dda61d8b473d2b88b9b4b376337e3746016ad279 WHIRLPOOL 1af6f7c5e98544e700fb56d264c4b6bb54f84e7d3ec4da6dc404f9bd35f7cac3036ec3522a75362247bb9ba33b4b7c734d55ceedea90fd7dfd854c45c129d1f8
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/multiskkserv/files/multiskkserv-cdb.patch b/app-i18n/multiskkserv/files/multiskkserv-cdb.patch
new file mode 100644
index 000000000000..c6f0da50309e
--- /dev/null
+++ b/app-i18n/multiskkserv/files/multiskkserv-cdb.patch
@@ -0,0 +1,52 @@
+--- a/configure.in
++++ b/configure.in
+@@ -126,19 +126,38 @@
+ fi
+ done
+ else
+- if test -d "$with_cdb" -a -f "$with_cdb/cdb.h"; then
+- CDB_DIR="$with_cdb"
+- CDB_INCLUDES="-I$with_cdb"
+- available_cdb="yes"
+- for j in cdb.a buffer.a unix.a byte.a alloc.a; do
+- if test -f "$with_cdb/$j"; then
+- LIBADD_CDB="$LIBADD_CDB $with_cdb/$j"
++ for i in include include/cdb; do
++ if test -f "$with_cdb/$i/cdb.h"; then
++ CDB_DIR="$with_cdb"
++ CDB_INCLUDES="-I$with_cdb/$i"
++ available_cdb="yes"
++ if test -f "$with_cdb/$i/uint32.h"; then
++ for l in lib64 lib32 lib; do
++ for a in cdb.a alloc.a buffer.a byte.a unix.a; do
++ if test -f "$with_cdb/$l/$a"; then
++ LIBADD_CDB="$LIBADD_CDB $with_cdb/$l/$a"
++ else
++ LIBADD_CDB=""
++ available_cdb="no"
++ break
++ fi
++ done
++ if test "$available_cdb" = "yes"; then
++ break
++ fi
++ done
+ else
+- available_cdb="no"
+- break
++ save_LIBS="$LIBS"
++ AC_CHECK_LIB(cdb, cdb_init)
++ LIBS="$save_LIBS"
++ LIBADD_CDB="-lcdb"
++ AC_DEFINE(USE_TINYCDB, 1, [Use tinycdb])
+ fi
+- done
+- fi
++ fi
++ if test "$available_cdb" = "yes"; then
++ break
++ fi
++ done
+ fi
+ if test "$available_cdb" = "yes"; then
+ AC_MSG_RESULT([cdb found, path: $CDB_DIR])
diff --git a/app-i18n/multiskkserv/files/multiskkserv.confd b/app-i18n/multiskkserv/files/multiskkserv.confd
new file mode 100644
index 000000000000..eaaa90def3f8
--- /dev/null
+++ b/app-i18n/multiskkserv/files/multiskkserv.confd
@@ -0,0 +1,10 @@
+# Config file for /etc/init.d/multiskkserv
+
+# define which SKK-JISYO to use (you may define multiple files)
+#
+# Example:
+#
+# SKKJISYO_CDB="SKK-JISYO.L.cdb SKK-JISYO.JIS2.cdb SKK-JISYO.jinmei.cdb"
+#
+
+SKKJISYO_CDB="SKK-JISYO.L.cdb"
diff --git a/app-i18n/multiskkserv/files/multiskkserv.initd b/app-i18n/multiskkserv/files/multiskkserv.initd
new file mode 100644
index 000000000000..31c447da9d5d
--- /dev/null
+++ b/app-i18n/multiskkserv/files/multiskkserv.initd
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/sbin/${RC_SVCNAME}"
+command_args="-r /usr/share/skk ${SKKJISYO_CDB}"
+command_background="true"
+pidfile="${pidfile:-/run/${RC_SVCNAME}.pid}"
+
+depend() {
+ need net
+}
diff --git a/app-i18n/multiskkserv/metadata.xml b/app-i18n/multiskkserv/metadata.xml
new file mode 100644
index 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/multiskkserv/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/multiskkserv/multiskkserv-20100128.ebuild b/app-i18n/multiskkserv/multiskkserv-20100128.ebuild
new file mode 100644
index 000000000000..7ffc4e22f888
--- /dev/null
+++ b/app-i18n/multiskkserv/multiskkserv-20100128.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+DESCRIPTION="SKK server that handles multiple dictionaries"
+HOMEPAGE="http://www3.big.or.jp/~sian/linux/products/"
+SRC_URI="http://www3.big.or.jp/~sian/linux/products/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="test"
+
+DEPEND="|| (
+ dev-db/tinycdb
+ dev-db/cdb
+ )
+ test? ( app-i18n/nkf )"
+RDEPEND="app-i18n/skk-jisyo[cdb]"
+
+PATCHES=( "${FILESDIR}"/${PN}-cdb.patch )
+
+src_prepare() {
+ default
+ mv configure.{in,ac}
+ eautoreconf
+}
+
+src_configure() {
+ econf --with-cdb="${EPREFIX}"/usr
+}
+
+src_install() {
+ default
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}
diff --git a/app-i18n/nabi/Manifest b/app-i18n/nabi/Manifest
new file mode 100644
index 000000000000..971087937b32
--- /dev/null
+++ b/app-i18n/nabi/Manifest
@@ -0,0 +1,10 @@
+AUX nabi-0.15-asneeded.patch 355 SHA256 e28d98edeb541818c66cfab4679aba64ad8994341ccfacaac2be514b45f6d2ed SHA512 23a3c3c6967886bb59dd4e266d51b63e04678620bd2ad5a1ce5f84d2521134f8167673131624575130929a69fa65591b860053db1793e83c48b2db2bd3ecf08f WHIRLPOOL 259bdad95200a65a51958446e4c402785e239fdbc036e81af37193de9470aa8c319cdfbf191ffc55f79e4450fcbd1eb527f1c125a412b03cd1ddedfd1726a8b7
+AUX nabi-0.99.3-asneeded.patch 446 SHA256 5d3c99d854735586bdc8cd98bf87a308c9a7ac9f9ad3d9b85db027013a8c1523 SHA512 55eb4ab4e37bf506a3ec0c6d29c15ede6477a05090abd51b84fc7bb41eb1d2a026956b85b3edb2268549af74df10b5fc00bd46212f04e0a968f68dfccdf0a5b4 WHIRLPOOL 955c4a2c8eb44323428e230bbab030c5b4f53b04f8c6c8a2d9410cbaa5f25369d2c2b3b835b40dcd5b2fedb3f479fff142853e8b2a97857c3e53666e1bd89d79
+AUX xinput-nabi 140 SHA256 182d9ffbcab5d133e07660bc435554c93a3011f81f2ff901314b5c6fe7d651ed SHA512 53321a39f5ebfb96986ae225f3c3b47344885d4c07271a6b7defd9f2164564651bbdd6e58676e443806f15f51ef7588aea59a6c3ef52678b7f9f1b5f3edcc4d8 WHIRLPOOL 995a5b08f72ea98b11abbd1bfb6f2bf61a87cc78fa8d99d3c38fc7c035c0e62c647a88ee675811da7bd6d4d67002489ae6521ec229f8ddd8800e600158d9a993
+DIST nabi-0.99.11.tar.gz 840845 SHA256 f9acff298f3dc7a80eff1281b04e00dda0e68ad56c1b28443800f09fd8c7ceb3 SHA512 0cc2a1e04241a13207226db6c2db811b32ca0cc41c28905122126d6193d6a83c575960aca0f4da0574e399a11b96e7b8c250b6f6245cc8ff3de37c2ea761b834 WHIRLPOOL fd29b61e591b89133c3df1f007d8f686e4ae63e6362aa3f4b25f4021d966ae720308f38c5846031246c90b83fb93d11c150f4093240c49e70f982f5b7de4f870
+DIST nabi-1.0.0.tar.gz 926638 SHA256 8fc6e7f8c56c680a4c08078c98707a41e95affd6fe810b53db66d8867122d532 SHA512 afd621f3ba2743db429625cdf468abad97c20d91af90f01dea14a75d4a4bc7ea3770b37387acf7da8306b92cb3fbb51d74930459f7e42d137062f01d737ede94 WHIRLPOOL c410ebed8db85f95d970cb9eb64de8a4137f48b3fdf56c4201936e3f7114baeb76bf0297bcb1e3edc1a2c71268f62a48e0f0281fd3350168eab1040829b82d80
+EBUILD nabi-0.99.11.ebuild 1055 SHA256 57123a378895d42d2558b1cafbc4d4a89d1c5f5f2a88d21ba9e7800bae0b9447 SHA512 f444e645e99c65b905d8d4780b5826535f882d1153e226a74ec12458cce390eca0abe978a46ae91bb95c979b728da700fa6ff7c7e3abb369631f9c1eeb5c5612 WHIRLPOOL 9cc897c12c06a155eed20f1b406be441fe3a6a89219544af3579d6249825e7317b56fe41b01210eadeafd8743470927881721fe6bc26f7834fe514bf6cd21a40
+EBUILD nabi-1.0.0.ebuild 1147 SHA256 b56c2f762dfda4fa67678eef039228d93dbfeeb0d5b61c05370043e4f3d96b79 SHA512 ad1ef398222a837d46e8db9d94cdbefa6fc3819f7ef863de06aed12d618e703ec913987b3db4e6de018ee3967c5b141f9cc04f40ef450553478c872d7b550c7f WHIRLPOOL d17fa15acc25d155c8744e05b0228d7b711be770e127e7f65e4bd87a1db1e235219a447223ec6a2442cf4d3ade5e65b8cbe82cbfda12fd9703d7145fc4822c12
+MISC ChangeLog 3344 SHA256 482ea3d05bc4761ad4c2558264dec4c266003911e91effaeb9662e2e97916428 SHA512 b74b440434e59aafbc67ae9acb56cb17e01294dd9a53993c41521b62a202564fcc68be068f6e792e12c61a902f4b8d986df3cfd7b7d6d434da686f4dcfeef81f WHIRLPOOL 986354614b33acf86ef49109bde4e8bdf418e623148a202e9810d3008e437cf88635d73749fa429f92d1443033b10b574a2b0c52348c5778d0aeb457829241fb
+MISC ChangeLog-2015 4637 SHA256 7814d6b1c8d36d0b41c60aa15252a6da498d89561f1a86afb58942da7c39e549 SHA512 b431d191d5d9620130d9dfe9de44899b3786730d9e8ba390cb33ebf2c7788931eb00d8353c46a116807d971412bbd38412f97f8eb9e4c6fd4efd9055c4230a92 WHIRLPOOL bfa40e90909b507a540d11dc1645ba3f6eb28ca92ee6b7febac234c3d49b3075f1c212dd0938fa04cfdb36a3cdc4a1bda5fe8f2b02ae3003a41950c27fdf2213
+MISC metadata.xml 325 SHA256 ec86e00f59d0393218e8f157aaac1cadbbde3a84a372d46581d7525ede937a59 SHA512 83cebe62b9ad595a0d02c9f3d47483dbc7a17224a082e607b41f80749e5e7abb4f9c5b57b77eb1720aa1d9d833b40691169639e1d57e6930be3da37d8e9f104f WHIRLPOOL ac6d9b55ea7c88bd2e045c5d753066c9898993c28eea0b77de87151702e3814364a9cf718c6b990ca86129e8bbee20fd3259d37c959d54a6988cb2d7c26cd061
diff --git a/app-i18n/nabi/files/nabi-0.15-asneeded.patch b/app-i18n/nabi/files/nabi-0.15-asneeded.patch
new file mode 100644
index 000000000000..c5f6d2422cc8
--- /dev/null
+++ b/app-i18n/nabi/files/nabi-0.15-asneeded.patch
@@ -0,0 +1,12 @@
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 700557c..ac6ec0d 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -27,6 +27,5 @@ nabi_SOURCES = \
+ keycapturedialog.c \
+ main.c
+
+-nabi_LDFLAGS = @X_LIBS@ @X_PRE_LIBS@ -lX11 @GTK_LIBS@
+-nabi_LDADD = ../IMdkit/libXimd.a
++nabi_LDADD = @X_LIBS@ @X_PRE_LIBS@ -lX11 @GTK_LIBS@ ../IMdkit/libXimd.a
+
diff --git a/app-i18n/nabi/files/nabi-0.99.3-asneeded.patch b/app-i18n/nabi/files/nabi-0.99.3-asneeded.patch
new file mode 100644
index 000000000000..a2b7c5c88f35
--- /dev/null
+++ b/app-i18n/nabi/files/nabi-0.99.3-asneeded.patch
@@ -0,0 +1,13 @@
+Index: nabi-0.99.3/src/Makefile.am
+===================================================================
+--- nabi-0.99.3.orig/src/Makefile.am
++++ nabi-0.99.3/src/Makefile.am
+@@ -29,6 +29,6 @@ nabi_SOURCES = \
+ sctc.h util.h util.c \
+ main.c
+
+-nabi_LDFLAGS = @LIBHANGUL_LIBS@ @X_LIBS@ @X_PRE_LIBS@ -lX11 @GTK_LIBS@
+-nabi_LDADD = ../IMdkit/libXimd.a
++nabi_LDADD = @LIBHANGUL_LIBS@ @X_LIBS@ @X_PRE_LIBS@ -lX11 @GTK_LIBS@ \
++ ../IMdkit/libXimd.a
+
diff --git a/app-i18n/nabi/files/xinput-nabi b/app-i18n/nabi/files/xinput-nabi
new file mode 100644
index 000000000000..f5dc6e4aaafe
--- /dev/null
+++ b/app-i18n/nabi/files/xinput-nabi
@@ -0,0 +1,6 @@
+XIM=nabi
+XIM_PROGRAM="@EPREFIX@/usr/bin/nabi"
+GTK_IM_MODULE=xim
+QT_IM_MODULE=xim
+SHORT_DESC="nabi"
+ICON="@EPREFIX@/usr/share/nabi/nabi.png"
diff --git a/app-i18n/nabi/metadata.xml b/app-i18n/nabi/metadata.xml
new file mode 100644
index 000000000000..d811e857b5bb
--- /dev/null
+++ b/app-i18n/nabi/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">choehwanjin/nabi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/nabi/nabi-0.99.11.ebuild b/app-i18n/nabi/nabi-0.99.11.ebuild
new file mode 100644
index 000000000000..0c6dd59203a9
--- /dev/null
+++ b/app-i18n/nabi/nabi-0.99.11.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Simple Hanguk X Input Method"
+HOMEPAGE="https://code.google.com/p/nabi/"
+SRC_URI="https://nabi.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug nls"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND=">=app-i18n/libhangul-0.1.0
+ dev-libs/glib:2
+ x11-libs/gdk-pixbuf:2
+ >=x11-libs/gtk+-2.4:2
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/pango
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+DOCS=( AUTHORS ChangeLog ChangeLog.0 NEWS README TODO )
+
+src_configure() {
+ local myconf=
+
+ # Broken configure: --disable-debug also enables debug
+ use debug && \
+ myconf="${myconf} --enable-debug"
+
+ econf ${myconf}
+}
+
+src_install() {
+ default
+
+ insinto /etc/X11/xinit/xinput.d
+ sed -e "s:@EPREFIX@:${EPREFIX}:g" "${FILESDIR}/xinput-${PN}" | newins - "${PN}.conf"
+}
+
+pkg_postinst() {
+ elog "You MUST add environment variable..."
+ elog
+ elog "export XMODIFIERS=\"@im=nabi\""
+ elog
+}
diff --git a/app-i18n/nabi/nabi-1.0.0.ebuild b/app-i18n/nabi/nabi-1.0.0.ebuild
new file mode 100644
index 000000000000..b9c453f52723
--- /dev/null
+++ b/app-i18n/nabi/nabi-1.0.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Simple Hanguk X Input Method"
+HOMEPAGE="https://github.com/choehwanjin/nabi"
+SRC_URI="https://github.com/choehwanjin/${PN}/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug nls"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND=">=app-i18n/libhangul-0.1.0
+ dev-libs/glib:2
+ x11-libs/gdk-pixbuf:2
+ >=x11-libs/gtk+-2.4:2
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/pango
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+DOCS=( AUTHORS ChangeLog.0 NEWS README TODO )
+
+S="${WORKDIR}"/${PN}-${P}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=
+
+ # Broken configure: --disable-debug also enables debug
+ use debug && \
+ myconf="${myconf} --enable-debug"
+
+ econf ${myconf}
+}
+
+src_install() {
+ default
+
+ insinto /etc/X11/xinit/xinput.d
+ sed -e "s:@EPREFIX@:${EPREFIX}:g" "${FILESDIR}/xinput-${PN}" | newins - "${PN}.conf"
+}
+
+pkg_postinst() {
+ elog "You MUST add environment variable..."
+ elog
+ elog "export XMODIFIERS=\"@im=nabi\""
+ elog
+}
diff --git a/app-i18n/nkf/Manifest b/app-i18n/nkf/Manifest
new file mode 100644
index 000000000000..2a8f2bda6fda
--- /dev/null
+++ b/app-i18n/nkf/Manifest
@@ -0,0 +1,9 @@
+AUX nkf-2.1.3-strip.patch 328 SHA256 b6b35874a1aa5785a58693ef27e8e8096b9dd6a5513e58b865dc8f517cbab303 SHA512 a23bf0164bcf765f3b846a564c55bd783362e6f84b6f582d4d84b5ec8b711ca07d23d104ef5de2e84de5d6754b064034736ecadc5ceab6bda9ad59f00f2f527d WHIRLPOOL 153749a8531cfe8488a067e1173a86a9a0385cf64933684197740cf95202989830d637d74db4940dddbda2a5c7807d082491c2b203ac08750625cc9851ab4d35
+DIST NKF_python20090602.tgz 2318 SHA256 c86336e52398d836d6db4f9f169d11b4003ac02681b5e3395cd64c7823beb504 SHA512 3baee969daaba43e7ddee0d3b6d3d73ed67cfb0a3c3cbdabcdcda9fa1e61ccf374cd686ee096d031c3c48541c6be6daacf82e3b05885de63b88344d137c306d9 WHIRLPOOL adea94cd33b4421754be16f64f70dd56a3cd7394852f16fb74bde812ef7c30c6d67285f0b832cdba941039755fb57f97592b94f127a020cdcbd064a4d0f67b58
+DIST nkf-2.1.3.tar.gz 195020 SHA256 8cb430ae69a1ad58b522eb4927b337b5b420bbaeb69df255919019dc64b72fc2 SHA512 e40798d4084657b545bdaa9904229b0a424a9be076c16993b97d206c3e82490c45288eaab417c6eea70b770f89530f90e98e1a659f8f7e4b928eea4396d1e738 WHIRLPOOL 360ab7047da404159d8c9ce736f5d389934bbe33e3feae488be8df7aa87c48c2c39fba9e6a60a5fbd7850311303f906d3c544a48fdfb6163bf1ae106f0aaf639
+DIST nkf.1j 24160 SHA256 6738707f5e8f2c95a79a7faa83864ecc98e2485ed7fd22c30c959e85d67c3d47 SHA512 4680dfb59ceb9db5031ecefeca808e34202c841309d5b634cdd7aa89ee97118701ddeddb0ae18a2cf791987929dc9c5a528275cb1f63b1742eac2197ac9c1416 WHIRLPOOL 015ea200a9b781556bda7833044481c9686a65f92e7100d648da53d0e5277f03241936f18f5552c5e2b7ea71b3a9d0232bea2ed61496b61890cd7837f525e47b
+EBUILD nkf-2.1.3-r1.ebuild 1555 SHA256 d12b462d29a65a9f3f636cccf7abfc207ca17ec3502193a4820575deb66e90a3 SHA512 873a402d6cd444119fc3cc806a97e0f057343b26c724b38076168c416cdb3f9ee5d65fe50ae475469f8d55ae51fe5a45a7487f42277513c4b25dbd3202ecc5e0 WHIRLPOOL c02c6d1206cc415631ae43f90eb1ddcf665a4bb874556c66e58d18dc27ecd2237625c93abe91147c22b929ce1dd390005621d598aad0a186e664d9ae3107b1a2
+EBUILD nkf-2.1.3.ebuild 1424 SHA256 16f31726567d4958c07f7fd62f72546b6640e65513431d8a2c351d3d18f97048 SHA512 c3055e5c093fade5bf12ef16b46fb6f6a9c8b74c60d98a7e5c0e8b9e6beb68ae8fb9f11fa9e00afaf304945adc7133f06bfc05772ab2eb667c1f2b2a443da13b WHIRLPOOL b86c6b0e4dbbd7baa8bf27b089289aed67e1847a912779f41a41386158467de4645d7adf1ce780a745041b0c9bb853842d8fd4f8933a17e027b4779c45ef42ab
+MISC ChangeLog 2693 SHA256 a40b7db48c6de0ac77ed6ee723a9b5f0bd278aab1c0380b49091e7031912fbc3 SHA512 bb7b4136a9ee4607207912cc117e0f3b2bdac9d6d24a381acc69e14a98d57fdb33e848ff0c6f198f87042e98d60b3ab3e2d3618fdb1f2735417716fc4bb3b47b WHIRLPOOL f0836c91c0ccfdcca564dcad7956eb001bab6769c5146129b502ae5db18fcd060f2f119f7f241a57e67147400332889e04898aa2f4af59c7955ce1fe66a0de6f
+MISC ChangeLog-2015 7732 SHA256 80782ec8517b8d73fd5b4d731c91f0c80c15fd16c10dbcc2443bd6cc4c12debb SHA512 2394f92880c973504035a7f6eb0835524b72070bb48c426ba4c3df294394c71ae8d42711f72dfffd5ea59027d295252a792246d25c01b1c642e60e49248c9509 WHIRLPOOL a420940712e368e828200f916e619256529aedab4747501ca5c84083fea65e43f112910ecfe40b17a448c87bc6eabb3dc0b03bf27415d34954b55841ab86fa80
+MISC metadata.xml 310 SHA256 af25acac22c64dc629763cce8fe0ce1d50cd181d61033c32b5d202b19f33cd9f SHA512 2db03c97fb76c37b779c7f6e467c03b2bc08d2642090cc27a99ae07296edcde04924e37c8a3e6cb23d61552e8cf4bee273e5c17077fac0ae0ea3458aaa81eacd WHIRLPOOL 0f94e4fd921439612e404c83f0da063f42ab8f2fedc0ecfb101f45d1e23be22bbe38e7eb3210b323ef9ede72e32d92cedee0fd65c60214580afa4ce938136cf9
diff --git a/app-i18n/nkf/files/nkf-2.1.3-strip.patch b/app-i18n/nkf/files/nkf-2.1.3-strip.patch
new file mode 100644
index 000000000000..5cfac8820f82
--- /dev/null
+++ b/app-i18n/nkf/files/nkf-2.1.3-strip.patch
@@ -0,0 +1,9 @@
+--- a/NKF.python/setup.py
++++ b/NKF.python/setup.py
+@@ -8,5 +8,4 @@
+ author="Matsumoto Tadashi",
+ author_email="ma2@city.plala.jp",
+ ext_modules = [
+- Extension("nkf", ["NKF_python.c"],
+- extra_link_args = ['-s'])])
++ Extension("nkf", ["NKF_python.c"])])
diff --git a/app-i18n/nkf/metadata.xml b/app-i18n/nkf/metadata.xml
new file mode 100644
index 000000000000..a74bb9c23ebc
--- /dev/null
+++ b/app-i18n/nkf/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge-jp">nkf</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/nkf/nkf-2.1.3-r1.ebuild b/app-i18n/nkf/nkf-2.1.3-r1.ebuild
new file mode 100644
index 000000000000..240a559e772a
--- /dev/null
+++ b/app-i18n/nkf/nkf-2.1.3-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+inherit eutils distutils-r1 perl-module toolchain-funcs
+
+DESCRIPTION="Network Kanji code conversion Filter with UTF-8/16 support"
+HOMEPAGE="http://sourceforge.jp/projects/nkf/"
+SRC_URI="mirror://sourceforge.jp/nkf/59912/${P}.tar.gz
+ l10n_ja? ( https://dev.gentoo.org/~naota/files/nkf.1j )
+ python? ( https://dev.gentoo.org/~naota/files/NKF_python20090602.tgz )"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-macos"
+IUSE="perl python l10n_ja"
+
+src_prepare() {
+ sed -i \
+ -e '/^CFLAGS/{s|-g -O2||;s|=|+=|;}' \
+ -e '/-o nkf/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
+ Makefile || die
+
+ if use l10n_ja; then
+ cp "${DISTDIR}"/nkf.1j "${S}" || die
+ fi
+
+ if use python; then
+ mv "${WORKDIR}/NKF.python" "${S}" || die
+ epatch "${FILESDIR}"/${P}-strip.patch
+ fi
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" nkf || die
+ if use perl; then
+ cd "${S}/NKF.mod"
+ perl-module_src_compile
+ fi
+ if use python; then
+ cd "${S}/NKF.python"
+ distutils-r1_src_compile
+ fi
+}
+
+src_test() {
+ emake test || die
+ if use perl; then
+ cd "${S}/NKF.mod"
+ perl-module_src_test
+ fi
+}
+
+src_install() {
+ dobin nkf || die
+ doman nkf.1
+
+ if use l10n_ja; then
+ ./nkf -e nkf.1j > nkf.1
+ doman -i18n=ja nkf.1
+ fi
+ dodoc nkf.doc
+
+ if use perl; then
+ cd "${S}/NKF.mod"
+ perl-module_src_install
+ fi
+ if use python; then
+ cd "${S}/NKF.python"
+ distutils-r1_src_install
+ fi
+}
diff --git a/app-i18n/nkf/nkf-2.1.3.ebuild b/app-i18n/nkf/nkf-2.1.3.ebuild
new file mode 100644
index 000000000000..4c6a6142c01b
--- /dev/null
+++ b/app-i18n/nkf/nkf-2.1.3.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+inherit eutils distutils-r1 perl-module toolchain-funcs
+
+DESCRIPTION="Network Kanji code conversion Filter with UTF-8/16 support"
+HOMEPAGE="http://sourceforge.jp/projects/nkf/"
+SRC_URI="mirror://sourceforge.jp/nkf/59912/${P}.tar.gz
+ python? ( https://dev.gentoo.org/~naota/files/NKF_python20090602.tgz )"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-macos"
+IUSE="perl python l10n_ja"
+
+src_prepare() {
+ sed -i \
+ -e '/^CFLAGS/{s|-g -O2||;s|=|+=|;}' \
+ -e '/-o nkf/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
+ Makefile || die
+
+ if use python; then
+ mv "${WORKDIR}/NKF.python" "${S}" || die
+ epatch "${FILESDIR}"/${P}-strip.patch
+ fi
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" nkf || die
+ if use perl; then
+ cd "${S}/NKF.mod"
+ perl-module_src_compile
+ fi
+ if use python; then
+ cd "${S}/NKF.python"
+ distutils-r1_src_compile
+ fi
+}
+
+src_test() {
+ emake test || die
+ if use perl; then
+ cd "${S}/NKF.mod"
+ perl-module_src_test
+ fi
+}
+
+src_install() {
+ dobin nkf || die
+ doman nkf.1
+
+ if use l10n_ja; then
+ ./nkf -e nkf.1j > nkf.1
+ doman -i18n=ja nkf.1
+ fi
+ dodoc nkf.doc
+
+ if use perl; then
+ cd "${S}/NKF.mod"
+ perl-module_src_install
+ fi
+ if use python; then
+ cd "${S}/NKF.python"
+ distutils-r1_src_install
+ fi
+}
diff --git a/app-i18n/opencc/Manifest b/app-i18n/opencc/Manifest
new file mode 100644
index 000000000000..2f4fc446ba11
--- /dev/null
+++ b/app-i18n/opencc/Manifest
@@ -0,0 +1,10 @@
+AUX opencc-1.0.4-cmake-libdir.patch 350 SHA256 c799f0a96dd4e4dc72454f96e6ccabe79716b425448af34d17c9e214b3f8182a SHA512 03b73b009fe8d19cf202fbe7d635a8f8e68df842ae40c5dfca32f4d8c74691e489be856e7e44ee4ead2a364fb189a321b79bf7582905b5c1c0a99f54bc548bef WHIRLPOOL 5a6cae2a06a0a205253c5468a3e39a914fa3b0aaba8c75cefd1da86b973fc1e501a573ecfd21b1ed4cced0e8a09157e76f85304c61f003f4a2c12234ac7508a1
+AUX opencc-test.patch 202 SHA256 d234eaf721c0d72fb11813f012783baa8428cf82dfd893fd0807c0e4e259fcb6 SHA512 5318058587b41fb7021ffce64d4b999b1beed294ce4c00137fb4b0396dd2cb471af789bceb8a8076b1d4ec2226d3c3fdf8b3d3d6a1f5d80936cf2407b8bdd3ec WHIRLPOOL cba0d87dc9f20f33987771e3c17dec25bffe58c318eda6094edaa73a44e19cafee9d8fb6aea17ea4868485326f85a7ed90fa0d37f80359af64b0052f0e6caf72
+DIST opencc-1.0.4.tar.gz 1597309 SHA256 0553b7461ebd379d118d45d7f40f8a6e272750115bdbc49267595a05ee3481ac SHA512 682cc621fddb6495f26675863faefe7c9f584d2c60676cee0a3ff2120828a09a5e71671f5537030c2cc874f55b7f22af70d9d376f17b83e30cb04dcd5f6bba8a WHIRLPOOL 964180d27db85df6ffb4310ea6cae7b6c294c163bce68d05a5a21e8e736be6c11b44f8a2a856481b47e14c8c1104d244fc294259cbfa2f3160912743ac933cd6
+DIST opencc-1.0.5.tar.gz 1598354 SHA256 1ce1649ba280cfc88bb76e740be5f54b29a9c034400c97a3ae211c37d7030705 SHA512 3fbefbafe5c3c2491032158577ab97b5a3edf6ea98a03a7250deba082b72c3112ad4a3396d1a469936ec32e1d141f0a2236001c2891ac9c793add2b082596cc1 WHIRLPOOL eea817748d94c973f39c527d86359dd6710157b340ad906c85123129dee34f300d17dd9cc3d851d749c6651e9743ae0ff612009130de06c0ac97fd3fca409b9e
+EBUILD opencc-1.0.4.ebuild 753 SHA256 fe48e191df04a7ee07dc318e10e24906f6b99993fe3eed0238f42677fd9d8df3 SHA512 01a3585d1b3fdb13f3b6b52639c8349a3fb29842026fc5b8a96d88380efb830bc16aa47bf9f396584ea1367f6fed2ae54fcfaebd6b0b358bb18426afce0d54f9 WHIRLPOOL 25cfd24e3319e8376de03fab581c1d071576150f990dcf98fe5147a2071d4e05bda4aa5b4d0bbc10f63f4e85ad30827b17ceeb5a000c280933dfd93947cea5c0
+EBUILD opencc-1.0.5.ebuild 951 SHA256 d7a49df2d39c87a0c5c72c64d8c499c950d097ffe6003f0586241409b1b1d7ed SHA512 065cf96608de11939d91a30c5d1c6358c64066cd3a3c858d2c4ecc4aef2a4b77a83554e072e0f05234331818b7a4662dd32dfe114735023dd6ff0f44686aba8c WHIRLPOOL 0847307d7d432565a66ca83e52bee69340b1e392ce2cba63d8edd02eaf4ac2f1e26aa1628c69062aab0e6832e4ed5fe6aab678597d3a70d23ec3c61a92ce4425
+EBUILD opencc-9999.ebuild 927 SHA256 bedc796d21894d85230088a80662493756831ffff4ec919e6b35be53939ed65e SHA512 868b831de1cc47afe1b471848df50eb036c8f29701839a3ca3767aba8e42b10a227dd9dc33ee726331a890ef3938ef71af444582f1f2d16c785158f7b36e5eb6 WHIRLPOOL 48d0050edecabc0f7add00cf9bcc1a9f9c50a976ac2095d9b33655ce7d12f084a7840382c72dd6e131d8a2dc3a1baa735b232836cfbbf1a85d2ec92c8cb00572
+MISC ChangeLog 3872 SHA256 77eea797e59444961c119965d7f4089772140312d07b9a711c18ddd67b6b5dfd SHA512 570413355a497655be18f827fe2e0a7dc30bb6800975999197eb14f95180e991a40b361d83dbc4503d3800098f2cd95c8da3296642cdd71f1ce929f224542cd7 WHIRLPOOL c3a5b6bb034235acb136ff575a368cafe6990031ce475b15811c9a7714a108cc2d2c3dccb483c22de739480964a2a5918f912136c8b6319c252a53046458debc
+MISC ChangeLog-2015 2257 SHA256 aa5c4df94d722d6124eaa6091ad6dd50b3c41e4c92a8bf40f40f4aeaeb22f57b SHA512 a86e13bc8f92c1deca9a0fa54cbda81fecfd8b822029e9513161d3213a38d668f318bead59b4264218e6c4cb1899581ab2db8a253587d74b04dd7649652cca90 WHIRLPOOL c507c94b2c5adb48889f4c6b14e6de9ab0480cb2e008321b0b914b28c1a27b59d1cebb250706c63ce51298514945b0e54ad2fb66ed3ab182d96d2d93b6424e76
+MISC metadata.xml 491 SHA256 b1e39637b8103bf8db486986299520a875b1842fc2fe55db332c20835f3b8003 SHA512 303cf35b932c5d5a1fdd1a25b2c71a65a4aab761fe3c66d72439d691255a5edd1b943287afe8b4c53ab62531a012dafb5f416471a172f5b487557684dc6655df WHIRLPOOL 32bbd939037511390ff13de2a880a884a8cce92c3c6ba9579e3931216f6b0238f7c50bd9ea262b8ba6b2c8a9df99d0eb51321ff45a842d543222d65a79220876
diff --git a/app-i18n/opencc/files/opencc-1.0.4-cmake-libdir.patch b/app-i18n/opencc/files/opencc-1.0.4-cmake-libdir.patch
new file mode 100644
index 000000000000..dc8859d8e28e
--- /dev/null
+++ b/app-i18n/opencc/files/opencc-1.0.4-cmake-libdir.patch
@@ -0,0 +1,13 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -83,6 +83,10 @@
+ set (DIR_ETC ${SYSCONF_INSTALL_DIR})
+ endif (DEFINED SYSCONF_INSTALL_DIR)
+
++if (DEFINED CMAKE_INSTALL_LIBDIR)
++ set (DIR_LIBRARY ${CMAKE_INSTALL_LIBDIR})
++endif (DEFINED CMAKE_INSTALL_LIBDIR)
++
+ set (DIR_SHARE_OPENCC ${DIR_SHARE}opencc/)
+ set (DIR_SHARE_LOCALE ${DIR_SHARE}locale/)
+
diff --git a/app-i18n/opencc/files/opencc-test.patch b/app-i18n/opencc/files/opencc-test.patch
new file mode 100644
index 000000000000..dd6e91b984d2
--- /dev/null
+++ b/app-i18n/opencc/files/opencc-test.patch
@@ -0,0 +1,11 @@
+--- a/src/PhraseExtractTest.cpp
++++ b/src/PhraseExtractTest.cpp
+@@ -16,6 +16,8 @@
+ * limitations under the License.
+ */
+
++#include <cmath>
++
+ #include "PhraseExtract.hpp"
+ #include "TestUtils.hpp"
+
diff --git a/app-i18n/opencc/metadata.xml b/app-i18n/opencc/metadata.xml
new file mode 100644
index 000000000000..377bdc587a2d
--- /dev/null
+++ b/app-i18n/opencc/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ OpenCC is a library for converting characters and phrases between
+ Traditional Chinese and Simplified Chinese.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">BYVoid/OpenCC</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/opencc/opencc-1.0.4.ebuild b/app-i18n/opencc/opencc-1.0.4.ebuild
new file mode 100644
index 000000000000..139e1b4bf186
--- /dev/null
+++ b/app-i18n/opencc/opencc-1.0.4.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils vcs-snapshot
+
+DESCRIPTION="Libraries for conversion between Traditional and Simplified Chinese"
+HOMEPAGE="https://github.com/BYVoid/OpenCC"
+SRC_URI="https://github.com/BYVoid/${PN^^[oc]}/archive/ver.${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0/2"
+KEYWORDS="amd64 hppa ppc ppc64 x86"
+IUSE="doc test"
+
+DEPEND="doc? ( app-doc/doxygen )"
+
+DOCS="AUTHORS *.md"
+PATCHES=(
+ "${FILESDIR}"/${P}-cmake-libdir.patch
+ "${FILESDIR}"/${PN}-test.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ -DBUILD_SHARED_LIBS=ON
+ -DENABLE_GTEST=$(usex test)
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/opencc/opencc-1.0.5.ebuild b/app-i18n/opencc/opencc-1.0.5.ebuild
new file mode 100644
index 000000000000..ba948e2bf80d
--- /dev/null
+++ b/app-i18n/opencc/opencc-1.0.5.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/BYVoid/OpenCC"
+else
+ inherit vcs-snapshot
+
+ SRC_URI="https://github.com/BYVoid/${PN^^[oc]}/archive/ver.${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="Libraries for conversion between Traditional and Simplified Chinese"
+HOMEPAGE="https://github.com/BYVoid/OpenCC"
+
+LICENSE="Apache-2.0"
+SLOT="0/2"
+KEYWORDS="amd64 hppa ppc ppc64 x86"
+IUSE="doc test"
+
+DEPEND="doc? ( app-doc/doxygen )"
+
+DOCS="AUTHORS *.md"
+PATCHES=( "${FILESDIR}"/${PN}-test.patch )
+
+src_prepare() {
+ sed -i "s|\${DIR_SHARE_OPENCC}/doc|share/doc/${PF}|" doc/CMakeLists.txt
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ -DBUILD_SHARED_LIBS=ON
+ -DENABLE_GTEST=$(usex test)
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/opencc/opencc-9999.ebuild b/app-i18n/opencc/opencc-9999.ebuild
new file mode 100644
index 000000000000..9ec1cbd5d8b7
--- /dev/null
+++ b/app-i18n/opencc/opencc-9999.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/BYVoid/OpenCC"
+else
+ inherit vcs-snapshot
+
+ SRC_URI="https://github.com/BYVoid/${PN^^[oc]}/archive/ver.${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="Libraries for conversion between Traditional and Simplified Chinese"
+HOMEPAGE="https://github.com/BYVoid/OpenCC"
+
+LICENSE="Apache-2.0"
+SLOT="0/2"
+KEYWORDS=""
+IUSE="doc test"
+
+DEPEND="doc? ( app-doc/doxygen )"
+
+DOCS="AUTHORS *.md"
+PATCHES=( "${FILESDIR}"/${PN}-test.patch )
+
+src_prepare() {
+ sed -i "s|\${DIR_SHARE_OPENCC}/doc|share/doc/${PF}|" doc/CMakeLists.txt
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ -DBUILD_SHARED_LIBS=ON
+ -DENABLE_GTEST=$(usex test)
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/poedit/Manifest b/app-i18n/poedit/Manifest
new file mode 100644
index 000000000000..14cbd16b7225
--- /dev/null
+++ b/app-i18n/poedit/Manifest
@@ -0,0 +1,10 @@
+AUX poedit-1.5.5-wx28.patch 610 SHA256 84f3b5b9c60fb4504619ed79d3a6685a4aff3a07d160249926d7a8f1ccab921b SHA512 70193e75980938cf42658ea8bee5979d57a204dd92909e2a0cdb803659e8becccd4c1919eb2fb85467cd6aa2e4ac913c074eb834c9b318bc265239aaffbcf551 WHIRLPOOL c09fe986a8a94ce72ecf2a1e73cf1e0f6a1f44c8b31ba3bc044ec2c409dcb2ebe90b5efde24ea96ff90dd10e2566554ddcfc9ae5fe469cf8dfdba9f9dcbb44d2
+DIST poedit-1.5.5.tar.gz 2594758 SHA256 3c94c9825c11a2d1ce10e083ad246e8625469f358da4a5a2f6210170b970f949 SHA512 a3524e27681dbf97babef7bf3ec56d6b7cd736370f8ed86b53c717a5a2eb36245f9ed89fcd28b57bd4d6f5ff5fb98d6c1615baae0bf10be720dcfdafa57ad4f4 WHIRLPOOL 893795acc85183cede0313b9220179cafa17a92033e8472e48454475f4ecdf51a014dc7123e9396a38a98217c43666919e7a1dadf68ab2f401b920071cec3d23
+DIST poedit-1.8.5.tar.gz 2404829 SHA256 cf541b8cbaf5d019cb2bd8f97c848e9f2d59dcf771d2281fc08f1122a923d96d SHA512 87eae2bcedc07eefb097edf263db10b3947956cfa504eddb259e3c3cfed6215ad0da4517fe5132b61041c39a7fbabd298ca42582570295bacbbd62d5ffc6f6a7 WHIRLPOOL 316e0593e2e5fa82c893f9b55ab0b8b2816a65f33e64f0b25985704c05c8d5d319cea4199c3c9685c57a0fbd96ace26f091214aab66a02dfc858759be8d7d99d
+DIST poedit-1.8.7.tar.gz 2483945 SHA256 562d9fdf44869db63ad5c219a79aeecda859490d57e43e00140b0e8114006a46 SHA512 609022e696915cddb130c561c7eaa7dff76ce0458f58d9b8de34f0e8b98839cdccaf4a593e0e4eded67252cece08c61f961191f64cf4d76fa148f403d9705e68 WHIRLPOOL 8d1b7eafa8605323d8e4048e07eb631cac65eb2f98bdbe61687cb18c79120ac12187c6be60f112695b624857f0483c9fb6ec5e581691cb07cd14dcd30728d09e
+EBUILD poedit-1.5.5.ebuild 913 SHA256 5c03171630f50e39d5657d183c4a8945afdd21738ddaa75f2c8d06f40739742e SHA512 d00ea3c8ad267c9641c747f54ce74788c08b132d4c3395b5789c56613cf2e5d6594f72075f49d75b4ae3b2fed1f9432d6dd8da41e10b516bb039f542bc5a7989 WHIRLPOOL f3a7fb33eedfc36807e23d003ee06e3d9689ae883649fe49908af8225f83610b0b707281218f46850f39038ab0f5d626a42eb980f93cc1d5745c1c9962ddd68f
+EBUILD poedit-1.8.5.ebuild 1732 SHA256 9267ff41f1e5aebb7e69189ab9db6f6da4a0ae1cd6389694519863256ecd8efb SHA512 32873dfe6efb3e2c4faee91bf93031ef47ff4d7d5539388329dc4aaaab989b4cf6fc3d7703e8ead57db4d0b33410c3dba21a7bfce0fb6950473e1fa64cd19622 WHIRLPOOL 8fd2c28b2e25f75152ead81a3e7c6ce03a9ffb87c52279f594010d705c0b965c587c4a6fa125f200b65c1001736a4db3db21018295c3c006d33e6f7403cc07c8
+EBUILD poedit-1.8.7.ebuild 1595 SHA256 0452a973906ade2edee0b25dc5d7eb198df799fd64fc3778cfc1abd686ea8333 SHA512 29e404d07a6f9103ae40ca4a745cd92bd32cd28829623b99d84f0a6b8436f333d2f0a0ecdaf78c620dfc274910b61df9d26337156902e1894cee0f5a59b41fd3 WHIRLPOOL 4a3e0364038e7bd0513590280bde9c3aaff1d2ff47bbd769ae38ab14b3498eb430feddaa2fe1a0c7484aee73ab0181d2067ec3f4c95d8f228419b19f0e1fff23
+MISC ChangeLog 3774 SHA256 7ebab8c3a378f35038254c020e756c37c728250a76541ff2ae5459e67b3f4423 SHA512 16ebc34942e4d3d778468e7080ef98d42be89f24fd95e2672cb2c66c66732405ed5bf9b7a026706eae95fb2e4e6dfc4a5f51d82383fb7316f92cbbe15b59edb5 WHIRLPOOL 6d6fa8b322988fca9b98dd1e083c3654c0e42ef6816257a0c2242d0d31771c74de4371fadc7973ba80a246df795bccbb051a932e7b496d778d2b0fb2e12837eb
+MISC ChangeLog-2015 13714 SHA256 a88259af65685274bdb0e5462ee9bed36e128311324841174da97a1180c9bc5e SHA512 f4d11da7389eaa712a13e59b59b8f10bd4410750b74c9a7dcc72bf355cc5044f026d5e292bcd64e0b2a25a04f1fc0481e2ea0ed2c32a28307249b3b12389c019 WHIRLPOOL 820ff832f1d59869fba7273e63835e16f178d2c76bb211f3b1c6da9b1d9688e1818319230543ace15d9112168e894e9b79092c6810372c3a6820a4f0235268a2
+MISC metadata.xml 391 SHA256 a482b82c6191d7eeee6625a739ffdf4a08c34c7894d1f9eab49acf6c215e6df4 SHA512 703b2a9a442d99d59f033561093bc9027cd52c0a98eb1e0cc253c3fcfbcf1987fac8c244061edfe87ea84dde192fe098ed02c6b1cdc3bb6754f42a72ac2ddd3f WHIRLPOOL 3636003924f9e7af6c7a335a31591038edcbe6213f5f3b26645efffb597d9c9811d095e1a81a9b894396976874b5246fb5e7d2aea9923e883b96bac949e7f992
diff --git a/app-i18n/poedit/files/poedit-1.5.5-wx28.patch b/app-i18n/poedit/files/poedit-1.5.5-wx28.patch
new file mode 100644
index 000000000000..f10c731c597a
--- /dev/null
+++ b/app-i18n/poedit/files/poedit-1.5.5-wx28.patch
@@ -0,0 +1,22 @@
+catalog.cpp:1155:20: error: 'class wxCharBuffer' has no member named 'length'
+
+http://www.poedit.net/trac/ticket/513
+
+
+--- a/src/catalog.cpp
++++ b/src/catalog.cpp
+@@ -1151,8 +1151,13 @@ inline bool CanEncodeStringToCharset(const wxString& s, wxMBConv& conv)
+ {
+ if (s.empty())
+ return true;
+- wxCharBuffer converted(s.mb_str(conv));
++ const wxCharBuffer converted(s.mb_str(conv));
++#if wxCHECK_VERSION(2,9,0)
+ if ( converted.length() == 0 )
++#else
++ const char *cs = (const char*)converted;
++ if ( cs == NULL || strlen(cs) == 0 )
++#endif
+ return false;
+ return true;
+ }
diff --git a/app-i18n/poedit/metadata.xml b/app-i18n/poedit/metadata.xml
new file mode 100644
index 000000000000..ce23bed0e6f5
--- /dev/null
+++ b/app-i18n/poedit/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 type="project">
+ <email>wxwidgets@gentoo.org</email>
+ <name>Gentoo wxWidgets Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">vslavik/poedit</remote-id>
+ <remote-id type="sourceforge">poedit</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/poedit/poedit-1.5.5.ebuild b/app-i18n/poedit/poedit-1.5.5.ebuild
new file mode 100644
index 000000000000..f47d006f3565
--- /dev/null
+++ b/app-i18n/poedit/poedit-1.5.5.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+WX_GTK_VER=2.8
+
+inherit eutils fdo-mime flag-o-matic wxwidgets
+
+DESCRIPTION="Cross-platform gettext catalogs (.po files) editor"
+HOMEPAGE="http://poedit.sourceforge.net/"
+SRC_URI="mirror://sourceforge/poedit/${P}.tar.gz"
+
+LICENSE="MIT CC-BY-2.5 CC-BY-SA-2.5"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc sparc x86"
+IUSE="spell"
+
+RDEPEND="dev-libs/boost
+ >=sys-libs/db-4.7
+ x11-libs/wxGTK:2.8[X]
+ spell? ( app-text/gtkspell:2 )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-wx28.patch
+}
+
+src_configure() {
+ append-flags -fno-strict-aliasing
+ econf $(use_enable spell spellchecking)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS NEWS README TODO
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/app-i18n/poedit/poedit-1.8.5.ebuild b/app-i18n/poedit/poedit-1.8.5.ebuild
new file mode 100644
index 000000000000..f704a88dabab
--- /dev/null
+++ b/app-i18n/poedit/poedit-1.8.5.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+WX_GTK_VER=3.0
+
+PLOCALES="af am an ar ast az be@latin be bg bn br bs ca ca@valencia ckb co cs da de el en_GB eo es et eu fa fi fr fur fy_NL ga gl he hi hr hu hy id is it ja kab ka kk ko ku ky lt lv mk mn mr ms nb ne nl nn oc pa pl pt_BR pt_PT ro ru sk sl sq sr sv ta tg th tr tt ug uk ur uz vi wa zh_CN zh_TW"
+
+inherit eutils fdo-mime flag-o-matic gnome2-utils l10n wxwidgets
+
+DESCRIPTION="GUI editor for gettext translations files"
+HOMEPAGE="https://poedit.net"
+SRC_URI="https://github.com/vslavik/${PN}/releases/download/v${PV}-oss/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 hppa ~ppc ppc64 x86"
+IUSE=""
+
+# db/expat req for legacytm (backwards support for pre 1.6)
+# we currently have 1.5.5 in stable so this is enabled
+RDEPEND="
+ app-text/gtkspell:2
+ dev-cpp/lucene++
+ dev-libs/boost:=[nls]
+ dev-libs/expat
+ dev-libs/icu:=
+ || (
+ =sys-libs/db-5*[cxx]
+ =sys-libs/db-4*[cxx]
+ )
+ <sys-libs/db-6:=[cxx]
+ x11-libs/gtk+:2
+ x11-libs/wxGTK:${WX_GTK_VER}[X]
+ "
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ my_rm_loc() {
+ sed -i -e "/^POEDIT_LINGUAS = /s: ${1}::" locales/Makefile.in || die
+ rm "locales/${1}.mo" || die
+ }
+ l10n_find_plocales_changes 'locales' '' '.mo'
+ l10n_for_each_disabled_locale_do my_rm_loc
+
+ append-flags -Wno-deprecated-declarations
+}
+
+src_configure() {
+ econf --without-cpprest --without-cld2
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS NEWS README
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/poedit/poedit-1.8.7.ebuild b/app-i18n/poedit/poedit-1.8.7.ebuild
new file mode 100644
index 000000000000..825517a6b8fa
--- /dev/null
+++ b/app-i18n/poedit/poedit-1.8.7.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WX_GTK_VER=3.0-gtk3
+
+PLOCALES="af am an ar ast az be be@latin bg bn br bs ca ca@valencia ckb co cs da de el en_GB eo es et eu fa fi fr fur fy_NL ga gl he hi hr hu hy id is it ja ka kab kk ko ky lt lv mk mn mr ms nb ne nl nn oc pa pl pt_BR pt_PT ro ru sk sl sq sr sv ta tg th tr tt ug uk ur uz vi wa zh_CN zh_TW"
+
+inherit fdo-mime l10n wxwidgets
+
+DESCRIPTION="GUI editor for gettext translations files"
+HOMEPAGE="https://poedit.net"
+SRC_URI="https://github.com/vslavik/${PN}/releases/download/v${PV}-oss/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE=""
+
+# db/expat req for legacytm (backwards support for pre 1.6)
+# we currently have 1.5.5 in stable so this is enabled
+RDEPEND="
+ app-text/gtkspell:3
+ dev-cpp/lucene++
+ dev-libs/boost:=[nls]
+ dev-libs/expat
+ dev-libs/icu:=
+ || (
+ =sys-libs/db-5*[cxx]
+ =sys-libs/db-4*[cxx]
+ )
+ <sys-libs/db-6:=[cxx]
+ x11-libs/gtk+:3
+ x11-libs/wxGTK:${WX_GTK_VER}[X]
+ "
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ my_rm_loc() {
+ sed -i -e "/^POEDIT_LINGUAS = /s: ${1}::" locales/Makefile.in || die
+ rm "locales/${1}.mo" || die
+ }
+ l10n_find_plocales_changes 'locales' '' '.mo'
+ l10n_for_each_disabled_locale_do my_rm_loc
+
+ setup-wxwidgets
+ default
+}
+
+src_configure() {
+ econf --without-cpprest --without-cld2
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS NEWS README
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/app-i18n/pology/Manifest b/app-i18n/pology/Manifest
new file mode 100644
index 000000000000..f7eddb949d29
--- /dev/null
+++ b/app-i18n/pology/Manifest
@@ -0,0 +1,8 @@
+DIST pology-0.11.tar.bz2 2064780 SHA256 ad83559f68921d7977f882e4abaf009522e834ae8f47b028309451938f05d0b4 SHA512 bc0193fd4d61390eb9fc5f0ae8eba87e4ef4a3f82f0c1cb937bc24e54cb304d208b5f57c2310291601600f97635e759e700346198637f8d155746c0baaa02b22 WHIRLPOOL 23dfbd32f4edf12d628f36c991aa1e108c2c17f6dd30d2ac201cec4a9b2152afb6696d1f1f82b77f3d407c77500d63ceb7ee8b3e53d067ec5d1aa1bb42ea0be5
+DIST pology-0.12.tar.bz2 1773467 SHA256 33fd75b7214fc70882df128b5651d4870cb7d6cc73ca27c5517b4686976de5de SHA512 2e23d1dd0c38cc17826908734adf46fb30c30d58f906fc223e2e9251791dad43d02840ae4eca55e04682af574df45a553ccd83faf85a785a1446f645e4222b4f WHIRLPOOL 04ca0259381eff932e1c32b31f2f022444733d5801e62e628d6a3bb589cf051c5fcc886cfbdc86d68cfc3ecafbb1f93d5321f3f6955a02fddbab448ee2435d65
+EBUILD pology-0.11-r1.ebuild 1570 SHA256 7ced46fc4d6fc760cf08e028afb21ba2f77e70cb85ef15dacc81e99bc5f83365 SHA512 b923d57d57190bd4958a58d15cceb22abee160bdfbfeff346917ffeda895883ddd5c6d66d282c73ca1d4f53510c597c3bdaada6dd9e761d22b0ea3ff1ca581e6 WHIRLPOOL f9328b299d006a7f87e837a34da9eec8a29abe59e8377039cc5d52a7b1d47078c7eb17ffb7f34b8733bc9bb80d60844571e5fe3ba4f15183397a05e0b5fc8ca0
+EBUILD pology-0.12.ebuild 1495 SHA256 e4ab5f7466c52b142728a13f09a391560c3479bb2f1d86453ba7f06c0ad3f1da SHA512 c4cc6c79f4eb6c85cf981f4e96c9da6cf847336bd13cce71fe683fc8ac6f2c5802ee1428ab3d869fbbaf5b29197e7a992015ed26111da593328ba4fde2c208a6 WHIRLPOOL ea92a3d5d96f901d98910ff6d63f44845bee502698c91a008e06241ba054d099e899cddaf33c047bf54975fbf5020ce601a8d34702963c4c4b253db30c3c07a0
+EBUILD pology-9999.ebuild 1495 SHA256 e4ab5f7466c52b142728a13f09a391560c3479bb2f1d86453ba7f06c0ad3f1da SHA512 c4cc6c79f4eb6c85cf981f4e96c9da6cf847336bd13cce71fe683fc8ac6f2c5802ee1428ab3d869fbbaf5b29197e7a992015ed26111da593328ba4fde2c208a6 WHIRLPOOL ea92a3d5d96f901d98910ff6d63f44845bee502698c91a008e06241ba054d099e899cddaf33c047bf54975fbf5020ce601a8d34702963c4c4b253db30c3c07a0
+MISC ChangeLog 2524 SHA256 92be28720a06c4a6536a9a1564cce60604f1c8d846690a0f0228863f5c0f50d6 SHA512 7f08d04d7c1b4397a6eae1b9bbf5397754529b72da4445a41a0002202e747d8913756144eb01be94c0674f4a87c08d0fe4995d00855807aa86acaebba652933f WHIRLPOOL af5560bff0667deb2b8cfc434baf223117564769e6a0f15a004d43ea5645b6785b8330e920326775b38ec1b7ff28c6b3f50e544092e99fd4acdfc0faffccae6a
+MISC ChangeLog-2015 1937 SHA256 a9f2c84349a152e04e56b4b2fcc08aaa9f04788a20d40c3cde4e7c45cd52865b SHA512 d2236508a4a28a1d91973c93018f8f5bd356422383230de3988644f0c04d90ea54a738640fffdfbc99242024d2f90967de21c37d20deb3cc8d4246834c46c9a9 WHIRLPOOL b317cfd10a3e367ace7fe0b6846c33be196b0ccd2e3f571e08b5599c46c31da754528fd8073a3b9351292440b859a5204e0a47384e182531be611916c8d41c2b
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/app-i18n/pology/metadata.xml b/app-i18n/pology/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/app-i18n/pology/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/pology/pology-0.11-r1.ebuild b/app-i18n/pology/pology-0.11-r1.ebuild
new file mode 100644
index 000000000000..b53d5e0869b8
--- /dev/null
+++ b/app-i18n/pology/pology-0.11-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/l10n-support/pology"
+PYTHON_COMPAT=( python2_7 )
+
+[[ ${PV} == 9999 ]] && VCS_ECLASS="subversion"
+
+inherit python-single-r1 cmake-utils bash-completion-r1 ${VCS_ECLASS}
+unset VCS_ECLASS
+
+DESCRIPTION="A framework for custom processing of PO files"
+HOMEPAGE="http://pology.nedohodnik.net"
+[[ ${PV} == 9999 ]] || SRC_URI="http://pology.nedohodnik.net//release/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+
+# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
+[[ ${PV} == 9999 ]] || \
+KEYWORDS="amd64 x86"
+
+IUSE=""
+
+RDEPEND="
+ dev-libs/libxslt
+ dev-libs/libxml2
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ sys-devel/gettext
+ ${PYTHON_DEPS}
+"
+DEPEND="${RDEPEND}
+ app-text/docbook-xsl-stylesheets
+ app-text/docbook-xml-dtd:4.5
+ dev-python/epydoc[${PYTHON_USEDEP}]
+"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# Magic on python parsing makes it impossible to make it parallel safe
+MAKEOPTS+=" -j1"
+
+src_prepare() {
+ python_fix_shebang .
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ dosym ../../../pology/syntax/kate/synder.xml /usr/share/apps/katepart/syntax/synder.xml
+
+ newbashcomp "${ED}"/usr/share/pology/completion/bash/pology posieve
+ bashcomp_alias {posieve,poediff}{,.py}
+
+ einfo "You should also consider following packages to install:"
+ einfo " app-text/aspell"
+ einfo " app-text/hunspell"
+ einfo " dev-vcs/git"
+ einfo " dev-vcs/subversion"
+ einfo " sci-misc/apertium"
+}
diff --git a/app-i18n/pology/pology-0.12.ebuild b/app-i18n/pology/pology-0.12.ebuild
new file mode 100644
index 000000000000..ef4c6581f0e2
--- /dev/null
+++ b/app-i18n/pology/pology-0.12.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/l10n-support/pology"
+PYTHON_COMPAT=( python2_7 )
+
+[[ ${PV} == 9999 ]] && VCS_ECLASS="subversion"
+
+inherit python-single-r1 cmake-utils bash-completion-r1 ${VCS_ECLASS}
+unset VCS_ECLASS
+
+DESCRIPTION="A framework for custom processing of PO files"
+HOMEPAGE="http://pology.nedohodnik.net"
+[[ ${PV} == 9999 ]] || SRC_URI="http://pology.nedohodnik.net//release/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+[[ ${PV} == 9999 ]] || \
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/libxslt
+ dev-libs/libxml2
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ sys-devel/gettext
+ ${PYTHON_DEPS}
+"
+DEPEND="${RDEPEND}
+ app-text/docbook-xsl-stylesheets
+ app-text/docbook-xml-dtd:4.5
+ dev-python/epydoc[${PYTHON_USEDEP}]
+"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# Magic on python parsing makes it impossible to make it parallel safe
+MAKEOPTS+=" -j1"
+
+src_prepare() {
+ python_fix_shebang .
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ dosym ../../../pology/syntax/kate/synder.xml /usr/share/apps/katepart/syntax/synder.xml
+
+ newbashcomp "${ED}"/usr/share/pology/completion/bash/pology posieve
+ bashcomp_alias {posieve,poediff}{,.py}
+
+ einfo "You should also consider following packages to install:"
+ einfo " app-text/aspell"
+ einfo " app-text/hunspell"
+ einfo " dev-vcs/git"
+ einfo " dev-vcs/subversion"
+ einfo " sci-misc/apertium"
+}
diff --git a/app-i18n/pology/pology-9999.ebuild b/app-i18n/pology/pology-9999.ebuild
new file mode 100644
index 000000000000..ef4c6581f0e2
--- /dev/null
+++ b/app-i18n/pology/pology-9999.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/l10n-support/pology"
+PYTHON_COMPAT=( python2_7 )
+
+[[ ${PV} == 9999 ]] && VCS_ECLASS="subversion"
+
+inherit python-single-r1 cmake-utils bash-completion-r1 ${VCS_ECLASS}
+unset VCS_ECLASS
+
+DESCRIPTION="A framework for custom processing of PO files"
+HOMEPAGE="http://pology.nedohodnik.net"
+[[ ${PV} == 9999 ]] || SRC_URI="http://pology.nedohodnik.net//release/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+[[ ${PV} == 9999 ]] || \
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/libxslt
+ dev-libs/libxml2
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ sys-devel/gettext
+ ${PYTHON_DEPS}
+"
+DEPEND="${RDEPEND}
+ app-text/docbook-xsl-stylesheets
+ app-text/docbook-xml-dtd:4.5
+ dev-python/epydoc[${PYTHON_USEDEP}]
+"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# Magic on python parsing makes it impossible to make it parallel safe
+MAKEOPTS+=" -j1"
+
+src_prepare() {
+ python_fix_shebang .
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ dosym ../../../pology/syntax/kate/synder.xml /usr/share/apps/katepart/syntax/synder.xml
+
+ newbashcomp "${ED}"/usr/share/pology/completion/bash/pology posieve
+ bashcomp_alias {posieve,poediff}{,.py}
+
+ einfo "You should also consider following packages to install:"
+ einfo " app-text/aspell"
+ einfo " app-text/hunspell"
+ einfo " dev-vcs/git"
+ einfo " dev-vcs/subversion"
+ einfo " sci-misc/apertium"
+}
diff --git a/app-i18n/pyzy/Manifest b/app-i18n/pyzy/Manifest
new file mode 100644
index 000000000000..865bd85b73b7
--- /dev/null
+++ b/app-i18n/pyzy/Manifest
@@ -0,0 +1,9 @@
+AUX pyzy-boost.patch 411 SHA256 e8a104014e2e7a69766b52570ffde9ed6e3f57a8e7c56308a57b1a63846d6499 SHA512 3cb8a0cf43f1fc53949fc8a69c95fcd04b49121d676530da39da6aa70a4916a2f0a6974056b1ee461d2804a28fdb7bb6a9780e5f5e217a4ffa8716b6f2060882 WHIRLPOOL df94f75421d2fecc849a5d9dc6d52aadd11f2d64e65e6714b0b3bbdcc111ca6c085d8106f9b4980d7283e9421790216d6503a7fe12e02438b361f70791e785df
+AUX pyzy-db.patch 359 SHA256 3e7272a5f63a67f2a2f6139a5f1f4baecc374e52a207ff4f77a94a212dae497f SHA512 794366e0304e92b55bca70eb11a4373eb29e272c2db27db3259b5ca84e8164427ffaacb1fdb15fc0d2a4c6c9d36408f0bf8b35ee5ccba9a9746ae13c7032cfdb WHIRLPOOL 77d705b64292bab7e57a4aafa5606237f1d186e4e13fa91475aa481197b1d12df06fcb434f73a91d717ba46435d2310d5882bbac9b818737c462c63bd0a4c9b5
+AUX pyzy-opencc-1.0.0.patch 1712 SHA256 3cb6e1fcb0fa260d717813e727ae2e2c888cfee8dd183cc4c5c9e16becbc195a SHA512 4455229fb9c271e5f2a08292b34daf0cb2969a21af52cf116fadb15764cc82a4e557a9672d253af9a3968a8e907c92d8fd4542e2225a2f09fafe9592c58e7713 WHIRLPOOL 383889be8821df170627a546a1e0996f210f1e6471dd8ca39d8ce99b8acfbc40e2ab6cd554f33482b5f9d108d2c70a1ce79791ac9d33f42cf9a6366779f27688
+DIST pyzy-0.1.0.tar.gz 1571946 SHA256 fe468a4372473d85a56f05d55b14f0e0201fde6f9336a1a2322cf79421c84d9a SHA512 42477152ffd6a2f7ce0e8f920d98e9dc9c7fc32fe9e93a2a4de75c791e70d0f08c30eca0244dc2b87981f6bfc4e635234d62720aa19358c8f80a84e0c371c662 WHIRLPOOL 8cba6d647ee9f4e4f3ee22922245fc9b67fab779ea4381793eece9171d6f0cb4d0f325cc2ac1c4ce7ff6f47d383f6c02d0b866dcfbdc841b6f84ee6dff6fe0fe
+DIST pyzy-database-1.0.0.tar.bz2 9977983 SHA256 32c7d07b9f41e1dfc0f9008f54eca8e6cb367e7f2b19ac94c49754442694c321 SHA512 5a7248870407f7f92c418ada49a275062325f2eb33a7eb4b91492e4b706ae70ba931b04377a758ce429fa64cd22e8bee2ac4279d4f205bbce406248eda1decf7 WHIRLPOOL 07043adf9d83eb40b1a53409a31b3711f041e2b4dd5cf3f8c2034c129c31270fd37f2e53ecf2da5503562cf103ccb0a4487fa606928ac38a8775e90ff376ce3a
+EBUILD pyzy-0.1.0-r2.ebuild 1272 SHA256 e72e11595bec2aebad5345b163fb429774c70416360ee54e55578916a5830faf SHA512 28c9aecc4ce1d935d84188195ec5cbf59d73b4fd42421d5d8adc54f28f85e83d050c5a91419a03e05b5e7f3f9654e2ba01e97b946d8e1c43d20e54bdc11715a4 WHIRLPOOL 8deb78259563361d7f416d0a44a2d8a17e9d36d29bcfbf96f79b3c4dd7909b5e4a57a24cdfb9aef07b2bfa16ad1b69c83c090290cf5e0c31cd9093eb941591b9
+MISC ChangeLog 3329 SHA256 20ee34c91382ab1ecf67c2518aa986f797673e76be58d759c48ab67b226628e2 SHA512 067d6babe25acd3d26c1d7db146ae916a68867692b31fba2e382f3490fe6b5bb43903b98f17a6d647fa5f49a9849d3e7a14df9c6dbcd4b1d706e51763d0539ed WHIRLPOOL a6e9bb62dc905452b58f94715be7726593f0050a6b86fc0ac2b57f3c945cfdcdd34f632bb4e30d188432bf49013e68ac2de5807aacaa7313cc1e00ca87007495
+MISC ChangeLog-2015 1164 SHA256 ebb3fc41cdf20c16a079f2776093b5c420691c7f8c7887d9d198b99691ffe23a SHA512 65b1bd160c701c618a03d72a5916530be595f2c3e5724863f63579cda2107a4941a4a08293a32c75f86239ec047f703fa87d3e465886261398983adf713bad19 WHIRLPOOL 95e7cb8049cd244aad5d0070821bc71931e68ca15b849879cc4c4da6dad5423b67599f6925864664f70b5d7d24a4acc5eac8cf915841d5481ccfcb4daff915f2
+MISC metadata.xml 649 SHA256 a413abd5a0277dcbe120fd8e570e770b1ef264a1bb0a1e985b66d7edf6ca5abd SHA512 46c86fc066ea686db8497ff7dc76361a865a24215b49d2924521235c5bf88f9b029c25597f1bd19399f965052c6b324ded0a2d287cdd29518a2f46cc6614c4a4 WHIRLPOOL 39bb3a63bdcd717cf8dfc5e92608a9ff0e9cd67248df047e3103a1da10be080f3d1db059ea001fa0dfa8905c3e0c6120ff13ef7eada7b6503f2533540a1f27ce
diff --git a/app-i18n/pyzy/files/pyzy-boost.patch b/app-i18n/pyzy/files/pyzy-boost.patch
new file mode 100644
index 000000000000..34acacfbc9ba
--- /dev/null
+++ b/app-i18n/pyzy/files/pyzy-boost.patch
@@ -0,0 +1,15 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -143,9 +143,9 @@
+ )
+ if test x"$enable_boost" = x"yes"; then
+ # check boost
+- BOOST_REQUIRE([1.39])
+- BOOST_FIND_HEADER([boost/bind.hpp])
+- BOOST_FIND_HEADER([boost/signals2.hpp])
++ AX_BOOST_BASE([1.39])
++ AC_CHECK_HEADERS([boost/bind.hpp])
++ AC_CHECK_HEADERS([boost/signals2.hpp])
+ fi
+ AM_CONDITIONAL(HAVE_BOOST, test x"$enable_boost" = x"yes")
+
diff --git a/app-i18n/pyzy/files/pyzy-db.patch b/app-i18n/pyzy/files/pyzy-db.patch
new file mode 100644
index 000000000000..44d0ac6bf456
--- /dev/null
+++ b/app-i18n/pyzy/files/pyzy-db.patch
@@ -0,0 +1,17 @@
+--- a/data/db/open-phrase/Makefile.am
++++ b/data/db/open-phrase/Makefile.am
+@@ -30,13 +30,10 @@
+ DBTAR = pyzy-database-$(DBVER).tar.bz2
+
+ $(DBTAR):
+- $(AM_V_GEN) \
+- wget http://pyzy.googlecode.com/files/$(DBTAR) || \
+- ( $(RM) $@; exit 1)
++ touch $@
+
+ stamp-db: $(DBTAR)
+ $(AM_V_GEN) \
+- tar jxfm $(DBTAR); \
+ mv db/main.db db/$(db_file); \
+ touch $@
+
diff --git a/app-i18n/pyzy/files/pyzy-opencc-1.0.0.patch b/app-i18n/pyzy/files/pyzy-opencc-1.0.0.patch
new file mode 100644
index 000000000000..1e23e8b6e5db
--- /dev/null
+++ b/app-i18n/pyzy/files/pyzy-opencc-1.0.0.patch
@@ -0,0 +1,56 @@
+https://github.com/pyzy/pyzy/pull/1
+
+Author: Hillwood Yang <hillwood@opensuse.org>
+
+--- a/src/SimpTradConverter.cc
++++ b/src/SimpTradConverter.cc
+@@ -4,6 +4,7 @@
+ *
+ * Copyright (c) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
+ * Copyright (c) 2010 BYVoid <byvoid1@gmail.com>
++ * Copyright (c) 2015 Hillwood Yang <hillwood@opensuse.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+@@ -40,7 +41,6 @@ namespace PyZy {
+ #ifdef HAVE_OPENCC
+
+ class opencc {
+- static const int BUFFER_SIZE = 64;
+ public:
+ opencc (void)
+ {
+@@ -55,29 +55,13 @@ public:
+
+ void convert (const char *in, String &out)
+ {
+- long n_char;
+- unichar *in_ucs4 = g_utf8_to_ucs4_fast (in, -1, &n_char);
+-
+- ucs4_t *pinbuf = (ucs4_t *)in_ucs4;
+- size_t inbuf_left = n_char;
+- while (inbuf_left != 0) {
+- ucs4_t *poutbuf = (ucs4_t *)m_buffer;
+- size_t outbuf_left = BUFFER_SIZE;
+- size_t retval = opencc_convert(m_od, &pinbuf, &inbuf_left, &poutbuf, &outbuf_left);
+- if (retval == (size_t) -1) {
+- /* append left chars in pinbuf */
+- g_warning ("opencc_convert return failed");
+- out << (unichar *) pinbuf;
+- break;
+- }
+- *poutbuf = L'\0';
+- out << m_buffer;
+- }
+- g_free (in_ucs4);
++ char * converted = opencc_convert_utf8 (m_od, in, -1);
++ g_assert (converted != NULL);
++ out = converted;
++ opencc_convert_utf8_free (converted);
+ }
+ private:
+ opencc_t m_od;
+- unichar m_buffer[BUFFER_SIZE + 1];
+ };
+
+ void
diff --git a/app-i18n/pyzy/metadata.xml b/app-i18n/pyzy/metadata.xml
new file mode 100644
index 000000000000..f6afd400fc25
--- /dev/null
+++ b/app-i18n/pyzy/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <use>
+ <flag name="boost">Enable support for <pkg>dev-libs/boost</pkg></flag>
+ <flag name="doc">Generate API documentation</flag>
+ <flag name="opencc">Enable support for <pkg>app-i18n/opencc</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="github">pyzy/pyzy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/pyzy/pyzy-0.1.0-r2.ebuild b/app-i18n/pyzy/pyzy-0.1.0-r2.ebuild
new file mode 100644
index 000000000000..2c736e2414ad
--- /dev/null
+++ b/app-i18n/pyzy/pyzy-0.1.0-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools ltprune python-any-r1
+
+PYZY_DB="${PN}-database-1.0.0"
+
+DESCRIPTION="The Chinese PinYin and Bopomofo conversion library"
+HOMEPAGE="https://github.com/pyzy/pyzy"
+SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${P}.tar.gz
+ https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${PYZY_DB}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="boost doc opencc"
+
+RDEPEND="dev-db/sqlite:3
+ dev-libs/glib:2
+ sys-apps/util-linux
+ boost? ( dev-libs/boost )
+ opencc? ( app-i18n/opencc:= )"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ sys-devel/autoconf-archive
+ doc? ( app-doc/doxygen )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-boost.patch
+ "${FILESDIR}"/${PN}-db.patch
+ "${FILESDIR}"/${PN}-opencc-1.0.0.patch
+)
+
+src_prepare() {
+ mv "${WORKDIR}"/db data/db/open-phrase || die
+
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable boost) \
+ $(use_enable opencc) \
+ --enable-db-open-phrase \
+ DOXYGEN=$(usex doc doxygen true)
+}
+
+src_install() {
+ if use doc; then
+ HTML_DOCS=( docs/html/. )
+ fi
+
+ default
+ prune_libtool_files
+}
diff --git a/app-i18n/qimhangul/Manifest b/app-i18n/qimhangul/Manifest
new file mode 100644
index 000000000000..bfc3fbcdb17c
--- /dev/null
+++ b/app-i18n/qimhangul/Manifest
@@ -0,0 +1,5 @@
+DIST qimhangul-0.2.0.tar.gz 336566 SHA256 50149a80f97456d7b316e1a168fd19dece01da5e1055855d7779941cf76c4006 SHA512 0871dddf48211841be36facde39cd215c247a5b89c1167baadd33b839eff084b7c39185804e1e62a7acc001178b56751d4f0301e327e1e0709b4340b7a003d0e WHIRLPOOL 97496aed656a0d0a7cd6558374c5971af8057ff9bfb0508a5676a6ba390468e47777b0dfd1def35c367d56bcb0a82dc598ef8be5280c2c46d939d1a47f7814da
+EBUILD qimhangul-0.2.0.ebuild 385 SHA256 41076e6d000c4fe51cb14979581243d05e42d48c56d0b26416bb4a83f83dcdb7 SHA512 d578c43c201eaf8e892578b6d1a57d337ed651479a147ae97ac3d0f45d8b9eb8dc8a122994df4e78a57e38b302f7710539ed826761876729d8493a737756ce80 WHIRLPOOL 051a2c11f123d5de42454f02a1e13d5cf0fd06bddff8bfd3e10a6c182058066311082c7c126ea53adf9296d8e86c4bedabcdd2ba642c30659c327e0c658668d5
+MISC ChangeLog 2433 SHA256 9b4559eabea1d3439319119f408ec16892905ed53e7ab2b8d29172ebbd18db41 SHA512 0c8e53783114ff5227b7a62f688756bcceb862af4c508b741a228033b68c668e1beac0b28ab6192aeda74569f76d1c4b523d4054b96e148c716b42d5d80ef921 WHIRLPOOL 3d79e613c5b8365d705e4ad03c2474dddf57c11fcd785b740c4dadfc46142129d17283e76aca2b3871df6c055e7097d46a766ac49e68314047a80b680e36da37
+MISC ChangeLog-2015 583 SHA256 cf694e0646389135c6ee3dec4af16c35554efcd94f4e61675c72481e512c78b4 SHA512 5db4b99d87b4bbf4eaccba5cc07bf9c48d7b69053f33f4958c389f370e95997e1f52ebc968f1bb2375136b2ca88a392f0afc1b9d98ea42a6bec3fe61bee71741 WHIRLPOOL 7e5153a9d1b730e52d5f38a6383b13f7c67f1e0cddaea0d46102b165bd469aeded9ec17f89faa1b6cdf46af9147e6ac5a91a3efbdb67a77d808ec4abeed81ebb
+MISC metadata.xml 230 SHA256 5fc421627b578ee2d1317320525119c0b406026597bb1d054f96254a241bf96a SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 WHIRLPOOL b3c1363540645200abd5bf0b5b7fb3cae0b738bfd359f7b13b56d97650f9381fccede1e3f867dbc736461ee7c7906725a3c53eabd9ac99929d5c7c520a831082
diff --git a/app-i18n/qimhangul/metadata.xml b/app-i18n/qimhangul/metadata.xml
new file mode 100644
index 000000000000..c921b96adf6c
--- /dev/null
+++ b/app-i18n/qimhangul/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-i18n/qimhangul/qimhangul-0.2.0.ebuild b/app-i18n/qimhangul/qimhangul-0.2.0.ebuild
new file mode 100644
index 000000000000..44a23c251b42
--- /dev/null
+++ b/app-i18n/qimhangul/qimhangul-0.2.0.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="a qt-based imhangul"
+HOMEPAGE="https://code.google.com/p/qimhangul/"
+SRC_URI="https://qimhangul.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="amd64"
+IUSE=""
+
+DEPEND=">=app-i18n/libhangul-0.0.12
+ dev-qt/qtgui:4"
+RDEPEND="${DEPEND}"
diff --git a/app-i18n/qkc/Manifest b/app-i18n/qkc/Manifest
new file mode 100644
index 000000000000..f1f2f6753cea
--- /dev/null
+++ b/app-i18n/qkc/Manifest
@@ -0,0 +1,5 @@
+DIST qkcc100.zip 36308 SHA256 46eb09712dbc3cf9063a8f5eac1cbdbba73040a73b9a7ed048ad4a6f8a9ff69e SHA512 a03f12625c1205d1220c70e2c3bd8f4ef281a3f0f6317ad7a0221624ba6461a7f9fbbb1da68048fc2bb3b071895dfb13aaa630e780fd49eddb0b6c528ce2e4a0 WHIRLPOOL 18158ba7677143bc76ccf63ab883ad8e5051c4c2d29333dc8fc2370ffbb640b5bafa682ca086de6fcbbe5ff2016e431b9f519f382aa2148462bc9b761aa910de
+EBUILD qkc-1.00.ebuild 656 SHA256 3d62c9412412147d20906b29f4a4e73e47cb3af486b52ad8b93b5a50a543e806 SHA512 45b7646486e43cd18dc45c02415e030757b054c35e3b85f9d71f03d7dfc99c335468052fcb48d1e69d29ace3f59e6d2d20ee5c2c8e27c218a5d9235f7ad189d5 WHIRLPOOL 877a71f65e8bb81d8e9ee398303c9addbff12db67fecb8f5c9da0308cf19cf7a92aeef03c0c0f5986ba3a03cad7fd32ceb2570012a1c50697f8d26dca54cdcbb
+MISC ChangeLog 2413 SHA256 017b8b4849fba6381f892f89ddf5bc19b16ec911c00ad23b67ec5238d3e0f750 SHA512 8704c475291f0689d2290ea0e94cda6494a0277fb2a8d68c9d6913d2fbac43ed01bb31b161d07d4d4a12570890f0004abffbf7ffe889cf2066868b596938edb2 WHIRLPOOL efff251fa8b60767f1ba28e4a2e482f8de3e3e76a03a0bc70ce807cbc6ae21ab61ec43619bfa7a3282f8906ca89bbbd083e07e977042daec58a97fe6661741d1
+MISC ChangeLog-2015 1259 SHA256 8ef4788fc2472e38c264ba74040f02592ba73faf65cea64cd0cff660168adaf6 SHA512 0ee9caa30628970a58160f37092c9ce3afd559e47c9182b7296eee32706ba19f589034cf34b1cdf4fce9e14c1b82e2e638a21c1f043d31a36740daf4343fa460 WHIRLPOOL 7f3dc9a3919be8de089318a42206fb69a46b65cdc434fc8ea079f1ef89120dc04cac110b4b04393a0dac7102de9bb75f9b9cf5f83d03bba340f1e7686ba7da16
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/qkc/metadata.xml b/app-i18n/qkc/metadata.xml
new file mode 100644
index 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/qkc/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/qkc/qkc-1.00.ebuild b/app-i18n/qkc/qkc-1.00.ebuild
new file mode 100644
index 000000000000..214c07afe506
--- /dev/null
+++ b/app-i18n/qkc/qkc-1.00.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit toolchain-funcs
+
+MY_P="${PN}c${PV/./}"
+
+DESCRIPTION="Quick KANJI code Converter"
+HOMEPAGE="http://hp.vector.co.jp/authors/VA000501/"
+SRC_URI="http://hp.vector.co.jp/authors/VA000501/${MY_P}.zip"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+S="${WORKDIR}"
+
+src_prepare() {
+ sed -i "/^LFLAGS/s:$: \${LDFLAGS}:" Makefile
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin qkc
+ dodoc qkc.doc
+ doman -i18n=ja qkc.1
+}
diff --git a/app-i18n/rime-data/Manifest b/app-i18n/rime-data/Manifest
new file mode 100644
index 000000000000..82119cf78cfb
--- /dev/null
+++ b/app-i18n/rime-data/Manifest
@@ -0,0 +1,9 @@
+DIST brise-0.22.tar.gz 6061141 SHA256 a048b741a7651dbb47d1b6e6e25d266d670680112b70ca3c27f2bc17dcafde59 SHA512 8bf0585ba6e01a1bc1c708d7017987041dc5a9ce74ba5022514b0f6bf2016c2b23212d7396126f30748387ced7d83aa73001164793881ea18553b5e923eab1b9 WHIRLPOOL b2a2ea6a24130e595bb5e0039106f28f293785fe8f1016e13edc4f83655abbc94f60522c4df864da5a136f037588a7613b588f68858baee6874000b552cccded
+DIST brise-0.32.tar.gz 6697747 SHA256 4462d1f1e8f9cf62bfabc490d2ed1ead4747a92d05018fa78ff6db6c69932f62 SHA512 c41d4a7399a963b9e023015e1268f0f63693091d0ae2edff9db68397d223bb25ea6c392d2649f7817edd40998b1ed144d63478a01241cdaa5f2e84fd846e24d7 WHIRLPOOL 518442446506bc9e3743069667e596764e2561c5093f1e3d1b8f50518af98e4506cf7205f867ad0ff9614043c3d45008b00501840439730d39baf18d752667fa
+DIST brise-0.35.tar.gz 6707277 SHA256 89670753ffdd321053a5b8f0b82c68e29129b330a411b841b5b9e900b9a3da4f SHA512 1a2a3ddba9be7089a1b82ce446a3e5dc93a13fff121f861aa1acbdea950f490c9367866902a056296e17de5076a59a54741ceb3a59a9c0ec58b6b7c54f519f3d WHIRLPOOL e00ac2e3f7f50737491b5213b75ed2ee3fa3c08c4073584b6a31315982edcf8090ff3a39fe1fd602f82513dbcf0dab57107d09bc582babc8a966de2b8dccff66
+EBUILD rime-data-0.22.ebuild 438 SHA256 d699d79348590f44bccf29f384530f0121f5af815ff3bb7d1b247ce296f4babc SHA512 0f57059ad5cac0972a48f444a1539f69eeabe98d921c161cad26d4ccecb5712838b5856d5bf9eff0ddfea73515f33d7b822693f3b729f8fbe9523234b29b0d89 WHIRLPOOL f68bb2ce45c97ced2d1d8d1fff3a03d98b9ae8d7d42ad71a6b9358ae912d532cc8997e7446f213692d37e805c4de203b14f7a427e580a51ee648326825ca6383
+EBUILD rime-data-0.32.ebuild 440 SHA256 0a5239caa7c6a00842af6bc9ff6c2c4ef733f2869091a122a396acea57ec098a SHA512 09ae2407d77e5299a3e2ba961f6c320533610515d97f666f447f016b6fcd2e6e3c6b360ffa99dadb37c8d2962f9fcfdd90a771716bac5b83498c612db027fe0a WHIRLPOOL 1e9ab2f70645a9bd4069e9fd7c4515a84f585efe6ab0d44b6c3a9ea6075f9420fdef5bad2e3d27f0fa55d95d23ce3b4dfa6e4ddcbe3c2de919870cbb2c555ba7
+EBUILD rime-data-0.35.ebuild 433 SHA256 8bfc9798e14b44ff30fec74494a766ecdcd4165e348293bee6beae3e36584338 SHA512 b44455124fec61750e12a13bbeb3ea4a40e73bbcf46cfb9ed99487ed0962a091b8de250418146953ccded45e5314f313ac4c796fa214f44447422bfe649dcc80 WHIRLPOOL a47e005e374b64834d2feaa6e77ff8ec1b41275467b78c943b6fcb79dffc0c370e545a3b94649f08e3a355c5252ec8aa129a070a05720e0d45b5b909f6f1786c
+MISC ChangeLog 3164 SHA256 41942dad869d9e7ed28ab8499de593f7fb4c1b690ba268ea5e7adce4011b0ff8 SHA512 77911bb2dc5d66a2a5d10bfa8b6c9f6b7dc600019a7b7d8c4fd788b7dce5eda2a424cfbf6279a6701de4af32327e1683147ab3beaa3aaa11a21b5594c0d29223 WHIRLPOOL d0e9a91e86b231b0b1a77d2c2d7b5e4e0d866f45bf7564853c2a3fbcebb61a6592850d4467bf1e16812a2aa2283c3f3ffce57dc7fca0871bd89461a095721f6d
+MISC ChangeLog-2015 2386 SHA256 62ecb6da650ba9879b08e5e9b66a21386646ccf15d7c2a680e90ed75ab7f748a SHA512 c077ae09d9daf036125b8922a966ba808ebebee002400e7b94d9cb936d31af8cf89610bf6360de5db81c87947f02bb60c1e3c812c11cf492dda0bb6299e4eab3 WHIRLPOOL 17fd6554d1471327c03b7dda7a73f6a6ec69c2ac01bedfbe3544d4c174e96868648286d3948f9ba5dc33e622943b3fd727cea68d94464af4d7fcba223cf1750e
+MISC metadata.xml 601 SHA256 dee931dc1737d90d3f341c7a6466d6e5127dae7bf6ca992101f8d2c95ca84a7f SHA512 b99f85bda84da0fe35cda523709d24cea8065b72c57de666a615dcb0acec3b2745b6c06eb53a2cd63bdbc77c8abda232e9020b02965e6dde0f24211361efc34b WHIRLPOOL 6362603a3305ee334cf3c2ac8bc01f2f8919f8f7ba7d1e1b8c4abd6bffb83efbd0938496cae6594d44163c50698d9b001940091bbe530693c7f564756eb7d5a6
diff --git a/app-i18n/rime-data/metadata.xml b/app-i18n/rime-data/metadata.xml
new file mode 100644
index 000000000000..f0aced69ea0e
--- /dev/null
+++ b/app-i18n/rime-data/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>chen.sst@gmail.com</email>
+ <name>Gong Chen</name>
+ </maintainer>
+ <bugs-to>https://code.google.com/p/rimeime/issues/list</bugs-to>
+ <remote-id type="google-code">rimeime</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/rime-data/rime-data-0.22.ebuild b/app-i18n/rime-data/rime-data-0.22.ebuild
new file mode 100644
index 000000000000..7cc85e79be4d
--- /dev/null
+++ b/app-i18n/rime-data/rime-data-0.22.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit vcs-snapshot
+MY_P=brise-${PV}
+DESCRIPTION="Data resources for Rime Input Method Engine"
+HOMEPAGE="http://rime.im/"
+SRC_URI="https://rimeime.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE=""
+
+DEPEND="app-i18n/librime"
+RDEPEND="${DEPEND}"
+S="${WORKDIR}"/${MY_P}
diff --git a/app-i18n/rime-data/rime-data-0.32.ebuild b/app-i18n/rime-data/rime-data-0.32.ebuild
new file mode 100644
index 000000000000..df6a4ffb1bf3
--- /dev/null
+++ b/app-i18n/rime-data/rime-data-0.32.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vcs-snapshot
+MY_P=brise-${PV}
+DESCRIPTION="Data resources for Rime Input Method Engine"
+HOMEPAGE="http://rime.im/"
+SRC_URI="https://rimeime.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="app-i18n/librime"
+RDEPEND="${DEPEND}"
+S="${WORKDIR}"/${MY_P}
diff --git a/app-i18n/rime-data/rime-data-0.35.ebuild b/app-i18n/rime-data/rime-data-0.35.ebuild
new file mode 100644
index 000000000000..8063bfc70916
--- /dev/null
+++ b/app-i18n/rime-data/rime-data-0.35.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vcs-snapshot
+MY_P=brise-${PV}
+DESCRIPTION="Data resources for Rime Input Method Engine"
+HOMEPAGE="http://rime.im/"
+SRC_URI="http://dl.bintray.com/lotem/rime/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 x86"
+IUSE=""
+
+DEPEND="app-i18n/librime"
+RDEPEND="${DEPEND}"
+S="${WORKDIR}"/${MY_P}
diff --git a/app-i18n/scim-anthy/Manifest b/app-i18n/scim-anthy/Manifest
new file mode 100644
index 000000000000..7fb259146752
--- /dev/null
+++ b/app-i18n/scim-anthy/Manifest
@@ -0,0 +1,6 @@
+DIST scim-anthy-1.2.7-patches.tar.xz 11236 SHA256 639f4f182fac4c99c5347ec0497a141975ebe62d7a4a114dcf2c9ca628f65def SHA512 ff265547ea78912b3cb2519793fc7159d466da6bbd3cd47f63a67731207c46ba8932a5384899ffbe517bb3d91f14ee282906ee287025ae64ccee7636dd633f08 WHIRLPOOL 9efc90013d8912bec02055e5f870bde96cb589b74fae7ad75d823df7de49c8d7180422f142d29e5430195eb7c6dbd5aa0682b6ebc26362d1a08f51d20e223a4e
+DIST scim-anthy-1.2.7.tar.gz 680942 SHA256 cb60070d8f6ff281a99d329c9d731f02ae16893083c9efa9970ccd7287365198 SHA512 4ece2e458b204a68392ed676134ff45f1e193fda00d5ffb219c4e947f7f069a0221b279f110bf4093a22e57c41cb1555c6be4d42bea1c9e848af06ad8e0bc2da WHIRLPOOL 1268e71f435ab222da38a4028334a8c83795fe584634d0416956e0295b389f4232e822feaf90416ac88b79e73541f3c7607da3a33222f8644c2151b984a45c7a
+EBUILD scim-anthy-1.2.7-r1.ebuild 1035 SHA256 fe9901ade160c19a0d2ab0f094eb8d5fd4f05b3571f439a042e2e90bd0e4d71f SHA512 da6d7f66f8e565a3bdfa28963227092880a063cfcf911bdedd338539e21dcf7813e5e71e679084ea8bf595edb77b54512d9b9fb70943e2df594791e412503891 WHIRLPOOL e3f8d4b3acddd694748b3840f5cd152092f2adbd096cfbab98fcb127c49dc562f1835a331d37fac0fd5faf526a5672b40b33169165e819871998bf889ddda978
+MISC ChangeLog 2703 SHA256 1c25f5adbd51d893425c256e11af133c7a9be5d2fe53b613bb087ddf1e5cec9d SHA512 6387ad2d24bf2d2a2623545d3edb819aace7ce7b80517da8d3c21727a637523c2d8669f42c919f6412b6bab9718198c772128390766b0acb40c722c60f1a9357 WHIRLPOOL 3a351998d8ec86c5b9fd2f62e0ca211914311361e336cf95713129de404f5198f9fd002e9c26cd1d28e7795ffb764e61d822a909ce566ee88731845664ff287d
+MISC ChangeLog-2015 9992 SHA256 4b487b251062e41478c2539934047f4f793618e7a9ec6510a218a67bff36b971 SHA512 1f506042241f1703e4222c05df803d24ac366b88ef0245cf5e4923adf6a46bdfa9d51aeae8b10ece3d240200e615dc5cae6f04f6161994dfb53291926e3dbc51 WHIRLPOOL 2f152218331f6e7b37d8eec50b7fdb4304e5ce5856573da8a33808122a867fa29da4776fada36762af50d2f7f949b97aeb71a25a9957739b773ef55f24c4bbd4
+MISC metadata.xml 509 SHA256 47018e773940758cd0e40d7a10a614041827a0f1c303091589ae6a9a3a09030b SHA512 a82ba624a14789aeb582c08ee2b19980767e3743b5465efc57f4ebeffe84aa4aced2d5c4cc46e3a7b1b6a68708a99abf6580efda4bdb6b755e60876d36176ce6 WHIRLPOOL a1fa29f7032e1a94aef57eb231a92dd3253f47e5baf60cf582c5c3fed9ff561e083580dfcfddf489d570d65638bcbf7d8d617555606fd66e9f96f410efcb2497
diff --git a/app-i18n/scim-anthy/metadata.xml b/app-i18n/scim-anthy/metadata.xml
new file mode 100644
index 000000000000..73c9beb07f72
--- /dev/null
+++ b/app-i18n/scim-anthy/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <use>
+ <flag name="kasumi">Use Anthy dictionary maintenance tool
+ (<pkg>app-dicts/kasumi</pkg>)</flag>
+ <flag name="gtk3">Enable support for <pkg>x11-libs/gtk+</pkg>:3</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge-jp">scim-imengine</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-anthy/scim-anthy-1.2.7-r1.ebuild b/app-i18n/scim-anthy/scim-anthy-1.2.7-r1.ebuild
new file mode 100644
index 000000000000..d309c2f3be9e
--- /dev/null
+++ b/app-i18n/scim-anthy/scim-anthy-1.2.7-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="Japanese input method Anthy IMEngine for SCIM"
+HOMEPAGE="http://scim-imengine.sourceforge.jp/index.cgi?cmd=view;name=SCIMAnthy"
+SRC_URI="mirror://sourceforge.jp/scim-imengine/37309/${P}.tar.gz
+ gtk3? ( https://dev.gentoo.org/~heroxbd/${P}-patches.tar.xz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ppc sparc x86 ~x86-fbsd"
+IUSE="+gtk3 nls kasumi"
+
+DEPEND=">=app-i18n/scim-1.2[gtk3=]
+ >=app-i18n/anthy-5900
+ nls? ( virtual/libintl )
+ gtk3? ( x11-libs/gtk+:3 )"
+RDEPEND="${DEPEND}
+ kasumi? ( app-dicts/kasumi )"
+DEPEND="${DEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig"
+
+src_prepare() {
+ if use gtk3; then
+ EPATCH_SOURCE="${WORKDIR}/patches" EPATCH_SUFFIX="patch" epatch
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ --disable-static \
+ --disable-dependency-tracking
+}
+
+src_install() {
+ default
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/app-i18n/scim-bridge/Manifest b/app-i18n/scim-bridge/Manifest
new file mode 100644
index 000000000000..b78aee0ccb02
--- /dev/null
+++ b/app-i18n/scim-bridge/Manifest
@@ -0,0 +1,10 @@
+AUX scim-bridge-0.4.15.2-gcc43.patch 375 SHA256 0595a929766a9f29a0ad888696512c35caff1b9e3d91ceca29d05e3222a62a18 SHA512 53745d5edccc6ef2dacedb3eb3ed6a1c79a33b414a5298d089afe1c3b2061f29da559431e3ea92efb94bef2efbece2a73109c7d471ebcf9c62df7ea1bc3f6276 WHIRLPOOL 5698680a6449b3cd3d95321f939abe39af1fe9da9052f0ff8f1051e8345abafa494b2c688b4f1a19ac39396bfa12dc6a687d4a16ffe6a595a84b9d9a4340b8f8
+AUX scim-bridge-0.4.15.2-qt4.patch 2146 SHA256 778a7174a08444871e82388235ee8053d3d5c8f248d1dbbddff0067c34742424 SHA512 66991d3757b85126045dbf13cc2943a11c90aa05b4eeaec255b5f1f17148b85d01718d665678a19403935215c79646b5c77ad244509e213351b14ba47b852cc2 WHIRLPOOL fd78a6f63ca45d7f0333c538f89b5fe9290a19c24342c33a54aeab5df1e547cf3a05ff8a2cb288ba5edc4b7a1fa3e7e1e8032b18ca18113d890df86acbaed33f
+AUX scim-bridge-0.4.16+gcc-4.4.patch 382 SHA256 f80ca88a66de77447601270f60f31b46e32bb18058da91e726375c7757ee7719 SHA512 5b0bf2aee53d2e59e9b60e6b5db71dc8ff2b1337ebaf176cdb36bbe1aeb7bf7c28f57c8968a8551c1cddeae9057bc7b2b3864439b7422286f2652f5467aa87de WHIRLPOOL bcac3abea41c81b13a759b7e9259567b10f238598c9986af9d0bd75c3d988d8c8ba89c5aa4dc6279953af7f48b97b70e3b7a8a19a738cfa1a8cc669b363f5b8a
+AUX scim-bridge-0.4.16+gcc-4.7.patch 774 SHA256 10c8610053e524116f8474f611d71bd673453b7c4fec6143b669de15ded891aa SHA512 3349b93e71fdb4e6942253877ed1d84c59a099f5c3fd7d6148c780c6a8af65bb47431dde0a84995dab66bc864872130690b1ee89ee1e2db2c50591f94095c35a WHIRLPOOL 4486c543f85c4d93ec323bd10eade7b27d6138136b5ffd8de52e25b309a609b13b46fa3d8a001134d3b71a73c8c1d6125be6886bfa25b07354e300a31b0dd698
+AUX scim-bridge-0.4.16-configure.ac.patch 5693 SHA256 14cb38ed841c98bfc222131d192659cf3895b63517a07a605b5bce9013871de4 SHA512 64fac34fc9d6982d61542af815ae6da5172d5e5208b938a386ad8fa67bd8988829e8c45412a47b9fef0c8b91b52d4f90b269266e49fb867a671cea1dc4581408 WHIRLPOOL df8fa7d2ccecd59b0ea81b4f5dd68ec1d8f0ca07921bc7d304168b8ab261c63c4e05bc2fd3fcb0f1323d1051e7d0495f2291eb5a22890ded2b9bd30f6cde4afa
+DIST scim-bridge-0.4.16.tar.gz 508870 SHA256 50d9da4a2842ab31cd3b27b1baacb14c458614bdb35855c6ecd09ab855ac702c SHA512 8d40a931738f6130ab2fdc4e8dec70143874c53d5720a0403603b57c9f80d7c0a4802609e0446684fa5cba1758e78e5f333d01787527934ed7a19c9727fd66a6 WHIRLPOOL 5edfd01b5143fe3a900947ea7b0e848b318cf25b14295c319c1593d0235cefd68dc128a46fde01631223eef14a16a9d82ecc289475527f52dbb80376a0c36116
+EBUILD scim-bridge-0.4.16-r3.ebuild 1842 SHA256 fe3019b5169f30c115b4da3c67aa8470944092ad3abd928e0a8d094e6eb2bb6a SHA512 e4e239e4ab1a93920689c411b1f78b5e30585d8f2037c4f499d6769300fca9343383c2bf380507ab8feb6c2f4ba1dff56ce7025ec3dad497a34db6e12dc4d73b WHIRLPOOL bc30ac60f28bda1a9281549e3602fabb27e2048fcd1b963eef7c8bb5f0d1dd0cd4061cdb26ac8650ede715ee89fb1f2465605a556f89f5d2c4de594778f4ff94
+MISC ChangeLog 3018 SHA256 bf57035f1e5dee21eb440d51b063e1f186c96e0abade676938c2c65f909e68ca SHA512 08439fd943b671b9bf896d1c98ff6ab87ada7e50ebb16b1a13e32dea31b1eb2fc12153cd0c19ad554200b9900fb413432ebb7c4094f022711ee36815baddb14c WHIRLPOOL ed537ee0b8a175a31884c83588c715506c7218f0dd2de33031b30798ff625256c429b6c9ae548c6399badea6c4c8f2120de8290927c8bbd0a55c93bb0cfa8eb9
+MISC ChangeLog-2015 6761 SHA256 45342bbc4231f3d8aa237ffebb0e3d2a434a9c11e60203592cbf1b283422c2b5 SHA512 25bec4efea4cb2f08c2d1df27c9467eb3c6cb3ab776601d1771bfbca8697c3a6b6814e4c714e3943de14c71a116d59b84347555a0962bdee03a5daebb75d537c WHIRLPOOL 12192083c8cd53bb118ab3294c82f143473cfdc25911e98b054f8c29489c535140aeb13063a55f946e2fa977be828c92c4ddb7eec1bb6b363fd271e0bd4d1d10
+MISC metadata.xml 308 SHA256 fca15aa6f4f3564c9310b314c403ee412704ce76871c1266c6038d9b1fb55899 SHA512 9f18bf632f3eff9a6498145c2b4c04d51bb119c67351216ab757cd3cea2364c60bef683769218c0596ef6bd29235e51df6a64f9ab1234665fc2191e18fc51cc7 WHIRLPOOL d861c223e235412417b8800d5dc7df83abe7ecd0b1acdcbd7fdd31e5a9aad2180f842652532126358a23f1e5c40c02e0fad16ef46edf98abd502018c82c4d6ff
diff --git a/app-i18n/scim-bridge/files/scim-bridge-0.4.15.2-gcc43.patch b/app-i18n/scim-bridge/files/scim-bridge-0.4.15.2-gcc43.patch
new file mode 100644
index 000000000000..1db7769424f5
--- /dev/null
+++ b/app-i18n/scim-bridge/files/scim-bridge-0.4.15.2-gcc43.patch
@@ -0,0 +1,10 @@
+--- scim-bridge-0.4.15.orig/client-common/scim-bridge-client-output.c 2008-11-02 15:44:34.000000000 +0900
++++ scim-bridge-0.4.15/client-common/scim-bridge-client-output.c 2009-01-25 15:10:22.000000000 +0900
+@@ -20,6 +20,7 @@
+ #include <stdarg.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <alloca.h>
+
+ #include "scim-bridge-debug.h"
+ #include "scim-bridge-output.h"
diff --git a/app-i18n/scim-bridge/files/scim-bridge-0.4.15.2-qt4.patch b/app-i18n/scim-bridge/files/scim-bridge-0.4.15.2-qt4.patch
new file mode 100644
index 000000000000..606117cfbf01
--- /dev/null
+++ b/app-i18n/scim-bridge/files/scim-bridge-0.4.15.2-qt4.patch
@@ -0,0 +1,58 @@
+diff -Naur scim-bridge-0.4.15.orig/client-qt/qt4/Makefile.am scim-bridge-0.4.15/client-qt/qt4/Makefile.am
+--- scim-bridge-0.4.15.orig/client-qt/qt4/Makefile.am 2009-01-18 01:57:40.000000000 +0900
++++ scim-bridge-0.4.15/client-qt/qt4/Makefile.am 2009-01-25 14:58:09.000000000 +0900
+@@ -24,7 +24,7 @@
+
+ noinst_HEADERS = ../scim-bridge-client-qt.h ../scim-bridge-client-imcontext-qt.h ../scim-bridge-client-key-event-utility-qt.h ../scim-bridge-client-common-qt.h
+
+-moduledir = @QT4_PREFIX@/plugins/inputmethods
++moduledir = @QT4_LIBDIR@/plugins/inputmethods
+ module_LTLIBRARIES = im-scim-bridge.la
+
+ im_scim_bridge_la_SOURCES = ../im-scim-bridge-qt.cpp \
+diff -Naur scim-bridge-0.4.15.orig/client-qt/scim-bridge-client-imcontext-qt.cpp scim-bridge-0.4.15/client-qt/scim-bridge-client-imcontext-qt.cpp
+--- scim-bridge-0.4.15.orig/client-qt/scim-bridge-client-imcontext-qt.cpp 2008-11-02 15:44:46.000000000 +0900
++++ scim-bridge-0.4.15/client-qt/scim-bridge-client-imcontext-qt.cpp 2009-01-25 15:04:34.000000000 +0900
+@@ -219,6 +219,12 @@
+ void ScimBridgeClientIMContextImpl::setFocusWidget (QWidget *widget)
+ {
+ scim_bridge_pdebugln (4, "ScimBridgeClientIMContextImpl::setFocusWidget ()");
++
++ if (focused_imcontext != NULL) {
++ focused_imcontext->focus_out ();
++ focused_imcontext = NULL;
++ }
++
+ QInputContext::setFocusWidget (widget);
+ focus_in ();
+ update ();
+@@ -442,8 +448,15 @@
+ }
+ }
+
++#ifdef QT4
++ if (preedit_shown) {
++ set_preedit_shown (false);
++ update_preedit ();
++ }
++#else
+ set_preedit_shown (false);
+ update_preedit ();
++#endif
+
+ focused_imcontext = NULL;
+ }
+diff -Naur scim-bridge-0.4.15.orig/configure.ac scim-bridge-0.4.15/configure.ac
+--- scim-bridge-0.4.15.orig/configure.ac 2009-01-18 02:24:32.000000000 +0900
++++ scim-bridge-0.4.15/configure.ac 2009-01-25 14:58:06.000000000 +0900
+@@ -105,6 +105,10 @@
+ QT4_PREFIX=`$PKG_CONFIG --variable=prefix QtCore`
+ fi
+ AC_SUBST(QT4_PREFIX)
++ if test -z "$QT4_LIBDIR"; then
++ QT4_LIBDIR=`$PKG_CONFIG --variable=libdir QtCore`
++ fi
++ AC_SUBST(QT4_LIBDIR)
+ enable_qt4_immodule="yes";
+ fi
+
diff --git a/app-i18n/scim-bridge/files/scim-bridge-0.4.16+gcc-4.4.patch b/app-i18n/scim-bridge/files/scim-bridge-0.4.16+gcc-4.4.patch
new file mode 100644
index 000000000000..11415931fdbc
--- /dev/null
+++ b/app-i18n/scim-bridge/files/scim-bridge-0.4.16+gcc-4.4.patch
@@ -0,0 +1,12 @@
+Index: scim-bridge-0.4.16/agent/scim-bridge-agent-application.cpp
+===================================================================
+--- scim-bridge-0.4.16.orig/agent/scim-bridge-agent-application.cpp
++++ scim-bridge-0.4.16/agent/scim-bridge-agent-application.cpp
+@@ -24,6 +24,7 @@
+ #include <unistd.h>
+
+ #include <iostream>
++#include <cstdio>
+
+ #include "scim-bridge-agent.h"
+
diff --git a/app-i18n/scim-bridge/files/scim-bridge-0.4.16+gcc-4.7.patch b/app-i18n/scim-bridge/files/scim-bridge-0.4.16+gcc-4.7.patch
new file mode 100644
index 000000000000..99899d8c4b37
--- /dev/null
+++ b/app-i18n/scim-bridge/files/scim-bridge-0.4.16+gcc-4.7.patch
@@ -0,0 +1,24 @@
+diff --git a/agent/utils/scim-bridge-agent-panel-client.cpp b/agent/utils/scim-bridge-agent-panel-client.cpp
+index 07cb14b..62fd3b3 100644
+--- a/agent/utils/scim-bridge-agent-panel-client.cpp
++++ b/agent/utils/scim-bridge-agent-panel-client.cpp
+@@ -24,6 +24,7 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
++#include <unistd.h>
+
+ #define Uses_SCIM_CONFIG_PATH
+
+diff --git a/agent/scim-bridge-agent-signal-listener.cpp b/agent/scim-bridge-agent-signal-listener.cpp
+index 433dc15..c9eff47 100644
+--- a/agent/scim-bridge-agent-signal-listener.cpp
++++ b/agent/scim-bridge-agent-signal-listener.cpp
+@@ -22,6 +22,7 @@
+ #include <signal.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <unistd.h>
+
+ #include <sys/socket.h>
+ #include <sys/types.h>
diff --git a/app-i18n/scim-bridge/files/scim-bridge-0.4.16-configure.ac.patch b/app-i18n/scim-bridge/files/scim-bridge-0.4.16-configure.ac.patch
new file mode 100644
index 000000000000..9f8f43114899
--- /dev/null
+++ b/app-i18n/scim-bridge/files/scim-bridge-0.4.16-configure.ac.patch
@@ -0,0 +1,164 @@
+--- a/configure.ac.orig 2009-11-27 21:07:46.000000000 +0800
++++ b/configure.ac 2009-11-27 21:33:17.000000000 +0800
+@@ -55,63 +55,6 @@
+ AM_CONDITIONAL(HAVE_DOCBOOK, test x$DOCBOOK_XSL != xno)
+ AM_CONDITIONAL(BUILD_MANUAL, test x$XSLTPROC != xno -a x$DOCBOOK_XSL != xno)
+
+-# Check if we should build scim-bridge-gtk-immodule
+-PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.4.0 pango >= 1.1.0 gdk-pixbuf-2.0 >= 2.4.0],
+- [SCIM_BRIDGE_HAS_GTK2=yes],
+- [SCIM_BRIDGE_HAS_GTK2=no])
+-
+-SCIM_BRIDGE_HAS_GTK2_2=no
+-if test "$SCIM_BRIDGE_HAS_GTK2" = "yes"; then
+- if $PKG_CONFIG --exists "gtk+-2.0 >= 2.2" ; then
+- SCIM_BRIDGE_HAS_GTK2_2=yes
+- GTK_VERSION=2.2.0
+- AC_DEFINE(GDK_MULTIHEAD_SAFE,1,[Force use of GDK's multihead-safe APIs.])
+- fi
+- if $PKG_CONFIG --exists "gtk+-2.0 >= 2.3.5" ; then
+- SCIM_BRIDGE_HAS_GTK2_4=yes
+- GTK_VERSION=2.3.5
+- AC_DEFINE(HAVE_GTK_DRAW_INSERTION_CURSOR,1,[Have gtk_draw_insertion_cursor ().])
+- fi
+- GTK_BINARY_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
+- GTK_LIBDIR=`$PKG_CONFIG --variable=libdir gtk+-2.0`
+- if test -z "$GTK_LIBDIR)"; then
+- GTK_LIBDIR="$libdir"
+- fi
+- AC_SUBST(GTK_LIBDIR)
+- AC_SUBST(GTK_VERSION)
+- AC_SUBST(GTK_BINARY_VERSION)
+- enable_gtk2_immodule="yes";
+-fi
+-
+-# Check if we should build scim-bridge-qt-immodule
+-PKG_CHECK_MODULES(QT3, [qt-mt >= 3.3],
+- [SCIM_BRIDGE_HAS_QT3=yes],
+- [SCIM_BRIDGE_HAS_QT3=no])
+-
+-if test "$SCIM_BRIDGE_HAS_QT3" = "yes"; then
+- if test -z "$QT3_PREFIX"; then
+- QT3_PREFIX=`$PKG_CONFIG --variable=prefix qt-mt`
+- fi
+- AC_SUBST(QT3_PREFIX)
+- enable_qt3_immodule="yes";
+-fi
+-
+-PKG_CHECK_MODULES(QT4, [QtGui >= 4.0, QtCore >= 4.0],
+- [SCIM_BRIDGE_HAS_QT4=yes],
+- [SCIM_BRIDGE_HAS_QT4=no])
+-
+-if test "$SCIM_BRIDGE_HAS_QT4" = "yes"; then
+- if test -z "$QT4_PREFIX"; then
+- QT4_PREFIX=`$PKG_CONFIG --variable=prefix QtCore`
+- fi
+- AC_SUBST(QT4_PREFIX)
+- if test -z "$QT4_LIBDIR"; then
+- QT4_LIBDIR=`$PKG_CONFIG --variable=libdir QtCore`
+- fi
+- AC_SUBST(QT4_LIBDIR)
+- enable_qt4_immodule="yes";
+-fi
+-
+ ###########################################################
+ ## Definiation of compile args. ##
+ ###########################################################
+@@ -132,13 +75,16 @@
+ enable_agent=yes)
+
+ AC_ARG_ENABLE(gtk2-immodule,
+- [AS_HELP_STRING([--enable-gtk2-immodule], [build GTK2 IM module])], , )
++ [AS_HELP_STRING([--enable-gtk2-immodule], [build GTK2 IM module [default=yes]])], ,
++ enable_gtk2_immodule=yes)
+
+ AC_ARG_ENABLE(qt3-immodule,
+- [AS_HELP_STRING([--enable-qt3-immodule], [build Qt3 IM module])], , )
++ [AS_HELP_STRING([--enable-qt3-immodule], [build Qt3 IM module [default=yes]])], ,
++ enable_qt3_immodule=yes)
+
+ AC_ARG_ENABLE(qt4-immodule,
+- [AS_HELP_STRING([--enable-qt4-immodule], [build Qt4 IM module])], , )
++ [AS_HELP_STRING([--enable-qt4-immodule], [build Qt4 IM module [default=yes]])], ,
++ enable_qt4_immodule=yes)
+
+ if test "$enable_debug" = "yes"; then
+ AC_DEFINE(ENABLE_DEBUG,1,[Define this to enable the debug facility in libscim])
+@@ -175,7 +121,33 @@
+ if test "$enable_gtk2_immodule" = "yes"; then
+ SCIM_BRIDGE_BUILD_GTK2_IMMODULE=1
+ SCIM_BRIDGE_BUILD_IMMODULE=1
+- if test "$SCIM_BRIDGE_HAS_GTK2" = "no" ; then
++
++ # Check if we should build scim-bridge-gtk-immodule
++ PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.4.0 pango >= 1.1.0 gdk-pixbuf-2.0 >= 2.4.0],
++ [SCIM_BRIDGE_HAS_GTK2=yes],
++ [SCIM_BRIDGE_HAS_GTK2=no])
++
++ SCIM_BRIDGE_HAS_GTK2_2=no
++ if test "$SCIM_BRIDGE_HAS_GTK2" = "yes"; then
++ if $PKG_CONFIG --exists "gtk+-2.0 >= 2.2" ; then
++ SCIM_BRIDGE_HAS_GTK2_2=yes
++ GTK_VERSION=2.2.0
++ AC_DEFINE(GDK_MULTIHEAD_SAFE,1,[Force use of GDK's multihead-safe APIs.])
++ fi
++ if $PKG_CONFIG --exists "gtk+-2.0 >= 2.3.5" ; then
++ SCIM_BRIDGE_HAS_GTK2_4=yes
++ GTK_VERSION=2.3.5
++ AC_DEFINE(HAVE_GTK_DRAW_INSERTION_CURSOR,1,[Have gtk_draw_insertion_cursor ().])
++ fi
++ GTK_BINARY_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
++ GTK_LIBDIR=`$PKG_CONFIG --variable=libdir gtk+-2.0`
++ if test -z "$GTK_LIBDIR)"; then
++ GTK_LIBDIR="$libdir"
++ fi
++ AC_SUBST(GTK_LIBDIR)
++ AC_SUBST(GTK_VERSION)
++ AC_SUBST(GTK_BINARY_VERSION)
++ else
+ AC_MSG_ERROR([Gtk >= 2.2 can not be found!])
+ fi
+ enable_immodule=yes
+@@ -187,7 +159,18 @@
+ if test "$enable_qt3_immodule" = "yes"; then
+ SCIM_BRIDGE_BUILD_QT3_IMMODULE=1
+ SCIM_BRIDGE_BUILD_IMMODULE=1
+- if test "$SCIM_BRIDGE_HAS_QT3" = "no"; then
++
++ # Check if we should build scim-bridge-qt-immodule
++ PKG_CHECK_MODULES(QT3, [qt-mt >= 3.3],
++ [SCIM_BRIDGE_HAS_QT3=yes],
++ [SCIM_BRIDGE_HAS_QT3=no])
++
++ if test "$SCIM_BRIDGE_HAS_QT3" = "yes"; then
++ if test -z "$QT3_PREFIX"; then
++ QT3_PREFIX=`$PKG_CONFIG --variable=prefix qt-mt`
++ fi
++ AC_SUBST(QT3_PREFIX)
++ else
+ AC_MSG_ERROR([qt >= 3.3 can not be found!])
+ fi
+ enable_immodule=yes
+@@ -199,7 +182,21 @@
+ if test "$enable_qt4_immodule" = "yes"; then
+ SCIM_BRIDGE_BUILD_QT4_IMMODULE=1
+ SCIM_BRIDGE_BUILD_IMMODULE=1
+- if test "$SCIM_BRIDGE_HAS_QT4" = "no"; then
++
++ PKG_CHECK_MODULES(QT4, [QtGui >= 4.0, QtCore >= 4.0],
++ [SCIM_BRIDGE_HAS_QT4=yes],
++ [SCIM_BRIDGE_HAS_QT4=no])
++
++ if test "$SCIM_BRIDGE_HAS_QT4" = "yes"; then
++ if test -z "$QT4_PREFIX"; then
++ QT4_PREFIX=`$PKG_CONFIG --variable=prefix QtCore`
++ fi
++ AC_SUBST(QT4_PREFIX)
++ if test -z "$QT4_LIBDIR"; then
++ QT4_LIBDIR=`$PKG_CONFIG --variable=libdir QtCore`
++ fi
++ AC_SUBST(QT4_LIBDIR)
++ else
+ AC_MSG_ERROR([qt >= 4.0 can not be found!])
+ fi
+ enable_immodule=yes
diff --git a/app-i18n/scim-bridge/metadata.xml b/app-i18n/scim-bridge/metadata.xml
new file mode 100644
index 000000000000..01855eefe13f
--- /dev/null
+++ b/app-i18n/scim-bridge/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">scim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-bridge/scim-bridge-0.4.16-r3.ebuild b/app-i18n/scim-bridge/scim-bridge-0.4.16-r3.ebuild
new file mode 100644
index 000000000000..32b14143e42e
--- /dev/null
+++ b/app-i18n/scim-bridge/scim-bridge-0.4.16-r3.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit autotools eutils gnome2-utils multilib readme.gentoo-r1
+
+DESCRIPTION="Yet another IM-client of SCIM"
+HOMEPAGE="http://www.scim-im.org/projects/scim_bridge"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
+IUSE="doc gtk qt4"
+
+RESTRICT="test"
+
+RDEPEND="
+ >=app-i18n/scim-1.4.6
+ gtk? (
+ >=x11-libs/gtk+-2.2:2
+ >=x11-libs/pango-1.1
+ )
+ qt4? (
+ dev-qt/qtgui:4
+ dev-qt/qtcore:4
+ >=x11-libs/pango-1.1
+ )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ doc? ( app-doc/doxygen )
+"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="
+If you would like to use ${PN} as default instead of scim, set
+$ export GTK_IM_MODULE=scim-bridge
+$ export QT_IM_MODULE=scim-bridge
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.4.15.2-qt4.patch"
+ "${FILESDIR}/${PN}-0.4.15.2-gcc43.patch"
+ "${FILESDIR}/${P}+gcc-4.4.patch"
+ "${FILESDIR}/${P}+gcc-4.7.patch"
+ "${FILESDIR}/${P}-configure.ac.patch" #280887
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=""
+ # '--disable-*-immodule' are b0rked, bug #280887
+
+ if use gtk ; then
+ myconf="${myconf} --enable-gtk2-immodule=yes"
+ else
+ myconf="${myconf} --enable-gtk2-immodule=no"
+ fi
+
+ # Qt3 is no longer supported, bug 283429
+ myconf="${myconf} --enable-qt3-immodule=no"
+
+ if use qt4 ; then
+ myconf="${myconf} --enable-qt4-immodule=yes"
+ else
+ myconf="${myconf} --enable-qt4-immodule=no"
+ fi
+
+ econf \
+ --disable-static \
+ $(use_enable doc documents) \
+ ${myconf}
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ use gtk && gnome2_query_immodules_gtk2
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/scim-hangul/Manifest b/app-i18n/scim-hangul/Manifest
new file mode 100644
index 000000000000..42514361c288
--- /dev/null
+++ b/app-i18n/scim-hangul/Manifest
@@ -0,0 +1,10 @@
+AUX scim-hangul-0.3.2+gcc-4.3.patch 883 SHA256 3acb142ac167f3c4bba3aa63fd95f68715c701c175cfc637408e2b5b5e21b6aa SHA512 f7b65475af23667110219182ec9ba235da83d27603028c8f7655c39ffe36307762e3791d3630602c1cf0b56e87300f45562426e199f39845e39832d88fa7258a WHIRLPOOL 2cfa869b82483bb3b3866e47fddb80c7d95300bf3825f8cb69818ee027b14d6717fa581c673db9267ec68b3118ac0701a81e4f0d3cdef70b41f1c78784a4220f
+AUX scim-hangul-0.3.2+gcc-4.7.patch 318 SHA256 90fc04760ae599dfd242c3ddf69c834a215d1f8f44188043a479608d7605d65a SHA512 b07a6dadf8e206fad812e184f506d034628eccf76de00729f3c8b68eb20bfc48a881a26ed78fbfa87e16dbd7164778eebe03fc7d45297462311a5386ea72da38 WHIRLPOOL 1d195e795eabd1d838b329f048698069b6d60ef7a1694a922daec4bfd6561a3ab3c6c29663c60ce04bbb6104fd8aeb166c9d8243976e08d6fc01b726c432564a
+AUX scim-hangul-0.4.0+gtk.patch 511 SHA256 0ef53a18f866fdac5fec25f1e5401fb9aa60398f7b57295d7f1707d0174a95ea SHA512 ccdcf1b6f35bc02c29cde55a89c67b1d52a716a7e2cb87f98c15140e52266aab9c2fc4b78869fa3c69472d973988c2ccfc3204965fd3ebe2142a3f9d82d6aad5 WHIRLPOOL fe3c4c5049422eda5a05959d3d14db8767f804f28f02c32c9f000f051cf6e18847b8ee42ad593a1517e260ad35338a02a0010f29044c1e5668eb22fe2ad2798d
+DIST scim-hangul-0.3.2.tar.gz 1176577 SHA256 b7c67778f5dd8ec29b96c1477ef008e10fae436928975fc46fbeb7a546d4462b SHA512 e8905320ff8aeeddf0041987ac5a63a19fb75bea44ffc55b5d28b825e064d6881ee0187b55025d69dad35af85da86818afa3ac39f1f10991021a7fbed3e1462e WHIRLPOOL 8a167250f8cda2e72235986b3f6d231951a0ecfd44755a7b256783d158079d2013f2e22545bf5a31907acebadc701f1fbc22eef9222dabe3525772bfb5e8d96e
+DIST scim-hangul-0.4.0.tar.gz 456953 SHA256 7f116c87e78da51363fb4968d627364718de6ec02aa6c6119451fdf403e668c0 SHA512 2f0285268deac35763c67487a40b718bf846d63634701a2a68d85109f686421f2c935b1f2998487b1f017c1a5e5bf453c56933ab4984f7464e1613d7e0b3131b WHIRLPOOL a370963855fb1c684af3d20fedeccf45fe0af1ac8dead1bf1f0c303d090f97921ee7d0e78e01fb667fb55cff33fc0ff73f63607aabc50ab2e4b688a9d16c96b1
+EBUILD scim-hangul-0.3.2.ebuild 1048 SHA256 b08f610eaf3d92807203751449cefa7909bb1ff8643bdc8f8bc1acc0ba1955d1 SHA512 9e6c5ab33248ae92d34fedc05b6f5dbc3ef1811234d092717dffa7b93fc87643ccc0752ca0c9dd9df25786776588055a86c60c1c51b3bf076310e21bdfbce442 WHIRLPOOL 2e105b8381f0f2cecb27a8cd6c57fe69aeefcc6c828da5b6a5bc2138e3ad01a9f827675002a84ef20bac725b70366111fc55b8e34c12dbb5d50f1adad8e02894
+EBUILD scim-hangul-0.4.0.ebuild 1133 SHA256 42b13de5b401fc0ca0bb6d905b5c89e8cd6315751157ce28c9483776ff493ab7 SHA512 2645f1cbb0c7993bb7121ac7c766f048672bf854497902ac79d3fa31c0405fb0680cf8a10857d8f3ef3a96933424aac20c3a2a8933e55771a49240bf288ffd76 WHIRLPOOL 36df170efa4172cf123b9744ddd30fc1c7a5c96454aa3967e3379b368ec7e327850e0a8db65c1f97be34e79187634f3d1a4012480951cf69c7047c62be5052ab
+MISC ChangeLog 3322 SHA256 8fffbb3bb95890e213e1ed6332a9aa40c8ec4fa6694943c160d7451ccaeeb5b2 SHA512 c80d3dfb469ecd494070858335f54ae81488754e995359860e21bdaa9f489a8dea3d431e70836238bbf2dfc1addf7e7e198984d72b74dc19b27c5bd4582f58c2 WHIRLPOOL 1992fb593f3cf52413b4789998a2ac2b0a3e4a67697c24a1eea072d3b20bb7b51568705d77e3c57c547d02c88d57b7146285ab64af9546a8ea7137b073343354
+MISC ChangeLog-2015 4848 SHA256 5f8b61571304a96c175423275867f0567fd7702d4759605726c79218b0ade6ff SHA512 628090d75bb077f407583c7c1340ec2b21d1700ad20c68232dda6913c2dc709862105fd9c3d00626da35ebc5265436b8b675996c1b0d504f9c90186fae3f55be WHIRLPOOL e046076305d8597e4187a0d0f86c106bbc9a86a1b64a075a08daac912ba3458438e76d350180c187f4320eefd7717da05ce2abd3ed8e553cc087e6b3ff570116
+MISC metadata.xml 308 SHA256 fca15aa6f4f3564c9310b314c403ee412704ce76871c1266c6038d9b1fb55899 SHA512 9f18bf632f3eff9a6498145c2b4c04d51bb119c67351216ab757cd3cea2364c60bef683769218c0596ef6bd29235e51df6a64f9ab1234665fc2191e18fc51cc7 WHIRLPOOL d861c223e235412417b8800d5dc7df83abe7ecd0b1acdcbd7fdd31e5a9aad2180f842652532126358a23f1e5c40c02e0fad16ef46edf98abd502018c82c4d6ff
diff --git a/app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.3.patch b/app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.3.patch
new file mode 100644
index 000000000000..b7698793ac8e
--- /dev/null
+++ b/app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.3.patch
@@ -0,0 +1,23 @@
+diff -up scim-hangul-0.3.2/src/scim_hangul_imengine.cpp.gcc43~ scim-hangul-0.3.2/src/scim_hangul_imengine.cpp
+--- scim-hangul-0.3.2/src/scim_hangul_imengine.cpp.gcc43~ 2008-01-13 08:01:34.000000000 +0000
++++ scim-hangul-0.3.2/src/scim_hangul_imengine.cpp 2008-01-13 08:01:34.000000000 +0000
+@@ -29,6 +29,7 @@
+ #define Uses_SCIM_LOOKUP_TABLE
+ #define Uses_SCIM_CONFIG_BASE
+
++#include <cstring>
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
+ #endif
+diff -up scim-hangul-0.3.2/src/scim_hangul_imengine_setup.cpp.gcc43~ scim-hangul-0.3.2/src/scim_hangul_imengine_setup.cpp
+--- scim-hangul-0.3.2/src/scim_hangul_imengine_setup.cpp.gcc43~ 2008-01-13 08:01:37.000000000 +0000
++++ scim-hangul-0.3.2/src/scim_hangul_imengine_setup.cpp 2008-01-13 08:01:37.000000000 +0000
+@@ -28,7 +28,8 @@
+
+ #define Uses_SCIM_CONFIG_BASE
+
++#include <cstring>
+ #include <gtk/gtk.h>
+
+ #ifdef HAVE_CONFIG_H
+
diff --git a/app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.7.patch b/app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.7.patch
new file mode 100644
index 000000000000..918de9e11367
--- /dev/null
+++ b/app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.7.patch
@@ -0,0 +1,12 @@
+diff --git a/src/scim_hangul_imengine.cpp b/src/scim_hangul_imengine.cpp
+index 7d70654..d678902 100644
+--- a/src/scim_hangul_imengine.cpp
++++ b/src/scim_hangul_imengine.cpp
+@@ -30,6 +30,7 @@
+ #define Uses_SCIM_CONFIG_BASE
+
+ #include <cstring>
++#include <unistd.h>
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
+ #endif
diff --git a/app-i18n/scim-hangul/files/scim-hangul-0.4.0+gtk.patch b/app-i18n/scim-hangul/files/scim-hangul-0.4.0+gtk.patch
new file mode 100644
index 000000000000..bc1fd4b673ee
--- /dev/null
+++ b/app-i18n/scim-hangul/files/scim-hangul-0.4.0+gtk.patch
@@ -0,0 +1,11 @@
+--- src/scim_hangul_imengine_setup.cpp.orig 2012-07-08 07:52:07.000000000 -0400
++++ src/scim_hangul_imengine_setup.cpp 2012-11-02 14:13:14.000000000 -0400
+@@ -346,7 +346,7 @@
+ for (i = 0; i < n; i++) {
+ const char* name = hangul_ic_get_keyboard_name(i);
+ #if GTK_CHECK_VERSION(2, 24, 0)
+- gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo_box), NULL, name);
++ gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo_box), name);
+ #else
+ gtk_combo_box_append_text(GTK_COMBO_BOX(combo_box), name);
+ #endif
diff --git a/app-i18n/scim-hangul/metadata.xml b/app-i18n/scim-hangul/metadata.xml
new file mode 100644
index 000000000000..01855eefe13f
--- /dev/null
+++ b/app-i18n/scim-hangul/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">scim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-hangul/scim-hangul-0.3.2.ebuild b/app-i18n/scim-hangul/scim-hangul-0.3.2.ebuild
new file mode 100644
index 000000000000..e2ca5068562b
--- /dev/null
+++ b/app-i18n/scim-hangul/scim-hangul-0.3.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+inherit base
+
+DESCRIPTION="Hangul IMEngine for SCIM ported from imhangul"
+HOMEPAGE="http://www.scim-im.org/"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="nls"
+
+RDEPEND="|| ( >=app-i18n/scim-0.99.8 >=app-i18n/scim-cvs-0.99.8 )
+ >=app-i18n/libhangul-0.0.4
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+PATCHES=(
+ "${FILESDIR}/${P}+gcc-4.3.patch"
+ "${FILESDIR}/${P}+gcc-4.7.patch" )
+
+src_configure() {
+ econf \
+ --disable-skim-support \
+ $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc AUTHORS ChangeLog* NEWS README*
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM with both GTK2 and XIM, you should use the following"
+ elog "in your user startup scripts such as .gnomerc or .xinitrc:"
+ elog
+ elog "LANG='your_language' scim -d"
+ elog "export XMODIFIERS=@im=SCIM"
+ elog
+}
diff --git a/app-i18n/scim-hangul/scim-hangul-0.4.0.ebuild b/app-i18n/scim-hangul/scim-hangul-0.4.0.ebuild
new file mode 100644
index 000000000000..13eba035c1c6
--- /dev/null
+++ b/app-i18n/scim-hangul/scim-hangul-0.4.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-utils
+
+DESCRIPTION="Hangul IMEngine for SCIM ported from imhangul"
+HOMEPAGE="http://www.scim-im.org/"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="nls"
+
+RDEPEND="|| ( >=app-i18n/scim-0.99.8 >=app-i18n/scim-cvs-0.99.8 )
+ >=app-i18n/libhangul-0.0.4
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.3.2+gcc-4.3.patch"
+ "${FILESDIR}/${PN}-0.3.2+gcc-4.7.patch"
+ "${FILESDIR}/${PN}-0.4.0+gtk.patch" )
+
+DOCS=(AUTHORS NEWS)
+
+src_configure() {
+ local myeconfargs=(
+ --disable-skim-support
+ $(use_enable nls)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+ dodoc ChangeLog* README*
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM with both GTK2 and XIM, you should use the following"
+ elog "in your user startup scripts such as .gnomerc or .xinitrc:"
+ elog
+ elog "LANG='your_language' scim -d"
+ elog "export XMODIFIERS=@im=SCIM"
+ elog
+}
diff --git a/app-i18n/scim-input-pad/Manifest b/app-i18n/scim-input-pad/Manifest
new file mode 100644
index 000000000000..e5c99dd59b6c
--- /dev/null
+++ b/app-i18n/scim-input-pad/Manifest
@@ -0,0 +1,7 @@
+DIST scim-input-pad-0.1.3.1.tar.gz 591478 SHA256 a561c3a256cb045f19c0bc2249b3d36a36df6800fa3479390ce1e693d6caae68 SHA512 864a254814c0afa04c10143a6b0de4a927ff8612e01bed3776d09a910cfb12899c17245a89a0386f4fac59ebdaae9e6fb9dc9ff5981f72dbec952a9da52a413d WHIRLPOOL a516fdd4a8b569d7ced15d3df39cff05ac1d37804164622176eb254bed952b069660c3a986867e63e0bcb8cc13d988c63ef57b359b1ed1f27eaf9966e323442d
+DIST scim-input-pad-0.1.3.tar.gz 1362611 SHA256 d2457dcaa9099c553bb1b9878a7f9b9075d520635196b760e9ee4c89f0f2fe75 SHA512 2a7f52c92feb5f882827f8a7240da6dc347be0f34c5b378ee8c26aba39b925d56caff3145ef237c4e0604d65179b755124b8b40c507666b2f76d12715de1103c WHIRLPOOL 5c0dc0cc004ae3276f6311d26a961ff9166b817e01261f2ca9e8f6e692c6864d3b4a71137d68feb132eff54f44227a7ddd97f956128ac709dbd83e8f76abb8c6
+EBUILD scim-input-pad-0.1.3.1.ebuild 1430 SHA256 39de33594e963b318eaa01d62cf60ef07602a055678d4f0e8be705aa4bbac7ff SHA512 e535da4a1bf6b9433dea1d2248cb06f211ea80c69fb6fca35f261bea239c4e17e4e0cf4ac3dbe3c02f0fce60a365e9f74a5f02a7f9d1a144c75fefe2c3e7955c WHIRLPOOL ff004a17c5ff555a7df8e3eec968bc215dd957b0f2b4696ff44c7476f0812a926c41f60540297a61fa320c2965f7bda27f6de86dbeff5e89a87625ccd5265fb6
+EBUILD scim-input-pad-0.1.3.ebuild 1428 SHA256 8a7098a1794b9c937a1f2ecc128d09deec5c432a7bb59780da674f5b170ac827 SHA512 2311dd1ed29c84b043ae2bb26306c30eda4b7e280540934ab2257792215b8949dd578e588cdcdf25a4e088a1ce592b9d5c5be30fdb51038f882c12ac275bad81 WHIRLPOOL e588b44619d14d935b009cb287a0b7701507461ddb6eead3d78c3e052e20af4bad9928ed6ac3b135f4dba8ce6fbe3d58309f8a6edc541041ec207c933e80fb55
+MISC ChangeLog 3210 SHA256 a76bb3fb2b9208419159f7d978ebdadf33c7679a3e9aa079884fd74bccf38231 SHA512 5f0255785349d537b2cb246636572f8c955f6b7846d5315721a804348e5b9c9746a5e8513506b01f9478f9df4b5713f5fd796eb7384e5a952fc5a41a8d906ce6 WHIRLPOOL a1e5e48f9a0c63bd9713a75b5527290965bd4c51ecfbe8079d57ae05ecc89a2ab73e50b1596ab4c525bc8682e29df4dc0760673a578c50e54b9fadefebe4df2a
+MISC ChangeLog-2015 1713 SHA256 5f0eb9a8b95a85daacdebc1e7593f12f70d19a7a989cc6f0e0197664f4f0cb1e SHA512 bb41fd18d99397e3680322e96a318186bfc3feb9caf7f0679ac8cc6648bc1ca937b511a819b97a26e06e5db5c8f25e120664b0aa9f3ed582f79a8be8209b30dd WHIRLPOOL 49d7f42347fdd3b3d9c6847e431433d32052f19ebae1f09f38dd2d40ea2346411fe1ac424592c19fd6b0789837cd167edca5db22ed83e1abc2d0f7a3df90c663
+MISC metadata.xml 1730 SHA256 c201aac822573c934eba10df7f8f0442ea884b2d32dcc0e2a2f9d50f402fd35b SHA512 5e6fa898e9267551b94352919a0cffba74784cc70a84a5c22543c3d0c12ab2185e8b226a333813afedd839c9d05c46939c553bf8a2288fd191b1c6fc08b70edb WHIRLPOOL 45c71da3b1536ad21017d438c282f7c648fff99ee994996a55bab395414952d6bd26b432d40a07d82747d5bcef111becb2d7dd733ae5ce6bd4bc223e6ef38f7f
diff --git a/app-i18n/scim-input-pad/metadata.xml b/app-i18n/scim-input-pad/metadata.xml
new file mode 100644
index 000000000000..cd1750246e4d
--- /dev/null
+++ b/app-i18n/scim-input-pad/metadata.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ The Smart Common Input Method (SCIM) input pad is a tool used to
+ input special characters, in an easy way. You select the text
+ zone you wish to write in, and just click on the wanted character
+ in the right multilevel tabbed table, from the SCIM Input Pad
+ interface. By default, there is special characters from Japanese
+ (including kana), Chinese, Korean, Latin, braille, mathematics
+ and a lot of other miscellaneous symbols such as arrows, box
+ elements, etc. You may also add new characters (see
+ documentation).
+ </longdescription>
+ <longdescription lang="fr">
+ L'outils SCIM (Smart Common Input Method, "méthode commune et
+ intelligente de saisie de caractères", en français) Input Pad
+ ("tableau d'entrée de caractère", en français), est utilisé pour
+ saisir divers symboles de façon simple. Vous n'avez qu'à
+ sélectionner la zone de texte dans laquelle vous souhaitez
+ écrire, et à cliquer sur le caractère désiré, dans le tableau à
+ onglets multi-niveaux, de l'interface de SCIM Input Pad. Par
+ défaut, sont disponibles des caractères spéciaux provenant du
+ japonais (kana y compris), du chinois, du coréen, du latin, du
+ braille, des mathématiques, et beaucoup d'autres symboles divers
+ comme des flèches, des éléments de boîtes, etc. Vous pouvez
+ également rajouter de nouveaux caractères (cf. documentation).
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">scim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-input-pad/scim-input-pad-0.1.3.1.ebuild b/app-i18n/scim-input-pad/scim-input-pad-0.1.3.1.ebuild
new file mode 100644
index 000000000000..eca4971b084b
--- /dev/null
+++ b/app-i18n/scim-input-pad/scim-input-pad-0.1.3.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit autotools
+
+DESCRIPTION="Input pad for SCIM used to input symbols and special characters"
+HOMEPAGE="http://www.scim-im.org/"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/scim-1.2.0
+ >=x11-libs/gtk+-2.6.0:2"
+
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.33
+ virtual/pkgconfig"
+
+src_prepare() {
+ rm "${S}"/m4/intltool.m4 || die
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable nls) || die "Error: econf failed!"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Error: install failed!"
+ dodoc ChangeLog README
+}
+
+pkg_postinst() {
+
+ elog
+ elog "The SCIM input pad should be startable from the SCIM (and Skim)"
+ elog "systray icon right click menu. You will have to restart SCIM"
+ elog "(or Skim) in order for the menu entry to appear (you may simply"
+ elog "restart your X server). If you want to use it immediately, just"
+ elog "start the SCIM input pad, using the 'scim-input-pad' command."
+ elog
+ elog "To use, select the text zone you wish to write in, and just"
+ elog "click on the wanted character in the right multilevel tabbed"
+ elog "table, from the SCIM Input Pad interface."
+ elog
+ elog "To add new characters to the tables, see the documentation"
+ elog "(README file in /usr/share/doc/${PF})."
+ elog
+
+}
diff --git a/app-i18n/scim-input-pad/scim-input-pad-0.1.3.ebuild b/app-i18n/scim-input-pad/scim-input-pad-0.1.3.ebuild
new file mode 100644
index 000000000000..e04e0f9ae465
--- /dev/null
+++ b/app-i18n/scim-input-pad/scim-input-pad-0.1.3.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit autotools
+
+DESCRIPTION="Input pad for SCIM used to input symbols and special characters"
+HOMEPAGE="http://www.scim-im.org/"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/scim-1.2.0
+ >=x11-libs/gtk+-2.6.0:2"
+
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.33
+ virtual/pkgconfig"
+
+src_prepare() {
+ rm "${S}"/m4/intltool.m4 || die
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable nls) || die "Error: econf failed!"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Error: install failed!"
+ dodoc ChangeLog README
+}
+
+pkg_postinst() {
+
+ elog
+ elog "The SCIM input pad should be startable from the SCIM (and Skim)"
+ elog "systray icon right click menu. You will have to restart SCIM"
+ elog "(or Skim) in order for the menu entry to appear (you may simply"
+ elog "restart your X server). If you want to use it immediately, just"
+ elog "start the SCIM input pad, using the 'scim-input-pad' command."
+ elog
+ elog "To use, select the text zone you wish to write in, and just"
+ elog "click on the wanted character in the right multilevel tabbed"
+ elog "table, from the SCIM Input Pad interface."
+ elog
+ elog "To add new characters to the tables, see the documentation"
+ elog "(README file in /usr/share/doc/${PF})."
+ elog
+
+}
diff --git a/app-i18n/scim-m17n/Manifest b/app-i18n/scim-m17n/Manifest
new file mode 100644
index 000000000000..06a53b084d3c
--- /dev/null
+++ b/app-i18n/scim-m17n/Manifest
@@ -0,0 +1,5 @@
+DIST scim-m17n-0.2.3.tar.gz 355801 SHA256 852548310b8fecfd97fcfa4a4aca9d6952e299adc785170cb3a827a8abec512d SHA512 c54be4c8c331d5621dcfa6c0c6f302231071dbbaf3ef7aee4117fe2c2616d58e184d3bae720dce27d5cb6567064add6979630090c72f9350391ca9c3e9c404f3 WHIRLPOOL 5d66046ce3ead52a9c7ca6357de33f435d4df56b2686563fe6368a45421916030442a3d8fb1e7eb1cf229e4897f8c0b60e468b6b5a4ea884dbfb3e1b5eca6107
+EBUILD scim-m17n-0.2.3.ebuild 871 SHA256 09c12e28578048ad63bc9a0ab4aa1660338d292368a011ebcfb129ec16f1a0a0 SHA512 83a6c9f84c3d4c2f213e355768cd235b528a17a1c91663c4f72bc435312dfa0c4db826c2a986c57835842b9fd9ce99a8e1ec16b6242f85c9c292df0ea655a926 WHIRLPOOL 0910744fc1c861ab73035a3368a8da1bd8c05066cb9025756eb471b4adf8086f852054718697ad4664383ff3bce4174aae4b0afe3d6851114028822f599307ba
+MISC ChangeLog 2823 SHA256 0034cec04329eddc1f4353c38f09c2d38a4c44eef0e15f1b36b9db0599fe1fd1 SHA512 9802aaebd9229d65562781986e759df35bef96451127c182e63eef5c3c7d611447a03ddaffeadd3d3cdd28a482312a57dc379312a72d437fe4ab01f4cb0ab43e WHIRLPOOL b456776a72dda85918604c5d8bc2e2ae8308439084bb70cfdb1b3d4bd0802208856b20ab541c210ab6136d181eca3cba7c1fc9bba92c1dc500439a4aad2b0ff8
+MISC ChangeLog-2015 5152 SHA256 abd40b028a74dbb9b6af8a9419b50f3e914405036359446ece8dfcd38483ad48 SHA512 5fc2c2476e2484b4d0ff05649e496f9a443db5ef0c2cd6a5aa09f9e6fd74855045290f0e7cc202a132aa4984227ff82d8d2d334f6c1113dfb22cabf9334f1708 WHIRLPOOL 5af81cf8eeb91bcb11a5abab03ced693bf0cb5d28dbd56a216f630e455eb6499300405395ef5d8297b40177a613a09212ccb791b7116e26fc6016816e7305845
+MISC metadata.xml 308 SHA256 fca15aa6f4f3564c9310b314c403ee412704ce76871c1266c6038d9b1fb55899 SHA512 9f18bf632f3eff9a6498145c2b4c04d51bb119c67351216ab757cd3cea2364c60bef683769218c0596ef6bd29235e51df6a64f9ab1234665fc2191e18fc51cc7 WHIRLPOOL d861c223e235412417b8800d5dc7df83abe7ecd0b1acdcbd7fdd31e5a9aad2180f842652532126358a23f1e5c40c02e0fad16ef46edf98abd502018c82c4d6ff
diff --git a/app-i18n/scim-m17n/metadata.xml b/app-i18n/scim-m17n/metadata.xml
new file mode 100644
index 000000000000..01855eefe13f
--- /dev/null
+++ b/app-i18n/scim-m17n/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">scim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-m17n/scim-m17n-0.2.3.ebuild b/app-i18n/scim-m17n/scim-m17n-0.2.3.ebuild
new file mode 100644
index 000000000000..a36adc5ff6b1
--- /dev/null
+++ b/app-i18n/scim-m17n/scim-m17n-0.2.3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="An input module for Smart Common Input Method (SCIM) which uses m17n as backend"
+HOMEPAGE="http://www.scim-im.org/projects/imengines"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/scim-1.4
+ >=dev-libs/m17n-lib-1.2.0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS ChangeLog THANKS README
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM with both GTK2 and XIM, you should use the following"
+ elog "in your user startup scripts such as .gnomerc or .xinitrc:"
+ elog
+ elog "LANG='your_language' scim -d"
+ elog "export XMODIFIERS=@im=SCIM"
+ elog "export GTK_IM_MODULE=\"scim\""
+ elog
+}
diff --git a/app-i18n/scim-pinyin/Manifest b/app-i18n/scim-pinyin/Manifest
new file mode 100644
index 000000000000..aa86b8ac7e71
--- /dev/null
+++ b/app-i18n/scim-pinyin/Manifest
@@ -0,0 +1,11 @@
+AUX scim-pinyin-0.5.91-fixconfigure.patch 1313 SHA256 1ae66b39fbfaaac4d5e6ea605a07c885699546752b4ca52486740e6eedbe7da5 SHA512 9d4dd0c259d8171c8a3b171e68eded4670aacd27902ee8373fe7aff36d088b3cec5570783b9588357ea475321b5267ff635b865a57e7fd3a9b1245e86710decb WHIRLPOOL 2c99ef18881881404bc0fe3dde511068b74ebff48be90b934cc08e99c31ea10e45962066bb1047735def33e2441dc99e59ce39fd172ffe648fccd310ca52ff72
+AUX scim-pinyin-0.5.91-gbk.patch 2501 SHA256 a5034eaf3fb0921a14cafb73e7fceccdbf137a66692089e8cd1bf6bde9746491 SHA512 77dc428913f0fdfa8c9c9ac056eaa84d9b60e3b285ce510aa9528be087f5757f3f8055ef0930c4ce1c3776e0ca0e3a3fd725ca5d790ade030a8893e5fc8bca17 WHIRLPOOL 7ffae9a16670189d5829de61cf0e4432412a3e389181db646d5df9af9d4f86b29369d6e3c5b02cc4c44eef3e58ac835bc3c0863cb3c60732e80efdb138bc97f3
+AUX scim-pinyin-0.5.91-gcc43.patch 1737 SHA256 38a1860973b92892f418ff34202309cec2fd61a17f9cd8183e74351fa2eabbf9 SHA512 3b9d10c2ee4ada9a3d8e6c2c292f745efbe034b8eda30932aeea24c1fbaf54a9ce5e6b9e1dad3c43b33b6b14b009406770a55c23821bbe4d9e421d674d1b34fd WHIRLPOOL b3e0b98ea0159f1d56fdedaf8b8e7c08bfe0dc5c567b241a1a8e7b3a139a2ebae94705c7d5dc77642d1f8953a86ee7683646f14db445d8dc7643994f4bf1db94
+AUX scim-pinyin-qt335.patch 1122 SHA256 615f4536c1dbf8e95529eff028cb6efaedd5abc4afec8ef5d6ead3ef5eca98a9 SHA512 d9cafc0f058f7da5fd2c7b70f7b2eeea249044a1aa886e414d5fad78ceaad168d8cd260e7077c03aad6fe622b637bba5312403b15b61b935157f6258020c1c55 WHIRLPOOL d837929b3e0a49d56e3bebd3a881a2854669cd41ea4c99640d60afdf1205b55a2d9a327233870454819c0990c64ad6bc120db5b7ff0af47e21a03c1c4e44f12d
+DIST scim-pinyin-0.5.91.tar.gz 5492055 SHA256 9b6b24af841cbf0353b919df7f56be931850fccf3b914172af7a39b6db726653 SHA512 ec4498c68cc7ef913b890eb881c73ffd790a5d8d8d48a0a2c32ceda942a7f359fc4bd181199b5333156119484d53d17396b48026fc7913105cfa10c92dd4548b WHIRLPOOL 5d334309d6694d1c699c1d2185e57d212691dd2ecad886389c0b3f4c05b41101404025967e5e3cfd00d288bddc8595759a81e21ffb58ee3d6bad850d935113f5
+DIST scim-pinyin-0.5.92.tar.gz 4769203 SHA256 70727224a642c2f2c7739b82ebd0b4d6a6f444c9ad4311cf2a3c76230dd21d9e SHA512 6af20b925c45ca355e12eeb59285e3327c2195038078a0e1741870395dc5a8f7dae60b8c9cd77919fbad94c27e123b9e58439f7011277439f9914d1a543a805f WHIRLPOOL b1902521d455891451790bce84cdb5d5bd39915d60ae883c4cc102fd6219b94596bc518f9b52efa9d123748a8b5f0f4f8b574a72a2becaa75f0fd613389d07be
+EBUILD scim-pinyin-0.5.91-r3.ebuild 1097 SHA256 06b9efe2805e8acaf4930c66fce8d77ed07c13020cedcf5ee4a87c805273f4ba SHA512 3a9b447d72f9884022ad16c91fafabe7a188db4bae244cc78e3d78220aae3d579a79ae011afb5f941c31c2460be0d8100a543ead85fb5310ebaf1cae810c0431 WHIRLPOOL e486da089ed0888c07c636a960e5ce48cab29a75ba984336a388f357d416a52abbc5a231a3a510fe3ec7f082694adf0a51434a7d6dca870cc9ba2b9902b43ba5
+EBUILD scim-pinyin-0.5.92.ebuild 845 SHA256 54c047ff97ad646d070ca45696d55d5606d52786e4856dcb243819f3260eaf4f SHA512 d5a80f917eb810b87e31894404170eec5f87788c831cd6c8c80d369e7558ee9b44d4f4b0095c1eb378bb4848fb0288c9b2b138a4949bcabc35b9446cc22c6762 WHIRLPOOL 0a5ff536b978b4fc50e6f901fc5a089556427732e566d833fd58bd9eb502f319acac80097c48cd602db01cea7a892d1dfc244a436b7827b282b9de677ac178b7
+MISC ChangeLog 2907 SHA256 95e790c7501f9b4e1a9bc1165e6d264f6508c8314a4457046b216d734743b634 SHA512 0453874d9e8214866b6948e2f25a1cd1d4c07396cb5ed4c378ec65f74e1ce358a5b087f27dd1c1c560c18a8575fe4d5aa830fb61a9afc0aa7eb3e87783118cf5 WHIRLPOOL c2e0dbd6f57db5c56193c5faa0eb35f8c2a5449159c96030e5eb439e5ee4a3be214842f15d1d1b0e20aca50f1a4feefade6db132529094d324265cf575ee7a83
+MISC ChangeLog-2015 5993 SHA256 4539fde06ce3af36e915b7ce0cfe0be12c69a71da208bd1eb901f50633ec607d SHA512 377c5d9c34b81aa5e9518e8b13ce06c4db42e190975a22e28603f4216dd51fc9942466d7e5167dafa27a3b9165076b8a94325af202c2922ccd65ad41d9a1adf0 WHIRLPOOL 18deef3ef1c7f7b2b67d6a1b5e3a16616bfde4e222e47081c845e48f4429aa06eaa0b5c8503970d2d799d25b01b78f9f14ea473de5dbe2d6dd61068e272e4441
+MISC metadata.xml 308 SHA256 fca15aa6f4f3564c9310b314c403ee412704ce76871c1266c6038d9b1fb55899 SHA512 9f18bf632f3eff9a6498145c2b4c04d51bb119c67351216ab757cd3cea2364c60bef683769218c0596ef6bd29235e51df6a64f9ab1234665fc2191e18fc51cc7 WHIRLPOOL d861c223e235412417b8800d5dc7df83abe7ecd0b1acdcbd7fdd31e5a9aad2180f842652532126358a23f1e5c40c02e0fad16ef46edf98abd502018c82c4d6ff
diff --git a/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-fixconfigure.patch b/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-fixconfigure.patch
new file mode 100644
index 000000000000..e91b084f3211
--- /dev/null
+++ b/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-fixconfigure.patch
@@ -0,0 +1,33 @@
+Index: scim-pinyin-0.5.91/configure.ac
+===================================================================
+--- scim-pinyin-0.5.91.orig/configure.ac
++++ scim-pinyin-0.5.91/configure.ac
+@@ -73,11 +73,7 @@ AC_ARG_ENABLE(debug,
+ enable_debug=no)
+
+ AC_ARG_ENABLE(skim-support,
+- [ --disable-skim-support Enable skim Setup UI],
+- skim_support=no,
+- skim_support=yes)
+-
+-AM_CONDITIONAL(SCIM_BUILD_SKIM_SETUP, [test "$skim_support" = "yes"])
++ [ --disable-skim-support Enable skim Setup UI])
+
+ if test "$enable_debug" = "yes"; then
+ AC_DEFINE(ENABLE_DEBUG,1,[Define this to enable the debug facility in libscim])
+@@ -126,7 +122,7 @@ AC_CONFIG_FILES([Makefile
+ po/Makefile.in
+ scim-pinyin.spec])
+
+-if test "$skim_support" = "yes"; then
++if test "x$enable_skim_support" != "xno"; then
+ REQUIRED_SKIM_VERSION=1.2.1
+ dnl skim probably has been installed under prefix=$KDEDIR, so add it to search path of pkgconfig
+ kde_libsuffix=`kde-config --libsuffix`
+@@ -155,5 +151,6 @@ PKG_CHECK_MODULES(SCIM_KDEUTILS,[scim_kd
+ fi
+
+ AM_CONDITIONAL(SCIM_PINYIN_ENABLE_SKIM_SUPPORT, [test "$HAS_KDEUTILS" = "yes"])
++AM_CONDITIONAL(SCIM_BUILD_SKIM_SETUP, [test "$HAS_SKIM" = "yes"])
+ AC_SUBST(SCIM_PINYIN_ENABLE_SKIM_SUPPORT)
+ AC_OUTPUT
diff --git a/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gbk.patch b/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gbk.patch
new file mode 100644
index 000000000000..bc6a228fb0cc
--- /dev/null
+++ b/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gbk.patch
@@ -0,0 +1,62 @@
+diff -Nru scim-pinyin-0.5.91.orig/src/scim_pinyin_imengine.cpp scim-pinyin-0.5.91/src/scim_pinyin_imengine.cpp
+--- scim-pinyin-0.5.91.orig/src/scim_pinyin_imengine.cpp 2005-08-06 23:31:08.000000000 +0800
++++ scim-pinyin-0.5.91/src/scim_pinyin_imengine.cpp 2009-02-18 00:06:34.000000000 +0800
+@@ -706,8 +706,12 @@
+ m_sys_phrase_lib = m_pinyin_global->get_sys_phrase_lib ();
+ m_user_phrase_lib = m_pinyin_global->get_user_phrase_lib ();
+ }
+-
+- if (encoding == "GBK" || encoding == "GB2312") {
++
++ if (encoding == "GBK") {
++ m_simplified = true;
++ m_traditional = true;
++ m_chinese_iconv.set_encoding ("GBK");
++ } else if (encoding == "GB2312") {
+ m_simplified = true;
+ m_traditional = false;
+ m_chinese_iconv.set_encoding ("GB2312");
+@@ -930,10 +934,39 @@
+
+ m_iconv.set_encoding (encoding);
+
+- if (encoding == "GBK" || encoding == "GB2312") {
+- m_simplified = true;
+- m_traditional = false;
+- m_chinese_iconv.set_encoding ("GB2312");
++ if (encoding == "GBK") {
++ if (m_simplified == false) {
++ if(m_traditional == true){
++ ; //Big5. Big5togbk is not implemented. Set to next available.
++ m_simplified = true;
++ m_chinese_iconv.set_encoding ("GBK");
++ }else{ // nochinese mode. Should not happen.
++ m_forward = true;
++ m_chinese_iconv.set_encoding ("");
++ }
++ }else{
++ if( m_traditional == false) //GB2312
++ m_chinese_iconv.set_encoding("GB2312");
++ else m_chinese_iconv.set_encoding ("GBK"); //ALL
++ }
++ } else if (encoding == "GB2312") {
++ if ( m_simplified == false ) {
++ if(m_traditional == true) {
++ ; //partly map big5 to gb2312 is not done. Set to next.
++ m_forward = true;
++ m_chinese_iconv.set_encoding ("");
++ }else{//Should not happen.
++ m_forward = true;
++ m_chinese_iconv.set_encoding("");
++ }
++ }else{
++ if (m_traditional == true) { //Should not happen.
++ m_forward = true;
++ m_chinese_iconv.set_encoding ("");
++ }else{
++ m_chinese_iconv.set_encoding ("GB2312");
++ }
++ }
+ } else if (encoding == "BIG5" || encoding == "BIG5-HKSCS") {
+ m_simplified = false;
+ m_traditional = true;
diff --git a/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gcc43.patch b/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gcc43.patch
new file mode 100644
index 000000000000..6f9bd3879eb0
--- /dev/null
+++ b/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gcc43.patch
@@ -0,0 +1,44 @@
+diff -Naur scim-pinyin-0.5.91.orig/src/scim_phrase.cpp scim-pinyin-0.5.91/src/scim_phrase.cpp
+--- scim-pinyin-0.5.91.orig/src/scim_phrase.cpp 2005-01-06 22:30:58.000000000 +0900
++++ scim-pinyin-0.5.91/src/scim_phrase.cpp 2008-06-21 13:16:32.000000000 +0900
+@@ -27,6 +27,7 @@
+
+ #define SCIM_PHRASE_MAX_RELATION 1000
+
++#include <cstring>
+ #include <scim.h>
+ #include "scim_pinyin_private.h"
+ #include "scim_phrase.h"
+diff -Naur scim-pinyin-0.5.91.orig/src/scim_pinyin.cpp scim-pinyin-0.5.91/src/scim_pinyin.cpp
+--- scim-pinyin-0.5.91.orig/src/scim_pinyin.cpp 2005-08-08 15:11:16.000000000 +0900
++++ scim-pinyin-0.5.91/src/scim_pinyin.cpp 2008-06-21 13:16:30.000000000 +0900
+@@ -28,6 +28,7 @@
+ #define Uses_SCIM_CONFIG_PATH
+ #define Uses_SCIM_LOOKUP_TABLE
+
++#include <cstring>
+ #include <scim.h>
+ #include "scim_pinyin.h"
+
+diff -Naur scim-pinyin-0.5.91.orig/src/scim_pinyin_phrase.cpp scim-pinyin-0.5.91/src/scim_pinyin_phrase.cpp
+--- scim-pinyin-0.5.91.orig/src/scim_pinyin_phrase.cpp 2005-08-06 21:06:49.000000000 +0900
++++ scim-pinyin-0.5.91/src/scim_pinyin_phrase.cpp 2008-06-21 13:21:13.000000000 +0900
+@@ -26,6 +26,7 @@
+ #define Uses_SCIM_CONFIG_PATH
+ #define Uses_SCIM_LOOKUP_TABLE
+
++#include <cstring>
+ #include <scim.h>
+ #include "scim_pinyin_private.h"
+ #include "scim_phrase.h"
+diff -Naur scim-pinyin-0.5.91.orig/src/scim_special_table.cpp scim-pinyin-0.5.91/src/scim_special_table.cpp
+--- scim-pinyin-0.5.91.orig/src/scim_special_table.cpp 2005-01-06 22:31:02.000000000 +0900
++++ scim-pinyin-0.5.91/src/scim_special_table.cpp 2008-06-21 13:25:25.000000000 +0900
+@@ -20,6 +20,7 @@
+ #define Uses_STL_IOMANIP
+ #define Uscs_C_STRING
+
++#include <cstring>
+ #include <time.h>
+ #include <scim.h>
+ #include "scim_pinyin_private.h"
diff --git a/app-i18n/scim-pinyin/files/scim-pinyin-qt335.patch b/app-i18n/scim-pinyin/files/scim-pinyin-qt335.patch
new file mode 100644
index 000000000000..c7c0c595c0d1
--- /dev/null
+++ b/app-i18n/scim-pinyin/files/scim-pinyin-qt335.patch
@@ -0,0 +1,25 @@
+Index: scim-pinyin-0.5.91/skim/setupui/smartpinyinui.ui
+===================================================================
+--- scim-pinyin-0.5.91.orig/skim/setupui/smartpinyinui.ui
++++ scim-pinyin-0.5.91/skim/setupui/smartpinyinui.ui
+@@ -863,20 +863,4 @@
+ <tabstop>kcfg__IMEngine_Pinyin_DisablePhraseKey</tabstop>
+ </tabstops>
+ <layoutdefaults spacing="6" margin="11"/>
+-<includehints>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+-</includehints>
+ </UI>
diff --git a/app-i18n/scim-pinyin/metadata.xml b/app-i18n/scim-pinyin/metadata.xml
new file mode 100644
index 000000000000..01855eefe13f
--- /dev/null
+++ b/app-i18n/scim-pinyin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">scim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-pinyin/scim-pinyin-0.5.91-r3.ebuild b/app-i18n/scim-pinyin/scim-pinyin-0.5.91-r3.ebuild
new file mode 100644
index 000000000000..62f44e0fdb90
--- /dev/null
+++ b/app-i18n/scim-pinyin/scim-pinyin-0.5.91-r3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit autotools eutils
+
+DESCRIPTION="Smart Common Input Method (SCIM) Smart Pinyin Input Method"
+HOMEPAGE="http://www.scim-im.org/"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="nls"
+
+RDEPEND="x11-libs/libXt
+ || ( >=app-i18n/scim-1.1 >=app-i18n/scim-cvs-1.1 )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-fixconfigure.patch"
+ epatch "${FILESDIR}/${PN}-qt335.patch"
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+ epatch "${FILESDIR}/${P}-gbk.patch"
+
+ AT_M4DIR=m4 AT_NO_RECURSIVE=yes eautoreconf
+}
+
+src_compile() {
+ econf \
+ $(use_enable nls) \
+ --disable-skim-support \
+ --without-arts \
+ --disable-static \
+ --disable-depedency-tracking \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc AUTHORS NEWS README ChangeLog
+}
diff --git a/app-i18n/scim-pinyin/scim-pinyin-0.5.92.ebuild b/app-i18n/scim-pinyin/scim-pinyin-0.5.92.ebuild
new file mode 100644
index 000000000000..c881bd636a93
--- /dev/null
+++ b/app-i18n/scim-pinyin/scim-pinyin-0.5.92.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools-utils
+
+DESCRIPTION="Smart Common Input Method (SCIM) Smart Pinyin Input Method"
+HOMEPAGE="http://www.scim-im.org/"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="nls"
+
+RDEPEND="x11-libs/libXt
+ || ( >=app-i18n/scim-1.1 >=app-i18n/scim-cvs-1.1 )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+AUTOTOOLS_AUTORECONF=1
+PATCHES=(
+ "${FILESDIR}/${PN}-0.5.91-fixconfigure.patch"
+)
+DOCS=( AUTHORS NEWS README ChangeLog )
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable nls)
+ --disable-skim-support
+ --without-arts
+ --disable-static
+ --disable-depedency-tracking
+ )
+ autotools-utils_src_configure
+}
diff --git a/app-i18n/scim-sayura/Manifest b/app-i18n/scim-sayura/Manifest
new file mode 100644
index 000000000000..e8e4f5edb5ce
--- /dev/null
+++ b/app-i18n/scim-sayura/Manifest
@@ -0,0 +1,6 @@
+AUX scim-sayura-0.3.3-gcc45.patch 349 SHA256 d9ade4d12fe7db8ad2757d7f7773b0b2a41f48476e3494301c26fbf614a4f75c SHA512 0227a3a7cd6d602a677559235a2ab3ee4129b70861c12d0ae6c005a46d658a90a0e318d8cbcd638dfb24fa2d3f4d1be8c278e77cff850efcdba6757871085032 WHIRLPOOL 151c708efebee54696b277651c9a5363f44f20cd6c3fe6fd46e3601c7be66f42ece725066a5883440abd84bfc02088846d812badb05290789c6d573117ffaf59
+DIST scim-sayura-0.3.3.tar.gz 380147 SHA256 a6557fdfea8d2f475d4ef32478ace5b5ad0ba3b89eea7b1d8802ee1a1f80f788 SHA512 bf97b8d82e0e193a94698dfe7d3c9b1256e928a2082dc0ca6be328ed56409a05d38ba04254617b3800116514c1c8fdbfca869f2aa3f2f005505a4e873d2b90bb WHIRLPOOL 0e2e25f56ecbbcb3aafea8bd272186987951e28a3cb18ca90d21a8d6d7d87e6137d18ae426709e7caca7df1d5444dfd921c9e0ed5add5fe3df2a7091ffd0c6ec
+EBUILD scim-sayura-0.3.3.ebuild 660 SHA256 7182cb4ff8f578eb87647b943ec1b4d2cfe5630a81405e56474bb19507d2177c SHA512 544790f633a251e4a32ad676ea48624f760a1c9909c12f221f85bcd6c18e0fd62f368e02e798bd0807a063a96ac0c79636f99b6d4fbda352cfe27689f4f2cd7a WHIRLPOOL f7b033b748bfa7fb5f8e3f051c9ad0e267b268dbe7e34853d3255edba7d963a1c447995e29cc423e1d61cd7c9c369af4055ab3e30e881b0b8a27c93850651ed1
+MISC ChangeLog 2872 SHA256 0cdce294a3a09e2d3739ab41076a92c4452522865416549354bd47d7fdddcfb2 SHA512 fa7a84faf7ce1450f183e48f15570709913147e8be50e1062cb347c154d6af8a0aba079a156232c8d4291c9f43b579b560cb23b38f303ca6ee70a1253347e6b0 WHIRLPOOL d485517d7e452ef8326f1652a4ea1dc6fd73b8ba86093a02a4a7ed00b32716f029b8129373f663814ce5c223cb066a1f09e8dc8001b1fb5625c3f7979c28dd23
+MISC ChangeLog-2015 742 SHA256 3d34726ae7d4a7fdca4e74bf354e877fc8bed6574f6784e26955c8b14ec77df4 SHA512 4ff125a7e17407e32fbf49693a4832144b96c44373138478e3730f8eb13244cb98801e63d9e3853db8b2ea2a2e2abde5f0a60c4dfbc130136b39d997066af502 WHIRLPOOL 5be904741ad74ee0d4f9336ecac8f52763f111e68135a629c560a920797d740e6ab2ddef07669e8874b6cb30eb9cb52b1536b04ddd0f577385f57e4b3843b7b3
+MISC metadata.xml 341 SHA256 e7d4cdd94b8b8f1134d905012889d4c316b12b9df8d8c2d66e9c3cfb318198e0 SHA512 93333f168a51bc5b932b06f436c6254d56da5b7de8cc3127e5641a74488a01aaa650d01a018970da8202a7432d8dab8f73d0786802634bc9b131f90219ee2eef WHIRLPOOL d0cfc6be52df5a67151c26d958ddd0a65475fe27efca5ef86d196ce1fc1fda3c778a220aa3c2e9b9f0bbb4830240dd800931b425f3461079ec452cb79aa4adcd
diff --git a/app-i18n/scim-sayura/files/scim-sayura-0.3.3-gcc45.patch b/app-i18n/scim-sayura/files/scim-sayura-0.3.3-gcc45.patch
new file mode 100644
index 000000000000..64ee87416011
--- /dev/null
+++ b/app-i18n/scim-sayura/files/scim-sayura-0.3.3-gcc45.patch
@@ -0,0 +1,15 @@
+Fixing build with gcc 4.5
+
+http://bugs.gentoo.org/show_bug.cgi?id=320879
+
+--- src/scim_sinhala_imengine.cpp
++++ src/scim_sinhala_imengine.cpp
+@@ -233,7 +233,7 @@
+
+ void SinhalaInstance::backspace()
+ {
+- KeyEvent e = scim::KeyEvent::KeyEvent(SCIM_KEY_BackSpace, 0);
++ KeyEvent e = scim::KeyEvent(SCIM_KEY_BackSpace, 0);
+ forward_key_event(e);
+ }
+
diff --git a/app-i18n/scim-sayura/metadata.xml b/app-i18n/scim-sayura/metadata.xml
new file mode 100644
index 000000000000..948a4b76fa5f
--- /dev/null
+++ b/app-i18n/scim-sayura/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+</maintainer>
+<longdescription lang="en">
+This package provides the Sayura Sinhala input method for SCIM.
+</longdescription>
+</pkgmetadata>
diff --git a/app-i18n/scim-sayura/scim-sayura-0.3.3.ebuild b/app-i18n/scim-sayura/scim-sayura-0.3.3.ebuild
new file mode 100644
index 000000000000..77044b6d6326
--- /dev/null
+++ b/app-i18n/scim-sayura/scim-sayura-0.3.3.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="Sayura Sinhala input method for SCIM"
+HOMEPAGE="http://www.sayura.net/im/"
+SRC_URI="http://www.sayura.net/im/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND=">=app-i18n/scim-0.99.8"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/scim-sayura-0.3.3-gcc45.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README
+ dohtml doc/index.html doc/style.css
+ use doc && dodoc doc/sayura.pdf
+}
diff --git a/app-i18n/scim-sunpinyin/Manifest b/app-i18n/scim-sunpinyin/Manifest
new file mode 100644
index 000000000000..2f141842b80c
--- /dev/null
+++ b/app-i18n/scim-sunpinyin/Manifest
@@ -0,0 +1,6 @@
+AUX scim-sunpinyin-2.0.3-force-switch.patch 947 SHA256 9f28889b5cd5963297b68c40441498744b48b09623f1bc5bda84dd5873eb13c1 SHA512 8a3600507534dda5854465569127a7863fcbcd318542d319e814634e8fea10f7105469717e7141f831385c5e64a910aee0d442d7eb663e0cb46e9c6b9464ca7f WHIRLPOOL 3054fc9fdbd8282ac50c3325c8f0fe3492be7d406847503e1b99ce17350acc55a97d33b71d878b59e877e2cf112e3c027196182925d24f6488698edb4204a15d
+DIST scim-sunpinyin-2.0.3.tar.gz 33072 SHA256 139feca7ccb79240b5c7eac3d41fb7015baad21b08986af1bec33b7aeb3a4e83 SHA512 f983d40972c5792a4a27fdf699cffc7f6882c84060cfe3e260cdc3f587743b0f71339ccdb7067b393f88a69b74d999fba70c4d9bc8016b9b217b3c11667a2986 WHIRLPOOL 678e4d7d71658f0dab038c8e4c911144042ebe4bb20f3746bbae3dc307926bff95365355d67422febcaabe08cc175a81a2ac611fb92ed2ddc0c31984d02a03e4
+EBUILD scim-sunpinyin-2.0.3-r2.ebuild 639 SHA256 4ac998b15576c351811763be3b562456f616ab8bf00b03b7051918770b3116a3 SHA512 868c215144512f3e91b05fb94d23bf9b81163fed23b79e9f0c782e3e50c8c0f5f22a7468206006c093a5677f65a4b01f86b74da7d4f3b4d96359110b83a910f8 WHIRLPOOL 1f9eb4aaf23da22c42dbc397df8be7321200da7bc4903e89cc477542b4ef7806d7f1dce7655db84841bb49699440df3989f0bef86d3c75e2699a51014b39d5f9
+MISC ChangeLog 2677 SHA256 81754dc91a99e8919327535384d350dd259ce66fe65a74184e0a4c3c05fef706 SHA512 31ee3a8f137e4b730b40e40f8d15ac05209c70a1a541a4793cd3d8c24925d807fba8045f89696f3ba9d6abd90782e95e4edf0829d7ad083fb3e7affd9bd64b5b WHIRLPOOL 40f4816a7a9475f2d65ed870b558f72c5db430b0ad1e6e2943b66c293032bd035955581f6cdaef02916cb82e6c15f1d6e2202b253832bfb8afdee47193b6d86c
+MISC ChangeLog-2015 1033 SHA256 b4652a7e010046d548308908567d63caf7752567e47ebf991d70ce23f9618d66 SHA512 658917440e4b442e49aa4c4366282ce37c2cd19f78c60d5e8d1a8e32031420701d0ea417bf5ff3c34789859d71a204943d48d87621a2ea59dee2ebae3f984a45 WHIRLPOOL b7bb90275dac2a72c4b700217068713c4f4d96ebe9ee4648910ccecae05636a8e8cad54f36c47c9fa4a0695c660a12b5d210ae9c50b048f70eaf7243bd6bddd2
+MISC metadata.xml 313 SHA256 381c2cb041f4772bae1fb14e22ee8262a50be5502e868ee8eced569d424f0ba7 SHA512 61d943d4f8b8ab912ced89b69be51ad2792ba67672e969f4e32fba373f7133181c1080ba9a2603e3f7623ebac42e32eb3e0e429d66846ab4c7e13afbc0b05974 WHIRLPOOL cd4d86675625481ea2790d9a818f96dfb27dc1f7ebefd835083df85da5e888431ba9e9e5652b82fcd04c06bed70c5a596f0b5b155188606b772050b70e970e42
diff --git a/app-i18n/scim-sunpinyin/files/scim-sunpinyin-2.0.3-force-switch.patch b/app-i18n/scim-sunpinyin/files/scim-sunpinyin-2.0.3-force-switch.patch
new file mode 100644
index 000000000000..a0089ac11502
--- /dev/null
+++ b/app-i18n/scim-sunpinyin/files/scim-sunpinyin-2.0.3-force-switch.patch
@@ -0,0 +1,34 @@
+diff --git a/wrapper/scim/SConstruct b/wrapper/scim/SConstruct
+index 7739300..ef7c69b 100644
+--- a/wrapper/scim/SConstruct
++++ b/wrapper/scim/SConstruct
+@@ -3,7 +3,7 @@ import SCons.Tool.textfile
+
+ locales = []
+
+-cflags = '-O2 -g -pipe'
++cflags = '-O2 -g -pipe '
+ version = '2.0.3'
+
+ AddOption('--prefix', dest='prefix', metavar='DIR',
+@@ -51,9 +51,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'),
+@@ -75,6 +72,10 @@ extra_cflags += ' -Isrc'
+ env.Append(CFLAGS=extra_cflags)
+ env.Append(CXXFLAGS=extra_cflags)
+ env.Replace(SHLIBPREFIX = '')
++
++if GetOption('rpath') is not None:
++ env.Append(LINKFLAGS=' -Wl,-R -Wl,%s' % GetOption('rpath'))
++
+ #
+ #==============================configure================================
+ #
diff --git a/app-i18n/scim-sunpinyin/metadata.xml b/app-i18n/scim-sunpinyin/metadata.xml
new file mode 100644
index 000000000000..583f6476f8be
--- /dev/null
+++ b/app-i18n/scim-sunpinyin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">sunpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-sunpinyin/scim-sunpinyin-2.0.3-r2.ebuild b/app-i18n/scim-sunpinyin/scim-sunpinyin-2.0.3-r2.ebuild
new file mode 100644
index 000000000000..0f2475440219
--- /dev/null
+++ b/app-i18n/scim-sunpinyin/scim-sunpinyin-2.0.3-r2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils scons-utils
+
+DESCRIPTION="The SunPinyin IMEngine for Smart Common Input Method (SCIM)"
+HOMEPAGE="https://sunpinyin.googlecode.com"
+SRC_URI="${HOMEPAGE}/files/${P}.tar.gz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-i18n/scim
+ ~app-i18n/sunpinyin-2.0.3
+ x11-libs/gtk+:2 "
+RDEPEND="${DEPEND}"
+
+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/scim-tables/Manifest b/app-i18n/scim-tables/Manifest
new file mode 100644
index 000000000000..911368e51da9
--- /dev/null
+++ b/app-i18n/scim-tables/Manifest
@@ -0,0 +1,7 @@
+AUX scim-tables-0.5.12-automake.patch 356 SHA256 aa95eb2573dd7d77a7bfc23b84f6ea40f8bb9e195a872c2f3e9e548f05d7a3ec SHA512 020b32250566092c784727d316acb800013d1c4f7bbd970503e4033bd9006e523079f2b906c7b0db67501d6e441b98500d6da40bdf37b2749f6611c6f6523df9 WHIRLPOOL e3508d35560a0d816c741c3f60878b7fa89e45a8cbea57a64208e07312847cbe606baa7f1d29c08e21d43ffb91408bd8b9b9203363c0427aa7acc7636c728fed
+AUX scim-tables-0.5.8+gcc-4.3.patch 462 SHA256 afbf8a98c85eb3157cb992f6c6925aa729768b5bc7081ac01b900bf6f62be3d8 SHA512 450b5ca11d1f9b776edae027e8b9af1e24511c145e5df83e344b236be434f7ac7bb7fb24c304dc3e6b2e25ce38a4933acf09140b50f66eed3b734daf9d6c30f6 WHIRLPOOL c64372cb426f5f82379dbaa53742ccf240cffa1a0afacd3d8501f5615a0cee93686819e8fa68abff146cc8f824c8955bf22223b717351c675f18132e9f475775
+DIST scim-tables-0.5.13.tar.gz 6716275 SHA256 4ee7577f2efb4ec01c2c1bf1433a459293653caf281d712284200a4fb828b599 SHA512 400aa99acef83b82e6422398f41bf65e51b7e703adc3e87cdef03793d84983e600f9e6201fda6f9c54e97f35c44da72a657ce15caef09ef490c44ad19c3a9e33 WHIRLPOOL 1ad84ab62824057946366ef4019574fc3f5401c7785f9104a49371937b92375945bb1fd659d37004cf333aba9a7ea2958ccc9c399d7a1266381151dbb337f5b3
+EBUILD scim-tables-0.5.13.ebuild 1536 SHA256 415b52b63b07772ab6a0bb7d3b4588248d7b6a0d978d36d81658ead5e620b298 SHA512 6afcc7b472964098b0939bdd824a1a117d7534d12584e36bf8d09227a333efa23db6c63d4b30f24f6f105b06607851d8053f94b3272d72631afbf70bd44ae131 WHIRLPOOL 731568d6dfd370707ffe83376da5e033ddfde7f60e81613e8daf3a880f54d1fc4328ceba77625c12bc3ee32170a7165675edbbde6cc9fe581fcb75895baf4d68
+MISC ChangeLog 2527 SHA256 db56cc66d8489c1bd21caea9f21c0d5749e147ef40986f486d85f4bd35b3d293 SHA512 0a8ba7ead1b77c2c204e78fee63c129bbbcbc2eae286afccc2d23279ab48372b199ca5b961ccc3cb482dbbc6911de1b4399b28255d7ca630bda043315f5d6a6c WHIRLPOOL 08c1ae5939bae671d92f37f4f9d3adb97f63c9deb56667bfac04260fcb476abcdd66b3890770a45e73bf9fb23a6f019dfeee21598b7e5c23ba5849d8ded845de
+MISC ChangeLog-2015 10977 SHA256 3e76759b5c509fcaa1d5815e88bbcc8a399a1316104b291242f079592ae3c527 SHA512 95d5d17cc4043cffe52b7da07a5b2403040d69ec4220208d6774f2144cae78929930975052b14e161d92bbdb3acb1b68fa8fab5df56a69ca513df2fd87bb38cb WHIRLPOOL 4cdef78c3b2404cba669b5e4b097c5da7fe37fd617078ab15283c23bc7bf4c6f57f0539ce057ea8304014f7cf06bc1f5d11f92f5ebfce05f4d2ed40d2aaf4274
+MISC metadata.xml 308 SHA256 fca15aa6f4f3564c9310b314c403ee412704ce76871c1266c6038d9b1fb55899 SHA512 9f18bf632f3eff9a6498145c2b4c04d51bb119c67351216ab757cd3cea2364c60bef683769218c0596ef6bd29235e51df6a64f9ab1234665fc2191e18fc51cc7 WHIRLPOOL d861c223e235412417b8800d5dc7df83abe7ecd0b1acdcbd7fdd31e5a9aad2180f842652532126358a23f1e5c40c02e0fad16ef46edf98abd502018c82c4d6ff
diff --git a/app-i18n/scim-tables/files/scim-tables-0.5.12-automake.patch b/app-i18n/scim-tables/files/scim-tables-0.5.12-automake.patch
new file mode 100644
index 000000000000..7f5ea31ca187
--- /dev/null
+++ b/app-i18n/scim-tables/files/scim-tables-0.5.12-automake.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.ac b/configure.ac
+index 78f75f9..ee82dda 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -7,7 +7,7 @@ AC_DEFINE_UNQUOTED(SCIM_TABLES_VERSION, "$PACKAGE_VERSION", [The release version
+
+ # Init automake stuff
+ AM_INIT_AUTOMAKE
+-AM_CONFIG_HEADER([config.h])
++AC_CONFIG_HEADERS([config.h])
+
+ # Init gettext
+ AM_GNU_GETTEXT([external])
diff --git a/app-i18n/scim-tables/files/scim-tables-0.5.8+gcc-4.3.patch b/app-i18n/scim-tables/files/scim-tables-0.5.8+gcc-4.3.patch
new file mode 100644
index 000000000000..96e5c820813e
--- /dev/null
+++ b/app-i18n/scim-tables/files/scim-tables-0.5.8+gcc-4.3.patch
@@ -0,0 +1,11 @@
+ diff -up scim-tables-0.5.8/src/scim_generic_table.h.gcc43~ scim-tables-0.5.8/src/scim_generic_table.h
+--- scim-tables-0.5.8/src/scim_generic_table.h.gcc43~ 2008-01-13 08:03:06.000000000 +0000
++++ scim-tables-0.5.8/src/scim_generic_table.h 2008-01-13 08:03:06.000000000 +0000
+@@ -24,6 +24,7 @@
+ * $Id: scim_generic_table.h,v 1.7 2006/08/23 10:25:32 suzhe Exp $
+ */
+
++#include <cstring>
+ #if !defined (__SCIM_GENERIC_TABLE_H)
+ #define __SCIM_GENERIC_TABLE_H
+
diff --git a/app-i18n/scim-tables/metadata.xml b/app-i18n/scim-tables/metadata.xml
new file mode 100644
index 000000000000..01855eefe13f
--- /dev/null
+++ b/app-i18n/scim-tables/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">scim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-tables/scim-tables-0.5.13.ebuild b/app-i18n/scim-tables/scim-tables-0.5.13.ebuild
new file mode 100644
index 000000000000..a6a246691146
--- /dev/null
+++ b/app-i18n/scim-tables/scim-tables-0.5.13.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit autotools base eutils
+
+DESCRIPTION="Smart Common Input Method (SCIM) Generic Table Input Method Server"
+HOMEPAGE="http://www.scim-im.org/"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc x86"
+IUSE="nls"
+LANGS="am ar bn gu hi ja kn ko ml ne pa ru ta te th uk vi zh"
+for i in ${LANGS} ; do
+ IUSE="${IUSE} linguas_${i}"
+done
+
+RDEPEND=">=app-i18n/scim-1.4.7-r2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.5.8+gcc-4.3.patch"
+ "${FILESDIR}"/${PN}-0.5.12-automake.patch
+ )
+
+pkg_setup() {
+ elog "Not all languages are going to be compiled."
+ elog "Please set LINGUAS to your preferred language(s)."
+ elog "Supported LINGUAS values are:"
+ elog "${LANGS}"
+}
+
+src_unpack() {
+ base_src_unpack
+
+ strip-linguas ${LANGS}
+ local use_languages="additional ${LINGUAS}"
+ elog "Languages being compiled are: ${use_languages}"
+
+ cd "${S}"
+ sed -i -e "/^SUBDIRS/s/.*/SUBDIRS = ${use_languages}/g" \
+ tables/Makefile.{am,in} || die "sed ${m} failed"
+
+ AT_NO_RECURSIVE=yes AT_M4DIR=${S}/m4 eautoreconf
+}
+
+src_compile() {
+ econf \
+ --disable-skim-support \
+ $(use_enable nls) \
+ --disable-static \
+ --disable-dependency-tracking \
+ --without-arts || die "econf failed"
+ emake || die "make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+ dodoc README ChangeLog AUTHORS
+}
diff --git a/app-i18n/scim-tomoe/Manifest b/app-i18n/scim-tomoe/Manifest
new file mode 100644
index 000000000000..d12abf0a3654
--- /dev/null
+++ b/app-i18n/scim-tomoe/Manifest
@@ -0,0 +1,8 @@
+AUX scim-tomoe-0.6.0-gcc43.patch 445 SHA256 12963a4ce4595ec1087b1eb6c64b7749aed674603a39f32dbad719d4f479bc8a SHA512 a27202fdf5be0d77d473674475ee99d2b0d1a6eba51ccc45c4c7dc6c3a9c3d1042ed3b25ae15a04fcff885aad7b84c42cac7462fcc739bf12076e675b413fafa WHIRLPOOL 52cc32699a28c29df3f9413f9b41857d2c308c2dce328fd1fa5cb383708ef445e0101464d27b21b0d7bc0c1e152430c360973cbff403c4c6fa59193ce99aa84a
+AUX scim-tomoe-0.6.0-gucharmap2.patch 892 SHA256 a78b7ca5091219e933e0f2b76f4122be1382d36995aa47360cce247af41935dc SHA512 7d03f1cd13dbcce98c5b95abf5b4542de28a733e7a785972030ba979a8db55652fbcbf02a8cc09035ff5f0eafed6e9dc60397ff8909e37eb43ea3d35e396a452 WHIRLPOOL 2a924544536ef133dfe4ee4603baa2c735078964d1124475695aabe603ad0a1787f32038cc83cd6a580cadf00bc79958aa7d85130fa2c39aa0763de458fb6ceb
+DIST scim-tomoe-0.6.0.tar.gz 385126 SHA256 4f053944285ed50e7916ebdb38298025e60eb430b64715fdad9375483456dc06 SHA512 d70a8838f8c82c76a8e3592ad712997189873cbc4ec7ebeba5d43d6583e24acf318299433c9342ee004c4ae4741cca7e0b88e4642cf46c43f967a47ec5ac9d4f WHIRLPOOL 4d34f4618efa12802fce12da42276d5b2a92dcc0ad591c337f6f8a28b5441c2db5639b07ec9aae6262a0b0ed74f460b9530748b229bcf529f30a1e2a038cb685
+EBUILD scim-tomoe-0.6.0-r3.ebuild 644 SHA256 cd14da18036b527ddfd2c3af2db5c4ffaa8aae737538ac02904e2d5472edc190 SHA512 99f9c7a8c24cce85a0236115dd9d85a03046440c2f0d062d15e93d6358532e16e0cec50e37819e8487d3c79f6bf6ba136f1f12bdd6dccff11c96da88729cd11e WHIRLPOOL a80b96fc247b3513ab631f060fef48858a2d86cfdc409f4edd8fa78c2473ce5615c71129ca3545871b95f793b13712fb44586c586a9df17fe3901dff3e7dbd7b
+EBUILD scim-tomoe-0.6.0.ebuild 548 SHA256 73581e309672c31bdce6942c2aa10a20b283a8ce2fb2634ddc66e323505a1302 SHA512 7318b8497ce9bd410e05e48d9b7a2185b9fa810ac20d053088737acf95a6b88f3140a34e7bab0c038dbadddac2c2fe9b9e533856094452e55d2818df91f87406 WHIRLPOOL 8c30cc8d92a40cf14bde1f10be0e4cd917f6162aafc695d9073e32f8182609d7ff0da5337d231b189af03f3e02de8e60a3b785087598552fa4c21fc98c6cbe33
+MISC ChangeLog 3376 SHA256 e3f72f4d539ae0d5b0789a3438b1cde3c250b7f4c4ed5f0b14eeb6f872be4682 SHA512 8b9aa19f2fc0034f26d57b0a8b435e2b23953c520959f75165b4bc6726d9043dd67288e4ab49c4bb83fb62021cefd860fe73dc486df2727eeaeb2dc61e2d4481 WHIRLPOOL 779a4b68fa2ed0faba313d02bfca058a606d17e713864c9c8e323e016ff6e1bf1059ef8608396d5b924b88811efcda001657b01c6689bfd8dea9ba0d6ae98471
+MISC ChangeLog-2015 2504 SHA256 a8a530ec002bfab7c2aac96f18324945f5f55d4759b247b63c2bde97f5cb546d SHA512 412cb797d31cb8000319b51fd8eb382803db0debdfee3256eca1626193cdff3a7103b83dc75eadbcbe7a81f46af9de5ff9b0cc833252abda6d9f7ca344ddad21 WHIRLPOOL b6756e41e7f73460a5d91c39f73ff51e39c2e33dbeca146b163597cfa113f86f292088845b0ce68ee43449802749e0f7347facc36860d020b58a450ec8a8e5c1
+MISC metadata.xml 309 SHA256 b47a3f121dd6bac17da122dbf826e5a5b7d5c35bd89653d54a013d2689160362 SHA512 7d9c17a3c4279406d23064447a7370658c494bbc5eab2a05f048f58ac3e136804ad65dc2fafbfc132b1f82ca6a651f6fe34beb68ea370b5a0eb1a3f6c98d3c2d WHIRLPOOL 3f18fbad763a6ffb0f84101e9401529f444dafd3b23047abed7e02664e8c65374c7c06fd50805b3cf7b9c534b80044a0eca7df030ca0d07816486489eefd572f
diff --git a/app-i18n/scim-tomoe/files/scim-tomoe-0.6.0-gcc43.patch b/app-i18n/scim-tomoe/files/scim-tomoe-0.6.0-gcc43.patch
new file mode 100644
index 000000000000..5464debb0198
--- /dev/null
+++ b/app-i18n/scim-tomoe/files/scim-tomoe-0.6.0-gcc43.patch
@@ -0,0 +1,11 @@
+diff -Naur scim-tomoe-0.6.0.orig/src/scim_tomoe_prefs_widget.cpp scim-tomoe-0.6.0/src/scim_tomoe_prefs_widget.cpp
+--- scim-tomoe-0.6.0.orig/src/scim_tomoe_prefs_widget.cpp 2007-05-07 16:49:15.000000000 +0900
++++ scim-tomoe-0.6.0/src/scim_tomoe_prefs_widget.cpp 2008-09-24 00:57:47.000000000 +0900
+@@ -22,6 +22,7 @@
+ #endif
+
+ #include <glib/gi18n-lib.h>
++#include <cstring>
+
+ #include "scim_tomoe_prefs_widget.h"
+ #include "scim_tomoe_prefs.h"
diff --git a/app-i18n/scim-tomoe/files/scim-tomoe-0.6.0-gucharmap2.patch b/app-i18n/scim-tomoe/files/scim-tomoe-0.6.0-gucharmap2.patch
new file mode 100644
index 000000000000..90a52615e65e
--- /dev/null
+++ b/app-i18n/scim-tomoe/files/scim-tomoe-0.6.0-gucharmap2.patch
@@ -0,0 +1,21 @@
+---
+ Update tomoe-gtk to gucharmap-2 API
+ https://bugs.gentoo.org/show_bug.cgi?id=243160
+
+ scim_tomoe_prefs_widget.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/src/scim_tomoe_prefs_widget.cpp 2008-12-06 16:40:15.000000000 +0100
++++ b/src/scim_tomoe_prefs_widget.cpp 2008-12-06 17:01:19.000000000 +0100
+@@ -473,9 +473,9 @@
+ String (SCIM_TOMOE_CONFIG_UNICODE_TABLE_FONT_DEFAULT));
+
+ if (font.length() > 0) {
+- gucharmap_charmap_set_font (charmap, font.c_str ());
++ gucharmap_charmap_set_font_desc (charmap, pango_font_description_from_string(font.c_str ()));
+ } else {
+- gucharmap_charmap_set_font (charmap, NULL);
++ gucharmap_charmap_set_font_desc (charmap, pango_font_description_from_string(NULL));
+ set_default_font (prefs, SCIM_TOMOE_CONFIG_CAND_FONT,
+ GTK_WIDGET (charmap));
+ }
diff --git a/app-i18n/scim-tomoe/metadata.xml b/app-i18n/scim-tomoe/metadata.xml
new file mode 100644
index 000000000000..f01b1e07af44
--- /dev/null
+++ b/app-i18n/scim-tomoe/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">tomoe</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-tomoe/scim-tomoe-0.6.0-r3.ebuild b/app-i18n/scim-tomoe/scim-tomoe-0.6.0-r3.ebuild
new file mode 100644
index 000000000000..dde8e4a9a8a7
--- /dev/null
+++ b/app-i18n/scim-tomoe/scim-tomoe-0.6.0-r3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Japanese input method Tomoe IMEngine for SCIM"
+HOMEPAGE="http://tomoe.sourceforge.net/"
+SRC_URI="mirror://sourceforge/tomoe/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=app-i18n/scim-1.2.0
+ >=app-i18n/tomoe-gtk-0.6.0
+ >=x11-libs/gtk+-2.4:2
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=dev-util/intltool-0.35.0
+"
+
+PATCHES=( "${FILESDIR}"/${P}-gcc43.patch )
+
+src_configure() {
+ econf --disable-static
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+}
diff --git a/app-i18n/scim-tomoe/scim-tomoe-0.6.0.ebuild b/app-i18n/scim-tomoe/scim-tomoe-0.6.0.ebuild
new file mode 100644
index 000000000000..83a051f34b31
--- /dev/null
+++ b/app-i18n/scim-tomoe/scim-tomoe-0.6.0.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="Japanese input method Tomoe IMEngine for SCIM"
+HOMEPAGE="http://tomoe.sourceforge.net/"
+SRC_URI="mirror://sourceforge/tomoe/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="|| ( >=app-i18n/scim-1.2.0 >=app-i18n/scim-cvs-1.2.0 )
+ >=app-i18n/tomoe-gtk-0.6.0"
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}
diff --git a/app-i18n/scim-uim/Manifest b/app-i18n/scim-uim/Manifest
new file mode 100644
index 000000000000..60f9d8f81ae6
--- /dev/null
+++ b/app-i18n/scim-uim/Manifest
@@ -0,0 +1,7 @@
+AUX scim-uim-0.2.0-gcc43.patch 420 SHA256 f969543e949dd81ae09b0e567fb0c3a3b9090216b8f792ef013a5e9b10bc69d8 SHA512 8baec8863a00d1a870f9c557340f089f51e991acec994a3445bc378f95b226aeb46018ba11b8dc605b90ab35f7923bfc029fa40e1e01e17caba1e3ca99e07c09 WHIRLPOOL 496a2875cbb96a75d8ae6cde5e62d27bad9736e08843536772af29f77574d9e34d6f65a0950eb6fa212357c3c067f9b5856d528d8aeef200788ad57c3c1d53fd
+AUX scim-uim-0.2.0-uim-1.5.patch 367 SHA256 d221fb2a08474de0d38b28d03e833cb4f1613e8d3959b7c308d9fb7a30cc09b4 SHA512 2c68a8fa1e5d99e624145ce9a85aeb1a286e4a4afe33d92c32c13ad3e14060afa8f730d58146d9a2b134b9565172a909138742357b640ba000a7129e5e65e485 WHIRLPOOL 00c91ff76da735ae4a5c71356497e29e0af4fb526b72123c07fb2ced6057b9cdc5b83e371eae8acad1f099315b038287525cfe342cfa041bd009e904794569eb
+DIST scim-uim-0.2.0.tar.gz 344389 SHA256 457eb89f40dda70f813c0b401aaec8b397e7daa340d53136aba3b97407533e13 SHA512 18df8de8ebc02289e21bf54c921b5425f67ef3c379b3c3e4392431dc3b1d9d7f12a25bcbcaaddd264913bacf61ba2be9339845700f541c22f73981e99824c6e9 WHIRLPOOL e56af280a1e367a4ec9d86de5dacf56245ed35eee8e59affd96ee7d23d5ade6819a84797318a1b7350526b0a93bb7b0941398f6393d0370b934cc41d3688c53c
+EBUILD scim-uim-0.2.0-r2.ebuild 932 SHA256 640b39eec0bfe256933c3391707bbaadd6943e431f746009e3c5a6c2f05ab350 SHA512 79a5c8e0385f8114e7df01c991a5c3915bdd18912f86bd32e425e3dd8b3c63753be35dee054ecb9de193c62fb65e33ce4ef030ac2beea93ac68919ee70541aae WHIRLPOOL b3a7ff58a61d013ad3d8822b889f5770fdfe2cbc6b7077dbf2e9126dd0e4932ef9ecd2e53e0e9d6675572f362d5b2489066a5c54d6d61edc36283b8690c2f3ba
+MISC ChangeLog 2510 SHA256 274a4c34a0e8d90e5c8a9338975509d05d4fbbf88b65363803f02f52d404f1a8 SHA512 8cd99d63f232dd31e447f3a4831817a62c994477a4ed295ea4fe7f5d7388341528580e4d3b3b6cfe3441cfbc1f3e09eb5ad4308043001193a03bfa560d0d1c93 WHIRLPOOL a868d61969ed6b51bdb0e3e5ae00e6ed3651673c0eedef993aa30c503f85c3938d5bccfc0ff4900890f141f43ed044c8dd40eac1fd0f39b179c072d70f5358b0
+MISC ChangeLog-2015 5631 SHA256 d6392e70a564eaf6ae321ed204686ef03c55ae430a62c8d3cfa506d67003283c SHA512 8421d9475771ce2234d955ff12a645d8d9f06e2eb3778868f380e7c0da862fac444693d262f97ea7ccb685cba6660a31d79cd050e4225314653436166cef228e WHIRLPOOL 8f7690638092a6e90041a84968ca66c86a8b425018bbe3a14a8c84559e6123c217bf955fe25f44fa89e7e78abf65a5cda9dae3ef98fe95ea66fcabbf4a611c31
+MISC metadata.xml 308 SHA256 fca15aa6f4f3564c9310b314c403ee412704ce76871c1266c6038d9b1fb55899 SHA512 9f18bf632f3eff9a6498145c2b4c04d51bb119c67351216ab757cd3cea2364c60bef683769218c0596ef6bd29235e51df6a64f9ab1234665fc2191e18fc51cc7 WHIRLPOOL d861c223e235412417b8800d5dc7df83abe7ecd0b1acdcbd7fdd31e5a9aad2180f842652532126358a23f1e5c40c02e0fad16ef46edf98abd502018c82c4d6ff
diff --git a/app-i18n/scim-uim/files/scim-uim-0.2.0-gcc43.patch b/app-i18n/scim-uim/files/scim-uim-0.2.0-gcc43.patch
new file mode 100644
index 000000000000..a956dd29e56b
--- /dev/null
+++ b/app-i18n/scim-uim/files/scim-uim-0.2.0-gcc43.patch
@@ -0,0 +1,11 @@
+diff -Naur scim-uim-0.2.0.orig/src/scim_uim_imengine.cpp scim-uim-0.2.0/src/scim_uim_imengine.cpp
+--- scim-uim-0.2.0.orig/src/scim_uim_imengine.cpp 2007-04-10 14:43:59.000000000 +0900
++++ scim-uim-0.2.0/src/scim_uim_imengine.cpp 2008-11-02 19:00:55.000000000 +0900
+@@ -32,6 +32,7 @@
+ #include <config.h>
+ #endif
+
++#include <cstring>
+ #include <scim.h>
+ #include "scim_uim_imengine.h"
+ #include <uim/uim-compat-scm.h>
diff --git a/app-i18n/scim-uim/files/scim-uim-0.2.0-uim-1.5.patch b/app-i18n/scim-uim/files/scim-uim-0.2.0-uim-1.5.patch
new file mode 100644
index 000000000000..d186b441bb8d
--- /dev/null
+++ b/app-i18n/scim-uim/files/scim-uim-0.2.0-uim-1.5.patch
@@ -0,0 +1,12 @@
+--- scim-uim-0.2.0/src/scim_uim_imengine.cpp
++++ scim-uim-0.2.0/src/scim_uim_imengine.cpp
+@@ -35,7 +35,8 @@
+ #include <cstring>
+ #include <scim.h>
+ #include "scim_uim_imengine.h"
+-#include <uim/uim-compat-scm.h>
++#include <uim/uim-scm.h>
++#include <uim/uim-util.h>
+
+ #define scim_module_init uim_LTX_scim_module_init
+ #define scim_module_exit uim_LTX_scim_module_exit \ No newline at end of file
diff --git a/app-i18n/scim-uim/metadata.xml b/app-i18n/scim-uim/metadata.xml
new file mode 100644
index 000000000000..01855eefe13f
--- /dev/null
+++ b/app-i18n/scim-uim/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">scim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-uim/scim-uim-0.2.0-r2.ebuild b/app-i18n/scim-uim/scim-uim-0.2.0-r2.ebuild
new file mode 100644
index 000000000000..ad0fc7d82d8a
--- /dev/null
+++ b/app-i18n/scim-uim/scim-uim-0.2.0-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+inherit eutils
+
+DESCRIPTION="An input module for Smart Common Input Method (SCIM) which uses uim as backend"
+HOMEPAGE="http://www.scim-im.org/"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/uim-1.5.0
+ >=app-i18n/scim-1.4.0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-gcc43.patch" \
+ "${FILESDIR}/${P}-uim-1.5.patch"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS ChangeLog README THANKS || die
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM with both GTK2 and XIM, you should use the following"
+ elog "in your user startup scripts such as .gnomerc or .xinitrc:"
+ elog
+ elog "LANG='your_language' scim -d"
+ elog "export XMODIFIERS=@im=SCIM"
+ elog
+}
diff --git a/app-i18n/scim-wijesekera/Manifest b/app-i18n/scim-wijesekera/Manifest
new file mode 100644
index 000000000000..028ffa8b2a05
--- /dev/null
+++ b/app-i18n/scim-wijesekera/Manifest
@@ -0,0 +1,6 @@
+AUX scim-wijesekera-0.3.3-gcc43.patch 949 SHA256 dbd44ec7c75cea9a15b7669d2e4bcb4d8e6cbf81eaeff9a09141e87a9bd47f60 SHA512 0719231165e2647b7fbfec9b39e98b2665bb8e7bdf708937afdb917df8762cc0a1b226bb60177367ea5019e8962fa5bc6fc4cc2d883a0bcc7049a29bf64aa974 WHIRLPOOL d3b1fa85ff9854b9ee13df40efc31e256da4741bf2cebe2ff1d8728d977f9118690af4b77648183c0f72602cdbe1a8a9d14793b7d91c05f1fb759b18fd2a63ab
+DIST scim-wijesekera-0.3.3.tar.gz 193023 SHA256 2f759889801645eadc15aacb0e7e0219823859e3166e48bb929b39fb6c43bc5b SHA512 98bfbb7a3cf499c7980c06504083744f46ce352b27e8e80362190359e8bfa88472a5510568f3753503c7d409d1730e7d1ae1162e3d43a5475e466c334b0a91fc WHIRLPOOL 70a14570b736588c9f9349a2ac5600c2bd5810d2cbb9795e60d41e5557b5831323581a7de6842e838eaeed81f3c028d07777756da34a0e7e1cf69d2aa9941ef3
+EBUILD scim-wijesekera-0.3.3-r1.ebuild 632 SHA256 db0eac98bc210d5c2134593f8987eecde02b39b971aa61e4285ac681473445eb SHA512 f3a75e566829598a7c5e1d0e275a24c628b532b1f76e95eb0eaaf85dfbf5b810dd17fa55a80ec7c89256b590f50b688c76de9aca035a18d7c709787d0a2d9e90 WHIRLPOOL 1c55220a1281818cf9953885d42e202bcf2dd780b45e78842a05df04ff90d26a5a7937634881d6048dae933a252705fc734d83d5f43a3c3a8e929a2f7117bcf7
+MISC ChangeLog 3047 SHA256 daa93711d75d333b15144c1bb65f98f5ba2b54a30c7253c5f5c1598ba8ce3c3f SHA512 36ddc3766979c1206a4020c2069ddebee3ba290ee1c12e5f2aadbeb0c785773db968bb8ec57b15163429d6e0ac7ced6a611ebaf840097a97dc2494965eb307d0 WHIRLPOOL 59e07d530833194657fab9eba664dc744a8c1e46fa03c961d011586f355027b799286dc8d30999b054c3582975a7ec797731f0efa558eeaceeeab0825297b35f
+MISC ChangeLog-2015 1107 SHA256 f8ee4e7871fc908348d9c1e1ecdd5eecd8d7e0cd2f128b613d3c69b5850eef15 SHA512 ed7dfe2224d70beba6401776d27794587b70f38017ae6245e43d12201854fdc5fcd444eede5a64f8aa12bd3ba100cc9b520f701b8460d749149598142e3f0e21 WHIRLPOOL 9d60456670bffff8bbf221b375a00139435542125eae87c1ba339b6029919ef8ee520646ba385ae9043b178a191830927027ad26702f3b7a0b8f6507dca1d825
+MISC metadata.xml 311 SHA256 b7a4863e542b04bcd2d48894b6ebcf70a78be3e33c9f0e6eece33dd3591a2b37 SHA512 f28f06e7380cddb887dc480bfd1c975a5aecf7fe3a9349547f058141cfc66f212e51728627638342958785843cdd668a9d35dc9c3b13963d4ea6c0ff91739a0a WHIRLPOOL 0afb22a3847aa4b0e5d28ba36b3767796739f0f4411630a76b4ffeaca0b932eded7372cfc04e3b16f2d242764b8e8a23acfd4b89b380d6d6cda616c43ea73b58
diff --git a/app-i18n/scim-wijesekera/files/scim-wijesekera-0.3.3-gcc43.patch b/app-i18n/scim-wijesekera/files/scim-wijesekera-0.3.3-gcc43.patch
new file mode 100644
index 000000000000..1fa083fd7c8d
--- /dev/null
+++ b/app-i18n/scim-wijesekera/files/scim-wijesekera-0.3.3-gcc43.patch
@@ -0,0 +1,22 @@
+diff -Naur scim-wijesekera-0.3.3.orig/src/scim_wijesekera_imengine.cpp scim-wijesekera-0.3.3/src/scim_wijesekera_imengine.cpp
+--- scim-wijesekera-0.3.3.orig/src/scim_wijesekera_imengine.cpp 2008-04-26 17:45:15.000000000 +0900
++++ scim-wijesekera-0.3.3/src/scim_wijesekera_imengine.cpp 2008-12-29 01:07:23.000000000 +0900
+@@ -33,6 +33,7 @@
+ #endif
+
+ #include <stdio.h>
++#include <cstring>
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
+diff -Naur scim-wijesekera-0.3.3.orig/src/scim_wijesekera_imengine_setup.cpp scim-wijesekera-0.3.3/src/scim_wijesekera_imengine_setup.cpp
+--- scim-wijesekera-0.3.3.orig/src/scim_wijesekera_imengine_setup.cpp 2008-04-26 17:45:15.000000000 +0900
++++ scim-wijesekera-0.3.3/src/scim_wijesekera_imengine_setup.cpp 2008-12-29 01:07:03.000000000 +0900
+@@ -30,6 +30,7 @@
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
+ #endif
++#include <cstring>
+
+ #include <scim.h>
+ #include <gtk/scimkeyselection.h>
diff --git a/app-i18n/scim-wijesekera/metadata.xml b/app-i18n/scim-wijesekera/metadata.xml
new file mode 100644
index 000000000000..91d1f3a02de3
--- /dev/null
+++ b/app-i18n/scim-wijesekera/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">sinhala</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-wijesekera/scim-wijesekera-0.3.3-r1.ebuild b/app-i18n/scim-wijesekera/scim-wijesekera-0.3.3-r1.ebuild
new file mode 100644
index 000000000000..69f362e5b6ec
--- /dev/null
+++ b/app-i18n/scim-wijesekera/scim-wijesekera-0.3.3-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit autotools eutils
+
+DESCRIPTION="Wijesekara keyboard for Sinhala input using scim"
+HOMEPAGE="http://sinhala.sourceforge.net/"
+SRC_URI="http://sinhala.sourceforge.net/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/scim-0.99.8[-gtk3]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/app-i18n/scim-wnn/Manifest b/app-i18n/scim-wnn/Manifest
new file mode 100644
index 000000000000..90bf36a0088c
--- /dev/null
+++ b/app-i18n/scim-wnn/Manifest
@@ -0,0 +1,8 @@
+AUX scim-wnn-1.0.0-gcc43.patch 987 SHA256 de08e6da7694e672af632b5d2fc4a298cf9c199e76e27c5c192b6e404081c3c7 SHA512 d3c3baf5399a17f0ca1c6fa77e9e7a37fbbffbeb1b0eeaf1f099c6f07367cccb9e7705955797c218d216384b8621d328e8de7e9eff09ce288c51fe7bcec8b5e7 WHIRLPOOL 9b844c1d7e2f49172760ea1553b4e489d17a9f4bdbf5f760f51f33d0b238837a9e88be00cecf20b84db51e43fadac92ff51c7406f17401f637137044281fc0a7
+DIST scim-wnn-0.2.4.tar.gz 524325 SHA256 2e261006f13bdeaa2801ab73f54bbd95c78a63dbeb88c0c4aa9d10fb20c4a996 SHA512 72a4e3a0397a711a86733a4f8162627be676280e118e12ef798e4041892bc835869e173710627547978d39f5cd00c032e043e4d2b9db95046cca66cd7ae3a1a1 WHIRLPOOL 70d598b729d2a8196037802cbcff8b2280a001d48ac351291fbfe83b9a37e97504ada058e5e40435659ad490fddff0f1eac1ea39c401c57581eff71ae4b31e01
+DIST scim-wnn-1.0.0.tar.gz 536488 SHA256 c209d3dd0a58ed053a2541040da1e9ff1b4be3d1795ed5f9ced43b197dc82cdd SHA512 2ba49d247e0dd84b4fd74dee18a2cc83468ffd2dfd98923e588e0ceee82e78c2b25b48c9d7c173f4626f93ac031bfe50764f78624fcf60770784df74bf5f7a33 WHIRLPOOL daea02fca44459c41977c1f13a6330b8cfe176bdffac5066dc2db93f082d05a3965604101f82bffcbefe60534ad2c274e1544633853303e83bf7cf222ea52cea
+EBUILD scim-wnn-0.2.4.ebuild 1161 SHA256 1711d1facdc7ab3001275e84d17e9479991e7ece1b8794f6fa54a4fbf11bbead SHA512 59576a421ca3914b7a58e735354fc72375b70f3ee49a83ba0344d27217f7ae206ea775679a313ebfaa12a2fb611752e8172772a38987304c3b7b41254efc8f97 WHIRLPOOL c7d3e0fdac8bfe595580f9af9a88b32e4fe1cd2ec56c0025ef3a0a1522ec6deaf5cc6d64ce362513ace87ea55ae3539dc65ff35080b2b8c59c004c1112718d1e
+EBUILD scim-wnn-1.0.0-r1.ebuild 1439 SHA256 5e6b8cc427aa3a388d3ffb7c099c7fdd71ea515823af8b58a34cc46c7cad045a SHA512 3706008070464c9363761c441554e712701e48a8fa4d75153e04dd1420da5fc44bc3e012caa08b5e04434d5bbf4e019900c5d08eebc1c7dbdf3e0a21dc551960 WHIRLPOOL 739a0507b71b4337a9b5e252f88e71cc30b0142601c2fd228c832a7e130b6998bb158a5d8f7a56dcc3848e71d2ad2b4304bf4b32ffd5b9c0a420b14b3460d125
+MISC ChangeLog 2702 SHA256 3f816fe2aa06a33fd447b7a1b9d78d87086465b69c14a26ba1c001c864e98cc5 SHA512 ce9f7e07ac13d902a89c5d251102c00a66b112c0d1c0cea5a89f5754cf1280950258f1470e50781879bcc5a99c8fde66df48d947ce58d06c404643e68c36b04a WHIRLPOOL 29ef7ed9b676cc9092a00826881984731ed0197a845aa61067091685924ff7fa33d86c577edeb13de211595ceb74862c9b9f17bc043b518fd3c7db59a4e2b583
+MISC ChangeLog-2015 2097 SHA256 f58885c76ed04a659388ca3034a98ee95c5fd814d7eff6c17750264030fbf7d1 SHA512 d35c646d7c348d1cb7671f711acccbc8778f526a58b3a2c354eb86a67881ce712264a6139b0b7deebafbc61840c08fd3c356b236d06d06deda809f22e1005201 WHIRLPOOL 7f44e2d070d8a4b5e73b86ae492c86f18e992120228e53b70670327d12d661fb4b364f23da08d4985b16ac5df6d462cde470436f889ffc38b609dd0fc2baf032
+MISC metadata.xml 230 SHA256 5fc421627b578ee2d1317320525119c0b406026597bb1d054f96254a241bf96a SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 WHIRLPOOL b3c1363540645200abd5bf0b5b7fb3cae0b738bfd359f7b13b56d97650f9381fccede1e3f867dbc736461ee7c7906725a3c53eabd9ac99929d5c7c520a831082
diff --git a/app-i18n/scim-wnn/files/scim-wnn-1.0.0-gcc43.patch b/app-i18n/scim-wnn/files/scim-wnn-1.0.0-gcc43.patch
new file mode 100644
index 000000000000..489f2d9064e2
--- /dev/null
+++ b/app-i18n/scim-wnn/files/scim-wnn-1.0.0-gcc43.patch
@@ -0,0 +1,22 @@
+diff -Naur scim-wnn-1.0.0.orig/src/scim_wnn_imengine_setup.cpp scim-wnn-1.0.0/src/scim_wnn_imengine_setup.cpp
+--- scim-wnn-1.0.0.orig/src/scim_wnn_imengine_setup.cpp 2006-03-28 12:07:31.000000000 +0900
++++ scim-wnn-1.0.0/src/scim_wnn_imengine_setup.cpp 2009-12-08 19:32:27.000000000 +0900
+@@ -26,6 +26,7 @@
+
+ #define Uses_SCIM_CONFIG_BASE
+
++#include <cstring>
+ #include <gtk/gtk.h>
+
+ #ifdef HAVE_CONFIG_H
+diff -Naur scim-wnn-1.0.0.orig/src/wnnconversion.cpp scim-wnn-1.0.0/src/wnnconversion.cpp
+--- scim-wnn-1.0.0.orig/src/wnnconversion.cpp 2006-03-28 11:34:46.000000000 +0900
++++ scim-wnn-1.0.0/src/wnnconversion.cpp 2009-12-08 19:50:26.000000000 +0900
+@@ -17,6 +17,7 @@
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
++#include <cstring>
+ #include "wnnconversion.h"
+ #include <scim_wnn_def.h>
+
diff --git a/app-i18n/scim-wnn/metadata.xml b/app-i18n/scim-wnn/metadata.xml
new file mode 100644
index 000000000000..c921b96adf6c
--- /dev/null
+++ b/app-i18n/scim-wnn/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-i18n/scim-wnn/scim-wnn-0.2.4.ebuild b/app-i18n/scim-wnn/scim-wnn-0.2.4.ebuild
new file mode 100644
index 000000000000..0e636d5b55e7
--- /dev/null
+++ b/app-i18n/scim-wnn/scim-wnn-0.2.4.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Japanese input method Wnn IMEngine for SCIM"
+HOMEPAGE="http://nop.net-p.org/modules/pukiwiki/index.php?%5B%5Bscim-wnn%5D%5D"
+SRC_URI="http://nop.net-p.org/files/scim-wnn/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="freewnn"
+
+RDEPEND="|| ( >=app-i18n/scim-1.0 >=app-i18n/scim-cvs-1.0 )
+ dev-libs/wnn7sdk
+ freewnn? ( app-i18n/freewnn )"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"/src
+ sed -i -e "s:/usr/lib/wnn7:/usr/lib/wnn:g" \
+ scim_wnn_def.h wnnconversion.cpp || die "sed failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS THANKS README
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM with both GTK2 and XIM, you should use the following"
+ elog "in your user startup scripts such as .gnomerc or .xinitrc:"
+ elog
+ elog "LANG='your_language' scim -d"
+ elog "export XMODIFIERS=@im=SCIM"
+ elog
+ if ! use freewnn ; then
+ ewarn
+ ewarn "You disabled freewnn USE flag."
+ ewarn "Please make sure you have wnnenvrc visible to scim-wnn."
+ ewarn
+ fi
+}
diff --git a/app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild b/app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild
new file mode 100644
index 000000000000..95bd20d4fbb0
--- /dev/null
+++ b/app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="Japanese input method Wnn IMEngine for SCIM"
+HOMEPAGE="http://nop.net-p.org/modules/pukiwiki/index.php?%5B%5Bscim-wnn%5D%5D"
+SRC_URI="http://nop.net-p.org/files/scim-wnn/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+freewnn"
+
+RDEPEND=">=app-i18n/scim-1.4[-gtk3]
+ dev-libs/wnn7sdk
+ freewnn? ( app-i18n/freewnn )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=sys-apps/sed-4"
+
+src_prepare() {
+ # bug #140794
+ sed -i -e 's:$LDFLAGS conftest.$ac_ext $LIBS:conftest.$ac_ext $LIBS $LDFLAGS:g' \
+ configure || die "ldflags sed failed"
+
+# sed -i -e "s:/usr/lib/wnn7:/usr/$(get_libdir)/wnn:g" \
+ sed -i -e "s:/usr/lib/wnn7:/usr/lib/wnn:g" \
+ src/scim_wnn_def.h src/wnnconversion.cpp || die "sed failed"
+
+ # bug #295733
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM with both GTK2 and XIM, you should use the following"
+ elog "in your user startup scripts such as .gnomerc or .xinitrc:"
+ elog
+ elog "LANG='your_language' scim -d"
+ elog "export XMODIFIERS=@im=SCIM"
+ elog
+ if ! use freewnn ; then
+ ewarn
+ ewarn "You disabled freewnn USE flag."
+ ewarn "Please make sure you have wnnenvrc visible to scim-wnn."
+ ewarn
+ fi
+}
diff --git a/app-i18n/scim/Manifest b/app-i18n/scim/Manifest
new file mode 100644
index 000000000000..0fb6994c2d3d
--- /dev/null
+++ b/app-i18n/scim/Manifest
@@ -0,0 +1,10 @@
+AUX xinput-scim 240 SHA256 f2dd0ba47112298f4da79692f89d1447c0d707fffcd280ff782839d8457ac5f8 SHA512 1cfe95fdbf840b9fa43c980bb3f2e16fc6008714f8807650582ca906cb91ddd28b3b7b3c9f1325035e2c614d587d172071b2b7e3c6b30ca3128902b335773893 WHIRLPOOL 5dce31583a8c1787d7f7d543b6aced08c6f75aac09795fcfbabfc45c2e0168d6431051f1bcceddb343686311b9fb930203b388b6702f93adf0467fbc59ef127a
+DIST scim-1.4.14.tar.gz 1519287 SHA256 e91e4cfed92f3e19d229f702eda03038b3f9a0ce6c4e625b0be51134c19b7678 SHA512 00fe7a1b40b69aae123c0a1e67eb3744ad1e6b1e66726bb011a7426bd28012c52b346c62f08c7ecf0977ac3e88ee416337c9fa89b39142d5eea338d99641f5df WHIRLPOOL cb32326b30ff17ca4815267898de715e50893e77c28a48c55cf708f818fff4aea9e2114f982302c0fd6fd4e1fc45f2ca8490603db0de49ed4159914e1edd516d
+DIST scim-1.4.16.tar.gz 1361105 SHA256 54173a4faa50c81c754e46458bb809428a6f4a2fd9e62c9b443648c6953b4cec SHA512 23fe60202d74dd8cba84da40f80b6998d96180b08a618b052dde54b4d16a65246608344f63d6dd9b3d8a98102adcfd4831d850d81348539074273a2062c133d8 WHIRLPOOL 3955cad6eb3d8abf780af76d78f8025a1b8425e1f68df52517d999bd9369980a605ac40c3f7c3812b3b65b2cf7dff55a384238f7adfd689841a83475ed5b09e3
+DIST scim-1.4.17.tar.gz 1285383 SHA256 573add90f266b2351a04950fcf0f558459997ea23d0266b43f586acea009f922 SHA512 a7e0696330bca6fdf929ec0565ab4af1b4d0e5f73592cf5cccf1af6412eb351cd5a5ec9a3e5b83b24d6abad89bbb38a375cbbb0fd978f2fa17f6d64b69da0e3a WHIRLPOOL b28d609b306756c352445568e3e2bdbc10e6a89859d671fcca0d3008d3894f53288eff48ec52fb0d3a8244b7803feb89590fc8ba2f3bd0982bab916f904e2150
+EBUILD scim-1.4.14.ebuild 2685 SHA256 f84838b6155f8ff410615192962c78a28a665e9ee2f1d18e4d82bfdbd8d5d232 SHA512 dec5a027f66361a4faa930bfa51d618208be71f05c7172171a8dfaf968d3969bd26e940bd34ffd00c414f57786362cc9aca35ccbb5e49774200abd8ab08adafb WHIRLPOOL 909fc6ada0360591324c95028c9fff8ed4774fd1d75ce67a11684efcd08e576ccdad18708b692f0040747382ba1fd77a072891e827cf8f0a54682e265a460f2f
+EBUILD scim-1.4.16.ebuild 2491 SHA256 5bfbb0719ac6812268e0356aa356a0972a84a7dec265e2155eec69e9a357451a SHA512 892f71b5a5ee38454db9474d0b3a9799353ae30ebd88b0ad37b27b974cd7ec3636caa260c20bed7a1a777363e66e7149fc14238aa2cae3ffa64bfd7085bfbd62 WHIRLPOOL 142ad6422a69d1957a220ab06994465dfc2c7bc6f88c0e4622ff5f8b15d5125b50353d10f32202a664de68ffa07feecf517cdfe26da0d24c1f716bcee2ea6e91
+EBUILD scim-1.4.17.ebuild 2491 SHA256 5bfbb0719ac6812268e0356aa356a0972a84a7dec265e2155eec69e9a357451a SHA512 892f71b5a5ee38454db9474d0b3a9799353ae30ebd88b0ad37b27b974cd7ec3636caa260c20bed7a1a777363e66e7149fc14238aa2cae3ffa64bfd7085bfbd62 WHIRLPOOL 142ad6422a69d1957a220ab06994465dfc2c7bc6f88c0e4622ff5f8b15d5125b50353d10f32202a664de68ffa07feecf517cdfe26da0d24c1f716bcee2ea6e91
+MISC ChangeLog 2764 SHA256 99301e868a49ce7f2af88567d95c34b8b9f39993aecd4c8aee34f14dcf542379 SHA512 98009474c841cf9790cbec96eda081249c3174c4c6b5a572f55d0a059f7e494001db39eaa898d9baf76fc7ae83f5a0ff044f6d7558d7ecda7d186dccac9cace0 WHIRLPOOL 0a136b1652717da32cddec53ec20bfecd509e432920b070042199bb7e9bc16d6e31c5041c352e617a7c57103910fe696204f6946579c8712838932aa8b144bde
+MISC ChangeLog-2015 23042 SHA256 a8be51c18c66e1dd1474a58f9bca2f8b71a18d4a74ae2f02030452e584c30794 SHA512 4690f1298c0b6062e88e7197fd2b7c75001610528a963189c837b1cee5fa406655712c1bceba10fa90495657cb11f57a6fbe6cf6f8e0c286819afb531b9057b7 WHIRLPOOL e55439af7bceeb66ce5a4a88c90a326fc516f5d6edb7930e49d5f3ba1d265fc2a479f22873b45b49104db9bd44d684b7f0cf1b3367a5d6cffa16b668012d0e20
+MISC metadata.xml 396 SHA256 2a0623b6ed3dc75bf2c263924c546ef455d0b11b0279cbe67392f7de0d3043e3 SHA512 89418967f338111cae8dac484c2411891e9d496253fe59a38ec87a179da4d7ff415bd8942923a9231f6c80d48b457cafd43f2015df13a3d8749a22c0412ce9a0 WHIRLPOOL 0f58f310f42a4656a4aeb9046239c243473e2f9eca4322e4972b1588d5ff25eea4bd88e523c66cf9d7bb0c28ebaad0bb66e4ae6c8781c906df82c8cec25dc2b8
diff --git a/app-i18n/scim/files/xinput-scim b/app-i18n/scim/files/xinput-scim
new file mode 100644
index 000000000000..1d2ef452cbc6
--- /dev/null
+++ b/app-i18n/scim/files/xinput-scim
@@ -0,0 +1,9 @@
+XIM=SCIM
+XIM_PROGRAM="@EPREFIX@/usr/bin/scim"
+XIM_ARGS="-d --no-socket"
+GTK_IM_MODULE=scim
+QT_IM_MODULE=scim
+PREFERENCE_PROGRAM="@EPREFIX@/usr/bin/scim-setup"
+SHORT_DESC="SCIM"
+LONG_DESC="Smart Common Input Method platform"
+ICON=scim-setup
diff --git a/app-i18n/scim/metadata.xml b/app-i18n/scim/metadata.xml
new file mode 100644
index 000000000000..3590c797aa6c
--- /dev/null
+++ b/app-i18n/scim/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <use>
+ <flag name="gtk3">Enable support for <pkg>x11-libs/gtk+</pkg>:3</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">scim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim/scim-1.4.14.ebuild b/app-i18n/scim/scim-1.4.14.ebuild
new file mode 100644
index 000000000000..d2595037a5cf
--- /dev/null
+++ b/app-i18n/scim/scim-1.4.14.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+inherit eutils flag-o-matic multilib gnome2-utils autotools-utils
+
+DESCRIPTION="Smart Common Input Method (SCIM) is an Input Method (IM) development platform"
+HOMEPAGE="http://www.scim-im.org/"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="doc gtk3"
+
+RDEPEND="x11-libs/libX11
+ dev-libs/glib:2
+ gtk3? ( x11-libs/gtk+:3 )
+ !gtk3? ( x11-libs/gtk+:2 )
+ >=dev-libs/atk-1
+ >=x11-libs/pango-1
+ !app-i18n/scim-cvs"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen
+ >=app-text/docbook-xsl-stylesheets-1.73.1 )
+ dev-lang/perl
+ virtual/pkgconfig
+ >=dev-util/intltool-0.33
+ sys-devel/libtool"
+AUTOTOOLS_IN_SOURCE_BUILD=1
+DOCS=(
+ README
+ AUTHORS
+ ChangeLog
+ docs/developers
+ docs/scim.cfg
+)
+
+src_configure() {
+ local gtk_version
+ if use gtk3; then
+ gtk_version="--with-gtk-version=3"
+ else
+ gtk_version="--with-gtk-version=2"
+ fi
+
+ # bug #83625
+ filter-flags -fvisibility-inlines-hidden -fvisibility=hidden
+ local myeconfargs=(
+ $(use_with doc doxygen)
+ --enable-ld-version-script
+ $gtk_version
+ )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ autotools-utils_src_compile
+ use doc && emake docs
+}
+
+src_install() {
+ use doc && HTML_DOCS=("${AUTOTOOLS_BUILD_DIR}/docs/html/")
+ autotools-utils_src_install
+
+ sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-${PN}" > "${T}/${PN}.conf" || die
+ insinto /etc/X11/xinit/xinput.d
+ doins "${T}/${PN}.conf"
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM with both GTK2 and XIM, you should use the following"
+ elog "in your user startup scripts such as .gnomerc or .xinitrc:"
+ elog
+ elog "LANG='your_language' scim -d"
+ elog "export XMODIFIERS=@im=SCIM"
+ elog "export GTK_IM_MODULE=\"scim\""
+ elog "export QT_IM_MODULE=\"scim\""
+ elog
+ elog "where 'your_language' can be zh_CN, zh_TW, ja_JP.eucJP or any other"
+ elog "UTF-8 locale such as en_US.UTF-8 or ja_JP.UTF-8"
+ elog
+ elog "To use Chinese input methods:"
+ elog " # emerge app-i18n/scim-tables app-i18n/scim-pinyin"
+ elog "To use Korean input methods:"
+ elog " # emerge app-i18n/scim-hangul"
+ elog "To use Japanese input methods:"
+ elog " # emerge app-i18n/scim-anthy"
+ elog "To use various input methods (more than 30 languages):"
+ elog " # emerge app-i18n/scim-m17n"
+ elog
+ elog "Please modify ${EPREFIX}/etc/scim/global and add your UTF-8 locale to"
+ elog "/SupportedUnicodeLocales entry."
+ elog
+ ewarn
+ ewarn "If you upgraded from scim-1.2.x or scim-1.0.x, you should remerge all SCIM modules."
+ ewarn
+
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/scim/scim-1.4.16.ebuild b/app-i18n/scim/scim-1.4.16.ebuild
new file mode 100644
index 000000000000..d6b9778d4236
--- /dev/null
+++ b/app-i18n/scim/scim-1.4.16.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic multilib gnome2-utils autotools
+
+DESCRIPTION="Smart Common Input Method (SCIM) is an Input Method (IM) development platform"
+HOMEPAGE="https://sourceforge.net/projects/scim"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="doc gtk3"
+
+RDEPEND="x11-libs/libX11
+ dev-libs/glib:2
+ gtk3? ( x11-libs/gtk+:3 )
+ !gtk3? ( x11-libs/gtk+:2 )
+ >=dev-libs/atk-1
+ >=x11-libs/pango-1"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen
+ >=app-text/docbook-xsl-stylesheets-1.73.1 )
+ dev-lang/perl
+ virtual/pkgconfig
+ >=dev-util/intltool-0.33
+ sys-devel/libtool"
+DOCS=(
+ README
+ AUTHORS
+ ChangeLog
+ docs/developers
+ docs/scim.cfg
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # bug #83625
+ filter-flags -fvisibility-inlines-hidden -fvisibility=hidden
+ econf $(use_with doc doxygen) \
+ --enable-ld-version-script \
+ $(usex gtk3 --with-gtk-version={3,2})
+}
+
+src_compile() {
+ default
+ use doc && emake docs
+}
+
+src_install() {
+ use doc && HTML_DOCS=( "${S}/docs/html/" )
+ default
+
+ sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-${PN}" > "${T}/${PN}.conf" || die
+ insinto /etc/X11/xinit/xinput.d
+ doins "${T}/${PN}.conf"
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM with both GTK and XIM, you should use the following"
+ elog "in your user startup scripts such as .gnomerc or .xinitrc:"
+ elog
+ elog "LANG='your_language' scim -d"
+ elog "export XMODIFIERS=@im=SCIM"
+ elog "export GTK_IM_MODULE=\"scim\""
+ elog "export QT_IM_MODULE=\"scim\""
+ elog
+ elog "where 'your_language' can be zh_CN, zh_TW, ja_JP.eucJP or any other"
+ elog "UTF-8 locale such as en_US.UTF-8 or ja_JP.UTF-8"
+ elog
+ elog "To use Chinese input methods:"
+ elog " # emerge app-i18n/scim-tables app-i18n/scim-pinyin"
+ elog "To use Korean input methods:"
+ elog " # emerge app-i18n/scim-hangul"
+ elog "To use Japanese input methods:"
+ elog " # emerge app-i18n/scim-anthy"
+ elog "To use various input methods (more than 30 languages):"
+ elog " # emerge app-i18n/scim-m17n"
+ elog
+ elog "Please modify ${EPREFIX}/etc/scim/global and add your UTF-8 locale to"
+ elog "/SupportedUnicodeLocales entry."
+ elog
+ ewarn
+ ewarn "If you upgraded from scim-1.2.x or scim-1.0.x, you should remerge all SCIM modules."
+ ewarn
+
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/scim/scim-1.4.17.ebuild b/app-i18n/scim/scim-1.4.17.ebuild
new file mode 100644
index 000000000000..d6b9778d4236
--- /dev/null
+++ b/app-i18n/scim/scim-1.4.17.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic multilib gnome2-utils autotools
+
+DESCRIPTION="Smart Common Input Method (SCIM) is an Input Method (IM) development platform"
+HOMEPAGE="https://sourceforge.net/projects/scim"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="doc gtk3"
+
+RDEPEND="x11-libs/libX11
+ dev-libs/glib:2
+ gtk3? ( x11-libs/gtk+:3 )
+ !gtk3? ( x11-libs/gtk+:2 )
+ >=dev-libs/atk-1
+ >=x11-libs/pango-1"
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen
+ >=app-text/docbook-xsl-stylesheets-1.73.1 )
+ dev-lang/perl
+ virtual/pkgconfig
+ >=dev-util/intltool-0.33
+ sys-devel/libtool"
+DOCS=(
+ README
+ AUTHORS
+ ChangeLog
+ docs/developers
+ docs/scim.cfg
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # bug #83625
+ filter-flags -fvisibility-inlines-hidden -fvisibility=hidden
+ econf $(use_with doc doxygen) \
+ --enable-ld-version-script \
+ $(usex gtk3 --with-gtk-version={3,2})
+}
+
+src_compile() {
+ default
+ use doc && emake docs
+}
+
+src_install() {
+ use doc && HTML_DOCS=( "${S}/docs/html/" )
+ default
+
+ sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-${PN}" > "${T}/${PN}.conf" || die
+ insinto /etc/X11/xinit/xinput.d
+ doins "${T}/${PN}.conf"
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM with both GTK and XIM, you should use the following"
+ elog "in your user startup scripts such as .gnomerc or .xinitrc:"
+ elog
+ elog "LANG='your_language' scim -d"
+ elog "export XMODIFIERS=@im=SCIM"
+ elog "export GTK_IM_MODULE=\"scim\""
+ elog "export QT_IM_MODULE=\"scim\""
+ elog
+ elog "where 'your_language' can be zh_CN, zh_TW, ja_JP.eucJP or any other"
+ elog "UTF-8 locale such as en_US.UTF-8 or ja_JP.UTF-8"
+ elog
+ elog "To use Chinese input methods:"
+ elog " # emerge app-i18n/scim-tables app-i18n/scim-pinyin"
+ elog "To use Korean input methods:"
+ elog " # emerge app-i18n/scim-hangul"
+ elog "To use Japanese input methods:"
+ elog " # emerge app-i18n/scim-anthy"
+ elog "To use various input methods (more than 30 languages):"
+ elog " # emerge app-i18n/scim-m17n"
+ elog
+ elog "Please modify ${EPREFIX}/etc/scim/global and add your UTF-8 locale to"
+ elog "/SupportedUnicodeLocales entry."
+ elog
+ ewarn
+ ewarn "If you upgraded from scim-1.2.x or scim-1.0.x, you should remerge all SCIM modules."
+ ewarn
+
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/skk-jisyo/Manifest b/app-i18n/skk-jisyo/Manifest
new file mode 100644
index 000000000000..f95446b8e063
--- /dev/null
+++ b/app-i18n/skk-jisyo/Manifest
@@ -0,0 +1,6 @@
+DIST skk-jisyo-201605.tar.xz 6288104 SHA256 170e8260bc692d43f3cd321a06cf393a02239c462e76657bcde886ddb6d2cb8d SHA512 1093d363fe571c3e3e05fa54046fc4b88cbed2fbd104838576c83694556585401c3affa0afb2ed078c6f1b06f62a7b14145b1305f6fef089f160b4073900c7a1 WHIRLPOOL f9f5ce13ba7cf86beb41214d682ad514a4181d3867afefd2daf44c829be1ae7f0bcb9c7e39f1a50fa01deab8f205226e7b3916231431e531b9ea474935f642c1
+EBUILD skk-jisyo-201605.ebuild 1309 SHA256 65275faa8ce38e063a0fdb94d90f4639034395ef42792fe9f1239092786a6c35 SHA512 856f31033950f5d7cfabb6d6833592bc4c0a88978a23650357a4d80ebf8c6c4caf0941d3c9d6069a1f8c43ff9f0d9a113148107405bab65e83781c7d961c79e1 WHIRLPOOL 0c358d83c4cc589484d8f1240d7bd8ecb2b6e2ccc06924d21a447561bc9273b4c32b694dd0950e5d1bb12853ee7d9f1398f8da7abbeb988edfe6090a9f69375d
+EBUILD skk-jisyo-999999.ebuild 1713 SHA256 b175520f2f7e0fe6d36b8f345e2e65f3b1511d6f41f2b90ff8e3ba1ef30ab8dd SHA512 c80ad23b025afcbc8af327cfa2c26872097057f41a9cc9e74152e190afd81ae11247782c97468207b080b3f76aa73fc76c8e01c3cf673416bcd8ef9bdd0222e7 WHIRLPOOL 8a9fd4d3d9962d8a9297a58fcb8d9581d21dc7c311895cfe164710cde404e3526390e83b000fe49cde5659c94783762e787b7c0499e41466ef0ec3c1b6486720
+MISC ChangeLog 3543 SHA256 59de8b9c7d595b88fea5961836dc17f2aed429b3c5065b0c220d5794e86d8b10 SHA512 c68a95311988b8883f1049d748c17a6745a16730efa3b03fb0215e63709433fb5e87a2e57d20d5f12ecaa07c6695b54624eced48a10429adef39af8edf690565 WHIRLPOOL d888fb4f0b03a3129856d589e94d3e7b1c19d7f7b7e093d863243223405ed81fdef3688e0b21efddc0a11d4c2407bf3eebae1cd860b4209943ad5b392616e791
+MISC ChangeLog-2015 9332 SHA256 608347486b224b35ee642ecdc4ac2a9c60b0d29b9d7784a94c39e6e57ddf0dcd SHA512 f72d750f0c55e51310c1865426d89997d46c501d1f962836a94bda039bb0fd9434dc8a2fb44d74fcaf675b4de31179b145fb897dc0fc1e6047b2d48a16d1f2bc WHIRLPOOL 865f599626831ed189402de4ee4a763a3fb44db948cc5e2b84d9cfa644cf275b41a65ff0f4686fb5191d1a25bd636c95697706264a951005e8840cb3b382ccd5
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/skk-jisyo/metadata.xml b/app-i18n/skk-jisyo/metadata.xml
new file mode 100644
index 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/skk-jisyo/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/skk-jisyo/skk-jisyo-201605.ebuild b/app-i18n/skk-jisyo/skk-jisyo-201605.ebuild
new file mode 100644
index 000000000000..098f596c803f
--- /dev/null
+++ b/app-i18n/skk-jisyo/skk-jisyo-201605.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_PN=${PN^^}
+
+DESCRIPTION="Jisyo (dictionary) files for the SKK Japanese-input software"
+HOMEPAGE="http://openlab.ring.gr.jp/skk/dic.html"
+SRC_URI="mirror://gentoo/${P}.tar.xz
+ https://dev.gentoo.org/~hattya/distfiles/${P}.tar.xz"
+
+LICENSE="GPL-2 freedist public-domain"
+SLOT="0"
+KEYWORDS="amd64 arm hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
+IUSE="cdb"
+
+DEPEND="virtual/awk
+ cdb? (
+ || (
+ dev-db/tinycdb
+ dev-db/cdb
+ )
+ )"
+RDEPEND=""
+
+DOCS=( ChangeLog{,.{1..3}} READMEs/committers.txt edict_doc.txt zipcode/README.ja )
+
+src_prepare() {
+ rm -f ${MY_PN}.{wrong*,noregist,not_wrong,hukugougo,notes,requested,pubdic+}
+
+ default
+}
+
+cdb_make() {
+ cdbmake "${1}" "${1}.tmp"
+}
+
+tinycdb_make() {
+ cdb -c "${1}"
+}
+
+src_compile() {
+ if use cdb; then
+ local cdbmake=cdb_make f
+ if has_version dev-db/tinycdb; then
+ cdbmake=tinycdb_make
+ fi
+ for f in {,zipcode/}${MY_PN}.*; do
+ LC_ALL=C awk '
+ /^[^;]/ {
+ s = substr($0, index($0, " ") + 1)
+ print "+" length($1) "," length(s) ":" $1 "->" s
+ }
+ END {
+ print ""
+ }
+ ' ${f} | ${cdbmake} ${f}.cdb || die
+ done
+ fi
+}
+
+src_install() {
+ insinto /usr/share/skk
+ doins {,zipcode/}${MY_PN}.*
+}
diff --git a/app-i18n/skk-jisyo/skk-jisyo-999999.ebuild b/app-i18n/skk-jisyo/skk-jisyo-999999.ebuild
new file mode 100644
index 000000000000..a8d31cb7d6ca
--- /dev/null
+++ b/app-i18n/skk-jisyo/skk-jisyo-999999.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+
+inherit cvs ruby-single
+
+MY_PN=${PN^^}
+
+DESCRIPTION="Jisyo (dictionary) files for the SKK Japanese-input software"
+HOMEPAGE="http://openlab.ring.gr.jp/skk/dic.html"
+ECVS_SERVER="openlab.jp:/circus/cvsroot"
+ECVS_MODULE="skk/dic"
+ECVS_USER="guest"
+ECVS_PASS="guest"
+
+LICENSE="GPL-2 freedist public-domain"
+SLOT="0"
+KEYWORDS=""
+IUSE="cdb ${USE_RUBY//ruby/ruby_targets_ruby}"
+
+DEPEND="${RUBY_DEPS}
+ app-i18n/skktools
+ virtual/awk
+ cdb? (
+ || (
+ dev-db/tinycdb
+ dev-db/cdb
+ )
+ )"
+RDEPEND=""
+S="${WORKDIR}/${ECVS_MODULE}"
+
+DOCS=( ChangeLog{,.{1..3}} READMEs/committers.txt edict_doc.txt zipcode/README.ja )
+
+SKKTOOLS_DIR="${EPREFIX}/usr/share/skktools/convert2skk"
+
+src_prepare() {
+ rm -f ${MY_PN}.{wrong*,noregist,not_wrong,hukugougo,notes,requested,pubdic+}
+
+ default
+}
+
+cdb_make() {
+ cdbmake "${1}" "${1}.tmp"
+}
+
+tinycdb_make() {
+ cdb -c "${1}"
+}
+
+src_compile() {
+ local ctdic="${MY_PN}.china_taiwan" ruby
+ mv ${ctdic}{.header,}
+ for ruby in ${RUBY_TARGETS_PREFERENCE}; do
+ if use ruby_targets_${ruby}; then
+ ${ruby} ${SKKTOOLS_DIR}/ctdicconv.rb csv/${ctdic##*.}.csv | skkdic-expr2 >> ${ctdic}
+ break
+ fi
+ done
+
+ if use cdb; then
+ local cdbmake=cdb_make f
+ if has_version dev-db/tinycdb; then
+ cdbmake=tinycdb_make
+ fi
+ for f in {,zipcode/}${MY_PN}.*; do
+ LC_ALL=C awk '
+ /^[^;]/ {
+ s = substr($0, index($0, " ") + 1)
+ print "+" length($1) "," length(s) ":" $1 "->" s
+ }
+ END {
+ print ""
+ }
+ ' ${f} | ${cdbmake} ${f}.cdb || die
+ done
+ fi
+}
+
+src_install() {
+ insinto /usr/share/skk
+ doins {,zipcode/}${MY_PN}.*
+}
diff --git a/app-i18n/skkfep/Manifest b/app-i18n/skkfep/Manifest
new file mode 100644
index 000000000000..59ca321a6274
--- /dev/null
+++ b/app-i18n/skkfep/Manifest
@@ -0,0 +1,8 @@
+AUX skkfep-annotation.patch 540 SHA256 98779ecb0acd518cd53de7d5298082ad74e315b348dc5d6cc3d04c3f9e134538 SHA512 a92f0d90af2ac7c9a6b2349b60401aa2cc45a6b9a997c63cb8fc9fbd5355281db9b630e98db08205b9d944a603152661928bca02cd0e4d75aa3de32b8e7ff55a WHIRLPOOL c85c9cbcc262d7a29ab17f953cd534bb94581f9694950e1efed8ccbc348dcf390d341f2770e0ff0419a6dd9020807db43cd4b025a3156e01d2dfb1a2c5a8c0d2
+AUX skkfep-gentoo.patch 1836 SHA256 5c3d27cacb6f3644be1e7a10dd68498dcae5fde063cf0b3727dc11ee1e759c0f SHA512 7af2a73f36277fd99d9ab42e928183be4db00de665d3d4b51b6735ca7cdb9259aa1ecb6572b87732b6af865c7f04122fa3341543d9feea89081a1b53b3e58298 WHIRLPOOL bc16c9f3aa4d15a9c99a1796d0166e11a56c3e8a5f233cc0cf55a66d13b75f2c44b0e6c0fa015607937616034d98cb36984d94510a0c9f35e846f17c5adb8d05
+AUX skkfep-system-dic.patch 325 SHA256 2b324e2897731e5c041e021062c71bbce91a4b25f0f9127289423d69015a5b2e SHA512 af149e67e9b8fc727404bc67e50eeaf3ba37effccd73cd9416279631bd1c000685c129ddcdbd909ef1d1dbd4e84ac4efb0d3236b988c9c9b9416342edb005254 WHIRLPOOL 043ca370b7a258e7a62f9f6e70f9b584987a7666c2e393ad11d2a04afecf19026904b0c8ec22a9181dc1d7a10c7effb4685e81328c55e952cee5e2cb4dd5b714
+DIST skkfep-0.87.tar.gz 45711 SHA256 f5eb6a23a7bf9b8a5493e8104c346ac053c2545bab1a3b82054cd1a09cef0e61 SHA512 3dc842559640b56b967679042c31bfa889e66cd6b7d0347ec17ddc606b85f2a4bb49dc995b3b38c30e71f500031714e2083bfc028ad4ff76ac4f07476a3f2469 WHIRLPOOL 32e985317e55b546e1d8822f0c2a5cf2322623282f89c73e9a7fc098c710f7b88121cf20223904e115bf7d61ec9e5fedab0053f36ff5e3789e84ae7ff1adf090
+EBUILD skkfep-0.87-r1.ebuild 904 SHA256 67e3960e1eb5541cbf3dc816781e5e7ff93b3749dc6e56d3e954c0022ae5d56f SHA512 7694564505e70933e52700e45b75dd2d0b320d6e33b7d44c68d4a83eaa67ab19c0d1a8b9bab472c85771773a0411f67166eb8f1f7389dc810720dbd6e3c81881 WHIRLPOOL a518bf1e1032dc84eb9d9b1c32214aa8e1d852ce2607be3e874f54de3ccafb15e53888444941136cbf7d6bf47466797c3544ba74408f2c4b56386fbe104bcdf9
+MISC ChangeLog 2497 SHA256 260e51790006bfbd51dbc3f23659b928257da8e7e3815322a15263f30ff7c404 SHA512 fff0d84533fb5c35f6068f9bbc78770a1f311e806d5722fc44234b4d79beab6e26402fdc2982d88f2359009350677ea917a23d1438b424b594058de84cd3b47e WHIRLPOOL 01435a7bf91a23c68dafbfcf6a30107e4d8bb228d008996ee933cdd5b61ac397bbd89e4cfe5ea447c2859dc1df96c26ed5faa4497f0f5d9148b51f93e785fa09
+MISC ChangeLog-2015 1999 SHA256 da281518b10d4031a7af56058392f056497c603b2e497589f86683f6abfb98fa SHA512 e80db74868fb006117d480e900f8b8e752bd987b80448fd7ea14dec2e7e3709c74919c8b0d9298530e76348762534bcdfd9a9e054d5ec4728990222abd8548d8 WHIRLPOOL ef007b89355cd17b7ddcf724369bf19166c55e614bc6ce659baa860dcf1826f02f0e4b1216c4cf332e65c1892e4e4fa092e1178bbafc96fab6ad5b4157aa6d79
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/skkfep/files/skkfep-annotation.patch b/app-i18n/skkfep/files/skkfep-annotation.patch
new file mode 100644
index 000000000000..8145c2b069e0
--- /dev/null
+++ b/app-i18n/skkfep/files/skkfep-annotation.patch
@@ -0,0 +1,29 @@
+--- a/kkconv.c
++++ b/kkconv.c
+@@ -645,6 +645,7 @@
+ char c;
+ {
+ int l;
++ char *p;
+ DicList dlist;
+
+ kanjiSelectionEffect(0);
+@@ -653,7 +654,17 @@
+ if (OkuriInput)
+ l += strlen(OkuriBuf);
+ csrLeft(l);
+- writeShells(CurrentCand->candword);
++ p= strrchr(CurrentCand->candword,';');
++ if (p != NULL) {
++ erase(l);
++ csrLeft(l);
++ l -= strlen(p);
++ *p = '\0';
++ writeShells(CurrentCand->candword);
++ *p = ';';
++ } else {
++ writeShells(CurrentCand->candword);
++ }
+ if (OkuriInput) {
+ writeShells(OkuriBuf);
+ }
diff --git a/app-i18n/skkfep/files/skkfep-gentoo.patch b/app-i18n/skkfep/files/skkfep-gentoo.patch
new file mode 100644
index 000000000000..2afe3537361e
--- /dev/null
+++ b/app-i18n/skkfep/files/skkfep-gentoo.patch
@@ -0,0 +1,75 @@
+--- a/Makefile
++++ b/Makefile
+@@ -2,16 +2,16 @@
+ # Makefile for skkfep
+ #
+ all: genMakefile
+- make -f genMakefile all
++ $(MAKE) -f genMakefile all
+
+ skkfep: genMakefile
+- make -f genMakefile skkfep
++ $(MAKE) -f genMakefile skkfep
+
+ simpledic: genMakefile
+- make -f genMakefile simpledic
++ $(MAKE) -f genMakefile simpledic
+
+ clean: genMakefile
+- make -f genMakefile clean
++ $(MAKE) -f genMakefile clean
+ rm -f genMakefile
+
+ genMakefile: protoMakefile config.h
+--- a/config.h
++++ b/config.h
+@@ -14,7 +14,7 @@
+ #define DEFAULT_KANAKEY "^j"
+
+ /* By Y. Kaneko */
+-/*#define KUTOUTEN /* "."->maru, ","->ten */
++#define KUTOUTEN /* "."->maru, ","->ten */
+
+ #define KANJIBS /* do/don't shuft-out BS code in JIS mode */
+ #define KANJIBS_DEFAULT 0 /* 0 -> shift out / 1 -> don't shift out */
+@@ -28,4 +28,4 @@
+
+ #define NATIVECODE euc /* EUC Kanji code */
+
+-#define SKK_SERVER_HOST "ei5nazha" /* SKK server host */
++#define SKK_SERVER_HOST "localhost" /* SKK server host */
+--- a/configs/linux.h
++++ b/configs/linux.h
+@@ -10,3 +10,12 @@
+ #define NO_VFORK
+
+ #define HAVE_SETREUID
++#define HAVE_BSD_OPENPTY
++
++#include <stdlib.h>
++#include <string.h>
++#include <unistd.h>
++
++#if makefile_parameter
++SYSLIBS=-lutil
++#endif
+--- a/protoMakefile
++++ b/protoMakefile
+@@ -1,5 +1,5 @@
+ CFLAGS=$(SYSINCLUDE) $(SYSDEFINE) $(DEFINE) $(OPTIMIZE)
+-LIBS =$(SYSLIBS) $(EXTRALIBS) -ltermcap
++LIBS =$(SYSLIBS) $(EXTRALIBS) $(LDFLAGS) -lncurses
+
+ OBJS=fep.o connsh.o readwrite.o terms.o stty.o keybind.o romkan.o etc.o\
+ kkconv.o keymap.o version.o
+--- a/stty.c
++++ b/stty.c
+@@ -306,7 +306,7 @@
+ {
+ int cpid;
+ /* #ifdef _AIX */
+-#if defined(_AIX) || defined(NECEWS) || defined(SOLARIS2)
++#if defined(_AIX) || defined(NECEWS) || defined(SOLARIS2) || defined(LINUX)
+ int statusp;
+ reset_tty_without_close();
+ cpid = wait(&statusp);
diff --git a/app-i18n/skkfep/files/skkfep-system-dic.patch b/app-i18n/skkfep/files/skkfep-system-dic.patch
new file mode 100644
index 000000000000..ba57a2a41f0b
--- /dev/null
+++ b/app-i18n/skkfep/files/skkfep-system-dic.patch
@@ -0,0 +1,13 @@
+--- a/kkconv.c
++++ b/kkconv.c
+@@ -660,7 +660,9 @@
+ flushOut(l);
+ #ifdef USE_SERVER
+ if (!CandFromServer) {
+- selectCand(FirstCandEntry,CurrentCand);
++ if (FirstCandEntry != NULL) {
++ selectCand(FirstCandEntry,CurrentCand);
++ }
+ }
+ else if (NetLearnMode != LearnOff) {
+ if (CurrentCand->dicitem == NULL) {
diff --git a/app-i18n/skkfep/metadata.xml b/app-i18n/skkfep/metadata.xml
new file mode 100644
index 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/skkfep/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/skkfep/skkfep-0.87-r1.ebuild b/app-i18n/skkfep/skkfep-0.87-r1.ebuild
new file mode 100644
index 000000000000..a74c53e6af37
--- /dev/null
+++ b/app-i18n/skkfep/skkfep-0.87-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+DESCRIPTION="A SKK-like Japanese input method for console"
+HOMEPAGE="http://aitoweb.world.coocan.jp/soft.html"
+SRC_URI="http://aitoweb.world.coocan.jp/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE=""
+
+DEPEND="sys-apps/sed
+ sys-libs/ncurses:=
+ virtual/awk"
+RDEPEND="sys-libs/ncurses:=
+ app-i18n/skk-jisyo"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-gentoo.patch
+ "${FILESDIR}"/${PN}-system-dic.patch
+ "${FILESDIR}"/${PN}-annotation.patch
+)
+DOCS=( README HISTORY TODO )
+
+src_prepare() {
+ sed -i "/SYSTEM_DIC_NAME/a#define SYSTEM_DIC_NAME \"${EPREFIX}/usr/share/skk/SKK-JISYO.L\"" config.h
+
+ default
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ OPTIMIZE="${CFLAGS}"
+}
+
+src_install() {
+ dobin skkfep escmode
+ doman skkfep.1
+ einstalldocs
+}
diff --git a/app-i18n/skkserv/Manifest b/app-i18n/skkserv/Manifest
new file mode 100644
index 000000000000..13640314b314
--- /dev/null
+++ b/app-i18n/skkserv/Manifest
@@ -0,0 +1,9 @@
+AUX skkserv-headers.patch 401 SHA256 ea0011f584b716f773b720878fcb51ca62940ec755f91a9bcf31fc9f3c92744b SHA512 cdddc6cab2f5735441627b5238e8fdbb0e65e17f6f8d62b743669f4fc9cd9f514417f7218095f1ffbf52dc78ef0c05fcdbe484bb49460bc00f4ae3e5a6cb6104 WHIRLPOOL 22da84aed08bbc8bc55e019fb35f5e76a6c430e51077c6f4d414b14383784013e0304e006ff3e54aaebf0a58cc965f27f66dafd8cd6596e9aa13caec9e773c1f
+AUX skkserv-segfault.patch 435 SHA256 b524350fd29b2030d4fba66c9c098a234b124e222cdf1f1f41af3f383222ce32 SHA512 4bf7b18a73fbba7e4f2c3bb05bc4db42a637d385cd5e199ea4095007d69eba2171c2bf32224d49df595c08815621968a564c0306b854f2a4bf84a17dcb452cad WHIRLPOOL c2c68ff457f0e4dde3f22e889dbab34888bb89bd119329e24b8b5fe4282a9f89eb1f9ca795a4c14112625a8afb77eb454057ad1eb34f300f1080e8d20f64798f
+AUX skkserv-suffix.patch 331 SHA256 d80db3ee2d1d6e048b65fce1215efaa1d499f4b306c5d308089bdaa9f2316aa0 SHA512 57529bcffd3be4574f73b70f65479e0b9783c62d25f8835e499abf8981e2367a7b7d04333925382b958738bdf7610761953b49545b7b17e00ec6eb27540741e3 WHIRLPOOL d9f2ab156dbc5c45bdf7e8024df47931c1a6c031c9764b7183286a68b3037ef41d21a3a4c55136e2a57724de02d42773662e02e92711e345e9e511de40d3b8bb
+AUX skkserv.initd 383 SHA256 a1efdcf49a96d537c0c00e5f08fea6afcd0a3b56442395ba4e3fbcc71235cf6a SHA512 db3cebf4157e5b680101082cc4d04252a6932660b26aec1366c3fe62c4abc59e4f9f8d395e4664d2e9b44f5f40e8bc6e2c49d0c688685d2b887a7a285047a05e WHIRLPOOL 419845b8a00b6df465030bb523716fc5eb2f37a96ef91aa39eddf44e439004676933bb1001d1127c464db6160150ace57f546ae41a3348c0f2ad0a6df977b8b6
+DIST skk9.6mu.tar.gz 744381 SHA256 3b118ce33ad5f3bf45bea8e74875a0a35764c49c7ddc83ba93b9193fe37e5a28 SHA512 971982ce51142d92b62497da209fb69a8a1c028307f62ec6e81ea45894b597d6bb17b8966032a508531520868a0e3d89e515540d3f8030fe049a7750157b7a33 WHIRLPOOL 5deb23905e4fff4a8bade29278513e9eccff9ae4f2b48704371c0074e44d6b1c81b8ecce371ad84b6e5198e655d0293087cc64c346601f3f0c4d966517684968
+EBUILD skkserv-9.6-r3.ebuild 704 SHA256 34e1e0c1b99fcaf1e1a6b1152618d7da0745f25f53230553e0aa9083b8b46b85 SHA512 1ec079d158c709b700026f7cadf1b746cc8b16e92249ac2ee94a82f8265da42968c308fa4eeaa483f4c0d94f7715d1447eb9306048cd48391aff81053513de72 WHIRLPOOL 4a9077e3832c73d3da2766edf9872d3dca58ad6ebd2aeadd97c0e4f70c1339a8bb84ed3097c338e115ca83186ed3ee29c3b341294e657104f5f6c0f65a63dd55
+MISC ChangeLog 2670 SHA256 e6c9b80c42e33fa5c0e747c105c5801e283abd2c2bd30542efd06d910bb11adc SHA512 f89051bec4e286f45d1abb4e6a9a92faa9400c99c01c7c8e3dccea082db143c6e8b7c8f46b1520cadf6876c5f32ba517a9aef8a56551fa89defefed894390b3f WHIRLPOOL cbe24d0a69d9781d8bfbc3c19d6cdc4be8c4e048e8b21154a48432ea802272ef85b30ecde66eddc7a53426675656fd7e34fb9c8ca9f306f3c9b30cf580b6cac0
+MISC ChangeLog-2015 2891 SHA256 4f4c89fb57d5b447e3358b69173cad1699b4f61933c479deecd7c7bfcd97d7ee SHA512 9b17da0381caa39f39894719d11b5ed23123a730e58159acab6adc620aa6b576a58ae8518fc44eb43c7ffeb046c382341d5b6d37cdd28a0ab3f42fbad6a17804 WHIRLPOOL 76370b7c18db54677d712b35ae5dee0c2b933487b217c09fae07bfff4f86e3676ab6856491a9b711b8a07cb4be4eea817b9e112f86ec6e7747188830007d8582
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/skkserv/files/skkserv-headers.patch b/app-i18n/skkserv/files/skkserv-headers.patch
new file mode 100644
index 000000000000..923f49948e8b
--- /dev/null
+++ b/app-i18n/skkserv/files/skkserv-headers.patch
@@ -0,0 +1,19 @@
+--- a/skkserv/skkserv.h
++++ b/skkserv/skkserv.h
+@@ -37,6 +37,8 @@
+ /* Necessary for SunOS 3.x and maybe other old systems */
+
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+
+ #include <sys/types.h>
+ #ifdef HAVE_SYS_IOCTL_H
+@@ -44,6 +46,7 @@
+ #endif
+ #include <sys/socket.h>
+ #include <netinet/in.h>
++#include <arpa/inet.h>
+ #include <netdb.h>
+ #include <signal.h>
+ #include <errno.h>
diff --git a/app-i18n/skkserv/files/skkserv-segfault.patch b/app-i18n/skkserv/files/skkserv-segfault.patch
new file mode 100644
index 000000000000..4c35a44d975a
--- /dev/null
+++ b/app-i18n/skkserv/files/skkserv-segfault.patch
@@ -0,0 +1,15 @@
+--- a/skkserv/skkserv.c
++++ b/skkserv/skkserv.c
+@@ -723,7 +723,11 @@
+ fprintf(errout, "%s:cannot get hostname, or too long hostname\n", pgmnm);
+ exit(1);
+ }
+- hentry = gethostbyname(hname);
++ if ((hentry = gethostbyname(hname)) == NULL
++ && (hentry = gethostbyname("localhost")) == NULL) {
++ perror("gethostbyname");
++ exit(1);
++ }
+ #ifdef NO_ADDR_LIST
+ strcat(hname, ":");
+ strcat(hname, hentry->h_addr);
diff --git a/app-i18n/skkserv/files/skkserv-suffix.patch b/app-i18n/skkserv/files/skkserv-suffix.patch
new file mode 100644
index 000000000000..0e1f862fd148
--- /dev/null
+++ b/app-i18n/skkserv/files/skkserv-suffix.patch
@@ -0,0 +1,13 @@
+--- a/skkserv/skkserv.c
++++ a/skkserv/skkserv.c
+@@ -382,6 +382,10 @@
+ code = KANA_END;
+
+ while ((c = fgetc(jisho)) != EOF) {
++ if (c == '>') {
++ fgets(buf, BUFSIZE, jisho);
++ continue;
++ }
+ target = ((c & 0xff)<< 8) | (fgetc(jisho) & 0xff);
+ if (target == STRMARK) {
+ fgets(buf, BUFSIZE, jisho);
diff --git a/app-i18n/skkserv/files/skkserv.initd b/app-i18n/skkserv/files/skkserv.initd
new file mode 100644
index 000000000000..0721205b355a
--- /dev/null
+++ b/app-i18n/skkserv/files/skkserv.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+extra_started_commands="reload"
+
+description_reload="Reload the SKK-JISYO.L"
+
+command="/usr/sbin/${RC_SVCNAME}"
+
+depend() {
+ need net
+}
+
+reload() {
+ ebegin "Reloading ${name:-${RC_SVCNAME}}"
+ start-stop-daemon --signal INT --name "${command}"
+ eend ${?}
+}
diff --git a/app-i18n/skkserv/metadata.xml b/app-i18n/skkserv/metadata.xml
new file mode 100644
index 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/skkserv/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/skkserv/skkserv-9.6-r3.ebuild b/app-i18n/skkserv/skkserv-9.6-r3.ebuild
new file mode 100644
index 000000000000..b5710e975fdd
--- /dev/null
+++ b/app-i18n/skkserv/skkserv-9.6-r3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_P="skk${PV}mu"
+
+DESCRIPTION="Dictionary server for the SKK Japanese-input software"
+HOMEPAGE="http://openlab.ring.gr.jp/skk/"
+SRC_URI="http://openlab.ring.gr.jp/skk/maintrunk/museum/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND="app-i18n/skk-jisyo"
+S="${WORKDIR}/skk-${PV}mu"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-segfault.patch
+ "${FILESDIR}"/${PN}-headers.patch
+ "${FILESDIR}"/${PN}-suffix.patch
+)
+
+src_compile() {
+ emake -C ${PN}
+}
+
+src_install() {
+ dosbin ${PN}/${PN}
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+}
diff --git a/app-i18n/skktools/Manifest b/app-i18n/skktools/Manifest
new file mode 100644
index 000000000000..547fa5b179c8
--- /dev/null
+++ b/app-i18n/skktools/Manifest
@@ -0,0 +1,7 @@
+AUX 50skktools-gentoo.el 91 SHA256 37f6f30b9e9c38ded937effbb3c5600e13dd6e76cd5cf6e225b30f5b2b6402bf SHA512 f4376f1146586604bc9ef1ea080e5df79f721a245b89ae76dfa2aee38876e38edb804f9201d9eb751a879d017ed929fa18d1b38b307879fa607d086a404d0612 WHIRLPOOL 06c7e2003aa5e4c7404fd2a29b6101b364dc7bbfcd764c61a6ea9202f2d3420290cb4a5caa12515fa53505f5150d31ed804003da1d95020f7afa93ed5c9acb34
+DIST skktools-1.3.3_p20150901.tar.gz 483005 SHA256 24f26e76ba6321b43de69353ad2d33b59d5ecee724764e99c6383d9d4f9c9acf SHA512 dbb15068239158c31a706da2fd5afcb8514d088854bdd4f0d05bb8b9e10947cbdce584ff3698571d601e3b357a1ba11b4608f0457615062016862ac89fb91b83 WHIRLPOOL 81cd503de4d05bbab096628e357e0ced4a87cf4df87d7a0f380a8dbe0850fbd7f65d2f1bf249a6b5bf19fb6b1605d0796b6a9408c0fcd7b5ad700d069f396895
+DIST skktools-1.3.3_p20170305.tar.gz 483715 SHA256 dce0b4fde568d7594adce54b58616b60b8a4da9cc0b585033652a8da46c414b4 SHA512 f6e9041fecf8c28a84c3996ca120371528c034eeca3695cb224b4cf225e8dab9e69969d7fb955112cd1e9c1e80c2ba8e2aef4f0eb81f55374dd626402482c235 WHIRLPOOL cf8fcf324c3c15916b902a05686f00e3edbc86dc9fb4307a2874c232f60b1e67073fd67106d0d092e51b65cf570d702ae81c4aed6515909c0179b8ba08308131
+EBUILD skktools-1.3.3_p20150901.ebuild 1197 SHA256 1e8e917305297eac4a481796ac6b503e9650b390d7962ff3aeea46da03c4bebd SHA512 d4488f9affe3f2e4fe0125b486db5700ab22c490c25ebab9618720a1f78ee1b72c05e7e6f2394add4c3b61453f92b79bd4cb44740f43363c299e45bf88420c08 WHIRLPOOL 3fc335df6c4ee37d161439a3305c673dd42959e63e3367f0c079966314f485841623e89fe39aa846ef2c4ed2aa041de775d459ce36cc268a7bf107677be53a1f
+EBUILD skktools-1.3.3_p20170305.ebuild 1199 SHA256 61dc98209eb509bbdf8773facd09598c5cff933adedc87f862b816b007b3a850 SHA512 51410c23d7efb2f2cef0d71f6844e6fc28f07eaec4c45441994bdbd0268f1d7ffe48486ed5d7e365bb772a1a93c800b7edefeea71dd91b3f2828245e5ba0f15d WHIRLPOOL 8e59dcaae8922c3cf0ea7d9613c7767835e5e5cc14bd0739d884c0e3b8619f4a0c6c4605c0f8903518f27aa787a300ab8e4ee335d7a2d775077e5528174498b4
+MISC ChangeLog 516 SHA256 0ee9162aad553c1181824ac4268f5ce960844fc559f24e4a92cf7f9b1617f4c7 SHA512 97c2e5ba2d9eda49c77889a67be685215e63c7d3c92643c467e1fa9125cdcf645d0e72289983c7d327447007f20d75b5a58ce78810251f81737092042d0b66e6 WHIRLPOOL 678794b6e252d5c5da8ba0113f3f50015c8ffdabc48df4bf79a53033d0c5e123c1ed5e80980198da780411dad0c86edd81be7f51b077cc868485da2d7de2547f
+MISC metadata.xml 325 SHA256 a4380bf4524603b38997666aaf14fa8cd8a499b5a0291b61e903457594820289 SHA512 aff23e906c8b6f0dbdc293aa4138b51497d32760f0c77307e11d9f7797bffd0d1363e0d8dd5639f8b9838838737afd05dab5d6e0a4f9c8596effdfef733af75b WHIRLPOOL eac8c109d06923b3a471f21d14217f67e4d90ebf42c6448954e9a040888d288465ce02ad808b193119818ef61ffb4186c51b02fbcd7439371e1560bffe0cf1f5
diff --git a/app-i18n/skktools/files/50skktools-gentoo.el b/app-i18n/skktools/files/50skktools-gentoo.el
new file mode 100644
index 000000000000..38b3fef99ca9
--- /dev/null
+++ b/app-i18n/skktools/files/50skktools-gentoo.el
@@ -0,0 +1,2 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'skk-convert-jisyo-to-xml "skk-xml" nil t)
diff --git a/app-i18n/skktools/metadata.xml b/app-i18n/skktools/metadata.xml
new file mode 100644
index 000000000000..32b1de9c163c
--- /dev/null
+++ b/app-i18n/skktools/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">skk-dev/skktools</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/skktools/skktools-1.3.3_p20150901.ebuild b/app-i18n/skktools/skktools-1.3.3_p20150901.ebuild
new file mode 100644
index 000000000000..3ed4d6a6582c
--- /dev/null
+++ b/app-i18n/skktools/skktools-1.3.3_p20150901.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit elisp-common vcs-snapshot
+
+EGIT_COMMIT="28e36bac97dc8ed089bac409bef15f1831b6adde"
+
+DESCRIPTION="SKK utilities to manage dictionaries"
+HOMEPAGE="http://openlab.jp/skk/"
+SRC_URI="https://github.com/skk-dev/skktools/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="emacs"
+
+RDEPEND="dev-libs/glib:2
+ sys-libs/gdbm
+ emacs? ( virtual/emacs )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( ChangeLog README.md )
+SITEFILE="50${PN}-gentoo.el"
+
+src_configure() {
+ econf --with-gdbm
+}
+
+src_compile() {
+ default
+
+ if use emacs; then
+ elisp-compile *.el
+ fi
+}
+
+src_install() {
+ default
+ dodoc READMEs/*
+
+ local d
+ for d in convert2skk filters; do
+ newdoc ${d}/README.md README.${d}
+ rm -f ${d}/README.md
+ done
+
+ insinto /usr/share/${PN}
+ doins *.awk *.scm
+ rm -rf convert2skk/obsolete
+ doins -r convert2skk filters
+
+ if use emacs; then
+ elisp-install ${PN} *.el{,c}
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE}
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/app-i18n/skktools/skktools-1.3.3_p20170305.ebuild b/app-i18n/skktools/skktools-1.3.3_p20170305.ebuild
new file mode 100644
index 000000000000..0e1c1f93783d
--- /dev/null
+++ b/app-i18n/skktools/skktools-1.3.3_p20170305.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit elisp-common vcs-snapshot
+
+EGIT_COMMIT="e14d98e734d2fdff611385c7df65826e94d929db"
+
+DESCRIPTION="SKK utilities to manage dictionaries"
+HOMEPAGE="http://openlab.jp/skk/"
+SRC_URI="https://github.com/skk-dev/skktools/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="emacs"
+
+RDEPEND="dev-libs/glib:2
+ sys-libs/gdbm
+ emacs? ( virtual/emacs )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( ChangeLog README.md )
+SITEFILE="50${PN}-gentoo.el"
+
+src_configure() {
+ econf --with-gdbm
+}
+
+src_compile() {
+ default
+
+ if use emacs; then
+ elisp-compile *.el
+ fi
+}
+
+src_install() {
+ default
+ dodoc READMEs/*
+
+ local d
+ for d in convert2skk filters; do
+ newdoc ${d}/README.md README.${d}
+ rm -f ${d}/README.md
+ done
+
+ insinto /usr/share/${PN}
+ doins *.awk *.scm
+ rm -rf convert2skk/obsolete
+ doins -r convert2skk filters
+
+ if use emacs; then
+ elisp-install ${PN} *.el{,c}
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE}
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/app-i18n/sunpinyin-data/Manifest b/app-i18n/sunpinyin-data/Manifest
new file mode 100644
index 000000000000..9d099ab4f007
--- /dev/null
+++ b/app-i18n/sunpinyin-data/Manifest
@@ -0,0 +1,9 @@
+AUX SLM-inst.mk 1847 SHA256 a9ed61d69afe2cd704c9d5145e680c79814599428b7e7109a92dcf14aa5aef43 SHA512 fcbc2e7f18d02dc7ae13ceb9926018d8e83ff955eacae69d664842a84cc4aac2c6f9070e1a33ca6b9b68b4d3ca3ef1ec2e8863f82a8eea1183e7b02d5b665470 WHIRLPOOL 5d57d5e42c71f408c0828bda0bd8c3518820b9022c9820ffeab60feac5b34dcdfcbe253071fec6f355a457e6b8d52121b9b3f905efd2b7bb959f2504f41fec37
+DIST dict.utf8-20120830.tar.bz2 652472 SHA256 f39bedd2fba009445a947ee522e5db0b25016937ee50d30de1872089b020f077 SHA512 4400bc2a54cbf828e1d34f8240d8915a29171d6def125fecf4aa13b442dc2442d9ea591e4451cf030d22d974fbdba09adde4112c08acae9ae023823311ae8535 WHIRLPOOL 8a725fe8dc78bcf5da8760f54e3c97727606371db864c32e1e9f355519182c6053d2ef1da51764c84bdafc29ce3a51f386eb1fa66aaab2180d5643e9df7a10c4
+DIST dict.utf8-20130220.tar.bz2 652859 SHA256 fc93d3934628f557ed41cd28e04d86c98ff2ce93ccd2d8b63d72939e8a2194ed SHA512 d58ec106959a7713e452df2fe2fa5a5f66e82bd67eeeee8740cd3eeedf30af8d14a90dae224ed2931dffd85b0327c704927409bde0247452d79cf40c5bc7cff8 WHIRLPOOL e72fea8256f2970f7e8c42876fba77bc901dd72d33a27c6fa47a709bee52b394982aa23823ab58664ecd28a3e412e12326ad22a4052374e7946539066a6751f9
+DIST lm_sc.t3g.arpa-20121025.tar.bz2 36262281 SHA256 3d5b0a841a53af404ca4e88b76957e4486c90e3943bb7a774a1719337163593d SHA512 3159dd3700382cfa617ba025ce542660580f3057e0dd6bbb92947902495db08e4454c1d09d01a55c90653444513d125dd034e944b060a9d8e009c3633b106d97 WHIRLPOOL 0e6a2e80f83753397fe5401421d163c8ece92a9f1343d1d398d809dec09c6f641b1e1d66705d729f2a163c8496c892a44dcc7d3f545bcf3d91921621a1a7d15a
+EBUILD sunpinyin-data-20121025.ebuild 910 SHA256 32368ace589b0328e370f80b088784c8d812d4f5654aef372977042749e6e39b SHA512 6fcf7bc0d142f966c42c0ea54627d677649db74b1c93e6630ab708438cf22a29f33cd8d4f88fe154c6712d647880deaf5a5cac197ebea2376b810b36a9df8d7c WHIRLPOOL 0e62f1f88290b36f34b2fd4b00c0232a3fb2c1767f48a66a0ac6b274ca34f43d4572994906d52ce7ff30f48d004e4b0521b078facfda9608aa681381e1e02a11
+EBUILD sunpinyin-data-20130220.ebuild 908 SHA256 5ad1e9b428c94b19b83571738d3f29676745523d994bd4ddb9aceb3876d5ef47 SHA512 b5bfe358475ea6817fe954591eaa40653350085fdaa01cd41eccf77543aa73d25d7b93b877b43bfc4dd0fc84fa9edcab69fd8a816273072ab2d49bf1f32a0053 WHIRLPOOL c584f1428869dc20b1c085bbd1b2233e8c52446747464d696b517d02510050f952e83f2e443de79c729fda21452500f17e2053cc4d0755be09eecaaf6d797dcb
+MISC ChangeLog 2755 SHA256 3014d2df79d60deac07972ceef73a63e042694e9dca0d6d6540434ee9c3469bb SHA512 94655a7c8ae3723b4d71296cdf9eb5f061dbf313df414034117d77ed6c454ec3f8cee2f11c91499d67d886ee5acc4d004eef743ad7094c522565b0b9121786f3 WHIRLPOOL 8b6c15926fa3f42b6d12647940a7bf3abb7a82103e2365e216f1bd967b77105065bd19482dd6f9f4cdb4ef5d204b200baadfe02ffaffae9b054821a6f47a4121
+MISC ChangeLog-2015 1012 SHA256 69fcbb87a2cdc23d720e22301516d41891e39e43d8e12a03970b77d5bc4fcab3 SHA512 488c94b6969c8b004b1c125424b0680f823406897f172604ac106563b08aa34bfaf660d6df0d83904c49e046816dc3e6aea7e011d35ba962af37f166e8f88e24 WHIRLPOOL 5843f44c2ba3481f1813f0d2993157d009d05bee2165189550cc3be03eb1ef55ca197c58a1368ad6a8c35885694e6dfbdc3b08c43519cdaa9e8e2033d17c43e7
+MISC metadata.xml 323 SHA256 e567379129e686d818c3a2937d0a84d383843f8ef5e9c711a69a2a18c2935d5c SHA512 b91630bdda4510f930c9b114a77859e6350c16cfd41c8b585895d4f40a9d8d7ce4a02dd6f46be41ecc7ba6ad2ce6846b143d1745ac9e1385821e403419df9a39 WHIRLPOOL 3aeadf7473707ef5136e146c50a0b0777d80adc0a52746cfdff1e9e274a5748aab5bbefed834d8cca242f80ae856f89db29632b80bfa310787fbdaf91a8d8a66
diff --git a/app-i18n/sunpinyin-data/files/SLM-inst.mk b/app-i18n/sunpinyin-data/files/SLM-inst.mk
new file mode 100644
index 000000000000..9216a941ad1c
--- /dev/null
+++ b/app-i18n/sunpinyin-data/files/SLM-inst.mk
@@ -0,0 +1,62 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; indent-tabs-mode: t -*- vim:noet:ts=4
+# Sample Makefile for lexicon generation and installation.
+
+# Little endian platforms: alpha amd64 arm hurd-i386 i386 ia64 mipsel sh3 sh4
+# Big endian platforms: hppa m68k mips powerpc ppc64 sparc s390
+ifndef ENDIANNESS
+ ENDIANNESS = le
+endif
+
+DICT_FILE = dict.utf8
+
+SLM_TARGET = lm_sc
+TSLM2_TEXT_FILE = ${SLM_TARGET}.t2g.arpa
+TSLM2_ORIG_FILE = ${SLM_TARGET}.t2g.orig
+TSLM2_DIST_FILE = ${SLM_TARGET}.t2g
+TSLM3_TEXT_FILE = ${SLM_TARGET}.t3g.arpa
+TSLM3_ORIG_FILE = ${SLM_TARGET}.t3g.orig
+TSLM3_DIST_FILE = ${SLM_TARGET}.t3g
+
+PYTRIE_FILE = pydict_sc.bin
+PYTRIE_LOG_FILE = pydict_sc.log
+
+SYSTEM_DATA_DIR = ${DESTDIR}/usr/share/sunpinyin
+
+all: slm3_dist
+install: slm3_install
+
+tslm2_orig: ${TSLM2_ORIG_FILE}
+${TSLM2_ORIG_FILE}: ${DICT_FILE} ${TSLM2_TEXT_FILE}
+ tslmpack ${TSLM2_TEXT_FILE} ${DICT_FILE} $@
+
+tslm2_dist: ${TSLM2_DIST_FILE}
+${TSLM2_DIST_FILE}: ${TSLM2_ORIG_FILE}
+ tslmendian -e ${ENDIANNESS} -i $^ -o $@
+
+lexicon2: ${DICT_FILE} ${TSLM2_ORIG_FILE}
+ genpyt -e ${ENDIANNESS} -i ${DICT_FILE} -s ${TSLM2_ORIG_FILE} \
+ -l ${PYTRIE_LOG_FILE} -o ${PYTRIE_FILE}
+
+tslm3_orig: ${TSLM3_ORIG_FILE}
+${TSLM3_ORIG_FILE}: ${DICT_FILE} ${TSLM3_TEXT_FILE}
+ tslmpack ${TSLM3_TEXT_FILE} ${DICT_FILE} $@
+
+tslm3_dist: ${TSLM3_DIST_FILE}
+${TSLM3_DIST_FILE}: ${TSLM3_ORIG_FILE}
+ tslmendian -e ${ENDIANNESS} -i $^ -o $@
+
+lexicon3: ${DICT_FILE} ${TSLM3_ORIG_FILE}
+ genpyt -e ${ENDIANNESS} -i ${DICT_FILE} -s ${TSLM3_ORIG_FILE} \
+ -l ${PYTRIE_LOG_FILE} -o ${PYTRIE_FILE}
+
+slm2_dist: ${TSLM2_DIST_FILE} lexicon2
+slm2_install: ${TSLM2_DIST_FILE} ${PYTRIE_FILE}
+ install -d ${SYSTEM_DATA_DIR}
+ install -Dm644 $^ ${SYSTEM_DATA_DIR}
+
+slm3_dist: ${TSLM3_DIST_FILE} lexicon3
+slm3_install: ${TSLM3_DIST_FILE} ${PYTRIE_FILE}
+ install -d ${SYSTEM_DATA_DIR}
+ install -Dm644 $^ ${SYSTEM_DATA_DIR}
+
diff --git a/app-i18n/sunpinyin-data/metadata.xml b/app-i18n/sunpinyin-data/metadata.xml
new file mode 100644
index 000000000000..11bbcd490ca1
--- /dev/null
+++ b/app-i18n/sunpinyin-data/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">sunpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/sunpinyin-data/sunpinyin-data-20121025.ebuild b/app-i18n/sunpinyin-data/sunpinyin-data-20121025.ebuild
new file mode 100644
index 000000000000..fa390bb7a465
--- /dev/null
+++ b/app-i18n/sunpinyin-data/sunpinyin-data-20121025.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DICT_VERSION="20120830"
+LM_VERSION="${PV}"
+
+DESCRIPTION="Data sets for Sunpinyin"
+HOMEPAGE="https://open-gram.googlecode.com/"
+SRC_URI="https://open-gram.googlecode.com/files/dict.utf8-${DICT_VERSION}.tar.bz2
+ https://open-gram.googlecode.com/files/lm_sc.t3g.arpa-${LM_VERSION}.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND=">=app-i18n/sunpinyin-2.0.4_pre20130108"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ default
+ mkdir "${S}" || die
+ mv "${WORKDIR}"/dict.utf8 "${S}" || die
+ mv "${WORKDIR}"/lm_sc.t3g.arpa "${S}" || die
+ cp "${FILESDIR}"/SLM-inst.mk "${S}"/Makefile || die
+}
+
+src_compile() {
+ # we don't have any big-endian architectures keyworded yet, so hardcode
+ emake ENDIANNESS=le
+}
+
+src_install() {
+ emake ENDIANNESS=le DESTDIR="${D}" install
+}
diff --git a/app-i18n/sunpinyin-data/sunpinyin-data-20130220.ebuild b/app-i18n/sunpinyin-data/sunpinyin-data-20130220.ebuild
new file mode 100644
index 000000000000..0a56a826c8cb
--- /dev/null
+++ b/app-i18n/sunpinyin-data/sunpinyin-data-20130220.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DICT_VERSION="${PV}"
+LM_VERSION="20121025"
+
+DESCRIPTION="Data sets for Sunpinyin"
+HOMEPAGE="https://open-gram.googlecode.com/"
+SRC_URI="https://open-gram.googlecode.com/files/dict.utf8-${DICT_VERSION}.tar.bz2
+ https://open-gram.googlecode.com/files/lm_sc.t3g.arpa-${LM_VERSION}.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+DEPEND=">=app-i18n/sunpinyin-2.0.4_pre20130108"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ default
+ mkdir "${S}" || die
+ mv "${WORKDIR}"/dict.utf8 "${S}" || die
+ mv "${WORKDIR}"/lm_sc.t3g.arpa "${S}" || die
+ cp "${FILESDIR}"/SLM-inst.mk "${S}"/Makefile || die
+}
+
+src_compile() {
+ # we don't have any big-endian architectures keyworded yet, so hardcode
+ emake ENDIANNESS=le
+}
+
+src_install() {
+ emake ENDIANNESS=le DESTDIR="${D}" install
+}
diff --git a/app-i18n/sunpinyin/Manifest b/app-i18n/sunpinyin/Manifest
new file mode 100644
index 000000000000..3473b8e733d7
--- /dev/null
+++ b/app-i18n/sunpinyin/Manifest
@@ -0,0 +1,14 @@
+AUX sunpinyin-2.0.3-force-switch.patch 1046 SHA256 ddb9fe9f219ae1e6d8754fb03187dba913ac9d731836da15e93d155a9c287bbf SHA512 abae0d760ecb93c6317483f3b14ee21670f1a42799ffc15a5dcfcf7f0838f0809731953bf6377a52a9647ace8172025bff5049859ac55db989d9f61904fa38ae WHIRLPOOL ae78c316cc9517299280ec0fed5c11c94ff874fb44931a49ca074ddf201bf6c2964e952b0261adad3bec50ff950db6d8f47d0f7f48fa10efd10eae0c8759bc15
+AUX sunpinyin-2.0.3-gcc-4.7.patch 1275 SHA256 0d01a61d663a9b316dbd368ba6df23a55e741daf0e6a56a249c279b0522d4a60 SHA512 48d7e5ab52395467f3b282b73bb3ca5b2cd27c76ac1b454c0e248a9cfb13d8d628fbdf93b82a57404109d288c46d70456bb4aaf4f2899e3dd6e047140cdfc7c0 WHIRLPOOL 13ba61171cabac01e1d48bed2fcd9832e486eceb3a8b0488e98dfbefdf5a125a749d3845aa16c854be8ed608a24f8723d287ee655e765cbaa014a4e5ff864d08
+AUX sunpinyin-2.0.4-pod2man.patch 469 SHA256 ef232fff1eeb9d041e657719bba02f703118d3a3fbb63f6d0c08f5da3b0bb81d SHA512 1cc36f21dd11c802365fd770e7eefb324a3200e6570d7b585179778c8385dc694b214ad1339ac266f0adfa9d1f1ebca87b7847544069e25cfb563b0cb5bd8172 WHIRLPOOL 6c1aed93d9c2d06088e664394eb1d20d4e6d1e98ca6d727e85d1d2a09207f05eb5238f8944aaa52cb2d63229cb5f2c13a9bfba4b29f9c3268902e83d2ffca814
+AUX sunpinyin-2.0.4_pre20130108-gcc6-use-float.patch 1010 SHA256 f27b1599666141b375b48032e79b7e606e07752d543c94f68f1c25387c958fa0 SHA512 8aaba439c49fac48c9523471bdbbac52feb594f61da6e3ba3747e3e6a08498817f06a8af8bcaa35d6b25ce0d31af3faac24faa57e15e3cae446f37dac5a30337 WHIRLPOOL 98f1a650445fb7874e7a8326d7a74ef125a3f954ff2b13dd9f1525dfa0fe65302bfd223843040a06c13bceedff995b2293e652f5155d7b4620125346fcb04cd6
+DIST dict.utf8.tar.bz2 1598995 SHA256 d8261f6b0bfcdd40a9c4f366228f86b017e06c9d7d64d6ddec1c2c3511eea805 SHA512 04ec55e4af4b58d29b1141a824b5c3de5dbaaab0133d88e477d9183db738fc63543b4004bf071e611c6ea0d4b4c161b73849a64ab75f4df5bb5116d7f52d8e34 WHIRLPOOL c1ead1556dbcbe0811551cff2b84367ce9827a06733a3f5a6c2a229882ecd9b83069455146d6ea507d235ef3ad979cd10d373cfc806e150ad0fae9bd91330925
+DIST lm_sc.t3g.arpa.tar.bz2 25098718 SHA256 c80093a8b43561e64158de4139967eef39b851432a2660e8050429d7560907cd SHA512 1e5e577c92df2f230b6b5962298ef7c215f6069b53e8e2dd4c5ad3eb54f999fc239b0924b4ab031af59c3194da15d6317ea2860f158e805b5cf0126666eaad98 WHIRLPOOL 294b668ca6bcb765392f882bd9b0f16e403c8709eb2d7ae129e4c4aba3372b8b6d9b6a78df67b811a742136e4d1b203b5da7e7f7554296c6986a6fcba361b50b
+DIST sunpinyin-2.0.3.tar.gz 169394 SHA256 4ab776e7563f69f8dbda8fac7cfaa42bd0db1ea68bab15f756094ce5398d83d1 SHA512 25f1fc4b8f550663861f2c7426832924676f83e1f201689fde51b04ca78704b46dbbf2b92736234d5e1a729ba1bb23bd1f3a0394f6b8b54cb0df57b9bb7ece1d WHIRLPOOL 71a4efedcbe4ec1dda9ecb1b94256a0e5e8ca570a234a8b378f85af68bf3da9f3b9220aee98c2f3ce509daa33996fea8b554e81594c299281ede58167cf633e8
+DIST sunpinyin-2.0.4_pre20130108.tar.xz 964764 SHA256 e650957aced55075448b7f02298d0c5cf59a8b8e041e9c7d92d24cb5170de93f SHA512 7c1dd7db8b800e9d436746a560a16de2c6777576868f2e7e28f6dcb767b91ccd62b974f9d4ce6bd6ce80d30e1ee83887c3ee03c227e7e9fa59c01db4867465b2 WHIRLPOOL 82535dcde38c2fce17877e465db7ebeaed14a7f305ad96ca451c5b35ae04244a94e9bde9ce51092a390964c557e39ab43742d2370342f9b72722b24f916c55d6
+EBUILD sunpinyin-2.0.3-r1.ebuild 1617 SHA256 c5eddf6b1868e5e05e46c88a145551111fe9633cf97ed0fa71843bc1ceba2f7c SHA512 285f5aed247330d819dea7299230def6cabe23d12b1658bfc5c24004e78f95a38bb9862463ee533a540a32e8780ac78a01966d2f70dd71563a58b7bc22325bae WHIRLPOOL cb2da32c6c9302ec58ba258b52921f8a5d3367d3b7a37e40d8d32e519102e1882fee40f0f2eda09d25218ef881e3c2bf3085fd829af1ea02d20c2eb24a5889e0
+EBUILD sunpinyin-2.0.4_pre20130108-r1.ebuild 1059 SHA256 ab532383b8f58193ba46017a790419ae22dfb3894def6b272f78291de4964b6b SHA512 e76f53355cbeb3aa82d0a0344bd72d2571773292fb9165431cbfbd86179bfb72e10d59485a95fe4f34444d1218c0ace5b874f98024bb2ef32fd12e7ba357c0db WHIRLPOOL 6619f9e033c9d83f604f314da2f8f17a32ce9f4989b4191143b6d873b08821b3bbd1ef354f7c7935f0f3b166512bd75e88e6c1dfcaea2ce90199c47a05280ccf
+EBUILD sunpinyin-2.0.4_pre20130108.ebuild 1011 SHA256 0152bb0cc8c8404767151ad883ea737099151b6146ca59f49690eedd33c2f059 SHA512 68a82c30e991444fcddba1b27cfd1637b7dd07f599ff6152599b488cc100fafe8d9f02675332733a406af6670f254a55cb0774d6b1048e8aeaa727f835fbcb28 WHIRLPOOL c896a2611e9e685f365ed71b664117ccdfb36eef764ec9aca95fa221f83940a4d68e6bc1466c8f7aa0d5d791487b768fd58dd10723f3d03e918196c66ec96ea3
+MISC ChangeLog 3463 SHA256 bcd93ab07bf8a5a245eda401780d01978eddd06d511689424911fa65980bd196 SHA512 9fa7ebe4e935e33fc4b7dd932877287223f93993df5451220229e3f65175472ef5c6d5fa3c14d199f99afb515962147bb4ee3ae3abc675d64a6d2641fc52fe4a WHIRLPOOL 759ad97189825adb8de6d21a025d3d90031442d0cc73cce51590cf6199c6a7933ec51a18919618fee0b79f3e88ad7df882af664fd59d4f95acd8087c92e69117
+MISC ChangeLog-2015 3001 SHA256 e31d7745175660fb756dd46882d0942c329b96db2be582126144ab44dafd6274 SHA512 c455286568062737730ede3b5dc55f7c7330aa08ea8f3e897063f6514d8904c870c8be765699f2d7a8dfa0b641a499c01478b3ed4201ed74d264ade3b1e82c60 WHIRLPOOL 4883106b612c18a9723c026090e7bd269521b9adc2103340cdd13c6b2533bda4fa895e6dca0e46be47e2e96e552e19eb0633ad77c028ce2c69f090ca6699efc5
+MISC metadata.xml 328 SHA256 28e1068608e622ed813bc6cd681a3f6d035b2550a6f884ab0b8b8250a33dae17 SHA512 c67333df77b03f92845334d6b738c172cc2e1935b5df4cad2d7bc983c08cda59f1427588ab8d054cd40b7fdc52c0adcb516d74c7de4bb320f85979a6a3297628 WHIRLPOOL 1293bb8bd16e7a829cb0099f40b9c6c45f8d4d17d9cd608ea5adddb61dd8d5888cb50802e7c110e03f84597a94bb8f0917908a8b8576de0e031ad3305703c72b
diff --git a/app-i18n/sunpinyin/files/sunpinyin-2.0.3-force-switch.patch b/app-i18n/sunpinyin/files/sunpinyin-2.0.3-force-switch.patch
new file mode 100644
index 000000000000..f2f6b389ba09
--- /dev/null
+++ b/app-i18n/sunpinyin/files/sunpinyin-2.0.3-force-switch.patch
@@ -0,0 +1,30 @@
+diff --git a/SConstruct b/SConstruct
+index 68cd365..9bb6ebc 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -180,12 +180,6 @@ libdir = env['LIBDIR']
+ libdatadir = env['LIBDATADIR'] + '/sunpinyin/data'
+ headersdir = env['PREFIX'] + '/include/sunpinyin-2.0'
+
+-if GetOS() != 'Darwin':
+- env.Append(LINKFLAGS=['-Wl,-soname=libsunpinyin.so.%d' % abi_major])
+-
+-if GetOption('rpath') is not None and GetOS() != 'Darwin':
+- env.Append(LINKFLAGS='-Wl,-R -Wl,%s' % GetOption('rpath'))
+-
+ # pass through environmental variables
+ envvar = [('CC', 'CC'),
+ ('CXX', 'CXX'),
+@@ -202,6 +196,12 @@ extra_cflags=' -DHAVE_CONFIG_H -DSUNPINYIN_DATA_DIR=\'"%s"\'' % libdatadir
+ env.Append(CFLAGS=extra_cflags)
+ env.Append(CXXFLAGS=extra_cflags)
+
++if GetOS() != 'Darwin':
++ env.Append(LINKFLAGS=' -Wl,-soname=libsunpinyin.so.%d' % abi_major)
++
++if GetOption('rpath') is not None and GetOS() != 'Darwin':
++ env.Append(LINKFLAGS=' -Wl,-R -Wl,%s' % GetOption('rpath'))
++
+ #
+ #==============================configure================================
+ #
diff --git a/app-i18n/sunpinyin/files/sunpinyin-2.0.3-gcc-4.7.patch b/app-i18n/sunpinyin/files/sunpinyin-2.0.3-gcc-4.7.patch
new file mode 100644
index 000000000000..c523449ef514
--- /dev/null
+++ b/app-i18n/sunpinyin/files/sunpinyin-2.0.3-gcc-4.7.patch
@@ -0,0 +1,49 @@
+From 3d35aa0370d9c7bd455098caa9ba22ebe1f82968 Mon Sep 17 00:00:00 2001
+From: Yong Sun <mail@yongsun.me>
+Date: Wed, 4 Apr 2012 18:41:39 +0800
+Subject: [PATCH] Integrated patch from YunQiang Su, fixed FTBFS with gcc-4.7
+
+---
+ SConstruct | 3 ++-
+ src/portability.h | 5 ++---
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/SConstruct b/SConstruct
+index 97abf47..354fd19 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -313,7 +313,8 @@ def DoConfigure():
+ conf.CheckCHeader('sys/param.h')
+ conf.CheckCHeader('sys/stat.h')
+ conf.CheckCHeader('sys/types.h')
+- conf.CheckCHeader('unistd.h')
++ if conf.CheckCHeader('unistd.h'):
++ conf.Define('DHAVE_UNISTD_H', 1)
+ conf.CheckCHeader('wchar.h')
+
+ # add essential package requirements
+diff --git a/src/portability.h b/src/portability.h
+index 949d4f2..cf43bd0 100644
+--- a/src/portability.h
++++ b/src/portability.h
+@@ -44,15 +44,14 @@
+ #include <string>
+ #include <cstring>
+
+-#if defined(sun)
++#if defined(HAVE_UNISTD_H)
+ #include <unistd.h>
+ #ifdef __cplusplus
+ #include <algorithm>
+ #else
+ #include <sys/ddi.h>
+ #endif //__cpluscplus
+-#endif //defined(sun)
+-
++#endif //defined(HAVE_UNISTD_H)
+
+ #ifndef HOST_OS_GNUC_2
+ #if defined(DEBUG) && !defined(NDEBUG)
+--
+1.7.8.5
+
diff --git a/app-i18n/sunpinyin/files/sunpinyin-2.0.4-pod2man.patch b/app-i18n/sunpinyin/files/sunpinyin-2.0.4-pod2man.patch
new file mode 100644
index 000000000000..54831df21220
--- /dev/null
+++ b/app-i18n/sunpinyin/files/sunpinyin-2.0.4-pod2man.patch
@@ -0,0 +1,17 @@
+From: Guo Yixuan <culu.gyx@gmail.com>
+Bug: https://code.google.com/archive/p/sunpinyin/issues/327
+Gentoo-Bug: 553796
+
+diff --git a/man/SConscript b/man/SConscript
+index f3ebd03..e1551eb 100644
+--- a/man/SConscript
++++ b/man/SConscript
+@@ -1,7 +1,7 @@
+ import os
+ Import('env')
+
+-pod2man = Builder(action = 'pod2man < $SOURCE > $TARGET')
++pod2man = Builder(action = 'pod2man $SOURCE $TARGET')
+ env.Append(BUILDERS = {'Man': pod2man})
+
+ env.Man('mmseg.1', 'mmseg.pod')
diff --git a/app-i18n/sunpinyin/files/sunpinyin-2.0.4_pre20130108-gcc6-use-float.patch b/app-i18n/sunpinyin/files/sunpinyin-2.0.4_pre20130108-gcc6-use-float.patch
new file mode 100644
index 000000000000..77fe2831c7d8
--- /dev/null
+++ b/app-i18n/sunpinyin/files/sunpinyin-2.0.4_pre20130108-gcc6-use-float.patch
@@ -0,0 +1,17 @@
+--- sunpinyin-2.0.4_pre20130108/src/slm/tslmpack/common.h.old 2016-09-20 02:54:15.046257131 -0400
++++ sunpinyin-2.0.4_pre20130108/src/slm/tslmpack/common.h 2016-09-20 02:55:48.041124978 -0400
+@@ -53,10 +53,10 @@
+ typedef std::map<float, int> RealIndexMap; // map real values to their indices
+ typedef std::map<std::string, unsigned int> TLexicon; // map word to wid
+
+-#define EffectivePr(a) (float((usingLogPr) ? ((a) / log(2.0)) : (-log2((a)))))
+-#define OriginalPr(b) (float((usingLogPr) ? ((b) * log(2.0)) : (exp2(-(b)))))
+-#define EffectiveBow(a) (float((usingLogPr) ? (exp(-(a))) : ((a))))
+-#define OriginalBow(b) (float((usingLogPr) ? (-log((b))) : ((b))))
++#define EffectivePr(a) (float((usingLogPr) ? ((a) / logf(2.0f)) : (-log2f((a)))))
++#define OriginalPr(b) (float((usingLogPr) ? ((b) * logf(2.0f)) : (exp2f(-(b)))))
++#define EffectiveBow(a) (float((usingLogPr) ? (expf(-(a))) : ((a))))
++#define OriginalBow(b) (float((usingLogPr) ? (-logf((b))) : ((b))))
+
+ #endif //_SLM_PACK_COMMON_H
+
diff --git a/app-i18n/sunpinyin/metadata.xml b/app-i18n/sunpinyin/metadata.xml
new file mode 100644
index 000000000000..da2c1e97edca
--- /dev/null
+++ b/app-i18n/sunpinyin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">sunpinyin/sunpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/sunpinyin/sunpinyin-2.0.3-r1.ebuild b/app-i18n/sunpinyin/sunpinyin-2.0.3-r1.ebuild
new file mode 100644
index 000000000000..c0dea27daf5c
--- /dev/null
+++ b/app-i18n/sunpinyin/sunpinyin-2.0.3-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit eutils multilib scons-utils toolchain-funcs
+
+DESCRIPTION="SunPinyin is a SLM (Statistical Language Model) based IME"
+HOMEPAGE="https://sunpinyin.googlecode.com"
+SRC_URI="${HOMEPAGE}/files/${P}.tar.gz
+ https://open-gram.googlecode.com/files/dict.utf8.tar.bz2
+ https://open-gram.googlecode.com/files/lm_sc.t3g.arpa.tar.bz2"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND="dev-db/sqlite:3"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_unpack() {
+ unpack "${P}.tar.gz"
+ ln -s "${DISTDIR}/dict.utf8.tar.bz2" "${S}/raw/" || die "dict file not found"
+ ln -s "${DISTDIR}/lm_sc.t3g.arpa.tar.bz2" "${S}/raw/" || die "dict file not found"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-force-switch.patch"
+ epatch "${FILESDIR}/${P}-gcc-4.7.patch"
+}
+
+src_configure() {
+ tc-export CXX
+ myesconsargs=(
+ --prefix="${EPREFIX}"/usr
+ --libdir="${EPREFIX}"/usr/$(get_libdir)
+ --libdatadir="${EPREFIX}"/usr/lib
+ )
+}
+
+src_compile() {
+ escons || die
+}
+
+src_install() {
+ escons --install-sandbox="${ED}" install || die
+}
+
+pkg_postinst() {
+ elog ""
+ elog "If you have already installed former version of ${PN}"
+ elog "and any wrapper, please remerge the wrapper to make it work with"
+ elog "the new version."
+ elog ""
+ elog "To use any wrapper for ${PN}, please merge any of the following"
+ elog "packages: "
+ elog "emerge app-i18n/fcitx-sunpinyin"
+ elog "emerge app-i18n/ibus-sunpinyin"
+ elog "emerge app-i18n/scim-sunpinyin"
+ elog "emerge app-i18n/xsunpinyin"
+ elog ""
+}
diff --git a/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108-r1.ebuild b/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108-r1.ebuild
new file mode 100644
index 000000000000..c57e4b545664
--- /dev/null
+++ b/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils multilib python-any-r1 scons-utils toolchain-funcs
+
+DESCRIPTION="A Statistical Language Model based Chinese input method library"
+HOMEPAGE="https://github.com/sunpinyin/sunpinyin"
+SRC_URI="https://dev.gentoo.org/~yngwin/distfiles/${P}.tar.xz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0/1"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND="dev-db/sqlite:3"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/pkgconfig"
+PDEPEND="app-i18n/sunpinyin-data"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.0.4-pod2man.patch
+ epatch "${FILESDIR}"/${P}-gcc6-use-float.patch
+ epatch_user
+}
+
+src_configure() {
+ tc-export CXX
+ myesconsargs=(
+ --prefix="${EPREFIX}"/usr
+ --libdir="${EPREFIX}"/usr/$(get_libdir)
+ )
+}
+
+src_compile() {
+ escons
+}
+
+src_install() {
+ escons --install-sandbox="${D}" install
+ rm -rf "${D}"/usr/share/doc/${PN} || die
+ dodoc doc/{README,SLM-inst.mk,SLM-train.mk}
+}
diff --git a/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild b/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild
new file mode 100644
index 000000000000..afa03b36a59b
--- /dev/null
+++ b/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils multilib python-any-r1 scons-utils toolchain-funcs
+
+DESCRIPTION="A Statistical Language Model based Chinese input method library"
+HOMEPAGE="https://github.com/sunpinyin/sunpinyin"
+SRC_URI="https://dev.gentoo.org/~yngwin/distfiles/${P}.tar.xz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0/1"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND="dev-db/sqlite:3"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/pkgconfig"
+PDEPEND="app-i18n/sunpinyin-data"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.0.4-pod2man.patch
+ epatch_user
+}
+
+src_configure() {
+ tc-export CXX
+ myesconsargs=(
+ --prefix="${EPREFIX}"/usr
+ --libdir="${EPREFIX}"/usr/$(get_libdir)
+ )
+}
+
+src_compile() {
+ escons
+}
+
+src_install() {
+ escons --install-sandbox="${D}" install
+ rm -rf "${D}"/usr/share/doc/${PN} || die
+ dodoc doc/{README,SLM-inst.mk,SLM-train.mk}
+}
diff --git a/app-i18n/tagainijisho/Manifest b/app-i18n/tagainijisho/Manifest
new file mode 100644
index 000000000000..acbdce979aff
--- /dev/null
+++ b/app-i18n/tagainijisho/Manifest
@@ -0,0 +1,6 @@
+AUX tagainijisho-1.0.3-sqlite.patch 425 SHA256 6435f838bd0579f9b24b37639c8301ec6c5fd491771862145eed273c058fb8e0 SHA512 aca8593bc860f3bb640134e49898106414ff57b1cd6a39be5371151ed32e8bdb45a0747535f5f0d4710367919cf329fc2c308df38731b3c94be16f4992d7d174 WHIRLPOOL 00c228e00a574c9ac267acc2aecba26a95ed45266ef214a0ac287e9fd6c432dd55014d776ab30be6a8abb389a74dfd444bcd2ea4795c57385610447e128fc337
+DIST tagainijisho-1.0.3.tar.gz 24816175 SHA256 6fe3c579ec1cea6c41393ac9a82dd12d0e240032d2bb7837a90e470f480aaf4e SHA512 3afd75cc27e8701d93df54a2244b83090770cc80ac20ab8fb843d2ab925ab575f73d731a2ce736179fb7361af68e94694ec91f813d186c87e730368c41535c53 WHIRLPOOL aa4f26506f12f9502b4c9e3a31f0f970e5e6a9ee2892cae9f9edd53e683ff44cd6bb09cd18891ded199dd2835c97be1531c0043121ad161a6dc356bb960251cc
+EBUILD tagainijisho-1.0.3-r1.ebuild 1624 SHA256 ff8cb68a19a8e3c1e8e3755d1951467ea477e9f5c63fefcfff1e05f124cd254a SHA512 57a5953302286754b34a5a0396ebf96b47604b4277e7b1801810cfd2431e528afd32b401aad8d9fdec402c341ad1f460807d5646c8da3694aec21ca1ef7b8049 WHIRLPOOL 8342137b70e73f20847f1d1038d5482eca8074d77c9d6459ff8a6bbfd1787dcbbcb0596d433a178dd972d3c4d936395f8885e9b13fe174b6bc2cadebd744fa3a
+MISC ChangeLog 2662 SHA256 f55cd7163f691b66d95462ccb584188b5b4afed0b89611d30328972db38d881b SHA512 7bf69a85286957ef37b0e130f823a1b0e459693477b8534062091d98b948e545a86cc8ea17f7525dea7b854d5bbebd10208421b7e0e8df6ef4217d84c2d08b69 WHIRLPOOL 624a037d354017b9007068c87014572e951b733017be56ae7db1f6c727f8b5e4879185ccd81770e22d04a7c29436163c181c5ee34d2b325d878c78f52580ead4
+MISC ChangeLog-2015 1123 SHA256 e26b10ba51337060b8a56f0cf075b98d603158959d042e8adf72046fea80eb4e SHA512 f60c1f726563a6136646be7998f137b32e1cfcfbda840dd2ca557b76a45bc34d28319707182b61a756902a2694d36620f6b6a3a2956d845ccd62f9a902e3dacc WHIRLPOOL 08060bd7360cc6f1f38b8c47e3c9b8913fd0bc131bfdd31179d77b400e1bedd017b42cc55d8889b9de512c41a8246d3dce2f4a510b62a6b452fef04246f3faf3
+MISC metadata.xml 993 SHA256 ea7d452c400021a6e3923f668ff25d92a04fcfff27913afcb00f5411f48202cd SHA512 04b51cecbf4cd124c47707ade93e4b314e106b4384eff831466030a6b58e081bef6c4f00d66a1658eb4e07828ec8fba2f980869ee7a65982c47f201fe232a412 WHIRLPOOL 27406078eff33c165db137c9fbd3a3afce13586396bd72fa347c3d4e66e1d78abd2aff1888a2deb58e7f336d0905da17d0fa74be3852f067b4fb836e450ca633
diff --git a/app-i18n/tagainijisho/files/tagainijisho-1.0.3-sqlite.patch b/app-i18n/tagainijisho/files/tagainijisho-1.0.3-sqlite.patch
new file mode 100644
index 000000000000..bf1d443395b6
--- /dev/null
+++ b/app-i18n/tagainijisho/files/tagainijisho-1.0.3-sqlite.patch
@@ -0,0 +1,15 @@
+https://github.com/Gnurou/tagainijisho/issues/163
+
+--- src/sqlite/sqlite3ext.cc
++++ src/sqlite/sqlite3ext.cc
+@@ -118,6 +118,10 @@
+ sqlite3_stmt *pStmt;
+ const char *zSql = "SELECT fts3_tokenizer(?, ?)";
+
++#ifdef SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER
++ sqlite3_db_config(db, SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER, 1, NULL);
++#endif
++
+ rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, 0);
+ if( rc!=SQLITE_OK ){
+ return rc;
diff --git a/app-i18n/tagainijisho/metadata.xml b/app-i18n/tagainijisho/metadata.xml
new file mode 100644
index 000000000000..806b99351f01
--- /dev/null
+++ b/app-i18n/tagainijisho/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>calchan@gentoo.org</email>
+ <name>Denis Dupeyron</name>
+ </maintainer>
+ <longdescription>
+Tagaini Jisho is a free, open-source Japanese dictionary and kanji lookup tool
+that is available for Windows, MacOS X and Linux and aims at becoming your
+Japanese study assistant. It allows you to quickly search for entries and mark
+those that you wish to study, along with tags and personal notes. It also let
+you train entries you are studying and follows your progression in remembering
+them. Finally, it makes it easy to review entries you did not remember by
+listing them on screen or printing them on a small booklet.
+
+Tagaini Jisho also features complete stroke order animations for more than 6000
+kanji.
+</longdescription>
+ <upstream>
+ <remote-id type="github">Gnurou/tagainijisho</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild b/app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild
new file mode 100644
index 000000000000..d278aa6107ff
--- /dev/null
+++ b/app-i18n/tagainijisho/tagainijisho-1.0.3-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Open-source Japanese dictionary and kanji lookup tool"
+HOMEPAGE="http://www.tagaini.net/"
+SRC_URI="https://github.com/Gnurou/tagainijisho/releases/download/${PV}/${P}.tar.gz"
+LICENSE="GPL-3+ public-domain"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+DEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ >=dev-db/sqlite-3.11:3"
+RDEPEND="${DEPEND}"
+
+pkg_linguas=( ar cs de es fa_IR fi_FI fr hu id it nb nl pl pt ru sv th tr vi )
+IUSE+=" ${pkg_linguas[@]/#/linguas_}"
+
+PATCHES=( "${FILESDIR}"/${P}-*.patch )
+
+src_configure() {
+ # GUI linguae
+ # en is not optional, and build fails if none other then en is set, so adding ja as non-optional too
+ # linguae undeclared in IUSE will trigger an error, which is a handy check
+ for lingua in $(ls -1 i18n/*.ts | sed -e 's/.*tagainijisho_\(.*\)\.ts/\1/' | grep -v en | grep -v ja); do
+ if ! use linguas_${lingua}; then
+ rm i18n/tagainijisho_${lingua}.ts || die
+ fi
+ done
+
+ # Dictionary linguae
+ # en is not optional here either, but nothing special needs to be done
+ # here too, linguae undeclared in IUSE will trigger an error
+ local cmake_linguas
+ for lingua in $(sed -e 's/;/ /g' -ne '/set(DICT_LANG ".*")/s/.*"\(.*\)".*/\1/p' CMakeLists.txt); do
+ if use linguas_${lingua}; then
+ cmake_linguas+=";${lingua}"
+ fi
+ done
+ mycmakeargs=( -DDICT_LANG="${cmake_linguas};" )
+
+ cmake-utils_src_configure
+}
+
+pkg_preinst() { gnome2_icon_savelist; }
+pkg_postinst() { gnome2_icon_cache_update; }
+pkg_postrm() { gnome2_icon_cache_update; }
diff --git a/app-i18n/tegaki-zinnia-japanese/Manifest b/app-i18n/tegaki-zinnia-japanese/Manifest
new file mode 100644
index 000000000000..22326bca3c6a
--- /dev/null
+++ b/app-i18n/tegaki-zinnia-japanese/Manifest
@@ -0,0 +1,5 @@
+DIST tegaki-zinnia-japanese-0.3.zip 18134281 SHA256 07861bbb5440d74e705864721f12a5ce1c7f21a869f9c95ff21433d8994aafda SHA512 fd11f94c8b5446ca22e1119ead20da9ebc01e8033beef664d94c0affc8cef6e315344c4d5e61288358bf7ff4f7c49135dcf5743c4070573f7d8e45e70abba113 WHIRLPOOL 51d283e6e81025f5e1fccc89cba2574fcd0003fea2e2c207996e779e73681d71b8461587201a1140bd21b7e9ea2a884b9838c1683f1110ab4f3d301a44a22bd1
+EBUILD tegaki-zinnia-japanese-0.3.ebuild 512 SHA256 7d187112376daf2561721c1a12cc817571da5589b1b82de8a4b793b0df8e7881 SHA512 16a88066edd85dc7a69cb90f08e25a01d9732e7aa1914ae28560f152e34d3525d451e351b54d274234c62e93edd76c2084122c592d456bcda48f8af981e35430 WHIRLPOOL a291240455c3a867f28faa9c7a742337f03c201b59b83f3644c27327ddc53d019a7424eab0fb0b245d3f30ec72118269082a1604c7b49eff5d91e8ae315881f2
+MISC ChangeLog 2468 SHA256 5069366ad467d0668b4b5e68cbdb3c341fcc563e86fa533739c632faf71b476d SHA512 14597bdabe03c74f29fc5895c6b97faeea6a98cc644f7ca464e80adfb456ab2363bb8815032b29de1faa4ccf12f68422d942e57313fed231c063cdf8fb52a12b WHIRLPOOL 81be15295e69b9f3ba9143196e1689791cb76b60fb5ffcd72a2f39d83efe92f7a542ab546036dcea5adf10f3ad5b9f52d7d4e1c802bc311558ea98fcca2df55a
+MISC ChangeLog-2015 533 SHA256 5c7b8cdb8949d75e039e0afa645b7bd22b42f9167f0cb91a5750ac143c827837 SHA512 78bbebf9e2b8f0403333fe0e6fb39268f8c70200955b17a45c9ce6b41dde06b1013337a84b2e7d3ac1e08dc0c8af12b7e0374bc8d4f2524675b35811173ac62d WHIRLPOOL 7dfea45d3dec8cac0e077e33158f7f66035c17aa758c008d89f3d7d93f3863c5ed6441db08860dea09784971d4d9611b728a3380bbedf77769c919e3dc8bb875
+MISC metadata.xml 230 SHA256 5fc421627b578ee2d1317320525119c0b406026597bb1d054f96254a241bf96a SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 WHIRLPOOL b3c1363540645200abd5bf0b5b7fb3cae0b738bfd359f7b13b56d97650f9381fccede1e3f867dbc736461ee7c7906725a3c53eabd9ac99929d5c7c520a831082
diff --git a/app-i18n/tegaki-zinnia-japanese/metadata.xml b/app-i18n/tegaki-zinnia-japanese/metadata.xml
new file mode 100644
index 000000000000..c921b96adf6c
--- /dev/null
+++ b/app-i18n/tegaki-zinnia-japanese/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-i18n/tegaki-zinnia-japanese/tegaki-zinnia-japanese-0.3.ebuild b/app-i18n/tegaki-zinnia-japanese/tegaki-zinnia-japanese-0.3.ebuild
new file mode 100644
index 000000000000..c0d9d399ccbe
--- /dev/null
+++ b/app-i18n/tegaki-zinnia-japanese/tegaki-zinnia-japanese-0.3.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Handwriting model data of Japanese"
+HOMEPAGE="http://tegaki.org/"
+SRC_URI="http://www.tegaki.org/releases/${PV}/models/${P}.zip"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ sed -i -e "/^installpath=/s:local/::" Makefile || die
+ sed -i -e "/^installpath=/s:installpath=:installpath=${ED}:" Makefile || die
+}
+
+src_compile() {
+ :
+}
diff --git a/app-i18n/tomoe-gtk/Manifest b/app-i18n/tomoe-gtk/Manifest
new file mode 100644
index 000000000000..dea845864c74
--- /dev/null
+++ b/app-i18n/tomoe-gtk/Manifest
@@ -0,0 +1,3 @@
+DIST tomoe-gtk-0.6.0.tar.gz 448058 SHA256 4e9b228e25451b1e875127a57eb40270e38c59cf4d46bc25c208e370d884ba64 SHA512 caa9b79edde7885e00d939cb3de30b32da0c1c8a7d803e26c756ee0695f7e15bee241036b1125f838e72e016f4bee9736a398108fff0eed20f1fdb86d221dc43 WHIRLPOOL e17ed0cde3af6b355d91f4e44dc73d630dff0e4bb08b1fd7acb36410773957a32f116d798d8a436df70513f336f173a1313ab5172c3d4dd110eff6e50eeebf7a
+EBUILD tomoe-gtk-0.6.0-r4.ebuild 943 SHA256 5a557d48c29da718182b4d975918b98f4e6081829c2e6c05d398a5e6764a4b43 SHA512 924a073b6e03c0db053f4ed36546fbb414d355fe04cbc2f53de98db676445bd6813e0ed168f16635db48ea247ac51c69a406efd91cfa6cf796614f0f819173a6 WHIRLPOOL 4b7b8519c69e36960a9b9ce9084588bdcfc04d6bb3dd748491ac3657aa64301cec96642eb4be93bf2371e2bb044621639eea310591cece772e0723a48a3bbf39
+MISC metadata.xml 374 SHA256 c10304c81df4bee37ab402ff6cd147c3e11d459b156f3957720e66dae7854f0a SHA512 8b35eb486271612ca74076681fc7c84a27ec5bf49b8523996d14f7cb26d22952569497656378d07ca03ec7f9e05a30e851b9220f905fcc2265d4a4568badf15e WHIRLPOOL 3225a8cc629998f483e800b8953d9e4488a39e5ddcea55dc009f2506da8b9b6757e25909f9afe76868ca1b60e5cce30299aa15e02f0b227973c18608b3b3a90a
diff --git a/app-i18n/tomoe-gtk/metadata.xml b/app-i18n/tomoe-gtk/metadata.xml
new file mode 100644
index 000000000000..b26c59a53cf3
--- /dev/null
+++ b/app-i18n/tomoe-gtk/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">tomoe</remote-id>
+ <remote-id type="sourceforge-jp">tomoe</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/tomoe-gtk/tomoe-gtk-0.6.0-r4.ebuild b/app-i18n/tomoe-gtk/tomoe-gtk-0.6.0-r4.ebuild
new file mode 100644
index 000000000000..ee72ae4622bb
--- /dev/null
+++ b/app-i18n/tomoe-gtk/tomoe-gtk-0.6.0-r4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+
+inherit ltprune python-single-r1
+
+DESCRIPTION="Tomoe GTK+ interface widget library"
+HOMEPAGE="http://tomoe.osdn.jp/"
+SRC_URI="mirror://sourceforge/tomoe/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~x86"
+IUSE="python static-libs"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="app-i18n/tomoe[python(+)?,${PYTHON_USEDEP}]
+ x11-libs/gtk+:2
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ )"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ $(use_with python python "") \
+ --without-gucharmap
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+}
diff --git a/app-i18n/tomoe/Manifest b/app-i18n/tomoe/Manifest
new file mode 100644
index 000000000000..a11d2de75dfd
--- /dev/null
+++ b/app-i18n/tomoe/Manifest
@@ -0,0 +1,10 @@
+AUX tomoe-export-symbols.patch 8483 SHA256 7d7c6462e0998fb96828da8358a8d35f0082f875ff6ff6f47a05105aa6ef3308 SHA512 32caa46e10d2c1885e7d850f7ecb3ac79a4754156100e4db68e87f1614b0d9db71fde6af9d8520f337143bf2a3e6f3fe1f6e7e83f1c066552238a2a2c3d3bba5 WHIRLPOOL 837751133e8b96c73ebc8bb35e8a96cc8649805242777dabdb2ffa72895b2829182007c07f827d48249b5bffbde79705599dce76b045d8d23303d372ca37f1bf
+AUX tomoe-gentoo.patch 599 SHA256 e3f31ce769152d0a444c4c1e16727c6feee521792feda622180fb3983e003713 SHA512 50b573c046f9b98c64bfd8e0320f7d4d7f4c113d6cc5368fbaa68575d199ce269bfc8827709a6565f244a1b6e82e220db7309570a022c30ad03c51317110030b WHIRLPOOL 6498f1a66291dd7584048f5cf627161cbb3d44b1459b13a4b8e8a969c2fac80f90242dc8147653e05a96a2ff0889905247eb0eea9ec1d8bf155b50ad1bac2fdb
+AUX tomoe-glib-2.32.patch 688 SHA256 7fcf32db4ab23c48d20060c2fd07708ecaf72d39066527eef3179121ebbe8c31 SHA512 ec0344ccb48ecc8f0df3a76424ed93c9e223a3b22733626a460c4729681d7f9f072ddb84311d22e161c04503dd845c7da774ea9832df32cb79199ca47589073c WHIRLPOOL 257233d609360b203fcd607860b116b5d8f647aa930f466ae2e2546b633a9f411824fbf6b8e4cd685f62aaa126907c274b4eb0bf4d4a465df71caae8e6148f35
+AUX tomoe-ruby19.patch 2646 SHA256 a372a834cfefa59e69bb8418411c89885ae4f7e1ab6a423b1c391bc23e9a5a4f SHA512 52f555412853c3485e8d3ab7b7739f030e2c3d2b5c4aac14ebb967c93427fe04cbcfec2f5997f09f0f7611dc268ee63437b256ef4cac1ea805f0ae84a522b836 WHIRLPOOL ae8b7ed1823bb0e0b3f4a1e17581cf87d00b948b53ea52096d2fc64c132372eb0f5b1b75708fc9ac6902a582c5e942b70cff8b9615c0817be8f4887994162265
+DIST tomoe-0.6.0.tar.gz 4918949 SHA256 ee600f97fa434c13f6c41a1db9e03eccd551151ed48ece9c56cd9e828228ea1e SHA512 eab618d7b28fc9613c175fab6f80fc7d6acc34af3a47f20c11b42a32acd87143ae10caca67fa1a5e2e75441d431799a5725a5d507604f8bd7447bbc1826f0bb8 WHIRLPOOL f3cfb9bf09ab7228913a001348a73ea32d8f4cb25c941c5dd4829c237d0043f92293e2f914257902c1a5faf93d61fa82dfbea269d6b6d60cad49638cc6ca0141
+EBUILD tomoe-0.6.0-r2.ebuild 1601 SHA256 b4c614e2ad536b0d1a1c40ccca0c64a784622ee40e325003283237f531b03d5a SHA512 1c2fad47b395478bd0a9e200a84af14ffb61598022c6655dac28fcdd008cd8ccdd0e88ed9b51cfbf9145857368fae8945a8ec1eabe33b82d7f88fb1cd2c036cf WHIRLPOOL e5b9e242de844ce5735b5a1cfe1a7433758e699afc448f20485fc9c0a1aa15512eac924996b4cb8bb28644950180c9cdb9213ee65e5f59891e88e24ca3d05c63
+EBUILD tomoe-0.6.0-r3.ebuild 2145 SHA256 f3caf1256e0aa35db18646bc84ceb7ffdb587433876c7f0d89042bf4917f20c4 SHA512 adfb46271c4837b9fce43c891a4d8659b0bf00a16199d8eb562f72db8ded203c6195b1531cfeff45e8c82d1e34979ef679131fc3d383e27553af14ceee35c7c7 WHIRLPOOL 3b403d1be2e53e10b2bc48c14df740421a7d2b404d67a46ccc947866c238d35672c10d8b00468d0a83169a0105bf6ee1f95ab74d6aea1cdb86a378637720ef55
+MISC ChangeLog 3861 SHA256 a971cba6edf84757a8a60aae04f10f69f65d6813c6c754d31542c52ce0cec1dd SHA512 5b5c9d628dc7724ecad5b07b35d37cedcca9bba2796b6da53700608643bdf8f7065c952f52657285bb4e083cdd3e09e5219ac91dd3116643ebbf46c4b11bf34a WHIRLPOOL c2e2d74c1c4029718c732d98dea911fa2b79b847461c96170e73a2a24ad893498f6c55d2b8dedb079c4067e925da5f02a5e5dee29125bf4e0417ebd7b0913f98
+MISC ChangeLog-2015 2941 SHA256 2f022f9cafb10b126808c8fdd1fb82314c3937bb5dde00a9a54448df9e31a491 SHA512 b294e3e41e06b81178e51e07cfe788969e22bd1386c5badf9887046b8488f9ab4eb9513d29709d8caf824d9aeccd3f4712b0e289ef6e19a0df36ddca30db43bb WHIRLPOOL d57145026301f6c85f90125372bdf3e03451bba83e3e0eb46789ee053bb67389be1b54fe0b280107008f95c0a2056456cdcaed6e3d64baafa7c7590a63436c16
+MISC metadata.xml 482 SHA256 46f54007ec305531ca2cd3058bd23ab7e836366ed6d38bf6596d19f5bd6e939d SHA512 0898e0ba0bd42458870d268ee6bc881da1c88ab01969037d57f0d4abf5f140a7ce77bf87d918976bd763a33c8869e73d0fb2ec744be747d5bc30d594cc54efeb WHIRLPOOL 8655503e4b1d7dfcc5061c16b7087cd37125d38347a99aa4c59cd94a22d30d5eb1bf85d8730e3da0cbd00d997c1ad427dcee889a2fe2ecd5e15140469d38a7d4
diff --git a/app-i18n/tomoe/files/tomoe-export-symbols.patch b/app-i18n/tomoe/files/tomoe-export-symbols.patch
new file mode 100644
index 000000000000..2b2d98b6ddd7
--- /dev/null
+++ b/app-i18n/tomoe/files/tomoe-export-symbols.patch
@@ -0,0 +1,240 @@
+Index: trunk/module/dict/tomoe-dict-xml.c
+===================================================================
+--- trunk/module/dict/tomoe-dict-xml.c (revision 1581)
++++ trunk/module/dict/tomoe-dict-xml.c (revision 1582)
+@@ -303,14 +303,14 @@
+ return success;
+
+ result.name = NULL;
+- result.chars = _tomoe_dict_ptr_array_get_array (TOMOE_DICT_PTR_ARRAY (dict));
+- success = _tomoe_xml_parser_parse_dictionary_file (dict->filename, &result);
++ result.chars = tomoe_dict_ptr_array_get_array (TOMOE_DICT_PTR_ARRAY (dict));
++ success = tomoe_xml_parser_parse_dictionary_file (dict->filename, &result);
+ if (result.name) {
+ g_free (dict->name);
+ dict->name = g_strdup (result.name);
+ g_free (result.name);
+ }
+- _tomoe_dict_ptr_array_sort (TOMOE_DICT_PTR_ARRAY (dict));
++ tomoe_dict_ptr_array_sort (TOMOE_DICT_PTR_ARRAY (dict));
+
+ return success;
+ }
+@@ -343,7 +343,7 @@
+ else
+ g_string_append (xml, "<dictionary>\n");
+
+- chars = _tomoe_dict_ptr_array_get_array (TOMOE_DICT_PTR_ARRAY (dict));
++ chars = tomoe_dict_ptr_array_get_array (TOMOE_DICT_PTR_ARRAY (dict));
+ for (i = 0; i < chars->len; i++) {
+ gchar *chr_xml;
+ TomoeChar *chr = g_ptr_array_index (chars, i);
+Index: trunk/module/dict/tomoe-dict-unihan.c
+===================================================================
+--- trunk/module/dict/tomoe-dict-unihan.c (revision 1581)
++++ trunk/module/dict/tomoe-dict-unihan.c (revision 1582)
+@@ -193,7 +193,7 @@
+ object = klass->constructor (type, n_props, props);
+ the_singleton = TOMOE_DICT_UNIHAN (object);
+
+- chars = _tomoe_dict_ptr_array_get_array (TOMOE_DICT_PTR_ARRAY (object));
++ chars = tomoe_dict_ptr_array_get_array (TOMOE_DICT_PTR_ARRAY (object));
+ _tomoe_unihan_create (chars);
+ } else {
+ object = g_object_ref (G_OBJECT (the_singleton));
+Index: trunk/lib/tomoe-char.c
+===================================================================
+--- trunk/lib/tomoe-char.c (revision 1581)
++++ trunk/lib/tomoe-char.c (revision 1582)
+@@ -143,7 +143,7 @@
+ TomoeChar*
+ tomoe_char_new_from_xml_data (const gchar *data, gssize len)
+ {
+- return _tomoe_xml_parser_parse_char_data (data, len);
++ return tomoe_xml_parser_parse_char_data (data, len);
+ }
+
+ static void
+Index: trunk/lib/tomoe-xml-parser.c
+===================================================================
+--- trunk/lib/tomoe-xml-parser.c (revision 1581)
++++ trunk/lib/tomoe-xml-parser.c (revision 1582)
+@@ -428,8 +428,8 @@
+ }
+
+ gboolean
+-_tomoe_xml_parser_parse_dictionary_file (const gchar *filename,
+- TomoeXMLParsedData *result)
++tomoe_xml_parser_parse_dictionary_file (const gchar *filename,
++ TomoeXMLParsedData *result)
+ {
+ GMarkupParseContext *context;
+ FILE *f;
+@@ -469,7 +469,7 @@
+ }
+
+ TomoeChar *
+-_tomoe_xml_parser_parse_char_data (const gchar *xml, gssize len)
++tomoe_xml_parser_parse_char_data (const gchar *xml, gssize len)
+ {
+ GMarkupParseContext *context;
+ TomoeXMLParsedData result;
+Index: trunk/lib/tomoe-xml-parser.h
+===================================================================
+--- trunk/lib/tomoe-xml-parser.h (revision 1581)
++++ trunk/lib/tomoe-xml-parser.h (revision 1582)
+@@ -37,10 +37,10 @@
+ GPtrArray *chars;
+ };
+
+-gboolean _tomoe_xml_parser_parse_dictionary_file (const gchar *filename,
+- TomoeXMLParsedData *result);
+-TomoeChar *_tomoe_xml_parser_parse_char_data (const gchar *xml,
+- gssize len);
++gboolean tomoe_xml_parser_parse_dictionary_file (const gchar *filename,
++ TomoeXMLParsedData *result);
++TomoeChar *tomoe_xml_parser_parse_char_data (const gchar *xml,
++ gssize len);
+
+
+ G_END_DECLS
+Index: trunk/lib/tomoe-dict-ptr-array.c
+===================================================================
+--- trunk/lib/tomoe-dict-ptr-array.c (revision 1581)
++++ trunk/lib/tomoe-dict-ptr-array.c (revision 1582)
+@@ -50,7 +50,7 @@
+
+ static TomoeDictClass *parent_class;
+
+-G_DEFINE_ABSTRACT_TYPE (TomoeDictPtrArray, _tomoe_dict_ptr_array, TOMOE_TYPE_DICT)
++G_DEFINE_ABSTRACT_TYPE (TomoeDictPtrArray, tomoe_dict_ptr_array, TOMOE_TYPE_DICT)
+
+ static void dispose (GObject *object);
+ static void set_property (GObject *object,
+@@ -75,7 +75,7 @@
+ static gchar *get_available_private_utf8 (TomoeDict *dict);
+
+ static void
+-_tomoe_dict_ptr_array_class_init (TomoeDictPtrArrayClass *klass)
++tomoe_dict_ptr_array_class_init (TomoeDictPtrArrayClass *klass)
+ {
+ GObjectClass *gobject_class;
+ TomoeDictClass *dict_class;
+@@ -123,7 +123,7 @@
+ }
+
+ static void
+-_tomoe_dict_ptr_array_init (TomoeDictPtrArray *dict)
++tomoe_dict_ptr_array_init (TomoeDictPtrArray *dict)
+ {
+ TomoeDictPtrArrayPrivate *priv = TOMOE_DICT_PTR_ARRAY_GET_PRIVATE (dict);
+ priv->chars = g_ptr_array_new();
+@@ -196,7 +196,7 @@
+ }
+
+ void
+-_tomoe_dict_ptr_array_sort (TomoeDictPtrArray *dict)
++tomoe_dict_ptr_array_sort (TomoeDictPtrArray *dict)
+ {
+ TomoeDictPtrArrayPrivate *priv;
+
+@@ -219,7 +219,7 @@
+
+ unregister_char (dict, tomoe_char_get_utf8 (chr));
+ g_ptr_array_add (priv->chars, g_object_ref (G_OBJECT (chr)));
+- _tomoe_dict_ptr_array_sort (TOMOE_DICT_PTR_ARRAY (dict));
++ tomoe_dict_ptr_array_sort (TOMOE_DICT_PTR_ARRAY (dict));
+
+ priv->modified = TRUE;
+
+@@ -449,7 +449,7 @@
+ g_ptr_array_add (*dest_chars, tomoe_char_dup (chr));
+ }
+
+-gboolean
++static gboolean
+ copy (TomoeDict *src_dict, TomoeDict *dest_dict)
+ {
+ TomoeDictPtrArrayPrivate *src_priv, *dest_priv;
+@@ -487,7 +487,7 @@
+ return TOMOE_DICT_PTR_ARRAY_GET_PRIVATE (dict)->editable;
+ }
+
+-gchar *
++static gchar *
+ get_available_private_utf8 (TomoeDict *dict)
+ {
+ TomoeDictPtrArrayPrivate *priv;
+@@ -523,7 +523,7 @@
+ }
+
+ GPtrArray *
+-_tomoe_dict_ptr_array_get_array (TomoeDictPtrArray *dict)
++tomoe_dict_ptr_array_get_array (TomoeDictPtrArray *dict)
+ {
+ g_return_val_if_fail (TOMOE_IS_DICT_PTR_ARRAY (dict), NULL);
+
+Index: trunk/lib/tomoe-dict-ptr-array.h
+===================================================================
+--- trunk/lib/tomoe-dict-ptr-array.h (revision 1581)
++++ trunk/lib/tomoe-dict-ptr-array.h (revision 1582)
+@@ -29,7 +29,7 @@
+
+ #include "tomoe-dict.h"
+
+-#define TOMOE_TYPE_DICT_PTR_ARRAY (_tomoe_dict_ptr_array_get_type ())
++#define TOMOE_TYPE_DICT_PTR_ARRAY (tomoe_dict_ptr_array_get_type ())
+ #define TOMOE_DICT_PTR_ARRAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TOMOE_TYPE_DICT_PTR_ARRAY, TomoeDictPtrArray))
+ #define TOMOE_DICT_PTR_ARRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TOMOE_TYPE_DICT_PTR_ARRAY, TomoeDictPtrArrayClass))
+ #define TOMOE_IS_DICT_PTR_ARRAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TOMOE_TYPE_DICT_PTR_ARRAY))
+@@ -49,9 +49,9 @@
+ TomoeDictClass parent_class;
+ };
+
+-GType _tomoe_dict_ptr_array_get_type (void) G_GNUC_CONST;
+-void _tomoe_dict_ptr_array_sort (TomoeDictPtrArray *dict);
+-GPtrArray *_tomoe_dict_ptr_array_get_array (TomoeDictPtrArray *dict);
++GType tomoe_dict_ptr_array_get_type (void) G_GNUC_CONST;
++void tomoe_dict_ptr_array_sort (TomoeDictPtrArray *dict);
++GPtrArray *tomoe_dict_ptr_array_get_array (TomoeDictPtrArray *dict);
+
+ G_END_DECLS
+
+Index: trunk/lib/Makefile.am
+===================================================================
+--- trunk/lib/Makefile.am (revision 1581)
++++ trunk/lib/Makefile.am (revision 1582)
+@@ -30,13 +30,15 @@
+ tomoe-context.h \
+ tomoe-config.h \
+ tomoe-dict.h \
++ tomoe-dict-ptr-array.h \
+ tomoe-module.h \
+ tomoe-module-impl.h \
+ tomoe-query.h \
+ tomoe-reading.h \
+ tomoe-recognizer.h \
+ tomoe-shelf.h \
+- tomoe-writing.h
++ tomoe-writing.h \
++ tomoe-xml-parser.h
+
+ enum_source_prefix = tomoe-enum-types
+
+@@ -103,15 +105,13 @@
+ tomoe-config.c \
+ tomoe-dict.c \
+ tomoe-dict-ptr-array.c \
+- tomoe-dict-ptr-array.h \
+ tomoe-module.c \
+ tomoe-query.c \
+ tomoe-reading.c \
+ tomoe-recognizer.c \
+ tomoe-shelf.c \
+ tomoe-writing.c \
+- tomoe-xml-parser.c \
+- tomoe-xml-parser.h
++ tomoe-xml-parser.c
+
+ libtomoe_la_LDFLAGS = \
+ -version-info $(LT_VERSION_INFO) \
diff --git a/app-i18n/tomoe/files/tomoe-gentoo.patch b/app-i18n/tomoe/files/tomoe-gentoo.patch
new file mode 100644
index 000000000000..92ed311a0a76
--- /dev/null
+++ b/app-i18n/tomoe/files/tomoe-gentoo.patch
@@ -0,0 +1,22 @@
+--- a/module/dict/Makefile.am
++++ b/module/dict/Makefile.am
+@@ -34,7 +34,7 @@
+
+ LIBADD = $(TOMOE_LIBS) \
+ $(top_builddir)/lib/libtomoe.la
+-LDFLAGS = \
++AM_LDFLAGS = \
+ -rpath $(dict_moduledir) -avoid-version -module \
+ -export-dynamic $(no_undefined) $(LIBTOOL_EXPORT_OPTIONS)
+
+--- a/module/recognizer/Makefile.am
++++ b/module/recognizer/Makefile.am
+@@ -23,7 +23,7 @@
+ AM_CPPFLAGS =
+ INCLUDES = $(TOMOE_CFLAGS)
+
+-LDFLAGS = \
++AM_LDFLAGS = \
+ -rpath $(recognizer_moduledir) -avoid-version -module \
+ -export-dynamic $(no_undefined) $(LIBTOOL_EXPORT_OPTIONS)
+
diff --git a/app-i18n/tomoe/files/tomoe-glib-2.32.patch b/app-i18n/tomoe/files/tomoe-glib-2.32.patch
new file mode 100644
index 000000000000..eb05ab8b8d50
--- /dev/null
+++ b/app-i18n/tomoe/files/tomoe-glib-2.32.patch
@@ -0,0 +1,33 @@
+--- a/lib/glib-compat-key-file.h
++++ b/lib/glib-compat-key-file.h
+@@ -51,7 +51,7 @@
+ #ifndef __G_KEY_FILE_H__
+ #define __G_KEY_FILE_H__
+
+-#include <glib/gerror.h>
++#include <glib.h>
+
+ G_BEGIN_DECLS
+
+--- a/lib/glib-utils.h
++++ b/lib/glib-utils.h
+@@ -28,7 +28,7 @@
+ #include "config.h"
+ #endif /* HAVE_CONFIG_H */
+
+-#include <glib/garray.h>
++#include <glib.h>
+ #include <glib/gi18n-lib.h>
+ #include "glib-compat-file-utilities.h"
+ #include "glib-compat-key-file.h"
+--- a/lib/tomoe.c
++++ b/lib/tomoe.c
+@@ -26,7 +26,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <glib/garray.h>
++#include <glib.h>
+ #include "tomoe.h"
+
+ static gboolean initialized = FALSE;
diff --git a/app-i18n/tomoe/files/tomoe-ruby19.patch b/app-i18n/tomoe/files/tomoe-ruby19.patch
new file mode 100644
index 000000000000..bca6aa807f04
--- /dev/null
+++ b/app-i18n/tomoe/files/tomoe-ruby19.patch
@@ -0,0 +1,84 @@
+--- a/bindings/ruby/tomoe-rb-char.c
++++ b/bindings/ruby/tomoe-rb-char.c
+@@ -2,6 +2,10 @@
+
+ #define _SELF(obj) RVAL2TCHR(obj)
+
++#ifndef RSTRING_LEN
++# define RSTRING_LEN(s) (RSTRING(s)->len)
++#endif
++
+ static VALUE
+ tc_initialize(int argc, VALUE *argv, VALUE self)
+ {
+@@ -13,7 +17,7 @@
+ if (NIL_P(xml)) {
+ chr = tomoe_char_new();
+ } else {
+- chr = tomoe_char_new_from_xml_data(RVAL2CSTR(xml), RSTRING(xml)->len);
++ chr = tomoe_char_new_from_xml_data(RVAL2CSTR(xml), RSTRING_LEN(xml));
+ }
+
+ G_INITIALIZE(self, chr);
+--- a/macros/ruby.m4
++++ b/macros/ruby.m4
+@@ -28,13 +28,18 @@
+
+ changequote(<<, >>)
+ for var_name in archdir sitearchdir CFLAGS LIBRUBYARG libdir \
+- sitelibdir sitearchdir; do
+- rbconfig_tmp=`$rbconfig "print Config::CONFIG['$var_name']"`
++ sitelibdir rubyhdrdir rubyarchhdrdir; do
++ rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"`
+ eval "rbconfig_$var_name=\"$rbconfig_tmp\""
+ done
+ changequote([, ])
+
+- RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_archdir "
++ if test "x$rbconfig_rubyhdrdir" = "x"; then
++ RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_archdir "
++ else
++ RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_rubyhdrdir "
++ RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_rubyarchhdrdir "
++ fi
+ RUBY_CFLAGS="$RUBY_CFLAGS -I$rbconfig_sitearchdir "
+ RUBY_CFLAGS="$RUBY_CFLAGS $rbconfig_CFLAGS "
+ RUBY_LIBS="$rbconfig_LIBRUBYARG"
+--- a/module/dict/tomoe-dict-ruby.c
++++ b/module/dict/tomoe-dict-ruby.c
+@@ -52,6 +52,13 @@
+ #define TOMOE_IS_DICT_RUBY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TOMOE_TYPE_DICT_RUBY))
+ #define TOMOE_DICT_RUBY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), TOMOE_TYPE_DICT_RUBY, TomoeDictRubyClass))
+
++#ifndef RARRAY_LEN
++# define RARRAY_LEN(a) (RARRAY(a)->len)
++#endif
++#ifndef RARRAY_PTR
++# define RARRAY_PTR(a) (RARRAY(a)->ptr)
++#endif
++
+ enum {
+ PROP_0,
+ PROP_FILENAME,
+@@ -209,7 +216,7 @@
+ ruby_script (PACKAGE);
+ ruby_set_argv (1, argv);
+
+- if (RARRAY(rb_load_path)->len == 0) {
++ if (RARRAY_LEN(rb_load_path) == 0) {
+ ruby_init_loadpath ();
+ }
+ }
+@@ -405,10 +412,10 @@
+
+ rb_results = rb_funcall (dict->rb_dict, rb_intern ("search"),
+ 1, GOBJ2RVAL (query));
+- len = RARRAY (rb_results)->len;
++ len = RARRAY_LEN(rb_results);
+ for (i = len; i; i--) {
+ results = g_list_prepend (results,
+- RVAL2TCND (RARRAY (rb_results)->ptr[i]));
++ RVAL2TCND (RARRAY_PTR(rb_results)[i]));
+ }
+ return results;
+ }
diff --git a/app-i18n/tomoe/metadata.xml b/app-i18n/tomoe/metadata.xml
new file mode 100644
index 000000000000..216815207e4e
--- /dev/null
+++ b/app-i18n/tomoe/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <use>
+ <flag name="hyperestraier">Enable support for <pkg>app-text/hyperestraier</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">tomoe</remote-id>
+ <remote-id type="sourceforge-jp">tomoe</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/tomoe/tomoe-0.6.0-r2.ebuild b/app-i18n/tomoe/tomoe-0.6.0-r2.ebuild
new file mode 100644
index 000000000000..6fe794e094ed
--- /dev/null
+++ b/app-i18n/tomoe/tomoe-0.6.0-r2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools ltprune python-single-r1
+
+DESCRIPTION="Japanese handwriting recognition engine"
+HOMEPAGE="http://tomoe.osdn.jp/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~x86"
+IUSE="hyperestraier mysql python ruby static-libs subversion"
+RESTRICT="test"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="dev-libs/glib:2
+ hyperestraier? ( app-text/hyperestraier )
+ mysql? ( virtual/libmysqlclient )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ )
+ ruby? ( dev-ruby/ruby-glib2 )
+ subversion? ( dev-vcs/subversion )"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ dev-util/intltool
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-gentoo.patch
+ "${FILESDIR}"/${PN}-export-symbols.patch
+ "${FILESDIR}"/${PN}-glib-2.32.patch
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ sed -i \
+ -e "s/use_est=yes/use_est=$(usex hyperestraier)/" \
+ -e "s/use_mysql=yes/use_mysql=$(usex mysql)/" \
+ configure.ac
+
+ sed -i "s/use_svn=yes/use_svn=$(usex subversion)/" macros/svn.m4
+
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable ruby dict-ruby) \
+ $(use_enable static-libs static) \
+ $(use_with python python "") \
+ $(use_with ruby) \
+ --with-svn-include="${EPREFIX}"/usr/include \
+ --with-svn-lib="${EPREFIX}"/usr/$(get_libdir)
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+}
diff --git a/app-i18n/tomoe/tomoe-0.6.0-r3.ebuild b/app-i18n/tomoe/tomoe-0.6.0-r3.ebuild
new file mode 100644
index 000000000000..ad56ff62bd17
--- /dev/null
+++ b/app-i18n/tomoe/tomoe-0.6.0-r3.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+USE_RUBY="ruby22 ruby23 ruby24"
+
+inherit autotools ltprune python-single-r1 ruby-single
+
+DESCRIPTION="Japanese handwriting recognition engine"
+HOMEPAGE="http://tomoe.osdn.jp/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="hyperestraier mysql python ruby ${USE_RUBY//ruby/ruby_targets_ruby} static-libs subversion"
+RESTRICT="test"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
+ ruby? ( || ( ${USE_RUBY//ruby/ruby_targets_ruby} ) )"
+
+_ruby_set_globals() {
+ local ruby
+ for ruby in ${USE_RUBY}; do
+ RUBY_USEDEP="${RUBY_USEDEP}ruby_targets_${ruby}?,"
+ done
+ RUBY_USEDEP="${RUBY_USEDEP%,}"
+}
+_ruby_set_globals
+unset -f _ruby_set_globals
+
+RDEPEND="dev-libs/glib:2
+ hyperestraier? ( app-text/hyperestraier )
+ mysql? ( virtual/libmysqlclient )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ )
+ ruby? (
+ ${RUBY_DEPS}
+ dev-ruby/ruby-glib2[${RUBY_USEDEP}]
+ )
+ subversion? ( dev-vcs/subversion )"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ dev-util/intltool
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-gentoo.patch
+ "${FILESDIR}"/${PN}-export-symbols.patch
+ "${FILESDIR}"/${PN}-glib-2.32.patch
+ "${FILESDIR}"/${PN}-ruby19.patch
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ sed -i \
+ -e "s/use_est=yes/use_est=$(usex hyperestraier)/" \
+ -e "s/use_mysql=yes/use_mysql=$(usex mysql)/" \
+ configure.ac
+
+ sed -i "s/use_svn=yes/use_svn=$(usex subversion)/" macros/svn.m4
+
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local ruby
+ for ruby in ${RUBY_TARGETS_PREFERENCE}; do
+ if use ruby_targets_${ruby}; then
+ break
+ fi
+ done
+
+ econf \
+ $(use_enable ruby dict-ruby) \
+ $(use_enable static-libs static) \
+ $(use_with python python "") \
+ $(use_with ruby ruby "$(type -p ${ruby})") \
+ --with-svn-include="${EPREFIX}"/usr/include \
+ --with-svn-lib="${EPREFIX}"/usr/$(get_libdir)
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+}
diff --git a/app-i18n/transifex-client/Manifest b/app-i18n/transifex-client/Manifest
new file mode 100644
index 000000000000..464b6645ddf8
--- /dev/null
+++ b/app-i18n/transifex-client/Manifest
@@ -0,0 +1,9 @@
+DIST transifex-client-0.10.tar.gz 71817 SHA256 fb2ecba162a8ea6c52d57022c14c4016a2b6f048c9f626c1bd27c30e8ee29f1a SHA512 c8134f3fc04953d468c2e6ceb0ef90e8335709bde778c5d7d532b3ea390e71abdf8856b8eaa5acf6507c4e6fd2f918e6b0989b3913ee603cc5987b1a9d6b3964 WHIRLPOOL 34248f0b1d685024b485aa5e324f2450d6e71b72deb4c176419fe6ce768ff3ea486cc48432df569d6141371709bf2e2f853316bf6790974ab03f0ffe6277594e
+DIST transifex-client-0.12.2.tar.gz 177046 SHA256 5e157041c5d0063ef337d7fa89007ecd611ca5e20fb5abdb3228ff80a0aea8c1 SHA512 5cf1df26a195b85cbb20dc6b53ce9e6a39330347edee7e294f8f50bfa954bc47304dcaed1109e405794c67bef0fb62ae6eace90e69556c89ec48d14d6990fdb7 WHIRLPOOL 57f870344d22e65891be51ae14a45dd2ab6f565b44860cbce04887dabfbfdb3356cf02ffd0067d602f7ce06c7f325ba9638c44227bd3a0bb9444747320be1d17
+DIST transifex-client-0.12.4.tar.gz 179349 SHA256 3832b6a6fd5d74c79412b497ca24b701fe760a8b4dd3aef800b730499cb7945f SHA512 516531a0c5a7242da27e8b34a0513b24b806d3b3a271cfe29b31ef7969472f82a37e6fbb1d6198feb1c5bd99d7503bacf3f162808504415ea46670af3fe2369e WHIRLPOOL e6271144f6e038f518b37d30bf5970d03d871c43243ab84c990e49db8c852627e55ae7ae257a3f432c71070bbaf1b39f89db3ace3ed6fb4f9f603aaad7428483
+EBUILD transifex-client-0.10.ebuild 500 SHA256 5491b4ce7a3ee79fb3f115108640e1cfb1fcb8e29bc35508facfba5be215a8fb SHA512 942232bf4c8c7cd4ce5e1da5f04965b01acc926dd22d0c43afc378b256c5f78843f6473c2cc7fbc14cb714e0bd899265813fdb85136769666cea13477d2dc982 WHIRLPOOL 8f709ed26ddfd86f960e7a8430e383084f2d84fb3005d484a44007b22e01ceb1617ee2d58fbc59e9a3948e6556029ad9b8378222093950a7e67857457fafabc2
+EBUILD transifex-client-0.12.2.ebuild 515 SHA256 558916b05f6d14b892078f4ca88d4b9a887e5c7b184f404880cafaff7e9ac6ca SHA512 45b5756e0784a120e6fe2d52a0fdd63c517d42715c2ba7eb09f612e258a707b3f9c3ac19823d7b815bb3f3174676141b6345dff09d6f8e48bbdcf2da71e14e21 WHIRLPOOL 71d8e0e3a0b7846fa5c1c1c36efefddc49280b363598b733dcb3a6938bd55cf6655f098593402eefb65a1f444a63a50d115ac06bfe5cd9444ba4823cff0b7f84
+EBUILD transifex-client-0.12.4.ebuild 633 SHA256 d59c75dffc6d8489055cc6acaf984b7ae9634d51b8bc80a9481f2fdd53c3f51c SHA512 f558b2f156ff4381c659a6ff4fc7835dc68214b4751c39a7eac725dbdfe2964e0a09813760a6085d4cf4d044ba27c71b4c1ea70053bb6b6768de8822f0a7b787 WHIRLPOOL 93a84e01eba0ef768b8b65f448a3b943a2f96813e00a93652c6ad7bf423dc46ba5076613fb83f7371a5871f1e4f942826bc1a54272d8b42e85a71d2a1c72a761
+MISC ChangeLog 4338 SHA256 02737cbf2a4a66bb5f5d2e7895850772321cf1c12788d59b58388573095ae8d1 SHA512 47b0c256c9cbf34005dae782c3e0b88187ce2004acc151dcfdb6f63051358c3084c4b28ead5585fe8b290ed5dd6a3ee3e5afed722495e96526bf42ed4aa5944a WHIRLPOOL 6798124c4c25c221b62304f938eec7e45d008b7cdaf92d8ea9a61793d885e3b62c4f5029b0a00462933804688d78236ed076fcb63053342e3c9c39ae0b5b3e3b
+MISC ChangeLog-2015 5301 SHA256 664e67e454121fd4e5b8dfafe85bcec21d42aa9a26f32a2538f67e32dca23360 SHA512 fef322dba04d2b9425b498d1ae92f16fcfa1e13f5710c76a1c24c3f2672730b1b740ba622087ddc7b41ea45657ea0037f647c460ac0bf1d7fb6b848308d93a35 WHIRLPOOL 66393b3570ff613d94074c5a5f2a0d9fef539cf84859aa183f0625b09a811dd4d1a581d20dc6a576dd765429c3b29b145be29dd135760d30abccd28ace19fc42
+MISC metadata.xml 395 SHA256 0533d21997559674e50c307fdff283930e4755c9152aaab2f2c98b1c875178c7 SHA512 142f6e0d75c0dcc6cc315899a48f0362c08977c0f8f70c23d33715080a979f2320050df48d320747ca73c9651fa94411179f335aea5b4713b3640122ffd43cb1 WHIRLPOOL f3e236ec50c940dd58783bacfba0ef66921a054b08d4509d0fd5c0928719eb4a8360c256d23faab4dfddb6106d3576df15016f8d14c7611df37a0d2508521207
diff --git a/app-i18n/transifex-client/metadata.xml b/app-i18n/transifex-client/metadata.xml
new file mode 100644
index 000000000000..5073b1c3f70b
--- /dev/null
+++ b/app-i18n/transifex-client/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 type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">transifex-client</remote-id>
+ <remote-id type="github">transifex/transifex-client</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/transifex-client/transifex-client-0.10.ebuild b/app-i18n/transifex-client/transifex-client-0.10.ebuild
new file mode 100644
index 000000000000..dcf31868d54a
--- /dev/null
+++ b/app-i18n/transifex-client/transifex-client-0.10.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="A command line interface for Transifex"
+HOMEPAGE="https://pypi.python.org/pypi/transifex-client http://www.transifex.net/"
+SRC_URI="https://github.com/transifex/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
diff --git a/app-i18n/transifex-client/transifex-client-0.12.2.ebuild b/app-i18n/transifex-client/transifex-client-0.12.2.ebuild
new file mode 100644
index 000000000000..543e6b76fbcd
--- /dev/null
+++ b/app-i18n/transifex-client/transifex-client-0.12.2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+
+inherit distutils-r1
+
+DESCRIPTION="A command line interface for Transifex"
+HOMEPAGE="https://pypi.python.org/pypi/transifex-client http://www.transifex.net/"
+SRC_URI="mirror://pypi/t/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="dev-python/urllib3[${PYTHON_USEDEP}]"
diff --git a/app-i18n/transifex-client/transifex-client-0.12.4.ebuild b/app-i18n/transifex-client/transifex-client-0.12.4.ebuild
new file mode 100644
index 000000000000..bdb1da08ea19
--- /dev/null
+++ b/app-i18n/transifex-client/transifex-client-0.12.4.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+
+inherit distutils-r1
+
+DESCRIPTION="A command line interface for Transifex"
+HOMEPAGE="https://pypi.python.org/pypi/transifex-client http://www.transifex.net/"
+SRC_URI="mirror://pypi/t/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/mock[${PYTHON_USEDEP}] )"
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]
+ dev-python/urllib3[${PYTHON_USEDEP}]"
+
+python_test() {
+ esetup.py test
+}
diff --git a/app-i18n/translate-shell/Manifest b/app-i18n/translate-shell/Manifest
new file mode 100644
index 000000000000..577aa005b557
--- /dev/null
+++ b/app-i18n/translate-shell/Manifest
@@ -0,0 +1,4 @@
+DIST translate-shell-0.9.6.2.tar.gz 69544 SHA256 db0e322cd1361c45d0740049e11d349be61ada859d5daa59c53396d0ccbd5e4b SHA512 a7bd3fba43485a22c2fdd4261c24579b03aeafefa40863c3b8eb1c814a167b9a6f5700086c1cd411063c66c169875b96d2634ed04f45beb6d53b4725eb7fbea9 WHIRLPOOL 96ba55a3000d75ed88049bc6d700e87d93f0f30248930eb273a535e8a7a1cf01756d03b5e4e345e89e637124cb9c33897b1a3ca1899bbf928d8ccdffa40313b5
+EBUILD translate-shell-0.9.6.2.ebuild 694 SHA256 893e0372ccbf17c46073919193fcd12f9be6e2295596ec5e721dcb16d0da7222 SHA512 9246fb2636169db79a4c4f14ef002b14e398985db146a5f0fddc34b97b9808b2ed20e114c305e42fe511435d36224417ee3b5fb2d7d26fecf23ed0304f92ff08 WHIRLPOOL fa324aca54135cd8062c2640a44eea020bc6def7dd154cfbce11177d99f0eaff6d0bf5a8af7fc7801b97c8dbce310c76f04196e31eaef8d822e8b7b4c1cedfca
+MISC ChangeLog 1244 SHA256 4cc6226646da7da4db59507154e0af507374d9d2cc2ef2960082fa4d8fba5c95 SHA512 07c5135912ec36c45358f0492f6fb572e9d0cebca542ca3b1ec56b8c181f92b90497432713369661f4ab14e9c0c358ec1219e94164b5951f97612cf0adfb58fb WHIRLPOOL fd1e9d68ffbafaa73633db40b8f9d3f7ed10d78786c2166e99e4d980e89b60eafd0c4fc33ce0976fd44c7e5939144939a821a0e61917c5599c103f4459386640
+MISC metadata.xml 803 SHA256 a6b7981c801f1247dae2a3e114b236c4bf0d6b1e5998420b66df17b7078e5705 SHA512 2f13c3300a00a84be698399cc4032177ca87da2a57d165b5d510a19593c8358a55690fe97dbd48d2160880e53f8bb8dafad4449b2c70eb8b282cd1c299043dd2 WHIRLPOOL a87871a838d98213e559333bd3a190b6bf02bcd4d26cbb4dc0eae4577c3fc6e5028e4028286760e80416bdab21176006211e9026055703f18b3e5ae61d1c1807
diff --git a/app-i18n/translate-shell/metadata.xml b/app-i18n/translate-shell/metadata.xml
new file mode 100644
index 000000000000..d3856a0652b6
--- /dev/null
+++ b/app-i18n/translate-shell/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>erkiferenc@gmail.com</email>
+ <name>Ferenc Erki</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+ <longdescription lang="en">
+ Translate Shell (formerly Google Translate CLI) is a command-line
+ translator powered by Google Translate (default), Bing Translator, and
+ Yandex.Translate.
+ </longdescription>
+ <use>
+ <flag name="tts">Enable text-to-speech support</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">soimort/translate-shell</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/translate-shell/translate-shell-0.9.6.2.ebuild b/app-i18n/translate-shell/translate-shell-0.9.6.2.ebuild
new file mode 100644
index 000000000000..bf6def292ff8
--- /dev/null
+++ b/app-i18n/translate-shell/translate-shell-0.9.6.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Online command-line translator"
+HOMEPAGE="https://www.soimort.org/translate-shell/"
+SRC_URI="https://github.com/soimort/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+curl +bidi test tts"
+
+RDEPEND="
+ app-misc/rlwrap
+ >=sys-apps/gawk-4.0.2
+ curl? ( net-misc/curl[ssl] )
+ bidi? ( dev-libs/fribidi )
+ tts? ( || (
+ media-sound/mpg123
+ app-accessibility/espeak
+ media-video/mpv
+ media-video/mplayer
+ )
+ )"
+DEPEND="${RDEPEND}
+ test? ( app-editors/emacs )
+ "
+
+src_install() {
+ emake PREFIX="${D}/usr" install
+}
diff --git a/app-i18n/uchardet/Manifest b/app-i18n/uchardet/Manifest
new file mode 100644
index 000000000000..00648d5f1755
--- /dev/null
+++ b/app-i18n/uchardet/Manifest
@@ -0,0 +1,4 @@
+DIST uchardet-0.0.6.tar.xz 169192 SHA256 8351328cdfbcb2432e63938721dd781eb8c11ebc56e3a89d0f84576b96002c61 SHA512 eceeadae060bf277e298d709856609dde32921271140dc1fb0a33c7b6e1381033fc2960d616ebbd82c92815936864d2c0743b1b5ea1b7d4a200df87df80d6de5 WHIRLPOOL 3fa915fa768be9cb4002e0a1b84c120db017f59fd0011df36a4853c53b403d5f3839647ab7aff8d8691a43ef0ecc90714475ef6a46a85d20abbd57fba7d90a13
+EBUILD uchardet-0.0.6.ebuild 783 SHA256 5204e50aa9c8500c93b4b1dfac4f4c1d1f4b032aad621461988ce569f90c8b37 SHA512 ead9165ebd16fd687de82e8650541a7656cc03bb8ef6702edd6169d05d0781e2b381d6e447884a9aaac44b9b977b70699e7bc9a5b7a5f78b0df2bc5be1810d10 WHIRLPOOL 59e7e86a609ac00179734de390532f7f02089e89096876dd609b5078bdf77872439d86cf164a1f3a067d12ab8f27b6451e4e970bcc7882571d532ac4f371392c
+EBUILD uchardet-9999.ebuild 614 SHA256 f4f7b032ea896d4473153c5ba523bad11976f4db9612d5bf3deb748d25cc4381 SHA512 bd7ad0e7c6f2579f88cf66c49bdc5a40ae8b7d0bc0cd05d435c0ab1f844f7bb2dae2d8fa21a4e9f80921ad19a1a98d777b6751ea332291da8f22ce461b5291b9 WHIRLPOOL 950d9d4c0a4a3e7fc1c73e4f5cf3a951d9d3b43483d80ac396938b63d234f41bf89ccd3227ab17bfc8e8bf77e7c7a9179a02b9a57e45ec8d29e86f066955c41d
+MISC metadata.xml 472 SHA256 a71aa88e9a24e6e01d47776ec56baeb3170d3638ca483f0088869344b161d340 SHA512 3cc702714648db5605638ba28364caa1e0ad0be1b9fb519b434f34fa993f76ba29a9ccdef0e8dea8f4b0fd89514c7196328a1f77efbb9aece30adce5063f7536 WHIRLPOOL dd6598374a41ccdf46867e65a5c02fccab9a505e3129eb95c8ca5f74a69b6cd307c08aadae40fa26d44bf3852d69d95ca78bd3f310f1a772361ce828d7eab63b
diff --git a/app-i18n/uchardet/metadata.xml b/app-i18n/uchardet/metadata.xml
new file mode 100644
index 000000000000..fea82382a727
--- /dev/null
+++ b/app-i18n/uchardet/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 type="person">
+ <email>itumaykin+gentoo@gmail.com</email>
+ <name>Coacher</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugs.freedesktop.org/enter_bug.cgi?product=uchardet</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/uchardet/uchardet-0.0.6.ebuild b/app-i18n/uchardet/uchardet-0.0.6.ebuild
new file mode 100644
index 000000000000..fc32c0008b49
--- /dev/null
+++ b/app-i18n/uchardet/uchardet-0.0.6.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="An encoding detector library"
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/uchardet/"
+SRC_URI="https://www.freedesktop.org/software/uchardet/releases/${P}.tar.xz"
+
+LICENSE="|| ( MPL-1.1 GPL-2+ LGPL-2.1+ )"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ppc ppc64 x86"
+IUSE="static-libs test"
+
+src_prepare() {
+ cmake-utils_src_prepare
+ use test || cmake_comment_add_subdirectory test
+
+ # Remove flaky test. See Gentoo bug 631852.
+ # Track https://bugs.freedesktop.org/show_bug.cgi?id=101033
+ rm test/th/tis-620.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_STATIC=$(usex static-libs)
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/uchardet/uchardet-9999.ebuild b/app-i18n/uchardet/uchardet-9999.ebuild
new file mode 100644
index 000000000000..c268f955e469
--- /dev/null
+++ b/app-i18n/uchardet/uchardet-9999.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils git-r3
+
+DESCRIPTION="An encoding detector library"
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/uchardet/"
+EGIT_REPO_URI="https://anongit.freedesktop.org/git/uchardet/uchardet.git"
+
+LICENSE="|| ( MPL-1.1 GPL-2+ LGPL-2.1+ )"
+SLOT="0"
+KEYWORDS=""
+IUSE="static-libs test"
+
+src_prepare() {
+ cmake-utils_src_prepare
+ use test || cmake_comment_add_subdirectory test
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_STATIC=$(usex static-libs)
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/uim-tomoe-gtk/Manifest b/app-i18n/uim-tomoe-gtk/Manifest
new file mode 100644
index 000000000000..82df3c7b19fc
--- /dev/null
+++ b/app-i18n/uim-tomoe-gtk/Manifest
@@ -0,0 +1,5 @@
+DIST uim-tomoe-gtk-0.6.0.tar.gz 372357 SHA256 a419a061cbb91aa4d68a0d31528e5967039ef4914c4e99848b0086f5b5e6e589 SHA512 201c6a755feaef22b11f88a27b0d004d22ab13e806684ad839f7491ca17626eaf0f866a026c3fcf3b981c41c9c6a880d7f9f7a5156d3dad70d8edb78568b1d5d WHIRLPOOL c369be81623bf56dbd6e8cf14a367eff755a62f146330c2ee83c4744dda72064754e74b1c3c81b3ad7dff2b9e21a1ec15906b1a188bdd6e85caf3da2c26fc325
+EBUILD uim-tomoe-gtk-0.6.0.ebuild 548 SHA256 af60c3cb064ef2fd7468dd208ee70ecdd38b9fb867cb7d6784aa6954516423cf SHA512 dcc0bb6c692695c82877330cac30ca2b05fe17f99f424c2cf7a9226333622e4892772b04e5aef72130a93b294f41bd9d78f38e6b5aac80f48ad2d107a039011b WHIRLPOOL a189ede576235e9f946cf1693a396e97d256e754f465ff19ca04f7c60a67ef6cb5b9a5260db5fd0ff7fcbb85a2f87cda0dd448b0eecc772ee0b811a8ffabd236
+MISC ChangeLog 2445 SHA256 ea379304d77e36b52acd33a9b9da14f4f9db6767d47b5485b8c8aa2174078f12 SHA512 8df6cf9231f25a57851433fc077e458f447d938727c529a745a65fad975550b825bd46774a34b30718b06177e8341589ca1e83a64ef0994dfd3f8de4404e5766 WHIRLPOOL d84b10d7fe79dbb60a065786ffcc18142bcc2e2d17989d58ba1ef1171530ce68b62579aa2ca54c819b3c23e41ad3c82a68f266c6e02cd32020acbf9163ecb537
+MISC ChangeLog-2015 596 SHA256 e98e652bff0aff2eb95019bf0132adc4ea09624e28d00c2953245dacd1fb73aa SHA512 0e2d64f54c1eadeef08245ee3fc8df03768ea375d28841cc3297728bf6791686f4b31690968028fd3c3734e7e76c303c13885dd59a69700e664bb5c1ac594f51 WHIRLPOOL 734f79ece8e49d9cd8e2d357f04310d278841b1f794469e168c22263fd5697bffac8a942a478708cce9df19a4aca2159314973a93e90782696dc0817a1aed3fc
+MISC metadata.xml 309 SHA256 b47a3f121dd6bac17da122dbf826e5a5b7d5c35bd89653d54a013d2689160362 SHA512 7d9c17a3c4279406d23064447a7370658c494bbc5eab2a05f048f58ac3e136804ad65dc2fafbfc132b1f82ca6a651f6fe34beb68ea370b5a0eb1a3f6c98d3c2d WHIRLPOOL 3f18fbad763a6ffb0f84101e9401529f444dafd3b23047abed7e02664e8c65374c7c06fd50805b3cf7b9c534b80044a0eca7df030ca0d07816486489eefd572f
diff --git a/app-i18n/uim-tomoe-gtk/metadata.xml b/app-i18n/uim-tomoe-gtk/metadata.xml
new file mode 100644
index 000000000000..f01b1e07af44
--- /dev/null
+++ b/app-i18n/uim-tomoe-gtk/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">tomoe</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/uim-tomoe-gtk/uim-tomoe-gtk-0.6.0.ebuild b/app-i18n/uim-tomoe-gtk/uim-tomoe-gtk-0.6.0.ebuild
new file mode 100644
index 000000000000..962424855148
--- /dev/null
+++ b/app-i18n/uim-tomoe-gtk/uim-tomoe-gtk-0.6.0.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Japanese input method Tomoe IMEngine for uim"
+HOMEPAGE="http://tomoe.sourceforge.net/"
+SRC_URI="mirror://sourceforge/tomoe/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="|| ( app-i18n/uim app-i18n/uim-svn )
+ >=app-i18n/tomoe-gtk-0.6.0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/app-i18n/uim/Manifest b/app-i18n/uim/Manifest
new file mode 100644
index 000000000000..37c48a28e80a
--- /dev/null
+++ b/app-i18n/uim/Manifest
@@ -0,0 +1,11 @@
+AUX 50uim-gentoo.el 113 SHA256 58a536e5b7d0ffac6802e60d348b092623601d25c8917d64a51347efab9e4cb7 SHA512 5bdf2d6ea7203fa171e2183b272f9b1e7dfde990d14fdb13a4abc64a3eaaebb65d0325006451979cff00f6dde8c90d58e4905dbdabe0b5c4b4fa3eb721c01b7a WHIRLPOOL a4ad6ec76f4734cbde576d857dbba5b0f1b97e7df7aa131b05e508ec58f7f1c6d6d38c578b99e3418f50e80fc4860561063cfb9f8bd29eb5d249f36e57bd44b1
+AUX uim-1.5.4-zhTW.patch 1034 SHA256 82afb0a1cc1c2e706ac02da71084fe16655bbcb9719710ae37057ab6c14b9196 SHA512 0fb31957a74b49bd2ca335357b8aa177dda4fb90687b8ee4ce86595940d7fd36b82ccaf12850d658dfbf0e7f2e5119dd26ecf9246806d854cf22bde633687aee WHIRLPOOL 77ac84c09f36888817b0763db3ce4f7ff356f15cc3dde44f7151ad55261dd9516088934ddff5aaf6646df2d28977d774cf9146f4f907e67929ea458aac895e3e
+AUX uim-1.6.0-gentoo.patch 381 SHA256 c44e97d8c4d2125e17fe0d8107ce3d258c930b9dda3329eec170cfb291ae6c80 SHA512 c5445c74269aa51a07fc41e5ecc05bc6c4e73527dd6780e13070efa4f9074f5a3eddcd150c38981393cec5d883e73ba55e4b1f3d460aeaf40817ce60c268f417 WHIRLPOOL 2ab3952deb6d52a70870535f07269e104546d35a0cdfc23f92f01ee5be9dd8b9d10bf3bc320b802adf0b1ecd014825279b7dd12d9fa500428d45c6531c428dab
+AUX uim-1.8.6-libressl.patch 2041 SHA256 85f6c122ff782ca0a934396353f2dda62d1dc2fb8b910ffa3120016e6ee62c5e SHA512 a1af2af13b26b631064165c8f6d6dafaba09d236b489e0e8fd84a7ab6d9c0720a8a91cd9f8baabcc1e640157559fd77f68e18d5e85aaf0c335e25b69e0ef120a WHIRLPOOL 4b8b6abdf9c3ffaeff464582dff9380b1d0272bfa6bb1c427ec2452076101e1f2f467bbbee9c6cc15c7358c693aeb9078f56fefdf1235b759fbc9de86a417132
+AUX xinput-uim 108 SHA256 972c38f0c227cdf2ace54fa3cb0d0095864e88cf38c73759645151e3eae4b548 SHA512 b3ba31a87e19f589ac8051ece45b6b6c44b295dde76a5ce6164d1e435d791c4e7cafc7192177384f4052fd928caabb8574a9192cf783f4cb22e4ee16741343fc WHIRLPOOL 0ceb8889d4771f09588d9c53a73dc557aa09a00587df0982620615796d0530ef2c9604018f25dc50ece679ab55ea68b44edad96ba06f91950f0b9fd2200d32e2
+DIST uim-1.8.6.tar.bz2 6500739 SHA256 7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f SHA512 26a95d3b51ef7a99108234b9af30ee7b74141cb3af13d092d4cdbf0749f630934cfd67f74b09dacc3adcdce4a390104489d68a4e2419ec07418645a9b4e5715b WHIRLPOOL 77362b5ac6bea217b4373184eb19d79c0b19a8c3f9c27945abccfd414d0409a33438a3cd1d1d2370b6b2f7154a6c35688ae4b2e57f50dc29524bf71938a38a28
+EBUILD uim-1.8.6-r1.ebuild 5863 SHA256 15b9e837c21c5155d81197a6666ac612e31bc30a510c7ec6de6e24944d2d403c SHA512 1068c38129f16af382a6642edab0225e0d31b533eb6faf821f668fe7e595ec86bca3abe7ca08113f8ceafa90094610f8b492d004066fab0c05a0f839625386ec WHIRLPOOL 8258ad1ed771b3a3622e5a40c9bcfafa8214e314785c002792642e95e346486d009d83182e468f5b3c30b26f6d764dd3853ebdcb2dfdea3895e779d0461effb5
+EBUILD uim-1.8.6-r2.ebuild 5971 SHA256 9759ebb2c08c19cf0ec73fec82f3e25937fd0f73b10a3966265c64e15672b945 SHA512 9fe8ead692d3ec17f05bbc34b77545be6a597f44cd00c6ac9543da56799164b4379e801535bb402cecc2a18cf5eba96b3be4a47127c12a4f1a7aa2a9379ce2c3 WHIRLPOOL 2d96c5fd43bc24a4d9c37e11aa0878286a8e20e2f0d41fb2d73a2b8f25427ce0b266aeabf5006f811dad5a09a4f97cb2737e1947076616e71827daaa42dcb1c9
+MISC ChangeLog 3640 SHA256 7e1ec06b8ecbe6b4298803bbeb09f715b63fd84a9f42829afdcc543cfba90501 SHA512 f36c21c2a62399a6bc18f3895aa45a97c872e1db319225f50e24957af987b726937b2f454813c428106e8757d9ea5e1505739ff988a4b1fb9515cbd8638767c6 WHIRLPOOL 66a2ae25185f2160afd00087a6d95680e434608d480db25b7a777641b83fb221e5fa58370831da97840174ca3c64aa36b8f67fcb3df7fbb35ff90e5aedde59b4
+MISC ChangeLog-2015 39642 SHA256 74d96bf580e119e5c8d7f276a0c4067b0b3a9322c282a002baaf052733eca193 SHA512 3764fa28eb878b045bc1d414945b656ba24ad24ef40bcced37e5000fa32a1b92ed02c5ef3dd99e75fca7d611f36e383449cce0533e96d9a3a9ca73e897687d74 WHIRLPOOL aef3eb2d004039753482c64565e6c019831c5f25b2d2b767f7d2aeb7cf913c4e36d11b7172b7a30cc722a48d5c747947b5d2b84cb45814f4a4873d017e67a311
+MISC metadata.xml 1064 SHA256 14855bf233af45060c19e681dffc7ff66929f12b8acec83bda498f0eeb19823c SHA512 e265b2bab3338a8cc89b456fbbd46b8a2a1c59f50704e66fe3505e955b75226b786fff3abc061b9c7fe2edb5039fe265d59cf5b4750fd73ad092aafe4b390a56 WHIRLPOOL 25afe388ba976874fa04be357649f502168f78d717878218647f517fd7c99e563f7f0a4c9d15e7aa314c4c7db7c34972faedcf642ded3fa590e998e851bec877
diff --git a/app-i18n/uim/files/50uim-gentoo.el b/app-i18n/uim/files/50uim-gentoo.el
new file mode 100644
index 000000000000..350f6216139f
--- /dev/null
+++ b/app-i18n/uim/files/50uim-gentoo.el
@@ -0,0 +1,4 @@
+;;; app-i18n/uim site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'uim-mode "uim" nil t)
diff --git a/app-i18n/uim/files/uim-1.5.4-zhTW.patch b/app-i18n/uim/files/uim-1.5.4-zhTW.patch
new file mode 100644
index 000000000000..3836a210caa8
--- /dev/null
+++ b/app-i18n/uim/files/uim-1.5.4-zhTW.patch
@@ -0,0 +1,12 @@
+diff -Naur uim-1.5.4.orig/xim/convdisp.cpp uim-1.5.4/xim/convdisp.cpp
+--- uim-1.5.4.orig/xim/convdisp.cpp 2008-02-13 23:43:42.000000000 +0900
++++ uim-1.5.4/xim/convdisp.cpp 2008-12-10 02:04:35.000000000 +0900
+@@ -69,7 +69,7 @@
+ #endif
+
+ const char *fontset_zhCN = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0";
+-const char *fontset_zhTW = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0";
++const char *fontset_zhTW = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -eten-fixed-medium-r-normal--16-150-75-75-c-160-big5.eten-0";
+ const char *fontset_ja = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -jis-fixed-medium-r-normal--16-*-75-75-c-160-jisx0208.1983-0, -sony-fixed-medium-r-normal--16-*-*-*-c-80-jisx0201.1976-0";
+ const char *fontset_ko = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -daewoo-gothic-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0";
+
diff --git a/app-i18n/uim/files/uim-1.6.0-gentoo.patch b/app-i18n/uim/files/uim-1.6.0-gentoo.patch
new file mode 100644
index 000000000000..206a1cdfb1e0
--- /dev/null
+++ b/app-i18n/uim/files/uim-1.6.0-gentoo.patch
@@ -0,0 +1,11 @@
+diff -Naur uim-1.6.0.orig/configure.ac uim-1.6.0/configure.ac
+--- uim-1.6.0.orig/configure.ac 2010-08-02 09:30:14.000000000 +0900
++++ uim-1.6.0/configure.ac 2010-08-14 08:30:34.000000000 +0900
+@@ -1696,6 +1696,7 @@
+
+ QT_CONFIG_OPTS="release"
+ fi
++QT_CONFIG_OPTS="$QT_CONFIG_OPTS nostrip"
+
+ AC_ARG_ENABLE(warnings-into-error,
+ AC_HELP_STRING([--enable-warnings-into-error],
diff --git a/app-i18n/uim/files/uim-1.8.6-libressl.patch b/app-i18n/uim/files/uim-1.8.6-libressl.patch
new file mode 100644
index 000000000000..b14de58433aa
--- /dev/null
+++ b/app-i18n/uim/files/uim-1.8.6-libressl.patch
@@ -0,0 +1,79 @@
+From 7a281b1131399f04627986e6f9a54499b08e239d Mon Sep 17 00:00:00 2001
+From: Felix Janda <felix.janda@posteo.de>
+Date: Thu, 21 Apr 2016 23:12:10 +0200
+Subject: [PATCH] Make openssl SSLv2 and SSLv3 support optional
+
+Fixes compilation with libressl
+---
+ uim/openssl.c | 30 ++++++++++++++++++++++++++++++
+ 1 file changed, 30 insertions(+)
+
+diff --git a/uim/openssl.c b/uim/openssl.c
+index ba1b238..35ca1ca 100644
+--- a/uim/openssl.c
++++ b/uim/openssl.c
+@@ -208,34 +208,64 @@ c_SSL_write(uim_lisp s_, uim_lisp buf_)
+ static uim_lisp
+ c_SSLv2_method(void)
+ {
++#ifndef OPENSSL_NO_SSL2
+ return MAKE_PTR(SSLv2_method());
++#else
++ uim_notify_fatal(N_("uim-openssl: SSLv2_method() is not supported on this system"));
++ return uim_scm_f();
++#endif
+ }
+ static uim_lisp
+ c_SSLv2_server_method(void)
+ {
++#ifndef OPENSSL_NO_SSL2
+ return MAKE_PTR(SSLv2_server_method());
++#else
++ uim_notify_fatal(N_("uim-openssl: SSLv2_server_method() is not supported on this system"));
++ return uim_scm_f();
++#endif
+ }
+ static uim_lisp
+ c_SSLv2_client_method(void)
+ {
++#ifndef OPENSSL_NO_SSL2
+ return MAKE_PTR(SSLv2_client_method());
++#else
++ uim_notify_fatal(N_("uim-openssl: SSLv2_client_method() is not supported on this system"));
++ return uim_scm_f();
++#endif
+ }
+
+ /* SSLv3 */
+ static uim_lisp
+ c_SSLv3_method(void)
+ {
++#ifndef OPENSSL_NO_SSL3
+ return MAKE_PTR(SSLv3_method());
++#else
++ uim_notify_fatal(N_("uim-openssl: SSLv3_method() is not supported on this system"));
++ return uim_scm_f();
++#endif
+ }
+ static uim_lisp
+ c_SSLv3_server_method(void)
+ {
++#ifndef OPENSSL_NO_SSL3
+ return MAKE_PTR(SSLv3_server_method());
++#else
++ uim_notify_fatal(N_("uim-openssl: SSLv3_server_method() is not supported on this system"));
++ return uim_scm_f();
++#endif
+ }
+ static uim_lisp
+ c_SSLv3_client_method(void)
+ {
++#ifndef OPENSSL_NO_SSL3
+ return MAKE_PTR(SSLv3_client_method());
++#else
++ uim_notify_fatal(N_("uim-openssl: SSLv3_client_method() is not supported on this system"));
++ return uim_scm_f();
++#endif
+ }
+
+ /* SSLv3 but can rollback to v2 */
diff --git a/app-i18n/uim/files/xinput-uim b/app-i18n/uim/files/xinput-uim
new file mode 100644
index 000000000000..a0969dd9f01a
--- /dev/null
+++ b/app-i18n/uim/files/xinput-uim
@@ -0,0 +1,6 @@
+XIM=uim
+XIM_PROGRAM="@EPREFIX@/usr/bin/uim-xim"
+XIM_ARGS=
+GTK_IM_MODULE=uim
+QT_IM_MODULE=uim
+SHORT_DESC=UIM
diff --git a/app-i18n/uim/metadata.xml b/app-i18n/uim/metadata.xml
new file mode 100644
index 000000000000..0e2214531e40
--- /dev/null
+++ b/app-i18n/uim/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription lang="en">
+ uim is a simple, secure and flexible input method library. At the moment
+ Anthy, SKK, Prime, T-code, TUT-code (these are Japanese input method),
+ Pinyin (Chinese input method), Hangul (Korean input method), IPA
+ (International Phonetic Alphabet) are implemented. You can extend the
+ library with Scheme thus easily, or with C if it becomes rather complicated.
+</longdescription>
+ <use>
+ <flag name="anthy">Enable support for <pkg>app-i18n/anthy</pkg> input method
+ </flag>
+ <flag name="eb">Enable support for <pkg>dev-libs/eb</pkg></flag>
+ <flag name="gtk3">Enable support for <pkg>x11-libs/gtk+</pkg>:3</flag>
+ <flag name="skk">Enable support for <pkg>app-i18n/skk-jisyo</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="github">uim/uim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/uim/uim-1.8.6-r1.ebuild b/app-i18n/uim/uim-1.8.6-r1.ebuild
new file mode 100644
index 000000000000..c5648efd8e3d
--- /dev/null
+++ b/app-i18n/uim/uim-1.8.6-r1.ebuild
@@ -0,0 +1,223 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit autotools eutils multilib elisp-common gnome2-utils
+
+DESCRIPTION="Simple, secure and flexible input method library"
+HOMEPAGE="https://github.com/uim/uim/"
+SRC_URI="https://uim.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="BSD GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm hppa ppc ppc64 x86"
+IUSE="+anthy canna curl eb emacs expat libffi gtk gtk3 kde libedit libnotify m17n-lib ncurses nls qt4 skk sqlite ssl static-libs test unicode X xft l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW"
+
+RESTRICT="test"
+
+REQUIRED_USE="gtk? ( X ) qt4? ( X )"
+
+RDEPEND="X? (
+ x11-libs/libX11
+ x11-libs/libXft
+ x11-libs/libXt
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXext
+ x11-libs/libXrender
+ )
+ anthy? (
+ unicode? ( >=app-i18n/anthy-8622 )
+ !unicode? ( app-i18n/anthy )
+ )
+ canna? ( app-i18n/canna )
+ curl? ( >=net-misc/curl-7.16.4 )
+ eb? ( dev-libs/eb )
+ emacs? ( virtual/emacs )
+ expat? ( dev-libs/expat )
+ libffi? ( virtual/libffi )
+ gtk? ( >=x11-libs/gtk+-2.4:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ kde? ( kde-frameworks/kdelibs:4 )
+ libedit? ( dev-libs/libedit )
+ libnotify? ( >=x11-libs/libnotify-0.4 )
+ m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 )
+ ncurses? ( sys-libs/ncurses:0= )
+ nls? ( virtual/libintl )
+ qt4? ( dev-qt/qtgui:4[qt3support] )
+ skk? ( app-i18n/skk-jisyo )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( dev-libs/openssl:0 )
+ !dev-scheme/sigscheme"
+# scim? ( >=app-i18n/scim-1.3.0 ) # broken
+# wnn? ( app-i18n/wnn )
+
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ >=sys-devel/gettext-0.15
+ kde? ( dev-util/cmake )
+ X? (
+ x11-proto/xextproto
+ x11-proto/xproto
+ )"
+
+RDEPEND="${RDEPEND}
+ X? (
+ media-fonts/font-sony-misc
+ l10n_ja? ( || ( media-fonts/font-jis-misc media-fonts/intlfonts ) )
+ l10n_ko? ( || ( media-fonts/font-daewoo-misc media-fonts/intlfonts ) )
+ l10n_zh-CN? ( || ( media-fonts/font-isas-misc media-fonts/intlfonts ) )
+ l10n_zh-TW? ( media-fonts/intlfonts )
+ )"
+# test? ( dev-scheme/gauche )
+
+SITEFILE=50${PN}-gentoo.el
+
+pkg_setup() {
+ strip-linguas fr ja ko
+ if [[ -z "${LINGUAS}" ]]; then
+ # no linguas set, using the default one
+ LINGUAS=" "
+ fi
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-1.6.0-gentoo.patch \
+ "${FILESDIR}"/${PN}-1.5.4-zhTW.patch
+
+ # bug 275420
+ sed -i -e "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac || die "sed failed!"
+
+ AT_NO_RECURSIVE=1 eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if (use gtk || use gtk3) && (use anthy || use canna) ; then
+ myconf="${myconf} --enable-dict"
+ else
+ myconf="${myconf} --disable-dict"
+ fi
+
+ if use gtk || use gtk3 || use qt4 ; then
+ myconf="${myconf} --enable-pref"
+ else
+ myconf="${myconf} --disable-pref"
+ fi
+
+ if use anthy ; then
+ if use unicode ; then
+ myconf="${myconf} --with-anthy-utf8"
+ else
+ myconf="${myconf} --with-anthy"
+ fi
+ else
+ myconf="${myconf} --without-anthy"
+ fi
+
+ if use libnotify ; then
+ myconf="${myconf} --enable-notify=libnotify"
+ fi
+
+ econf $(use_with X x) \
+ $(use_with canna) \
+ $(use_with curl) \
+ $(use_with eb) \
+ $(use_enable emacs) \
+ $(use_with emacs lispdir "${SITELISP}") \
+ $(use_with expat) \
+ $(use_with libffi ffi) \
+ --disable-gnome-applet \
+ $(use_with gtk gtk2) \
+ $(use_with gtk3) \
+ $(use_with libedit) \
+ --disable-kde-applet \
+ $(use_enable kde kde4-applet) \
+ $(use_with m17n-lib m17nlib) \
+ $(use_enable ncurses fep) \
+ $(use_enable nls) \
+ --without-qt \
+ --without-qt-immodule \
+ $(use_with qt4 qt4) \
+ $(use_with qt4 qt4-immodule) \
+ $(use_enable qt4 qt4-qt3support) \
+ $(use_with skk) \
+ $(use_with sqlite sqlite3) \
+ $(use_enable ssl openssl) \
+ $(use_enable static-libs static) \
+ $(use_with xft) \
+ ${myconf}
+}
+
+src_compile() {
+ default
+
+ if use emacs; then
+ cd emacs
+ elisp-compile *.el || die "elisp-compile failed!"
+ fi
+}
+
+src_install() {
+ # parallel make install b0rked, bug #222677
+ emake -j1 INSTALL_ROOT="${D}" DESTDIR="${D}" install
+
+ dodoc AUTHORS ChangeLog* NEWS README RELNOTE
+ if use emacs; then
+ elisp-install uim-el emacs/*.elc || die "elisp-install failed!"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \
+ || die "elisp-site-file-install failed!"
+ fi
+
+ find "${ED}/usr/$(get_libdir)/uim" -name '*.la' -exec rm {} +
+ use static-libs || find "${ED}" -name '*.la' -exec rm {} +
+
+ sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-uim" > "${T}/uim.conf" || die "sed failed!"
+ insinto /etc/X11/xinit/xinput.d
+ doins "${T}/uim.conf"
+
+ # collision with dev-scheme/sigscheme, bug #330975
+ # find "${ED}" -name '*gcroots*' -delete || die
+
+ #rmdir "${ED}"/usr/share/doc/sigscheme || die
+}
+
+pkg_postinst() {
+ elog
+ elog "New input method switcher has been introduced. You need to set"
+ elog
+ elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE"
+ elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE"
+ elog "% XMODIFIERS=@im=uim ; export XMODIFIERS"
+ elog
+ elog "If you would like to use uim-anthy as default input method, put"
+ elog "(define default-im-name 'anthy)"
+ elog "to your ~/.uim."
+ elog
+ elog "All input methods can be found by running uim-im-switcher-gtk, "
+ elog "uim-im-switcher-gtk3 or uim-im-switcher-qt4."
+ elog
+ elog "If you upgrade from a version of uim older than 1.4.0,"
+ elog "you should run revdep-rebuild."
+
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ if use emacs; then
+ elisp-site-regen
+ echo
+ elog "uim is autoloaded with Emacs with a minimal set of features:"
+ elog "There is no keybinding defined to call it directly, so please"
+ elog "create one yourself and choose an input method."
+ elog "Integration with LEIM is not done with this ebuild, please have"
+ elog "a look at the documentation how to achieve this."
+ fi
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use emacs && elisp-site-regen
+}
diff --git a/app-i18n/uim/uim-1.8.6-r2.ebuild b/app-i18n/uim/uim-1.8.6-r2.ebuild
new file mode 100644
index 000000000000..bd5220cb72cc
--- /dev/null
+++ b/app-i18n/uim/uim-1.8.6-r2.ebuild
@@ -0,0 +1,227 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit autotools eutils multilib elisp-common gnome2-utils
+
+DESCRIPTION="Simple, secure and flexible input method library"
+HOMEPAGE="https://github.com/uim/uim/"
+SRC_URI="https://uim.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="BSD GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
+IUSE="+anthy canna curl eb emacs expat libffi gtk gtk3 kde libedit libnotify libressl m17n-lib ncurses nls qt4 skk sqlite ssl static-libs test unicode X xft l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW"
+
+RESTRICT="test"
+
+REQUIRED_USE="gtk? ( X ) qt4? ( X )"
+
+RDEPEND="X? (
+ x11-libs/libX11
+ x11-libs/libXft
+ x11-libs/libXt
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXext
+ x11-libs/libXrender
+ )
+ anthy? (
+ unicode? ( >=app-i18n/anthy-8622 )
+ !unicode? ( app-i18n/anthy )
+ )
+ canna? ( app-i18n/canna )
+ curl? ( >=net-misc/curl-7.16.4 )
+ eb? ( dev-libs/eb )
+ emacs? ( virtual/emacs )
+ expat? ( dev-libs/expat )
+ libffi? ( virtual/libffi )
+ gtk? ( >=x11-libs/gtk+-2.4:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ kde? ( kde-frameworks/kdelibs:4 )
+ libedit? ( dev-libs/libedit )
+ libnotify? ( >=x11-libs/libnotify-0.4 )
+ m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 )
+ ncurses? ( sys-libs/ncurses:0= )
+ nls? ( virtual/libintl )
+ qt4? ( dev-qt/qtgui:4[qt3support] )
+ skk? ( app-i18n/skk-jisyo )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ !dev-scheme/sigscheme"
+# scim? ( >=app-i18n/scim-1.3.0 ) # broken
+# wnn? ( app-i18n/wnn )
+
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ >=sys-devel/gettext-0.15
+ kde? ( dev-util/cmake )
+ X? (
+ x11-proto/xextproto
+ x11-proto/xproto
+ )"
+
+RDEPEND="${RDEPEND}
+ X? (
+ media-fonts/font-sony-misc
+ l10n_ja? ( || ( media-fonts/font-jis-misc media-fonts/intlfonts ) )
+ l10n_ko? ( || ( media-fonts/font-daewoo-misc media-fonts/intlfonts ) )
+ l10n_zh-CN? ( || ( media-fonts/font-isas-misc media-fonts/intlfonts ) )
+ l10n_zh-TW? ( media-fonts/intlfonts )
+ )"
+# test? ( dev-scheme/gauche )
+
+SITEFILE=50${PN}-gentoo.el
+
+pkg_setup() {
+ strip-linguas fr ja ko
+ if [[ -z "${LINGUAS}" ]]; then
+ # no linguas set, using the default one
+ LINGUAS=" "
+ fi
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-1.6.0-gentoo.patch \
+ "${FILESDIR}"/${PN}-1.5.4-zhTW.patch \
+ "${FILESDIR}"/${P}-libressl.patch
+
+ # bug 275420
+ sed -i -e "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac || die "sed failed!"
+
+ AT_NO_RECURSIVE=1 eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if (use gtk || use gtk3) && (use anthy || use canna) ; then
+ myconf="${myconf} --enable-dict"
+ else
+ myconf="${myconf} --disable-dict"
+ fi
+
+ if use gtk || use gtk3 || use qt4 ; then
+ myconf="${myconf} --enable-pref"
+ else
+ myconf="${myconf} --disable-pref"
+ fi
+
+ if use anthy ; then
+ if use unicode ; then
+ myconf="${myconf} --with-anthy-utf8"
+ else
+ myconf="${myconf} --with-anthy"
+ fi
+ else
+ myconf="${myconf} --without-anthy"
+ fi
+
+ if use libnotify ; then
+ myconf="${myconf} --enable-notify=libnotify"
+ fi
+
+ econf $(use_with X x) \
+ $(use_with canna) \
+ $(use_with curl) \
+ $(use_with eb) \
+ $(use_enable emacs) \
+ $(use_with emacs lispdir "${SITELISP}") \
+ $(use_with expat) \
+ $(use_with libffi ffi) \
+ --disable-gnome-applet \
+ $(use_with gtk gtk2) \
+ $(use_with gtk3) \
+ $(use_with libedit) \
+ --disable-kde-applet \
+ $(use_enable kde kde4-applet) \
+ $(use_with m17n-lib m17nlib) \
+ $(use_enable ncurses fep) \
+ $(use_enable nls) \
+ --without-qt \
+ --without-qt-immodule \
+ $(use_with qt4 qt4) \
+ $(use_with qt4 qt4-immodule) \
+ $(use_enable qt4 qt4-qt3support) \
+ $(use_with skk) \
+ $(use_with sqlite sqlite3) \
+ $(use_enable ssl openssl) \
+ $(use_enable static-libs static) \
+ $(use_with xft) \
+ ${myconf}
+}
+
+src_compile() {
+ default
+
+ if use emacs; then
+ cd emacs
+ elisp-compile *.el || die "elisp-compile failed!"
+ fi
+}
+
+src_install() {
+ # parallel make install b0rked, bug #222677
+ emake -j1 INSTALL_ROOT="${D}" DESTDIR="${D}" install
+
+ dodoc AUTHORS ChangeLog* NEWS README RELNOTE
+ if use emacs; then
+ elisp-install uim-el emacs/*.elc || die "elisp-install failed!"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \
+ || die "elisp-site-file-install failed!"
+ fi
+
+ find "${ED}/usr/$(get_libdir)/uim" -name '*.la' -exec rm {} +
+ use static-libs || find "${ED}" -name '*.la' -exec rm {} +
+
+ sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-uim" > "${T}/uim.conf" || die "sed failed!"
+ insinto /etc/X11/xinit/xinput.d
+ doins "${T}/uim.conf"
+
+ # collision with dev-scheme/sigscheme, bug #330975
+ # find "${ED}" -name '*gcroots*' -delete || die
+
+ #rmdir "${ED}"/usr/share/doc/sigscheme || die
+}
+
+pkg_postinst() {
+ elog
+ elog "New input method switcher has been introduced. You need to set"
+ elog
+ elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE"
+ elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE"
+ elog "% XMODIFIERS=@im=uim ; export XMODIFIERS"
+ elog
+ elog "If you would like to use uim-anthy as default input method, put"
+ elog "(define default-im-name 'anthy)"
+ elog "to your ~/.uim."
+ elog
+ elog "All input methods can be found by running uim-im-switcher-gtk, "
+ elog "uim-im-switcher-gtk3 or uim-im-switcher-qt4."
+ elog
+ elog "If you upgrade from a version of uim older than 1.4.0,"
+ elog "you should run revdep-rebuild."
+
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ if use emacs; then
+ elisp-site-regen
+ echo
+ elog "uim is autoloaded with Emacs with a minimal set of features:"
+ elog "There is no keybinding defined to call it directly, so please"
+ elog "create one yourself and choose an input method."
+ elog "Integration with LEIM is not done with this ebuild, please have"
+ elog "a look at the documentation how to achieve this."
+ fi
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use emacs && elisp-site-regen
+}
diff --git a/app-i18n/unicode-cldr/Manifest b/app-i18n/unicode-cldr/Manifest
new file mode 100644
index 000000000000..f05954220d59
--- /dev/null
+++ b/app-i18n/unicode-cldr/Manifest
@@ -0,0 +1,3 @@
+DIST unicode-cldr-common-31.0.1.zip 16370865 SHA256 02dcc30b80add24b384f5d9a116f26749f7485a39d2ea79dded970bf31f9d4d9 SHA512 6ef4a73b31bde5dead5af9145e5befa5969e9449b4072c94c5370c979db54e3072ec5bf15f54152045da329bf4382e54edb532c0ec77a2ce451bacc8778b73bc WHIRLPOOL 6252f6133cf39ef2ea5db47d9e417ab171c62c16d86b45c05f5ab859ed51dcd19778514b05878127c61b1bfa06dd95ba2bdbe7c1334079fc7caeb696df550759
+EBUILD unicode-cldr-31.0.1.ebuild 488 SHA256 92b6cf8ee757b56f800f9268621b0bed364b32f153c708835152fe48d5f26adb SHA512 44e9c84ec7aefd2d2f0237d5c5905235c2b9d56fd18cd5676a39a164a04cdf46195eda665e4cee75aadc45b08c135fcf2931e29f1d623fb9696ee9652f22de1f WHIRLPOOL 712d895f96b927e37469950d917e10007d6d3d7f5fe044921ad60e5e9060e3e6770430c915edc6d8538e4dfcc3ff26025eba56afb54c5f5e385cfde01c9156d9
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/unicode-cldr/metadata.xml b/app-i18n/unicode-cldr/metadata.xml
new file mode 100644
index 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/unicode-cldr/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/unicode-cldr/unicode-cldr-31.0.1.ebuild b/app-i18n/unicode-cldr/unicode-cldr-31.0.1.ebuild
new file mode 100644
index 000000000000..95ba5021fd72
--- /dev/null
+++ b/app-i18n/unicode-cldr/unicode-cldr-31.0.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="Unicode Common Locale Data Repository"
+HOMEPAGE="http://cldr.unicode.org/"
+SRC_URI="http://${PN%-*}.org/Public/${PN/*-}/${PV}/core.zip -> ${PN}-common-${PV}.zip"
+
+LICENSE="unicode"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+S="${WORKDIR}"
+
+src_install() {
+ insinto /usr/share/${PN/-//}
+ doins -r common
+}
diff --git a/app-i18n/unicode-data/Manifest b/app-i18n/unicode-data/Manifest
new file mode 100644
index 000000000000..d84a50b7504e
--- /dev/null
+++ b/app-i18n/unicode-data/Manifest
@@ -0,0 +1,9 @@
+DIST unicode-data-10.0.0-UCD.zip 5991193 SHA256 cb26d649f8bac8b12f69e2fbcd77d1759ecdcd7c8e8f1c4385a9c5a36cf14891 SHA512 4e232ddd01c5c85175f29cbda61d6a87f274669a3184e885cb44410c26f25eee70da984b3f4798f8d6c304b05333e9245e2eb6e3830ee7b16b2f2e50d32c9ee0 WHIRLPOOL 7b6d0f5532e397290bc8a19d572bd76fbed07f80e17a525e42e6705f185db8a62ea775a3bf045ab3c534b86a8762cb99da1148747b1938cac85c38771aca2678
+DIST unicode-data-10.0.0-Unihan.zip 6632227 SHA256 01232063a8529636cf155ba7a1dbad329cb2e63acde83a3d607b5eafa8f933a5 SHA512 377f53ddc9ae514e8866c0e6b79f9b1d3613fad5a7e29c57a06baf8be84cbada0703b1c660401e7dbd2bb861b09fa9159b77322f42b34f5a0dc0d8f70ac4db12 WHIRLPOOL 21dfd6496d2233a632af88ab76c2587f6a5cddaea90ac110e36136ab3c70c655222e1726357aa5fe88b386bf272fb80cbf920a94ef841097649808aa96ad7c76
+DIST unicode-data-9.0.0-UCD.zip 5655592 SHA256 df9e028425816fd5117eaea7173704056f88f7cd030681e457c6f3827f9390ec SHA512 e9bdf8ed6647b4d0bd83c6fcd885cb450fddbf84dac376e9771bddbb7ee1e8ea1ca8c2ca79e23832c26a4819dd62f86fcfa6eb6a1fcc7294185f5bc78be8fa2a WHIRLPOOL a310ca7d6ef780088bb741bd749e4bd2dba6330ac87d23b9a0f2c196e27a36a479069348d48fd2ca0a1c92e4fcfb6d45b7ce7f2cffed06e8391f8e792bd11e81
+DIST unicode-data-9.0.0-Unihan.zip 6558824 SHA256 6afdd48fb3c5d79a527ed27ce2582b2f684c09e16f5d0837fe7e5b0204f46362 SHA512 9856d30afe5d7b0b088bde36c12431eae267992b315944ca8a7ddb3559adee7474fedd2d0d6b22716439f9cddad573a4bb45c6209036b0066a85fbd19412852e WHIRLPOOL 91eeb47a3c933fdafb4277959a3aeeab72ca6f17e954ce6b65b378d36b94a821fd663ba56a67514e07ec3df3afa3bd1299803cee08ccfcd62b838721c0cdd8c1
+EBUILD unicode-data-10.0.0.ebuild 809 SHA256 60e12a402dbce11bfb649af2a07bfe536c3447cd768de514fd7ca9d8cadfa39e SHA512 76ad9fd0b75a7d1f3d553929402a1b1e0da8aa756e046bf91b9dfc084faf45a83903ff0f5744bcf917efdeb556cc8557846aad0c6a21749f1002f5eb5fd8165f WHIRLPOOL 773fc9bc470c4cab73da8e5677834de5abebedfaefc43273b44ff6d52a7a9e6503cfe4dfc421539a0636bd8e19f171da4e9b183c7f21ddcb48f874fdbe2a96b6
+EBUILD unicode-data-9.0.0.ebuild 800 SHA256 67b9b6d73d0fb25c7f7c449588af04e47563c7db3957119757587804a61b7883 SHA512 e47297daa5421946234c9878839dda124ac8b9c825c0c51b1594e9b683c1a0de74d8f96347a085e87b89fd571d0e3598493c7440e67ec582d866c6b01ec170e7 WHIRLPOOL eb40588716d48d1be06b5141de7c55c6e1b9c00f25d3f08e9fd258b173ce4258372bb666767cd6174f917a3a94de436596e52cf67002ca2e5b02d1b1dd8df158
+MISC ChangeLog 3907 SHA256 ee84eb7c7cc88c0c9b7bafcf6f2b57f57505ec0e2d922771f61c6716f71dad34 SHA512 d80c6e00ced518c7094bac14d3950d1af1c5a72583a062f2ed072373f2ef1f95c0557339dca250614e4eb7bed881783280bd75a4a86a7d2164dd712c3f8cbd00 WHIRLPOOL c1aa32f911df27214802945df340c342a8632df788eacc38367ad575e728b1d675c08492769b98679ecf9f12aacd6fff08ad631c83838f82d93c05c976e02199
+MISC ChangeLog-2015 5029 SHA256 844c003a0e1ccc2a7316d3bd24f552a0e0a8ecaa2bd5b2e2bf6c5d1a8af0b20b SHA512 5fa79bb59cc073f9b909729b16d67064783381685644f44e5a7eb0c85cac6b178b1ba48c156bdc7acffcd3d3dfebdb810bb65c368a5508184e106dca6bc97797 WHIRLPOOL d83537c007e4146661de41727fceacbc80429c0aba5ab409b02ea0252d1089f1eabc7c5d4614b677afcd4f6e865c73718724990b55300e5a628a2336f26e4c21
+MISC metadata.xml 238 SHA256 cf46d2323e696a19598784249ea645ab43f8ceb10f74695b01f22b28a5426142 SHA512 5ecba42349e9c39d750f007ac73f6100b85cf54174805a6673b0373434ea83c0f2b64c8a5b167e1fdd5a6c55d366f50cb9ba5a367b9d6dd8d53d797b8839fd5e WHIRLPOOL 22b60503d853ec644c97f4dd9c0627d0297224b22d9ee0ad5ba4597118210c3918510e3cf763e4ebd9b1f4fcd6c339de2d8c0e164cdc614b4c04fee6b7475f24
diff --git a/app-i18n/unicode-data/metadata.xml b/app-i18n/unicode-data/metadata.xml
new file mode 100644
index 000000000000..cc081897d48c
--- /dev/null
+++ b/app-i18n/unicode-data/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 type="project">
+ <email>fonts@gentoo.org</email>
+ <name>Fonts</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/unicode-data/unicode-data-10.0.0.ebuild b/app-i18n/unicode-data/unicode-data-10.0.0.ebuild
new file mode 100644
index 000000000000..eb07fea7ebc3
--- /dev/null
+++ b/app-i18n/unicode-data/unicode-data-10.0.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Unicode data from unicode.org"
+HOMEPAGE="http://www.unicode.org/ucd/"
+SRC_URI="http://www.unicode.org/Public/zipped/${PV}/UCD.zip -> ${P}-UCD.zip
+ http://www.unicode.org/Public/zipped/${PV}/Unihan.zip -> ${P}-Unihan.zip"
+
+LICENSE="unicode"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+ # Unihan.zip needs to be installed as a zip for reverse deps
+ # https://bugzilla.gnome.org/show_bug.cgi?id=768210
+ unpack ${P}-UCD.zip
+}
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins -r "${S}"/*
+ newins "${DISTDIR}"/${P}-Unihan.zip Unihan.zip
+}
diff --git a/app-i18n/unicode-data/unicode-data-9.0.0.ebuild b/app-i18n/unicode-data/unicode-data-9.0.0.ebuild
new file mode 100644
index 000000000000..ec2cabb7b45f
--- /dev/null
+++ b/app-i18n/unicode-data/unicode-data-9.0.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Unicode data from unicode.org"
+HOMEPAGE="http://www.unicode.org/ucd/"
+SRC_URI="http://www.unicode.org/Public/zipped/${PV}/UCD.zip -> ${P}-UCD.zip
+ http://www.unicode.org/Public/zipped/${PV}/Unihan.zip -> ${P}-Unihan.zip"
+
+LICENSE="unicode"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+ # Unihan.zip needs to be installed as a zip for reverse deps
+ # https://bugzilla.gnome.org/show_bug.cgi?id=768210
+ unpack ${P}-UCD.zip
+}
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins -r "${S}"/*
+ newins "${DISTDIR}"/${P}-Unihan.zip Unihan.zip
+}
diff --git a/app-i18n/unicode-emoji/Manifest b/app-i18n/unicode-emoji/Manifest
new file mode 100644
index 000000000000..c1c168eddf22
--- /dev/null
+++ b/app-i18n/unicode-emoji/Manifest
@@ -0,0 +1,7 @@
+DIST unicode-emoji-data-5.0.txt 35041 SHA256 ae7bb765f0ae7ccfdcb5d8a40ebcabc93202597d92391c698f82f99d73f94e86 SHA512 3b68cb709700cf871f545f357a54864c6cf1dee2ee7046f42d895c0811a75129206edf2c0617a5f1183417066f0fdf2e74086e880a65826590aac9d1d31f568f WHIRLPOOL fd84a658704ec45ea92118a113d350e45a4d6e79cf6f630fe1fadb039844df1dbc3303a7b0214aaf2705a68eb780265db384031e5c8792179bbcd70f97c96ef0
+DIST unicode-emoji-sequences-5.0.txt 103383 SHA256 617d0df67f9e1f294a17a9525ff6323d2a9c9403c80e3ac16b8ad65adc897125 SHA512 729bbf862b8d7ff6225b7416a0a464592f89040e4c27674c0d9afb6e0d997162c0a336c2a1e9de41313dcd45b504b3b27915ee8c67e45186c942c2996076d554 WHIRLPOOL 3ab40270c5a5c83ad914ae578cf5d9e87783698f63c71895290207790619fe005b28415f8f5fa7275f6aa09cf1eaf8994c39fa5c0ef3f11393b49cb81cc6042e
+DIST unicode-emoji-test-5.0.txt 341770 SHA256 fcb5b1dab310dc8210af46372828453431fa6ecdafdae8e051cbb68eb698380c SHA512 368483fadaa2c87e1197d0b0351c1e68b4244e73ab93542d73df7169d1dfcdf98b0fc1da8a969645f6a2d45db1f2db5f75ba919dd05f1012fbc2f3fb524f5c5d WHIRLPOOL b8a52abc00ea6ea3a6c2d029289562189b2771a4d16e060300422cffb17f7caea65ec25f2642bd4a035bfdadb5e360dac035bd1872b438050032285d595b3502
+DIST unicode-emoji-variation-sequences-5.0.txt 36120 SHA256 0609bcfc939a5799dd93f4a16b066210482d106dbf7827efbdf5ea83d7238ff2 SHA512 484509ed56c5ea5e73160e211643a938d3fa08474281d316e5ed2d2346f38f5140a147454a9cb81c9f463d6c62befd98a8b70b695ee50effdbcfc6085dcaa520 WHIRLPOOL 86f1a49b47d83f70117726c71468806cd3094e13d21fbbe83de2e8f8d22bc0cd8c8304c178c50d426d6c46ccb9365a702ec3cd649650bf966489c523169e901d
+DIST unicode-emoji-zwj-sequences-5.0.txt 115207 SHA256 b8080a9b282289d1ba302a2d48a6b01ebb9b4766a6864a037a69cb6acefefb99 SHA512 26398ac77035d2f5df7a61f4c2a8a098af8e551576c9c9f157379c05aa8f75de5a0827c9bc476eb20f32c38b0c3605f6a1d9e07fe27f0e75df359ed2a7e6d25b WHIRLPOOL 4fb5d0ab0ba3f8285f14e8651ea40f44d27afdf957ccaa4fe9c06517a25e435bde422a38791a4bd02ad68963a05087841f363e4c39eaa40ce2c37b2b548a8dd4
+EBUILD unicode-emoji-5.0.ebuild 870 SHA256 1fa757e98a791df2b9be3c351b6a78197ce29d3afcc1b7614dcd9bf5a3bc463d SHA512 64cb7b8923ba6d22d06094c461a8bea633d0f994e9de20e6c6d2be671f91abf6f3102f263ad6524e1ef505d1a1e1a8d569dd3111ccc9e0475a6f7bb51567ab92 WHIRLPOOL 9d11fe1eb30bdcef413bb13a29bf90c8e5288ea78b40f8077dba5db0f81d369e6851f4fef0590012e29da59a76f07354106cc9ae54778ce104bec341dc362d0d
+MISC metadata.xml 240 SHA256 4351b96b5a18595fae67161f1207f22bbf99e9a2235b95b68975cfc9f5baff54 SHA512 12aaa73d9b690de68a5c7b20e214ceb099efa87884b784eafd994f26032b44dcb66e7feac8a5b1df7f349ac05c5a198a7593dff2cc686de158cb21e4c54f38dd WHIRLPOOL d279940dd88c4b1caa478907576d5732c8376e3f99830950c6c18c63dca78c7d0ec1983660e5cbd4da0133b961ef38dc8460650cb48467298542e04005cffc2c
diff --git a/app-i18n/unicode-emoji/metadata.xml b/app-i18n/unicode-emoji/metadata.xml
new file mode 100644
index 000000000000..e1a49f498885
--- /dev/null
+++ b/app-i18n/unicode-emoji/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/unicode-emoji/unicode-emoji-5.0.ebuild b/app-i18n/unicode-emoji/unicode-emoji-5.0.ebuild
new file mode 100644
index 000000000000..412847b2a3c4
--- /dev/null
+++ b/app-i18n/unicode-emoji/unicode-emoji-5.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="UTR #51 Unicode Emoji"
+HOMEPAGE="http://unicode.org/emoji"
+BASE_URI="http://${PN%-*}.org/Public/${PN/*-}/${PV}"
+SRC_URI="${BASE_URI}/${PN/*-}-data.txt -> ${PN}-data-${PV}.txt
+ ${BASE_URI}/${PN/*-}-sequences.txt -> ${PN}-sequences-${PV}.txt
+ ${BASE_URI}/${PN/*-}-test.txt -> ${PN}-test-${PV}.txt
+ ${BASE_URI}/${PN/*-}-variation-sequences.txt -> ${PN}-variation-sequences-${PV}.txt
+ ${BASE_URI}/${PN/*-}-zwj-sequences.txt -> ${PN}-zwj-sequences-${PV}.txt"
+
+LICENSE="unicode"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+ :
+}
+
+src_install() {
+ local a
+ insinto /usr/share/${PN/-//}
+ for a in ${A}; do
+ newins "${DISTDIR}"/${a} $(echo ${a} | sed "s/${PN%-*}-\(.*\)-${PV}/\1/")
+ done
+}
diff --git a/app-i18n/xcin/Manifest b/app-i18n/xcin/Manifest
new file mode 100644
index 000000000000..a15524ba26d3
--- /dev/null
+++ b/app-i18n/xcin/Manifest
@@ -0,0 +1,10 @@
+AUX xcin-2.5.3_pre3-glibc-2.10.patch 5024 SHA256 f5887cb991098495d783fa72acf419bc6edee2dd7f7c4068570bb8386b812272 SHA512 5c6166b9621b0a58ee516a3a0566a36b550b0652c426589feb2839247dbebc76285bbb958f8f4524c6536f9fb84b248f70e54310e7eb320158235e86cd9ce1dc WHIRLPOOL f484765fbae7a66b730425e188407837cb312d950e5b4ec5a1e3a94e42d8468665f2978f24127c237f27bdf92ac7b13ef923ed831aab942c5c6aba26de20b5c3
+AUX xcin-2.5.3_pre3-ldflags.patch 4525 SHA256 d774054e16b145662347c8aa7f098b54d76f3fc0725162892034e8114357e9f0 SHA512 369c68e187b17105fbcbdefafd753b56f014192a02c5a2a6b30e7f220564e3d838f433598b1f2ef37530aac7c5d6e43817c607ac473876a4b00da5dede9db87e WHIRLPOOL 391f0ba83e523a60bcb284509fd84f3662ae455848c143c6781684b55553d69282418ea85fa5ee9365e93ada8e3a292f4dcce09f6a9dd3aaeead81ef2348dc76
+AUX xcin-2.5.3_pre3-make.patch 3886 SHA256 3ba14c11aaa5d5370966bd38a816e5b53ea5e997acbb4b009493232828d17083 SHA512 033811b89842369740af7df884d29acd52a9c47fa773e087226116d6cbf7d9127cc1bfc7de3b511a9a01d7135c74d17860d0a782ba6c32ee6220b828b3055e6c WHIRLPOOL 29e01ee2be5a8f9bdc9e7e223fd7453799d5225d1b7c0fd991a131cd9a07ba29bcd525d375866caf30ca58ab8c23bddca2eee6c3c96d7d0704ba7a1bc92d74f6
+DIST xcin_2.5.2.99.pre2+cvs20030224-1.4.diff.gz 1321937 SHA256 0497739e131da49169fe75f9155bb924cdc31c9be6d8ebd3eedb4afc935f71ad SHA512 d1c6a667a8dcf996e02d694a0ff73eca409f542ce11b0e4d8563ed04c62e12c1d8feb6307153c5cfe982e66848b414dd65fc23d022ccc54cf2a0e3978b8c33e5 WHIRLPOOL bf730e7031bdd6a47f55920b781de9a79d95bc13d963ecbdeee6524c303894fc942f0db6cbcb31ee57831f95c26746cef7a20f46ca60e4c7d2f8c27223ad306e
+DIST xcin_2.5.2.99.pre2+cvs20030224.orig.tar.gz 1530591 SHA256 a86f0e5aa877d579731ac514a0072beaf3fecd6f181f068be29f091d6281e9ae SHA512 1068a9cf7f3b7ff3c2ff7e0443e487e660f3ec8c7f0114f1ad614fb1c7a73d15613ce0c198514816f00afaaa22434660ed11d329413bf010aa52b27513a5ac14 WHIRLPOOL fa5913ccd66bd29757d86d95c70be3704cf03753c3b601168ac36888c0e709f1ce2db66f56152c0daad734e49ac70dc1f7ce9d8ecf1d13d0821ed7833ac1d7a5
+EBUILD xcin-2.5.3_pre3-r2.ebuild 1586 SHA256 59ff0ee66cc949495e9d0e6389b441d32d5a6c64b4aa246ee0078393db4e9bb2 SHA512 ade7bdba16000402416297079676bcf7522c9747ec5267e32b5aa5159a0daa7076fdd551216da8f389b4a5874677b72d2dc581dc8cceef5f74096ba10862af6b WHIRLPOOL dfb3e5c2d1a5b8260bc0e3b73d663cb77716f9e166fce68bf29c0ccaa32758fb13dc59441d36aeada6de52f768ccd927b288780cda001eea16574a127bc6211f
+EBUILD xcin-2.5.3_pre3-r3.ebuild 1785 SHA256 efca0fb3b9d8efe28ae16e5684ab560868cbc3bc5dc6bcd50f11e271dccfd1f3 SHA512 229f3107ffedb76d20d9fccb19a6be4c86393e8b5ed382d1ef44c45148487210192b96f3dffb8c6a3aa0e8612380bb3e24cb7bec2fbe986f8cb21c7e8bce646e WHIRLPOOL ca3af3e1ee5a8e53c3e38c39fc00fa3a213691ee5e3af926425f45199336e03330a925ecdb242ddc7fe9e6b2a3e648018c591629d1c157d2c261c99cfba8fe88
+MISC ChangeLog 2614 SHA256 32935a0f330a0b49b8cd7aa74bb7aaa8bfd6586e206ae9702ff4972d599ac499 SHA512 ec89645eb77d9c32f6eba3b8abd874d14deed659b14a2182c9735e8b96cb135c8ae70d8e55b24b498c136f0c3695e3ca3b674478b3cec15ace8c393e704669ec WHIRLPOOL 51cb385468ef84ea3e791593ebe2fd0e553cb684d5a18c403891666e741dc6e0890c023216e04600a1cb0152134b1db6249b26be1de76c8b414640936df2e713
+MISC ChangeLog-2015 3074 SHA256 aa4192ffea891c46619ad9b4bbdfa445caf0d65284d21fd99cb83d32f9e827a6 SHA512 11c0a4831633736a2521e90a1bf3e6ae08e2a688e69372fd5d6cf167d7250172994acb7a084964334928331e6f207fc363790f22e6b76537f50a1aa20c245279 WHIRLPOOL 57e22ac61009335e5d4b5194e6851eb4dd33a5862bed309ad886a217bd9c16cee73c0f686ad1bd416fa42fec7e70e2aaa4d8e3f649321915a1dddcca5f2e1b10
+MISC metadata.xml 230 SHA256 5fc421627b578ee2d1317320525119c0b406026597bb1d054f96254a241bf96a SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 WHIRLPOOL b3c1363540645200abd5bf0b5b7fb3cae0b738bfd359f7b13b56d97650f9381fccede1e3f867dbc736461ee7c7906725a3c53eabd9ac99929d5c7c520a831082
diff --git a/app-i18n/xcin/files/xcin-2.5.3_pre3-glibc-2.10.patch b/app-i18n/xcin/files/xcin-2.5.3_pre3-glibc-2.10.patch
new file mode 100644
index 000000000000..3d472f95b0f4
--- /dev/null
+++ b/app-i18n/xcin/files/xcin-2.5.3_pre3-glibc-2.10.patch
@@ -0,0 +1,110 @@
+diff -ur xcin-2.5.2.99.pre2+cvs20030224.orig/doc/En/internal/module.En xcin-2.5.2.99.pre2+cvs20030224/doc/En/internal/module.En
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/doc/En/internal/module.En 2000-12-13 18:55:41.000000000 +0200
++++ xcin-2.5.2.99.pre2+cvs20030224/doc/En/internal/module.En 2009-12-29 18:09:20.000000000 +0200
+@@ -481,13 +481,13 @@
+ char *lc_ctype; /* LC_CTYPE locale category name */
+ char *lc_messages; /* LC_MESSAGES locale category name */
+ char *encoding; /* encoding name */
+- } locale_t;
++ } xcin_locale_t;
+
+ typedef struct {
+ char *rcfile; /* rcfile name. */
+ char *default_dir; /* Default module directory. */
+ char *user_dir; /* User data directory. */
+- locale_t locale; /* Locale name. */
++ xcin_locale_t locale; /* Locale name. */
+ } xcin_rc_t;
+
+ The return value of this function is True when excuting successfully,
+diff -ur xcin-2.5.2.99.pre2+cvs20030224.orig/doc/internal/module xcin-2.5.2.99.pre2+cvs20030224/doc/internal/module
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/doc/internal/module 2002-10-29 13:53:42.000000000 +0200
++++ xcin-2.5.2.99.pre2+cvs20030224/doc/internal/module 2009-12-29 18:09:24.000000000 +0200
+@@ -423,13 +423,13 @@
+ char *lc_ctype; /* LC_CTYPE locale category name */
+ char *lc_messages; /* LC_MESSAGES locale category name */
+ char *encoding; /* encoding name */
+- } locale_t;
++ } xcin_locale_t;
+
+ typedef struct {
+ char *rcfile; /* rcfile name. */
+ char *default_dir; /* Default module directory. */
+ char *user_dir; /* User data directory. */
+- locale_t locale; /* Locale name. */
++ xcin_locale_t locale; /* Locale name. */
+ } xcin_rc_t;
+
+ ¥»¨ç¦¡­Y¦¨¥\¶Ç¦^ True, ¥¢±Ñ¶Ç¦^ False¡C
+diff -ur xcin-2.5.2.99.pre2+cvs20030224.orig/src/include/xcintool.h xcin-2.5.2.99.pre2+cvs20030224/src/include/xcintool.h
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/src/include/xcintool.h 2002-10-29 13:53:42.000000000 +0200
++++ xcin-2.5.2.99.pre2+cvs20030224/src/include/xcintool.h 2009-12-29 18:09:01.000000000 +0200
+@@ -202,12 +202,12 @@
+ char *lc_messages;
+ char *encoding;
+ int encid, locid;
+-} locale_t;
++} xcin_locale_t;
+
+ typedef struct {
+ int argc; /* Command line arguement list */
+ char **argv;
+- locale_t locale; /* Locale name. */
++ xcin_locale_t locale; /* Locale name. */
+ char *usrhome; /* User home directory. */
+ char *default_dir; /* Default module directory. */
+ char *user_dir; /* User data directory. */
+diff -ur xcin-2.5.2.99.pre2+cvs20030224.orig/src/util/cin2tab/cin2tab.c xcin-2.5.2.99.pre2+cvs20030224/src/util/cin2tab/cin2tab.c
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/src/util/cin2tab/cin2tab.c 2009-12-29 18:07:44.000000000 +0200
++++ xcin-2.5.2.99.pre2+cvs20030224/src/util/cin2tab/cin2tab.c 2009-12-29 18:09:12.000000000 +0200
+@@ -233,7 +233,7 @@
+ }
+
+ static void
+-cin2tab_setlocale(locale_t *locale)
++cin2tab_setlocale(xcin_locale_t *locale)
+ {
+ char loc_return[128], enc_return[128];
+ int ret;
+diff -ur xcin-2.5.2.99.pre2+cvs20030224.orig/src/xcin_main.c xcin-2.5.2.99.pre2+cvs20030224/src/xcin_main.c
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/src/xcin_main.c 2003-01-20 19:50:05.000000000 +0200
++++ xcin-2.5.2.99.pre2+cvs20030224/src/xcin_main.c 2009-12-29 18:09:06.000000000 +0200
+@@ -56,7 +56,7 @@
+ static void
+ xcin_setlocale(void)
+ {
+- locale_t *locale = &(xcin_core.xcin_rc.locale);
++ xcin_locale_t *locale = &(xcin_core.xcin_rc.locale);
+ char loc_return[128], enc_return[128];
+
+ set_perr("xcin");
+@@ -332,7 +332,7 @@
+ char *cmd[2], value[256], *s, loc_buf[64], *loc_name=NULL;
+ char *fmt = N_("%s:\n\tlocale section \"%s\": %s: value not specified.\n");
+ xcin_rc_t *xrc = &(xcin_core.xcin_rc);
+- locale_t *locale = &(xcin_core.xcin_rc.locale);
++ xcin_locale_t *locale = &(xcin_core.xcin_rc.locale);
+ /*
+ * Determine the true locale setting name.
+ */
+@@ -409,7 +409,7 @@
+ char *cmd[2], value[256], *s, *s1, objname[100], objenc[100];
+ char *fmt = N_("%s:\n\tIM section \"%s\": %s: %s.\n");
+ xcin_rc_t *xrc = &(xcin_core.xcin_rc);
+- locale_t *locale = &(xcin_core.xcin_rc.locale);
++ xcin_locale_t *locale = &(xcin_core.xcin_rc.locale);
+ int setkey;
+ /*
+ * Go to each CINPUT sub-node and read important keywords.
+diff -ur xcin-2.5.2.99.pre2+cvs20030224.orig/src/xim.c xcin-2.5.2.99.pre2+cvs20030224/src/xim.c
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/src/xim.c 2009-12-29 18:07:44.000000000 +0200
++++ xcin-2.5.2.99.pre2+cvs20030224/src/xim.c 2009-12-29 18:09:06.000000000 +0200
+@@ -1032,7 +1032,7 @@
+ XIMTriggerKeys on_keys;
+ XIMEncodings encodings;
+ Window mainwin;
+- locale_t *locale;
++ xcin_locale_t *locale;
+ char* imlocale = NULL;
+ int i;
+
diff --git a/app-i18n/xcin/files/xcin-2.5.3_pre3-ldflags.patch b/app-i18n/xcin/files/xcin-2.5.3_pre3-ldflags.patch
new file mode 100644
index 000000000000..374490848980
--- /dev/null
+++ b/app-i18n/xcin/files/xcin-2.5.3_pre3-ldflags.patch
@@ -0,0 +1,96 @@
+diff -Naur xcin-2.5.2.99.pre2+cvs20030224.orig/src/Cinput/bimsphone/Makefile.in xcin-2.5.2.99.pre2+cvs20030224/src/Cinput/bimsphone/Makefile.in
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/src/Cinput/bimsphone/Makefile.in 2001-11-11 21:50:46.000000000 +0900
++++ xcin-2.5.2.99.pre2+cvs20030224/src/Cinput/bimsphone/Makefile.in 2011-11-21 01:08:21.736965412 +0900
+@@ -15,7 +15,7 @@
+
+ $(TARGET): $(OBJ)
+ $(LIBTOOL) --mode=link $(CC) -module -avoid-version -o $(TARGET) \
+- $(OBJ) $(LIB) -rpath $(moddir)
++ $(OBJ) $(LDFLAGS) $(LIB) -rpath $(moddir)
+ include .depend
+
+ depend:
+diff -Naur xcin-2.5.2.99.pre2+cvs20030224.orig/src/Cinput/chewing/Makefile.in xcin-2.5.2.99.pre2+cvs20030224/src/Cinput/chewing/Makefile.in
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/src/Cinput/chewing/Makefile.in 2011-11-21 01:07:12.878761904 +0900
++++ xcin-2.5.2.99.pre2+cvs20030224/src/Cinput/chewing/Makefile.in 2011-11-21 08:32:24.024474064 +0900
+@@ -21,7 +21,7 @@
+
+ $(TARGET): $(OBJ)
+ $(LIBTOOL) --mode=link $(CC) -module -avoid-version -o $(TARGET) \
+- $(OBJ) $(LIB) -rpath $(moddir)
++ $(OBJ) $(LDFLAGS) $(LIB) -rpath $(moddir)
+ include .depend
+
+ sort_word: sort_word.c key2pho.c
+diff -Naur xcin-2.5.2.99.pre2+cvs20030224.orig/src/Cinput/gen_inp/Makefile.in xcin-2.5.2.99.pre2+cvs20030224/src/Cinput/gen_inp/Makefile.in
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/src/Cinput/gen_inp/Makefile.in 2001-11-11 21:50:46.000000000 +0900
++++ xcin-2.5.2.99.pre2+cvs20030224/src/Cinput/gen_inp/Makefile.in 2011-11-21 01:08:21.736965412 +0900
+@@ -15,7 +15,7 @@
+
+ $(TARGET): $(OBJ)
+ $(LIBTOOL) --mode=link $(CC) -module -avoid-version -o $(TARGET) \
+- $(OBJ) $(LIB) -rpath $(moddir)
++ $(OBJ) $(LDFLAGS) $(LIB) -rpath $(moddir)
+ include .depend
+
+ depend:
+diff -Naur xcin-2.5.2.99.pre2+cvs20030224.orig/src/Cinput/zh_hex/Makefile.in xcin-2.5.2.99.pre2+cvs20030224/src/Cinput/zh_hex/Makefile.in
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/src/Cinput/zh_hex/Makefile.in 2001-11-11 21:50:47.000000000 +0900
++++ xcin-2.5.2.99.pre2+cvs20030224/src/Cinput/zh_hex/Makefile.in 2011-11-21 01:08:21.736965412 +0900
+@@ -14,7 +14,7 @@
+
+ $(TARGET): $(OBJ)
+ $(LIBTOOL) --mode=link $(CC) -module -avoid-version -o $(TARGET) \
+- $(OBJ) -rpath $(moddir)
++ $(OBJ) $(LDFLAGS) -rpath $(moddir)
+ include .depend
+
+ depend:
+diff -Naur xcin-2.5.2.99.pre2+cvs20030224.orig/src/Makefile.in xcin-2.5.2.99.pre2+cvs20030224/src/Makefile.in
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/src/Makefile.in 2001-11-05 01:47:26.000000000 +0900
++++ xcin-2.5.2.99.pre2+cvs20030224/src/Makefile.in 2011-11-21 01:08:53.576059606 +0900
+@@ -26,7 +26,7 @@
+
+ $(BIN): subsys $(OBJ)
+ @$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -export-dynamic \
+- $(INC) $(DEFS) -o $(BIN) $(OBJ) $(LIB)
++ $(INC) $(DEFS) -o $(BIN) $(OBJ) $(LDFLAGS) $(LIB)
+ include .depend
+
+ subsys:
+diff -Naur xcin-2.5.2.99.pre2+cvs20030224.orig/src/lib/Makefile.in xcin-2.5.2.99.pre2+cvs20030224/src/lib/Makefile.in
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/src/lib/Makefile.in 2001-09-21 02:00:57.000000000 +0900
++++ xcin-2.5.2.99.pre2+cvs20030224/src/lib/Makefile.in 2011-11-21 01:08:21.736965412 +0900
+@@ -23,7 +23,7 @@
+
+ $(LXCIN_NAME): make_subdir
+ ( OBJS=`ls $(LXCIN_OBJ)`; \
+- $(LIBTOOL) --mode=link $(CC) -o $@ $$OBJS $(LIB) -rpath $(libdir) \
++ $(LIBTOOL) --mode=link $(CC) -o $@ $$OBJS $(LDFLAGS) $(LIB) -rpath $(libdir) \
+ -version-info $(CURRENT_VER):$(REVISION_VER):$(AGE_VER) )
+
+ make_subdir:
+diff -Naur xcin-2.5.2.99.pre2+cvs20030224.orig/src/util/cin2tab/Makefile.in xcin-2.5.2.99.pre2+cvs20030224/src/util/cin2tab/Makefile.in
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/src/util/cin2tab/Makefile.in 2001-11-05 01:47:29.000000000 +0900
++++ xcin-2.5.2.99.pre2+cvs20030224/src/util/cin2tab/Makefile.in 2011-11-21 01:08:21.736965412 +0900
+@@ -14,7 +14,7 @@
+ all: $(BIN)
+
+ $(BIN): $(OBJ)
+- $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(INC) $(DEFS) -o $(BIN) $(OBJ) $(LIB)
++ $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(INC) $(DEFS) -o $(BIN) $(OBJ) $(LDFLAGS) $(LIB)
+ include .depend
+
+ depend:
+diff -Naur xcin-2.5.2.99.pre2+cvs20030224.orig/src/util/testprog/Makefile.in xcin-2.5.2.99.pre2+cvs20030224/src/util/testprog/Makefile.in
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/src/util/testprog/Makefile.in 2002-01-01 22:49:17.000000000 +0900
++++ xcin-2.5.2.99.pre2+cvs20030224/src/util/testprog/Makefile.in 2011-11-21 08:33:44.547672718 +0900
+@@ -15,7 +15,7 @@
+ all: $(BIN)
+
+ $(BIN): $(OBJ)
+- $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJ) $(LIB)
++ $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJ) $(LDFLAGS) $(LIB)
+ include .depend
+
+ depend:
diff --git a/app-i18n/xcin/files/xcin-2.5.3_pre3-make.patch b/app-i18n/xcin/files/xcin-2.5.3_pre3-make.patch
new file mode 100644
index 000000000000..d5967c31476f
--- /dev/null
+++ b/app-i18n/xcin/files/xcin-2.5.3_pre3-make.patch
@@ -0,0 +1,118 @@
+diff -ur xcin-2.5.2.99.pre2+cvs20030224.orig/cin/big5/Makefile.in xcin-2.5.2.99.pre2+cvs20030224/cin/big5/Makefile.in
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/cin/big5/Makefile.in 2001-09-07 00:41:32.000000000 +0900
++++ xcin-2.5.2.99.pre2+cvs20030224/cin/big5/Makefile.in 2011-11-21 00:44:20.979695505 +0900
+@@ -9,43 +9,43 @@
+ all: all-$(OS_TYPE)
+
+ all-LINUX:
+- ( BIG5ENC=big5 BIG5HKENC=big5hkscs make -f Rules make-big5 make-big5hkscs )
++ ( BIG5ENC=big5 BIG5HKENC=big5hkscs $(MAKE) -f Rules make-big5 make-big5hkscs )
+
+ all-FREEBSD:
+- ( BIG5ENC=big5 make -f Rules make-big5 )
++ ( BIG5ENC=big5 $(MAKE) -f Rules make-big5 )
+
+ all-OPENBSD:
+- ( BIG5ENC=big5 make -f Rules make-big5 )
++ ( BIG5ENC=big5 $(MAKE) -f Rules make-big5 )
+
+ all-NETBSD:
+- ( BIG5ENC=big5 make -f Rules make-big5 )
++ ( BIG5ENC=big5 $(MAKE) -f Rules make-big5 )
+
+ all-HPUX:
+- ( BIG5ENC=big5 BIG5HKENC=hkbig5 make -f Rules make-big5 make-big5hkscs )
++ ( BIG5ENC=big5 BIG5HKENC=hkbig5 $(MAKE) -f Rules make-big5 make-big5hkscs )
+
+ all-SOLARIS:
+- ( BIG5ENC=big5 make -f Rules make-big5 )
++ ( BIG5ENC=big5 $(MAKE) -f Rules make-big5 )
+
+
+ install: all install-$(OS_TYPE)
+
+ install-LINUX:
+- ( BIG5ENC=big5 BIG5HKENC=big5hkscs make -f Rules install_big5 install_big5hkscs )
++ ( BIG5ENC=big5 BIG5HKENC=big5hkscs $(MAKE) -f Rules install_big5 install_big5hkscs )
+
+ install-FREEBSD:
+- ( BIG5ENC=big5 make -f Rules install_big5 )
++ ( BIG5ENC=big5 $(MAKE) -f Rules install_big5 )
+
+ install-OPENBSD:
+- ( BIG5ENC=big5 make -f Rules install_big5 )
++ ( BIG5ENC=big5 $(MAKE) -f Rules install_big5 )
+
+ install-NETBSD:
+- ( BIG5ENC=big5 make -f Rules install_big5 )
++ ( BIG5ENC=big5 $(MAKE) -f Rules install_big5 )
+
+ install-HPUX:
+- ( BIG5ENC=big5 BIG5HKENC=hkbig5 make -f Rules install_big5 install_big5hkscs )
++ ( BIG5ENC=big5 BIG5HKENC=hkbig5 $(MAKE) -f Rules install_big5 install_big5hkscs )
+
+ install-SOLARIS:
+- ( BIG5ENC=big5 make -f Rules install_big5 )
++ ( BIG5ENC=big5 $(MAKE) -f Rules install_big5 )
+
+
+ clean:
+diff -ur xcin-2.5.2.99.pre2+cvs20030224.orig/cin/gb/Makefile.in xcin-2.5.2.99.pre2+cvs20030224/cin/gb/Makefile.in
+--- xcin-2.5.2.99.pre2+cvs20030224.orig/cin/gb/Makefile.in 2001-09-07 00:41:33.000000000 +0900
++++ xcin-2.5.2.99.pre2+cvs20030224/cin/gb/Makefile.in 2011-11-21 00:44:07.491653510 +0900
+@@ -9,43 +9,43 @@
+ all: all-$(OS_TYPE)
+
+ all-LINUX:
+- ( GB2312ENC=gb2312 GBKENC=gbk make -f Rules make-gb2312 make-gbk )
++ ( GB2312ENC=gb2312 GBKENC=gbk $(MAKE) -f Rules make-gb2312 make-gbk )
+
+ all-FREEBSD:
+- ( GB2312ENC=euc make -f Rules make-gb2312 )
++ ( GB2312ENC=euc $(MAKE) -f Rules make-gb2312 )
+
+ all-OPENBSD:
+- ( GB2312ENC=euc make -f Rules make-gb2312 )
++ ( GB2312ENC=euc $(MAKE) -f Rules make-gb2312 )
+
+ all-NETBSD:
+- ( GB2312ENC=euccn make -f Rules make-gb2312 )
++ ( GB2312ENC=euccn $(MAKE) -f Rules make-gb2312 )
+
+ all-HPUX:
+- ( GB2312ENC=hp15cn make -f Rules make-gb2312 )
++ ( GB2312ENC=hp15cn $(MAKE) -f Rules make-gb2312 )
+
+ all-SOLARIS:
+- ( GB2312ENC=euc make -f Rules make-gb2312 )
++ ( GB2312ENC=euc $(MAKE) -f Rules make-gb2312 )
+
+
+ install: all install-$(OS_TYPE)
+
+ install-LINUX:
+- ( GB2312ENC=gb2312 GBKENC=gbk make -f Rules install_gb2312 install_gbk )
++ ( GB2312ENC=gb2312 GBKENC=gbk $(MAKE) -f Rules install_gb2312 install_gbk )
+
+ install-FREEBSD:
+- ( GB2312ENC=euc make -f Rules install_gb2312 )
++ ( GB2312ENC=euc $(MAKE) -f Rules install_gb2312 )
+
+ install-OPENBSD:
+- ( GB2312ENC=euc make -f Rules install_gb2312 )
++ ( GB2312ENC=euc $(MAKE) -f Rules install_gb2312 )
+
+ install-NETBSD:
+- ( GB2312ENC=euccn make -f Rules install_gb2312 )
++ ( GB2312ENC=euccn $(MAKE) -f Rules install_gb2312 )
+
+ install-HPUX:
+- ( GB2312ENC=hp15cn make -f Rules install_gb2312 )
++ ( GB2312ENC=hp15cn $(MAKE) -f Rules install_gb2312 )
+
+ install-SOLARIS:
+- ( GB2312ENC=euc make -f Rules install_gb2312 )
++ ( GB2312ENC=euc $(MAKE) -f Rules install_gb2312 )
+
+ clean:
+ rm -f *.tab* core
diff --git a/app-i18n/xcin/metadata.xml b/app-i18n/xcin/metadata.xml
new file mode 100644
index 000000000000..c921b96adf6c
--- /dev/null
+++ b/app-i18n/xcin/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-i18n/xcin/xcin-2.5.3_pre3-r2.ebuild b/app-i18n/xcin/xcin-2.5.3_pre3-r2.ebuild
new file mode 100644
index 000000000000..045287f7c182
--- /dev/null
+++ b/app-i18n/xcin/xcin-2.5.3_pre3-r2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit multilib eutils autotools libtool
+
+MY_P=${PN}_2.5.2.99.pre2+cvs20030224
+
+DESCRIPTION="Chinese X Input Method"
+HOMEPAGE="http://cle.linux.org.tw/xcin/"
+SRC_URI="mirror://debian/pool/main/x/${PN}/${MY_P}.orig.tar.gz
+ mirror://debian/pool/main/x/${PN}/${MY_P}-1.4.diff.gz"
+
+LICENSE="XCIN GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE="debug nls unicode"
+
+RDEPEND=">=sys-libs/db-4.5
+ >=app-i18n/libtabe-0.2.6
+ unicode? ( media-fonts/hkscs-ming
+ media-fonts/arphicfonts )
+ app-i18n/libchewing
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${MY_P/_/-}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${WORKDIR}"/${MY_P}-1.4.diff
+ epatch "${FILESDIR}"/${P}-glibc-2.10.patch
+ rm -f configure
+ cd script
+ elibtoolize
+ eautoreconf
+ mv configure ../
+ cd ..
+}
+
+src_compile() {
+ myconf="--with-xcin-rcdir=/etc
+ --with-xcin-dir=/usr/$(get_libdir)/xcin25
+ --with-db-lib=/usr/$(get_libdir)
+ --with-tabe-inc=/usr/include/tabe
+ --with-tabe-lib=/usr/$(get_libdir)
+ $(use_enable debug)"
+
+ econf ${myconf}
+ emake -j1 || die "emake failed."
+}
+
+src_install() {
+ emake \
+ prefix="${D}/usr" \
+ program_prefix="${D}" \
+ install || die
+
+ for docdir in doc doc/En doc/En/internal doc/history doc/internal doc/modules; do
+ docinto ${docdir#doc/}
+ if use unicode; then
+ for doc in $(find ${docdir} -maxdepth '1' -type 'f'); do
+ iconv -f BIG5 -t UTF-8 --output=${doc}.UTF-8 ${doc}
+ mv ${doc}.UTF-8 ${doc}
+ done
+ fi
+ dodoc ${docdir}/*
+ done
+}
diff --git a/app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild b/app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild
new file mode 100644
index 000000000000..5ba8a1b13e56
--- /dev/null
+++ b/app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+inherit multilib eutils autotools libtool
+
+MY_P=${PN}_2.5.2.99.pre2+cvs20030224
+
+DESCRIPTION="Chinese X Input Method"
+HOMEPAGE="http://cle.linux.org.tw/xcin/"
+SRC_URI="mirror://debian/pool/main/x/${PN}/${MY_P}.orig.tar.gz
+ mirror://debian/pool/main/x/${PN}/${MY_P}-1.4.diff.gz"
+
+LICENSE="XCIN GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug nls unicode"
+
+RDEPEND=">=sys-libs/db-4.5
+ >=app-i18n/libtabe-0.2.6
+ unicode? ( media-fonts/hkscs-ming
+ media-fonts/arphicfonts )
+ app-i18n/libchewing
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+S="${WORKDIR}/${MY_P/_/-}"
+
+src_prepare() {
+ epatch \
+ "${WORKDIR}"/${MY_P}-1.4.diff \
+ "${FILESDIR}"/${P}-glibc-2.10.patch \
+ "${FILESDIR}"/${P}-make.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+ rm -f configure
+ cd script
+ elibtoolize
+ eautoreconf
+ mv configure ../
+}
+
+src_configure() {
+ econf \
+ --disable-static \
+ --with-xcin-rcdir="${EPREFIX}/etc" \
+ --with-xcin-dir="${EPREFIX}/usr/$(get_libdir)/xcin25" \
+ --with-db-lib="${EPREFIX}/usr/$(get_libdir)" \
+ --with-tabe-inc="${EPREFIX}/usr/include/tabe" \
+ --with-tabe-lib="${EPREFIX}/usr/$(get_libdir)" \
+ $(use_enable debug)
+}
+
+src_compile() {
+ emake -j1 || die "emake failed."
+}
+
+src_install() {
+ emake \
+ prefix="${ED}/usr" \
+ program_prefix="${D}" \
+ install || die
+
+ find "${ED}" -name "*.la" -type f -delete || die
+
+ for docdir in doc doc/En doc/En/internal doc/history doc/internal doc/modules; do
+ docinto ${docdir#doc/}
+ for doc in $(find ${docdir} -maxdepth '1' -type 'f'); do
+ if use unicode; then
+ iconv -f BIG5 -t UTF-8 --output=${doc}.UTF-8 ${doc}
+ mv ${doc}.UTF-8 ${doc}
+ fi
+ dodoc ${doc}
+ done
+ done
+}
diff --git a/app-i18n/xsunpinyin/Manifest b/app-i18n/xsunpinyin/Manifest
new file mode 100644
index 000000000000..01060d0901ec
--- /dev/null
+++ b/app-i18n/xsunpinyin/Manifest
@@ -0,0 +1,9 @@
+AUX README.gentoo 164 SHA256 bf65f868c30df52f2a8ea794a35a25aa2f969a8cd95dd55eb4da11fc533e8d60 SHA512 4793b665af505a5b33ed27b99aa236bc9e1ce4e4bfaa12e2fa7fe5e275cde71759e893a30f28fff1c79b2a02e0d4979a0c84319518c487751156b683fab2436e WHIRLPOOL f26060ba290309a907be53373a69a9d25f011e825e8f239c3b857f7a61ba8d8f5e6a0d130ba4e27d59359429f08c077b83e571c46485bf5700b43aeaf2c7b867
+AUX xsunpinyin-2.0.3-force-switch.patch 1328 SHA256 a3fb573d2d742a4cef7041fb3f0df49ebd0ca13ca58bf07a0125c64763789c5e SHA512 fcc2110c2b1e0b4dda4995688e360bee7f0e26582bb212875e41e22b208168d0a18d5a2a1a4cdf93935a43bef11bdb0a6fd45a9506675165c1a2a1aeedd2ad5e WHIRLPOOL be6884d58c59e10e2ffab1de28cca5b9a7b5927d4c6509ef32c2273a1603987fb29cc10d585021b052f704e856f620091e2e67ba6345ff2e9a697ea7953387e5
+DIST sunpinyin-2.0.4_pre20130108.tar.xz 964764 SHA256 e650957aced55075448b7f02298d0c5cf59a8b8e041e9c7d92d24cb5170de93f SHA512 7c1dd7db8b800e9d436746a560a16de2c6777576868f2e7e28f6dcb767b91ccd62b974f9d4ce6bd6ce80d30e1ee83887c3ee03c227e7e9fa59c01db4867465b2 WHIRLPOOL 82535dcde38c2fce17877e465db7ebeaed14a7f305ad96ca451c5b35ae04244a94e9bde9ce51092a390964c557e39ab43742d2370342f9b72722b24f916c55d6
+DIST xsunpinyin-2.0.3.tar.gz 128835 SHA256 dde96d846ff51038566318c0927bb50388f76e4f4bcbd3d844bc7fac08b31b10 SHA512 71bc1677d545ecbd8572c9ba1877d091a2a58154eb326623ed240701f98a70ec29245e98d684a30aad46445e6c461359663ba3778e7f5c42469f0bea6e2bc419 WHIRLPOOL c2097e3ce913bf5894be5048ccbc48f5c0361bf82f4c6694cec4e9ff4d5fa46fa027dd2dcd42abec92bf389055a02e3e25d8746b1564f4aa0478d19ede8698b1
+EBUILD xsunpinyin-2.0.3-r3.ebuild 629 SHA256 e21233a6bc4fcb023c26ded3da536409377f2486e86da2e6d767227544ef9549 SHA512 0a0916bb06034a2f0585911be41e92007a785d40e9e5c95cce5ce010de15c980f4a14fedbec846570f344484d77e1657e76ec386b683b8c07bc0513f80650db0 WHIRLPOOL 089903fdb52b8e589e4eacae37dfd859d60deb46941257b29d39d09b16f9190b9b82f19f420e90b67a752ee83fb00b7dbd434aab6d69069dac6816f83b262557
+EBUILD xsunpinyin-2.0.4_pre20130108.ebuild 836 SHA256 2c9977fe675899002b4c97b0cec9b4589ad935f6384eb1351032dfb3f7683495 SHA512 a89e6c8c09595dd5e0ead3435c3618e3e2279e1b403e2abd4f6711025aeca1897560dd17d84381ddd18ae05e23e5bb0ddcf33250f67558dfea71ab798bf58977 WHIRLPOOL 63ab35b4c3001fb2acdf6ae0be7da799e5880c6cc035f0b23b30bed09cbe806ff93fbea1f26c7319885f75d4ecaef836b3fa43386cb9aa3f619e738740822a98
+MISC ChangeLog 2800 SHA256 9a4442fd61604f6f5c47490e12ab8ad3f9a5d29e7ad5ec549c4a615c3e4b18fb SHA512 43e0e3e3a298c5ea4d925bde1c919518c1dc769a03a90d0f6cf43ce4874783eaa2dcccc07eb799cd7f52cd2891d0c1d66241211c794d554b5158f6b6cc8ee684 WHIRLPOOL 90a2e93005c5c50ef26f2263d00fb80c1daf2a7f5484e99e063e6b2c6100a0e3621f62f68fbff282befc4c1720d96490edadbb1e05314af26214555bd49b3ab3
+MISC ChangeLog-2015 1564 SHA256 0d32cb9d0928827258b82d5845f1c11f677fbcb5baaf868a30d60c5751d4e78b SHA512 6caa301886875a4aabcfe7b7f72b0c0311b7adf780657327220d2dafdb09428e959bf879a1e2ea3ed5300715b1cc16ac228efc687ee641fd798618d134a426be WHIRLPOOL 229080c8e9435d64d5021cf4220544a8992295b8c12d9411694726eb6f712000297ee948c7c231fe9637a87c36d861170579fba34e50a1e43e945717ef8210db
+MISC metadata.xml 323 SHA256 e567379129e686d818c3a2937d0a84d383843f8ef5e9c711a69a2a18c2935d5c SHA512 b91630bdda4510f930c9b114a77859e6350c16cfd41c8b585895d4f40a9d8d7ce4a02dd6f46be41ecc7ba6ad2ce6846b143d1745ac9e1385821e403419df9a39 WHIRLPOOL 3aeadf7473707ef5136e146c50a0b0777d80adc0a52746cfdff1e9e274a5748aab5bbefed834d8cca242f80ae856f89db29632b80bfa310787fbdaf91a8d8a66
diff --git a/app-i18n/xsunpinyin/files/README.gentoo b/app-i18n/xsunpinyin/files/README.gentoo
new file mode 100644
index 000000000000..7de1985c1f32
--- /dev/null
+++ b/app-i18n/xsunpinyin/files/README.gentoo
@@ -0,0 +1,5 @@
+To use sunpinyin with XIM, you should use the following in your user startup
+scripts such as .xinitrc or .xprofile:
+
+XMODIFIERS=@im=xsunpinyin ; export XMODIFIERS
+
diff --git a/app-i18n/xsunpinyin/files/xsunpinyin-2.0.3-force-switch.patch b/app-i18n/xsunpinyin/files/xsunpinyin-2.0.3-force-switch.patch
new file mode 100644
index 000000000000..04f70e2d2aad
--- /dev/null
+++ b/app-i18n/xsunpinyin/files/xsunpinyin-2.0.3-force-switch.patch
@@ -0,0 +1,45 @@
+diff --git a/wrapper/xim/SConstruct b/wrapper/xim/SConstruct
+index 9d1cafd..495871d 100644
+--- a/wrapper/xim/SConstruct
++++ b/wrapper/xim/SConstruct
+@@ -32,7 +32,7 @@ imdkit_sources = ['IMdkit/FrameMgr.c',
+ 'IMdkit/IMValues.c']
+
+
+-cflags='-O2 -g -pipe'
++cflags='-O2 -g -pipe '
+
+ # options
+ AddOption('--prefix', dest='prefix', type='string', nargs=1, action='store',
+@@ -52,7 +52,6 @@ def PassVariables(envvar, env):
+
+ env = Environment(ENV=os.environ,
+ CFLAGS=cflags, CXXFLAGS=cflags,
+- LINKFLAGS=['-export-dynamic'],
+ CPPPATH=['.', 'IMdkit'])
+ opts.Update(env)
+
+@@ -62,11 +61,6 @@ if GetOption('prefix') is not None:
+
+ opts.Save('configure.conf', env)
+
+-
+-# set rpath
+-if GetOption('rpath') is not None:
+- env.Append(LINKFLAGS='-Wl,-R -Wl,%s' % GetOption('rpath'))
+-
+ envvar = [('CC', 'CC'),
+ ('CXX', 'CXX'),
+ ('CFLAGS', 'CFLAGS'),
+@@ -83,7 +77,11 @@ extra_cflags += ' -DSUNPINYIN_XIM_SETTING_DIR=\\"%s\\"' % data_dir
+
+ env.Append(CFLAGS=extra_cflags)
+ env.Append(CXXFLAGS=extra_cflags)
++env.Append(LINKFLAGS=' -export-dynamic')
+
++# set rpath
++if GetOption('rpath') is not None:
++ env.Append(LINKFLAGS=' -Wl,-R -Wl,%s' % GetOption('rpath'))
+
+ #
+ #==============================configure================================
diff --git a/app-i18n/xsunpinyin/metadata.xml b/app-i18n/xsunpinyin/metadata.xml
new file mode 100644
index 000000000000..11bbcd490ca1
--- /dev/null
+++ b/app-i18n/xsunpinyin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">sunpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/xsunpinyin/xsunpinyin-2.0.3-r3.ebuild b/app-i18n/xsunpinyin/xsunpinyin-2.0.3-r3.ebuild
new file mode 100644
index 000000000000..44ee7e7f2fbe
--- /dev/null
+++ b/app-i18n/xsunpinyin/xsunpinyin-2.0.3-r3.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils scons-utils
+
+DESCRIPTION="The SunPinyin IMEngine Wrapper for XIM Framework"
+HOMEPAGE="https://sunpinyin.googlecode.com"
+SRC_URI="${HOMEPAGE}/files/${P}.tar.gz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="~app-i18n/sunpinyin-2.0.3
+ x11-libs/gtk+:2
+ x11-libs/libX11"
+RDEPEND="${DEPEND}"
+
+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/xsunpinyin/xsunpinyin-2.0.4_pre20130108.ebuild b/app-i18n/xsunpinyin/xsunpinyin-2.0.4_pre20130108.ebuild
new file mode 100644
index 000000000000..108302b49c3b
--- /dev/null
+++ b/app-i18n/xsunpinyin/xsunpinyin-2.0.4_pre20130108.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit readme.gentoo scons-utils toolchain-funcs
+
+DESCRIPTION="The SunPinyin IMEngine Wrapper for XIM Framework"
+HOMEPAGE="https://sunpinyin.googlecode.com/"
+SRC_URI="https://dev.gentoo.org/~yngwin/distfiles/sunpinyin-${PV}.tar.xz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="~app-i18n/sunpinyin-${PV}:=
+ x11-libs/gtk+:2
+ x11-libs/libX11"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ default
+ mv "${WORKDIR}/sunpinyin-${PV}" "${S}" || die
+}
+
+src_configure() {
+ tc-export CXX
+ myesconsargs=( --prefix="${EPREFIX}/usr" )
+}
+
+src_compile() {
+ pushd "${S}"/wrapper/xim
+ escons
+ popd
+}
+
+src_install() {
+ pushd "${S}"/wrapper/xim
+ escons --install-sandbox="${D}" install
+ popd
+ readme.gentoo_create_doc
+}
diff --git a/app-i18n/xvnkb/Manifest b/app-i18n/xvnkb/Manifest
new file mode 100644
index 000000000000..5d4b4e01cb78
--- /dev/null
+++ b/app-i18n/xvnkb/Manifest
@@ -0,0 +1,10 @@
+AUX 0.2.8a-putenv.patch 337 SHA256 376e5ae6dbe1e33163748324fd5846c4411a79e046564e2a6267b31585a70b98 SHA512 1354f215534427f63b2ba663cc271858bc0cc4451c369464033241d71b665dcf5858b748e0144587b044644d20639f34684674b6ad49a71f8f02cfc156241a6f WHIRLPOOL 3391368beb7148924e97dcd9e76347635d84c69ac1b836bd682a202548562c54564bc6e25c658c701085c37b92a399a6da793a1e7a4b26246f088ee085b1f912
+AUX xvnkb-0.2.8a.patch 562 SHA256 f2058b4f459e4d873aac6eddef26a7cea8092d9d34e29cf21afbc43cc00d5b97 SHA512 1859b8bcbae7baa33d565d7fe4f861bfd14a1a08dfc0b0188704f728ab1ada606f74dcb7782afc83bf644ead6f66e0228231d85cefae9a210293e595da480c46 WHIRLPOOL cdd1e7acbcaa7cca31967399d470c7c33a1d9e7ea42ab9c17f7902b23baeb3bbb3fc5be86d40d41b9f7540607655a37be1834e5fb92f157ffabceb23def343e5
+AUX xvnkb-0.2.9a-ldflags.patch 1261 SHA256 9af67421431110aa1f867e0aa1ca65f731f413b619804c807dfa1a942753efde SHA512 5b54ce3d25a9f634f53347e553ce45b35456228b0cb00f9308d872dcbb33c18218e27921a54e4b9e91d98892f0490c864662d96cee09e99a8400fba46f590afb WHIRLPOOL a4a773c8f1a0259f31075b8cde2cc2afa46d5beee11d186455a6da9ccc1102fb97895a6c55823c66d90729a5d9c34862f4ee46a5c3faadea5a6db1c71d6a91a5
+DIST xvnkb-0.2.8a.tar.bz2 76221 SHA256 3503ef1d24041cccc447f5f93025945fda07d519a0120183c6b4af9a66e86eb2 SHA512 76ed49fec52fbcfa4a81a7d80208b3f11d911695e2f8f37d9fbb5e6e1899ffffa722c26a577d4236dfd459769d08d0180593ee0db971910b0cd62e77c49516d5 WHIRLPOOL fb44a516c9ee873f7d49b8a4ab2a6f1cdf56af36c984e0709141d39ffd901a81d5df8ab09b0de96fd6750929b8f4924c53cb591fad1246810f2e1e8c648965b8
+DIST xvnkb-0.2.9a.tar.bz2 76429 SHA256 316eccadbf73fac7bf55db3f179ffb985a87f22c48d38cfab87e3dcdb8230cb7 SHA512 3dbf4adb65f321d721fc74e05e92d2d1460e63c49e8a1ab2e10ab9f015e1a57bd3e641645d1283f1d0c5592eb7b342bf210d9fcab9ba441b6416c2f8fd1af6da WHIRLPOOL fb52992dc644d20735c2c8ac986bcd591c5c39bdd21c5bdef9ad451b676abda67dc0c7cecba241fcc0896bfd12dfe0212f9396bc353064fbc48518768cc169e1
+EBUILD xvnkb-0.2.8a-r1.ebuild 1472 SHA256 2a9c5d744bf2fe2f7ba6f76249e003a8b2e98bffa77ceda7ed9c24d42fdb68fe SHA512 626665662d5d52dabd211c03724ed3ed71b3fc956481d902b3eb7ff7f8163bd1a8fa7b93413ff0d1c1a33e2d07c10a8209f18e727e6423dd4300fad10158b688 WHIRLPOOL 93e49b1cc725a75c485fb4eee3420f02aac26970d4c5ceea8ee558e57771571b9fb3804a6e67a65b215485039fac516f4118daaf5c9b97016e9b41531be1914e
+EBUILD xvnkb-0.2.9a-r1.ebuild 1415 SHA256 9e2932a4a72be3be91895fae187cf250b068a0183e9f5388761a425b94b9c745 SHA512 a03f00b5454b19af34189be817166fdc3186a451c07a6719727bd949d39b1ef0fa986158323136411fc98fb931d5f03bfddf8a51956875df4e0d85a59181eb01 WHIRLPOOL 58f5c09ca87bb930b5de4fef7e6596def01b979e4ced1cf635290d53169e242e6f8e8c23d9b07c5ea8dc760bcae96c18c083c5a24c5c186d11bba501a6998a0c
+MISC ChangeLog 3254 SHA256 9b8bfaf01d0c22188f765aa5dabe060ede8ab897e7fb6f45f99efa52e3c793b8 SHA512 010988292c02558d4906c280c7a140cc1487caeed02a847bfef84e79211e309d812839428aa16a49744287d667e55995d51fa965ca84b94d7e003fa08617f8c5 WHIRLPOOL 1a4403d547af1a34b702fe3d255aa23f3c25096a10dc3c970ab7907bd613f2264e077e992b5396d03617fab0f3457f435a2bfd09773e50532a248c8f859c5128
+MISC ChangeLog-2015 3217 SHA256 ea09e4ed0c958ce903ef74bafb09fa9ed77da13f7b3b2da452d295513e071afb SHA512 b9ded042ec19ad8d1646197d15e714993134ce67f9d8a12ac59cb2014444f9a5bf66c7b271b2d4ae341d4812e3dc9344e95858fede09d753a640d113e20f41fc WHIRLPOOL 792b6bf6765e5ab0fd065ec80585ad17f47a2fafcceef0d48b750423ec748197c1bde723dfa30d61b2a47fa399de4d7d331c94851f436501b25599e3f0081604
+MISC metadata.xml 319 SHA256 dda90f7cbe4136ba4d5f4ed5dbbf1af7be8b44590151ac20d71e14c521b5d4a6 SHA512 72d8e0bd2181f6f9ab0b0d9a688a718b6e5b606abb7882cb50d36c0e273308055eeb87f0a55834d85240fea60278c8933c828a79822a24b9700189bc1bea77b1 WHIRLPOOL 152d51e860f094e482c3ecd34707923e3946c0b8856331a9876d2185ffbf9187337d59e4fe5e13226829a0c29bdfc3a037f46736253fa7970e445bd2f0566757
diff --git a/app-i18n/xvnkb/files/0.2.8a-putenv.patch b/app-i18n/xvnkb/files/0.2.8a-putenv.patch
new file mode 100644
index 000000000000..ef7827e20fe8
--- /dev/null
+++ b/app-i18n/xvnkb/files/0.2.8a-putenv.patch
@@ -0,0 +1,11 @@
+--- xvnkb.c.old 2005-05-04 22:11:50.323413496 +0700
++++ xvnkb.c 2005-05-04 22:12:01.212758064 +0700
+@@ -77,7 +77,7 @@
+ static void __attribute__ ((constructor)) xvnkb_init(void)
+ {
+ static char gtk_xim_env[24] = "GTK_IM_MODULE=xim";
+- putenv(gtk_xim_env);
++ /*putenv(gtk_xim_env);*/
+ /* TODO:
+ - Initialize some more variables
+ */
diff --git a/app-i18n/xvnkb/files/xvnkb-0.2.8a.patch b/app-i18n/xvnkb/files/xvnkb-0.2.8a.patch
new file mode 100644
index 000000000000..51862a1986bd
--- /dev/null
+++ b/app-i18n/xvnkb/files/xvnkb-0.2.8a.patch
@@ -0,0 +1,16 @@
+diff -ur xvnkb-0.2.8/visckey.c xvnkb-0.2.8-new/visckey.c
+--- xvnkb-0.2.8/visckey.c 2004-01-17 05:19:17.000000000 +0700
++++ xvnkb-0.2.8-new/visckey.c 2004-03-03 04:20:44.000000000 +0700
+@@ -423,8 +423,11 @@
+ /*----------------------------------------------------------------------------*/
+ inline void VKClearBuffer()
+ {
+- tempoff = count = *word = vpc = 0;
++ tempoff = count = *word = 0;
++#ifdef VK_CHECK_SPELLING
++ vpc = 0;
+ vp = -1;
++#endif
+ }
+ /*----------------------------------------------------------------------------*/
+ inline long VKBackspaceDelete()
diff --git a/app-i18n/xvnkb/files/xvnkb-0.2.9a-ldflags.patch b/app-i18n/xvnkb/files/xvnkb-0.2.9a-ldflags.patch
new file mode 100644
index 000000000000..f089f0dde899
--- /dev/null
+++ b/app-i18n/xvnkb/files/xvnkb-0.2.9a-ldflags.patch
@@ -0,0 +1,34 @@
+diff --git a/Makefile.common b/Makefile.common
+index 06f0b78..d9f8976 100644
+--- a/Makefile.common
++++ b/Makefile.common
+@@ -19,10 +19,10 @@ all: do-it-all
+ $(CC) -fpic $(CFLAGS) $(FPTR) $(VK_OPT) -DVERSION=\"$(VERSION)\" -Wall -I$(XLIB_INC) -c $<
+
+ $(CORE): $(CORE_OBJS)
+- $(CC) $(CFLAGS) $(DLFLAGS) $(CORE_OBJS) -o $@ -L$(XLIB_PATH) $(LIBDL)
++ $(CC) $(CFLAGS) $(DLFLAGS) $(CORE_OBJS) -o $@ -L$(XLIB_PATH) $(LIBDL) $(LDFLAGS)
+
+ $(GUI): $(GUI_OBJS)
+- $(CC) $(CFLAGS) $(GUI_OBJS) -o $@ -L$(XLIB_PATH) $(LIBS) $(XFT_LIBS)
++ $(CC) $(CFLAGS) $(GUI_OBJS) -o $@ -L$(XLIB_PATH) $(LIBS) $(XFT_LIBS) $(LDFLAGS)
+
+ main: $(CORE) $(GUI)
+ @echo >/dev/null
+diff --git a/tools/Makefile.common b/tools/Makefile.common
+index fe16cc1..16ec511 100644
+--- a/tools/Makefile.common
++++ b/tools/Makefile.common
+@@ -16,10 +16,10 @@ all: do-it-all
+ $(CC) $(CFLAGS) $(DEFS) -Wall -I$(XLIB_INC) -c $<
+
+ xvnkb_ctrl: $(CONTROL_OBJS)
+- $(CC) $(CFLAGS) -o $@ $(CONTROL_OBJS) -L$(XLIB_PATH) $(LIBS)
++ $(CC) $(CFLAGS) -o $@ $(CONTROL_OBJS) -L$(XLIB_PATH) $(LIBS) $(LDFLAGS)
+
+ xvnkb_setup: $(SETUP_OBJS)
+- $(CC) $(CFLAGS) -o $@ $(SETUP_OBJS) -L$(XLIB_PATH) $(LIBS) $(XFT_LIBS)
++ $(CC) $(CFLAGS) -o $@ $(SETUP_OBJS) -L$(XLIB_PATH) $(LIBS) $(XFT_LIBS) $(LDFLAGS)
+
+ main-tools: $(TOOLS)
+
diff --git a/app-i18n/xvnkb/metadata.xml b/app-i18n/xvnkb/metadata.xml
new file mode 100644
index 000000000000..73d5d9ae8a5a
--- /dev/null
+++ b/app-i18n/xvnkb/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">xvnkb</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/xvnkb/xvnkb-0.2.8a-r1.ebuild b/app-i18n/xvnkb/xvnkb-0.2.8a-r1.ebuild
new file mode 100644
index 000000000000..e16c7b2cef1c
--- /dev/null
+++ b/app-i18n/xvnkb/xvnkb-0.2.8a-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+IUSE="spell xft"
+
+DESCRIPTION="Vietnamese input keyboard for X"
+SRC_URI="http://xvnkb.sourceforge.net/xvnkb/${P}.tar.bz2"
+HOMEPAGE="http://xvnkb.sourceforge.net/"
+
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="x86 ppc"
+RDEPEND="x11-libs/libX11
+ xft? ( x11-libs/libXft )"
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}.patch"
+ epatch "${FILESDIR}/${PV}-putenv.patch"
+
+ # Remove pregenerated dep file.
+ rm -f "${S}/tools/Makefile.dep"
+}
+
+src_compile() {
+ local myconf
+
+ use spell || myconf="${myconf} --no-spellcheck"
+ use xft || myconf="${myconf} --no-xft"
+
+ # *not* autotools
+ ./configure \
+ --use-extstroke ${myconf} \
+ || die "./configure failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin xvnkb
+ dobin tools/xvnkb_ctrl
+
+ dolib xvnkb.so.${PV}
+ dosym /usr/lib/xvnkb.so.${PV} /usr/lib/xvnkb.so
+
+ dodoc ChangeLog AUTHORS THANKS TODO INSTALL* README* doc/*
+ docinto scripts
+ dodoc scripts/*
+ docinto contrib
+ dodoc contrib/*
+}
+
+pkg_postinst() {
+ elog "Remember to"
+ elog "$ export LANG=en_US.UTF-8"
+ elog "(or any other UTF-8 locale) and"
+ elog "$ export LD_PRELOAD=/usr/lib/xvnkb.so"
+ elog "before starting X Window"
+ elog "More documents are in /usr/share/doc/${PF}"
+ ewarn "Programs with suid/sgid will have LD_PRELOAD cleared"
+ ewarn "You have to unset suid/sgid to use with xvnkb"
+}
diff --git a/app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild b/app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild
new file mode 100644
index 000000000000..8d9cdf902b59
--- /dev/null
+++ b/app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils multilib toolchain-funcs
+
+IUSE="spell xft"
+
+DESCRIPTION="Vietnamese input keyboard for X"
+SRC_URI="http://xvnkb.sourceforge.net/${P}.tar.bz2"
+HOMEPAGE="http://xvnkb.sourceforge.net/"
+
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+RDEPEND="x11-libs/libX11
+ xft? ( x11-libs/libXft )"
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+}
+
+src_compile() {
+ local myconf
+
+ tc-export CC
+
+ use spell || myconf="${myconf} --no-spellcheck"
+ use xft || myconf="${myconf} --no-xft"
+
+ # *not* autotools
+ ./configure \
+ --use-extstroke ${myconf} \
+ || die "./configure failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin xvnkb
+ dobin tools/xvnkb_ctrl
+
+ dolib xvnkb.so.${PV}
+ dosym xvnkb.so.${PV} /usr/$(get_libdir)/xvnkb.so
+
+ dodoc ChangeLog AUTHORS THANKS TODO README* doc/*
+ docinto scripts; dodoc scripts/*
+ docinto contrib; dodoc contrib/*
+}
+
+pkg_postinst() {
+ elog "Remember to"
+ elog "$ export LANG=en_US.UTF-8"
+ elog "(or any other UTF-8 locale) and"
+ elog "$ export LD_PRELOAD=/usr/$(get_libdir)/xvnkb.so"
+ elog "before starting X Window"
+ elog "More documents are in /usr/share/doc/${PF}"
+ ewarn "Programs with suid/sgid will have LD_PRELOAD cleared"
+ ewarn "You have to unset suid/sgid to use with xvnkb"
+}
diff --git a/app-i18n/yaskkserv/Manifest b/app-i18n/yaskkserv/Manifest
new file mode 100644
index 000000000000..fd7561531aaf
--- /dev/null
+++ b/app-i18n/yaskkserv/Manifest
@@ -0,0 +1,8 @@
+AUX yaskkserv-gentoo.patch 5013 SHA256 4d965d5bb497b65d2904923e4d61bf3bdfc20c807de64378afd7982a48a1b605 SHA512 2a60853a4badd5d32482be108b36cce90fa42995f2cbe1d9324e6d3da2a94ee8f6744f1b9bce3b9f34f1b2b0cddd8cb5a212e06b7b45d95b744e162f58ec0ba0 WHIRLPOOL bf4fa2ea61a80ecb1799bb91ec5848eb1bbeb944298dd9f19f7b1fbda507aa4cddebcb9a39888cf7b93ef54a7bf0e1ed25d2e9e5762b10c30dd41ac058f992d8
+AUX yaskkserv.confd 280 SHA256 addb95541cccce634e4133a01636ffae5a7e94fb1633e5a35efe1204762f3eb1 SHA512 dd9c906937814a1e59d92d80427e4ba97b2ff8e0a3d26dc457b882693de30ad5db5aa7941b948f876d7ef90b402bd4c42142eac3caca29f6976197463597a835 WHIRLPOOL c179e5ae170a0de60a5814275e9427a2a41f486cddfa126dcc6bf25046ab780db48337192912bf26adabbabd19de3d040c22527390cbc6c231c6a023a2418376
+AUX yaskkserv.initd 341 SHA256 bc0f0c3cc3f32686dadfeac377a79ecc35c8765b7ac0ae372b836cc0f7e61757 SHA512 2fd63604283c811c7f6fe192e3d8f2b5b3542106b54d39707aa8d6116328634ae43421d6a620fcd1555cdbd53985b2444a381bc32e071cac7e040f6a337a3d8e WHIRLPOOL 8619998e0ca8c7e08c4aff2970cbfc2c4d46913701a8f612741aa87de028876929b2da549c4c89eb32c38bd9ae5891b75327d73eb532fc5e56909b8e447ea1a8
+AUX yaskkserv.service 277 SHA256 794b43fb40cc54e5ab841daa4a576e5d3c1524303694c23b2f58296f0968d2ce SHA512 8ff4aa6ec41c3df17f560de157a60cd3bf3fcc03a2613c603d533f2891207b7001e2469dd3e9ac8c8cfc7ab5909978467922906e22ba4b4635627b234008ce32 WHIRLPOOL 00e944c74ce94004768f36cfa8bfca4e2e82243d46110beac7c2f6c28f1da1f4aa187a4b354c777cfcad0d88b40c4dc6f933dc257518dc9ee74bf96a36d33f05
+DIST yaskkserv-1.1.0.tar.xz 75108 SHA256 b7297220492e1dc4cf0b48bc2ff1dd9fd3e88cf6f8a318a45a667574112ef56a SHA512 9956a9b2fe587491b7c5f76482f13f91d1c87d445f2ff7effa5ffb68efe076f54f1c63e95b980d889963ac507ed49fa37f76f9deb239da7b7409da5be025c000 WHIRLPOOL 7a7b4379a57b7c44dbe91a14d392d5c1c76860df32ea4d890652abef3c9445f1ef87ac72c5e003ec3de7e07019f046d12e1506710a4798f72b79321aa5a98d2c
+EBUILD yaskkserv-1.1.0.ebuild 1634 SHA256 d30f3cf6d0556b11ff9c890ee1870e7c0845516faf48e8f6f6196b1b9778122c SHA512 64bfc3d49f57b5098c82aa0e325eaedb7b2b52055288b9ba78fd00643cfcaa63d69e63d3d9d469c87eb49505907b67e12d5a99997fc0387c25c4c1e87e2a5016 WHIRLPOOL c57b1e68365f1d80fb1f277fcdc2bf672d32e006f15c952a63f30eb0d07cff3660cfc5b38c851dbbf93266c9f2ac8ffbb89b809f5c4a57ba6077835312ab8fdf
+MISC ChangeLog 447 SHA256 bb5d603614615ee1ceea51c87df90b4b0fb7f52cbd11f9288cbeb3b970ada1f9 SHA512 6b7eb063ae032515045a12bc199e756dbf4697460c29e0a7019a73a3d324406cdb2fb379ab5bbbe58004bf9de56393493572f3256de56e940e19f3e3670c7cf3 WHIRLPOOL e00faa9d48f82919ddf6b368bb1067f3e8a9985da05c8b27fe01c0b88e81d429aebcafc02faf7e50f69213d9eaae581ef5517d96e9d84a53586833e39685f7a6
+MISC metadata.xml 327 SHA256 00e4a55a2b955dd8da0fce115d06cb5afa8d0bb26ab76cbf380679b9fb29b2dd SHA512 4e5e5cc7feecfa981ffbacc46f83a56d0dac8f2c5f2cc745ad9dff4ee0f674d40e3b8b8cf46389ffebc0f19281081f9b96d0066588412db91519ec880a10ea73 WHIRLPOOL d9a4a1cc9a34cce61b5ad8dc1c1c4accd279a54ca18db9dbf077d478720ba51ea1ec1b468280c9ea7125a03402a7ce033f101cd286c29e652806f40548805073
diff --git a/app-i18n/yaskkserv/files/yaskkserv-gentoo.patch b/app-i18n/yaskkserv/files/yaskkserv-gentoo.patch
new file mode 100644
index 000000000000..56894afd4321
--- /dev/null
+++ b/app-i18n/yaskkserv/files/yaskkserv-gentoo.patch
@@ -0,0 +1,93 @@
+--- a/Makefile
++++ b/Makefile
+@@ -57,16 +57,16 @@
+ $(MAKE) --no-print-directory -C $(SOURCE_PATH) -f $(MAKEFILE) test
+
+ install_common_ :
+- $(MKDIR) -p $(PREFIX)/bin
+- $(INSTALL) $(VAR_PATH)/yaskkserv_make_dictionary/yaskkserv_make_dictionary $(PREFIX)/bin/yaskkserv_make_dictionary
++ $(MKDIR) -p $(DESTDIR)$(PREFIX)/bin
++ $(INSTALL) $(VAR_PATH)/yaskkserv_make_dictionary/yaskkserv_make_dictionary $(DESTDIR)$(PREFIX)/bin/yaskkserv_make_dictionary
+
+ install : install_normal
+
+ install_all : install_common_
+- $(MKDIR) -p $(PREFIX)/sbin
+- $(INSTALL) $(VAR_PATH)/yaskkserv_simple/yaskkserv_simple $(PREFIX)/sbin/yaskkserv_simple
+- $(INSTALL) $(VAR_PATH)/yaskkserv_normal/yaskkserv_normal $(PREFIX)/sbin/yaskkserv_normal
+- $(INSTALL) $(VAR_PATH)/yaskkserv_hairy/yaskkserv_hairy $(PREFIX)/sbin/yaskkserv_hairy
++ $(MKDIR) -p $(DESTDIR)$(PREFIX)/sbin
++ $(INSTALL) $(VAR_PATH)/yaskkserv_simple/yaskkserv_simple $(DESTDIR)$(PREFIX)/sbin/yaskkserv_simple
++ $(INSTALL) $(VAR_PATH)/yaskkserv_normal/yaskkserv_normal $(DESTDIR)$(PREFIX)/sbin/yaskkserv_normal
++ $(INSTALL) $(VAR_PATH)/yaskkserv_hairy/yaskkserv_hairy $(DESTDIR)$(PREFIX)/sbin/yaskkserv_hairy
+
+ install_simple : install_common_
+ $(MKDIR) -p $(PREFIX)/sbin
+--- a/source/Makefile.bsd_cygwin_linux_gcc.common
++++ b/source/Makefile.bsd_cygwin_linux_gcc.common
+@@ -16,16 +16,16 @@
+ endif # DEBUG
+
+ INCLUDE_FLAGS = -I . -I $(VAR_PATH) -I $(PROJECT_ROOT)/source/skk -I $(PROJECT_ROOT)/source/skk/architecture -I $(PROJECT_ROOT)/source/skk/architecture/$(ARCHITECTURE_LOWER_CASE)
+-LIBRARY_FLAGS = -L/usr/lib
++LIBRARY_FLAGS =
+
+-CPPFLAGS = $(DEBUG_FLAGS) $(CXXFLAGS_ARCHITECTURE) $(CXXFLAGS_BYTE_ORDER) $(CXXFLAGS_CONFIG) $(INCLUDE_FLAGS) $(CXXFLAGS_DEFINE) -D $(PROJECT_IDENTIFIER)_VERSION=\"$(PROJECT_VERSION)\"
++CPPFLAGS += $(DEBUG_FLAGS) $(CXXFLAGS_ARCHITECTURE) $(CXXFLAGS_BYTE_ORDER) $(CXXFLAGS_CONFIG) $(INCLUDE_FLAGS) $(CXXFLAGS_DEFINE) -D $(PROJECT_IDENTIFIER)_VERSION=\"$(PROJECT_VERSION)\"
+
+-CXXFLAGS = $(DEBUG_FLAGS) $(CXXFLAGS_ARCHITECTURE) $(CXXFLAGS_BYTE_ORDER) $(CXXFLAGS_CONFIG) $(INCLUDE_FLAGS) $(OPTIMIZE_FLAGS) $(CXXFLAGS_WARNING) -fno-exceptions -fno-rtti -fmessage-length=0 -pipe -fPIC -D $(PROJECT_IDENTIFIER)_VERSION=\"$(PROJECT_VERSION)\"
++CXXFLAGS += $(DEBUG_FLAGS) $(CXXFLAGS_ARCHITECTURE) $(CXXFLAGS_BYTE_ORDER) $(CXXFLAGS_CONFIG) $(INCLUDE_FLAGS) $(OPTIMIZE_FLAGS) $(CXXFLAGS_WARNING) -fno-exceptions -fno-rtti -fmessage-length=0 -pipe -fPIC -D $(PROJECT_IDENTIFIER)_VERSION=\"$(PROJECT_VERSION)\"
+
+-LDFLAGS = $(DEBUG_FLAGS) $(LDFLAGS_ARCHITECTURE) $(OPTIMIZE_FLAGS) -pipe $(LIBRARY_FLAGS) -fPIC
++LDFLAGS += $(DEBUG_FLAGS) $(LDFLAGS_ARCHITECTURE) $(OPTIMIZE_FLAGS) -pipe $(LIBRARY_FLAGS) -fPIC
+
+ CXX = $(CCACHE) $(COMPILER)
+ LD = $(COMPILER)
+ CPP = $(CXX)
+ LD = $(CXX)
+-STRIP = strip
++STRIP = true
+--- a/source/yaskkserv_hairy/Makefile.bsd_cygwin_linux_gcc
++++ b/source/yaskkserv_hairy/Makefile.bsd_cygwin_linux_gcc
+@@ -12,7 +12,7 @@
+ # RUN_FLAGS = --port=9999 --google-japanese-input=dictionary --google-suggest --google-japanese-input-timeout=1.1 https://www.google.com
+ # RUN_FLAGS = --port=9999 --google-japanese-input=dictionary --google-japanese-input-timeout=1.1 http://www.google.com /home/wac/local/share/skk/SKK-JISYO.total+zipcode.yaskkserv
+ # RUN_FLAGS = --port=9999 --google-japanese-input=dictionary --google-japanese-input-timeout=1.1 http://www.google.com
+-CXXFLAGS += $(CXXFLAGS_OPTIMIZE_SERVER_HAIRY) $(CXXFLAGS_WARNING_SERVER_HAIRY)
++CXXFLAGS += $(CXXFLAGS_WARNING_SERVER_HAIRY)
+
+ SOURCES = ${wildcard *.cpp}
+ OBJECTS = ${addprefix $(VAR_PATH)/$(TARGET_BASE)/,$(SOURCES:.cpp=.o)}
+--- a/source/yaskkserv_make_dictionary/Makefile.bsd_cygwin_linux_gcc
++++ b/source/yaskkserv_make_dictionary/Makefile.bsd_cygwin_linux_gcc
+@@ -5,7 +5,7 @@
+ TARGET_BASE = yaskkserv_make_dictionary
+
+ RUN_FLAGS =
+-CXXFLAGS += $(CXXFLAGS_OPTIMIZE_TOOL) $(CXXFLAGS_WARNING_TOOL)
++CXXFLAGS += $(CXXFLAGS_WARNING_TOOL)
+
+ SOURCES = ${wildcard *.cpp}
+ OBJECTS = ${addprefix $(VAR_PATH)/$(TARGET_BASE)/,$(SOURCES:.cpp=.o)}
+--- a/source/yaskkserv_normal/Makefile.bsd_cygwin_linux_gcc
++++ b/source/yaskkserv_normal/Makefile.bsd_cygwin_linux_gcc
+@@ -5,7 +5,7 @@
+ TARGET_BASE = yaskkserv_normal
+
+ RUN_FLAGS = --check-update --port=9999 /var/tmp/SKK-JISYO.total+zipcode.yaskkserv
+-CXXFLAGS += $(CXXFLAGS_OPTIMIZE_SERVER_NORMAL) $(CXXFLAGS_WARNING_SERVER_NORMAL)
++CXXFLAGS += $(CXXFLAGS_WARNING_SERVER_NORMAL)
+
+ SOURCES = ${wildcard *.cpp}
+ OBJECTS = ${addprefix $(VAR_PATH)/$(TARGET_BASE)/,$(SOURCES:.cpp=.o)}
+--- a/source/yaskkserv_simple/Makefile.bsd_cygwin_linux_gcc
++++ b/source/yaskkserv_simple/Makefile.bsd_cygwin_linux_gcc
+@@ -5,7 +5,7 @@
+ TARGET_BASE = yaskkserv_simple
+
+ RUN_FLAGS = --port=9999 /var/tmp/SKK-JISYO.total+zipcode.yaskkserv
+-CXXFLAGS += $(CXXFLAGS_OPTIMIZE_SERVER_SIMPLE) $(CXXFLAGS_WARNING_SERVER_SIMPLE)
++CXXFLAGS += $(CXXFLAGS_WARNING_SERVER_SIMPLE)
+
+ SOURCES = ${wildcard *.cpp}
+ OBJECTS = ${addprefix $(VAR_PATH)/$(TARGET_BASE)/,$(SOURCES:.cpp=.o)}
diff --git a/app-i18n/yaskkserv/files/yaskkserv.confd b/app-i18n/yaskkserv/files/yaskkserv.confd
new file mode 100644
index 000000000000..eef7cad616ab
--- /dev/null
+++ b/app-i18n/yaskkserv/files/yaskkserv.confd
@@ -0,0 +1,10 @@
+# Select yaskkserv server type:
+# - simple
+# Without dictionary reloading
+# - normal
+# - hairy
+# With "Server completion" and "Google Japanese Input API"
+YASKKSERV_SERVER_TYPE="normal"
+
+# Options to pass to yaskkserv
+YASKKSERV_OPTS="/usr/share/skk/SKK-JISYO.L.yaskkserv"
diff --git a/app-i18n/yaskkserv/files/yaskkserv.initd b/app-i18n/yaskkserv/files/yaskkserv.initd
new file mode 100644
index 000000000000..d2e5aefd9e10
--- /dev/null
+++ b/app-i18n/yaskkserv/files/yaskkserv.initd
@@ -0,0 +1,13 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/sbin/${RC_SVCNAME}_${YASKKSERV_SERVER_TYPE}"
+command_args="--no-daemonize ${YASKKSERV_OPTS}"
+command_background="true"
+pidfile="${pidfile:-/run/${RC_SVCNAME}.pid}"
+
+depend() {
+ need net
+ use logger
+}
diff --git a/app-i18n/yaskkserv/files/yaskkserv.service b/app-i18n/yaskkserv/files/yaskkserv.service
new file mode 100644
index 000000000000..40c8ee4c8974
--- /dev/null
+++ b/app-i18n/yaskkserv/files/yaskkserv.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Yet Another SKK server
+After=yaskkserv.socket
+Requires=yaskkserv.socket
+
+[Service]
+User=nobody
+EnvironmentFile=/etc/conf.d/yaskkserv
+ExecStart=/usr/sbin/yaskkserv${YASKKSERV_SERVER_TYPE} --no-daemonize ${YASKKSERV_OPTS}
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-i18n/yaskkserv/metadata.xml b/app-i18n/yaskkserv/metadata.xml
new file mode 100644
index 000000000000..11ae35030635
--- /dev/null
+++ b/app-i18n/yaskkserv/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">wachikun/yaskkserv</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild b/app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild
new file mode 100644
index 000000000000..0d0ae48356cc
--- /dev/null
+++ b/app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit toolchain-funcs systemd
+
+DESCRIPTION="Yet Another SKK server"
+HOMEPAGE="http://umiushi.org/~wac/yaskkserv/"
+SRC_URI="http://umiushi.org/~wac/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="gnutls libressl systemd"
+
+RDEPEND="app-i18n/skk-jisyo
+ gnutls? ( net-libs/gnutls )
+ !gnutls? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )
+ systemd? ( virtual/udev[systemd] )"
+DEPEND="${RDEPEND}
+ dev-lang/perl"
+
+REQUIRED_USE="?? ( gnutls libressl )"
+
+PATCHES=( "${FILESDIR}"/${PN}-gentoo.patch )
+DOCS=( README.md )
+HTML_DOCS=( documentation/. )
+
+src_configure() {
+ econf \
+ $(use_enable gnutls) \
+ $(use_enable systemd) \
+ --compiler="${tc_getCXX}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install_all
+ einstalldocs
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+
+ systemd_dounit examples/${PN}.socket
+ systemd_dounit "${FILESDIR}"/${PN}.service
+}
+
+yaskkserv_update() {
+ local f
+ for f in "${ROOT}"/usr/share/skk/SKK-JISYO.*; do
+ case ${f} in
+ *.cdb)
+ ;;
+ *.${PN})
+ [[ -f ${f%.*} ]] || rm -f "${f}"
+ ;;
+ *)
+ [[ ${f} -nt ${f}.${PN} ]] && ${PN}_make_dictionary "${f}" "${f}.${PN}"
+ ;;
+ esac
+ done
+}
+
+pkg_postinst() {
+ yaskkserv_update
+
+ elog "You need to run:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+ elog "after updating app-i18n/skk-jisyo from next time."
+}
+
+pkg_postrm() {
+ rm -f "${ROOT}"/usr/share/skk/SKK-JISYO.*.${PN}
+ rmdir "${ROOT}"/usr/share/skk 2>/dev/null
+}
+
+pkg_config() {
+ yaskkserv_update
+}
diff --git a/app-i18n/zhcon/Manifest b/app-i18n/zhcon/Manifest
new file mode 100644
index 000000000000..18e7cadd4472
--- /dev/null
+++ b/app-i18n/zhcon/Manifest
@@ -0,0 +1,14 @@
+AUX zhcon-0.2.6+gcc-4.3.patch 5808 SHA256 376503635df1d7d420d3979535db8b41ceeaf3c53643d2cf5ca0582bb5ebc068 SHA512 f8bc5a21ec505494fa104c16ed1057a73b0da3be060b381a1ba8ad29d470dbb8e9361714821eb9ec19ae8898b77a7c9855ca163daf632c2e3bad90aa3c7239cb WHIRLPOOL c79166e903441493cf22ba22a10862a5868b965567832fe0b8f8a5a112802f4e6369c7970489c1d77fadc0f219ad5ed123e639ffd6b310e091bf673d05183adf
+AUX zhcon-0.2.6+linux-headers-2.6.26.patch 527 SHA256 4ac96b499010b099789fc2fb44715e4c30b170b37ca70512512fb2f02a085473 SHA512 2800b14b46341afdaf2e8d555232a78583415de168ba1fef32205a73b32fa838fcdb1a99f6d389b2d5df87c9d5d764fe44eba7e70d5164521e3ac65977de553c WHIRLPOOL 4a589c75ef9ac283913c92909f0cb084e15c8e3b4b2f3043d4a2ba5c6a8d4c4efd8e35e6bea6670ede6d300a6c66da1f712d0c5dd424c36a10375127eed4e596
+AUX zhcon-0.2.6-amd64.patch 2760 SHA256 86af4cd283c5b83fbb427248d79dd5a13e379870b735c678bb041736750ff103 SHA512 4c2a398b78b3026ddfb6a2a77308bb1a78cae51eff0691d42ff7c849a266414c74033f8ce6b6bf211a7ab6dcf39d94dffc96e27dd4e9604629a70f7a65bd907a WHIRLPOOL adc299b6a0a65edb966cf0c681035b6aa06a843d22adcc008a9e4c6c6753574d2b44ff32bd7322838145fd36e0db1ab166a862ed13c1497f85f21b88de511952
+AUX zhcon-0.2.6-automagic-fix.patch 1363 SHA256 977d728c7d1bc2953dc39ac3699791f63f6a10df60eeab5d338cce36d20fc71c SHA512 c88b2d15e8a9f47de46d6cd5e0ac6a0e5bbeaa45ffb39a91d9067fc3f730019ac753e8517e2636994b5ab5bc44c1bd081246b0700ecff61b3dab45caba0d3226 WHIRLPOOL 9dc3ba1e86e2507987af60d804a85c86f4b8c43f6211d5c3ff9b92ff2139ce488551ffad688a32577e4d0cc527f8baba3d64ad049389351c4106b5bb4f3890ad
+AUX zhcon-0.2.6-curses.patch 694 SHA256 7f64f8bba73ae1a5d8bc177ad8c2afec2c4993b618625b12f0e6ef89f381555b SHA512 245b60dd255cff47d70cd1d4dea7b816fcbc668cfa74d5642bb9689e3f819667e76b8336ec3c746d34a3c744d2a6c1d88b32b73f20e41e1f5c830524e158c265 WHIRLPOOL f2b5e12c3d862846b97668c4b9b302318eeac7e4af30628d8604d4c12cc87f582d09b12cfbdc1e51bf11dfe99c2b72d707ff0163d17bf8f6f4e967699b15618f
+AUX zhcon-0.2.6.configure.in.patch 379 SHA256 b60776306429db1afdda49e500bf1aa20c654c5b183e7e599afe08a0bc582dda SHA512 8d226fb01707b37bc5accd44fad01cf028ccfd4c9d826f4056700c9291b3f544333f80f716da4834dae5e32a6a17bdd1c7913635e14eb10764716a45b91229d6 WHIRLPOOL ffd96da9fc35c73fcb084236de210b3f565c5bb0ab9360e1e7f49ad5728919eaff408ef8d3a479474eee4c8770030679d6ae18b5d8de5918ccffeff159cad731
+AUX zhcon-0.2.6.make-fix.patch 3071 SHA256 90d62243a7bd482cdbdd627f559c93c5d4c5e931426f8225f75cda484d2571a1 SHA512 25ac39954f69c251ea1587f580879ca1e38502997b1b7313ef43a84d8626811c5b74e1a0065fec94f4c5acf378ee4495cb41c3ff3a902bd73973f15239c593a8 WHIRLPOOL 6274fb5cc03a093e644b2216c18aa25273c09e12538214916113c0b34aa8487153a4b3bd50fde55319e3c2a2aaddecd687a8530013a5ba3c4bd8534802b39be3
+AUX zhcon-0.2.6.sysconfdir.patch 874 SHA256 9d0ce6c403f808c9a0d942297b72723765155fceb2dc5345ea1e3d7e26510efc SHA512 db957f80b00be3bebb73120ef2556aaa673fda3b85817213617a81a651960279d23ecb768a164e161b9be7cd2289509cf0f8243eb7e2903b976b5b2bd0b0b951 WHIRLPOOL 3fb12fc1a79824c464ccc200abe2f10e80c53919fea00d23fe55ac0a9bf4c6ebf5bc9cfa699ea02a686a33367289a5bab41ca4e64e235e617fe212ab82edabdc
+DIST zhcon-0.2.5-to-0.2.6.diff.gz 2881 SHA256 c9da3f7290f7d74f3ca4f0d78c00c73c0100bcca5eba5d08c629ddc6c7ced9e1 SHA512 c4725e600cde5a629735506c8eaa3b78df4606cd2745891a21c4f25889cff10b6fe4cbeb3cf60b85ad62ed0e46c8e7bbb802b7675f79f3a1d82f6942c393d4ad WHIRLPOOL 07f46130be2e35ff6cb129781bc3a91d803e2e5ec21294c4d514077f04b269568ab8ea4f0950f26693e88a0b10a007dce64344f40362013df13d1424151bf575
+DIST zhcon-0.2.5.tar.gz 5011644 SHA256 4ce4dc1395b6f6a920d44aac069a284bff76df4019ac4164850d263538465d59 SHA512 35f1517b649e5afe3156eb1aa7735f3d3a988fad08c433b8f343df6ba3fdef89493afe61488a76059e4bfa1db4455d21d0bde7041bab37eb50e5ab0b622218fa WHIRLPOOL 9998d7eff8cbc6336d5980b98523ae2d4152b8510464ce3ddde9e109f27d06d7cfb649e5fcf0ddaa830c74401aaff1746a154259b36ab310f2fe0d146d091abc
+EBUILD zhcon-0.2.6-r2.ebuild 1358 SHA256 864d90c30ec654ce0cda1525aff043752ae131c8d16b6ffec7dfa3fc4e788201 SHA512 62b999c8ad154c9adb5b2e86854d2a79d39a30c2c53bd7dc494f3cbf0811c94b7e98ef2f4920f2734ee54cfa288dafaa65816eb0f41085f8826d98206c6d8036 WHIRLPOOL 882874500a99a16db0b50f32f814ae8b866fdc21e07e931fb7110ce085e11b6738d753765638a326b7c607314be6c92e1046d76a4740f182a80c3572bb703b29
+MISC ChangeLog 2940 SHA256 91cd96d00d66449e5b8c69334b13674af2c46a250ffea48e161264b4e917f0fa SHA512 8ea1c32dc6a79ad3938d3e6f89cc1df7f815a5a98c74c7357afcf7042fd2873ecc445e8884b60e483486e20876dde9a9f004a570e4bdcb80d1cc315b615b1a10 WHIRLPOOL 2261cead409b1b4de324e6d0f82743c034ad363be6d915cf335abddbcedd2a596a86e2163a0c395978c815d11f3f36612f41b81705e6b37395889744ac0dc659
+MISC ChangeLog-2015 3539 SHA256 1daf84c1971701c5ef988f7ebca00dd1d31df5147e4b52a87a7586b98b54d55c SHA512 0de62f12320f983762f2d410c871c67f2a28fc6fb84eeaa3797d77f58118671520bf9521984f9c1fd0ffa4a58d6b0374fd7a62a1c5c805d4ce84ae7f848bf8d8 WHIRLPOOL 77e38e66915c9d4a70483410a206bbdf65f659b9da647e2360de3ca59170e03a7b8fc71fd3ead4cc1bcd0174ef659651d73846727cb4ac292cfde28c22f3ff41
+MISC metadata.xml 620 SHA256 9ac4acad81a6711d3375dac37b0e19eb4d74a4cfba2584d4e81c2036ba700f28 SHA512 f67cb7edc94c9d26bf5b7e89d9a02333aec62d8dce387b2449c1879f93a56654a12292b92be63936615ca916452a0d19d62bee984e2462fb939a0fe98e2e7c84 WHIRLPOOL 8700e9d9d985952239154014f3cd2bda787920ae6ac40b350a4f1013ad32fdab97b0da32b1d6ec13a848b1b55b9d83f8fbc78ea1b491d464a95f26b620e2e406
diff --git a/app-i18n/zhcon/files/zhcon-0.2.6+gcc-4.3.patch b/app-i18n/zhcon/files/zhcon-0.2.6+gcc-4.3.patch
new file mode 100644
index 000000000000..beece66b1da8
--- /dev/null
+++ b/app-i18n/zhcon/files/zhcon-0.2.6+gcc-4.3.patch
@@ -0,0 +1,185 @@
+diff -NrU5 zhcon-0.2.6.orig/src/basefont.cpp zhcon-0.2.6/src/basefont.cpp
+--- zhcon-0.2.6.orig/src/basefont.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/basefont.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -27,10 +27,12 @@
+ #include "global.h"
+ #include "debug.h"
+ #include "hzdecoder.h"
+ #include "basefont.h"
+
++#include <cstring>
++
+ BaseFont::BaseFont(string & fn, int w, int h)
+ :mFd(0)
+ ,mpBuf(0)
+ ,mWidth(w)
+ ,mHeight(h) {
+diff -NrU5 zhcon-0.2.6.orig/src/display/fblinear4.cpp zhcon-0.2.6/src/display/fblinear4.cpp
+--- zhcon-0.2.6.orig/src/display/fblinear4.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/display/fblinear4.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -20,10 +20,12 @@
+ #include <assert.h>
+ #include <endian.h>
+ #include "global.h"
+ #include "fblinear4.h"
+
++#include <cstring>
++
+ __u16 FBLinear4::nibbletab_cfb4[] = {
+ #if BYTE_ORDER == LITTLE_ENDIAN
+ 0x0000,0xf000,0x0f00,0xff00,
+ 0x00f0,0xf0f0,0x0ff0,0xfff0,
+ 0x000f,0xf00f,0x0f0f,0xff0f,
+diff -NrU5 zhcon-0.2.6.orig/src/display/fblinear8.cpp zhcon-0.2.6/src/display/fblinear8.cpp
+--- zhcon-0.2.6.orig/src/display/fblinear8.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/display/fblinear8.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -20,10 +20,12 @@
+ #include <assert.h>
+ #include <endian.h>
+ #include "global.h"
+ #include "fblinear8.h"
+
++#include <cstring>
++
+ __u32 FBLinear8::nibbletab_cfb8[] = {
+ #if BYTE_ORDER == LITTLE_ENDIAN
+ 0x00000000,0xff000000,0x00ff0000,0xffff0000,
+ 0x0000ff00,0xff00ff00,0x00ffff00,0xffffff00,
+ 0x000000ff,0xff0000ff,0x00ff00ff,0xffff00ff,
+diff -NrU5 zhcon-0.2.6.orig/src/display/fbvgaplanes.cpp zhcon-0.2.6/src/display/fbvgaplanes.cpp
+--- zhcon-0.2.6.orig/src/display/fbvgaplanes.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/display/fbvgaplanes.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -36,10 +36,12 @@
+ : "a" ((char) value),
+ "d" ((unsigned short) port));
+ }
+ #endif
+
++#include <cstring>
++
+ /* based on kernel
+ * Force strict CPU ordering.
+ * And yes, this is required on UP too when we're talking
+ * to devices.
+ *
+diff -NrU5 zhcon-0.2.6.orig/src/display/vgadev.cpp zhcon-0.2.6/src/display/vgadev.cpp
+--- zhcon-0.2.6.orig/src/display/vgadev.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/display/vgadev.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -35,10 +35,12 @@
+ #include <cassert>
+ #include "debug.h"
+ #include "vgadev.h"
+ #include "lrmi.h"
+
++#include <cstring>
++
+ #define GRAPH_BASE 0xA0000
+ #define GRAPH_ADDR 0x3ce
+ #define GRAPH_DATA 0x3cf
+
+ char *VGADev::mpBuf = NULL;
+diff -NrU5 zhcon-0.2.6.orig/src/graphdev.cpp zhcon-0.2.6/src/graphdev.cpp
+--- zhcon-0.2.6.orig/src/graphdev.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/graphdev.cpp 2008-04-29 23:16:14.000000000 +0200
+@@ -24,20 +24,23 @@
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+ #include <sys/mman.h>
+ #include <assert.h>
+ #include <iostream>
++#include <cstdlib>
+ #include "debug.h"
+
+ #include "display/fbdev.h"
+ #include "display/vgadev.h"
+ #if defined(linux) || defined(__FreeBSD__)
+ #ifdef HAVE_GGI_LIB
+ #include "display/libggi.h"
+ #endif
+ #endif
+
++#include <cstring>
++
+ using namespace std;
+ // mmap framebuffer address
+ GraphDev *GraphDev::mpGraphDev = NULL;
+
+ // font
+diff -NrU5 zhcon-0.2.6.orig/src/inputclient.cpp zhcon-0.2.6/src/inputclient.cpp
+--- zhcon-0.2.6.orig/src/inputclient.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/inputclient.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -14,10 +14,12 @@
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
++#include <cstdlib>
++
+ #include "inputclient.h"
+
+ Console* InputClient::mpCon = NULL;
+ InputClient::InputClient()
+ : mVisible(false),
+diff -NrU5 zhcon-0.2.6.orig/src/inputmanager.cpp zhcon-0.2.6/src/inputmanager.cpp
+--- zhcon-0.2.6.orig/src/inputmanager.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/inputmanager.cpp 2008-04-29 23:19:01.000000000 +0200
+@@ -22,10 +22,11 @@
+ using namespace std;
+
+ #include <unistd.h>
+ #include <sys/time.h>
+ #include <string>
++#include <cstdlib>
+
+ #include "global.h"
+ #include "debug.h"
+ #include "keymap.h"
+ #include "console.h"
+diff -NrU5 zhcon-0.2.6.orig/src/inputmanager.h zhcon-0.2.6/src/inputmanager.h
+--- zhcon-0.2.6.orig/src/inputmanager.h 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/inputmanager.h 2008-04-29 23:15:37.000000000 +0200
+@@ -24,10 +24,11 @@
+ *@author ejoy
+ */
+ using namespace std;
+ #include <cassert>
+ #include <vector>
++#include <sys/types.h>
+
+ #include "mouse.h"
+ #if defined(__FreeBSD__)
+ #include <sys/kbio.h>
+ #endif
+diff -NrU5 zhcon-0.2.6.orig/src/window.cpp zhcon-0.2.6/src/window.cpp
+--- zhcon-0.2.6.orig/src/window.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/window.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -22,10 +22,12 @@
+ #include <algorithm>
+ #include "global.h"
+ #include "debug.h"
+ #include "window.h"
+
++#include <cstring>
++
+ //static members for all the windows
+ Window* Window::mpConsole = NULL;
+ char* Window::mpOverlaps = NULL;
+
+ Window::Window(int x1, int y1, int x2, int y2, int type)
+diff -NrU5 zhcon-0.2.6.orig/src/zhcon.cpp zhcon-0.2.6/src/zhcon.cpp
+--- zhcon-0.2.6.orig/src/zhcon.cpp 2008-04-29 23:15:08.000000000 +0200
++++ zhcon-0.2.6/src/zhcon.cpp 2008-04-29 23:15:37.000000000 +0200
+@@ -81,10 +81,12 @@
+ #ifndef NDEBUG
+ #include "debug.h"
+ ofstream debug("debug");
+ #endif
+
++#include <cstring>
++
+ Zhcon* Zhcon::mpZhcon = NULL;
+ int Zhcon::mTtyPid = 0;
+ Zhcon::STATE Zhcon::mState = STOP;
+
+ void Zhcon::SignalVtLeave(int signo) {
diff --git a/app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch b/app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch
new file mode 100644
index 000000000000..67d5b961a070
--- /dev/null
+++ b/app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch
@@ -0,0 +1,18 @@
+diff --git a/src/display/lrmi.c b/src/display/lrmi.c
+index 85c6fe6..5c74260 100644
+--- a/src/display/lrmi.c
++++ b/src/display/lrmi.c
+@@ -33,6 +33,13 @@ This software has NO WARRANTY. Use it at your own risk.
+
+ #include "lrmi.h"
+
++#if defined(__linux__) && !defined(TF_MASK)
++ #define TF_MASK X86_EFLAGS_TF
++ #define IF_MASK X86_EFLAGS_IF
++ #define VIF_MASK X86_EFLAGS_VIF
++ #define IOPL_MASK X86_EFLAGS_IOPL
++#endif
++
+ #define REAL_MEM_BASE ((void *)0x10000)
+ #define REAL_MEM_SIZE 0x10000
+ #define REAL_MEM_BLOCKS 0x100
diff --git a/app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch b/app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch
new file mode 100644
index 000000000000..58da5e99766a
--- /dev/null
+++ b/app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch
@@ -0,0 +1,77 @@
+diff --git a/src/winime.cpp b/src/winime.cpp
+index 0c52393..85729a3 100644
+--- a/src/winime.cpp
++++ b/src/winime.cpp
+@@ -56,10 +56,10 @@ mCandilistBufLen(0)
+
+ memcpy(&mHead, mpBuf, sizeof(mHead));
+ int len = strlen(mHead.mCodeSet);
+- mpIndex1 = (char **) (mpBuf + sizeof(mHead));
+- mpIndex2 = (char **) (mpBuf + sizeof(mHead) + len * sizeof(char *));
+- mpText = mpBuf + sizeof(mHead) + len * sizeof(char *) +
+- len * len * sizeof(char *);
++ mpIndex1 = (int *) (mpBuf + sizeof(mHead));
++ mpIndex2 = (int *) (mpBuf + sizeof(mHead) + len * sizeof(int));
++ mpText = mpBuf + sizeof(mHead) + len * sizeof(int) +
++ len * len * sizeof(int);
+ }
+
+ WinIme::~WinIme() {
+@@ -246,32 +246,33 @@ int WinIme::Search(char c) {
+ // p = *t;
+ }
+ else
+- p = mpIndex1[Index(c)];
++ p = (char *)mpIndex1[Index(c)];
+
+ if (p == (char *) 0xffffffff)
+ found = false;
+- p = (unsigned int) p + mpText;
++ p = (unsigned long) p + mpText;
+ } //2nd level index
+ else if (mNum == 1) {
+ int l = strlen(mHead.mCodeSet);
+ if (c == mHead.mWildChar) {
+ char **t;
+ t =
+- find_if(mpIndex2 + Index(mInput[0]) * l,
+- mpIndex2 + (Index(mInput[0]) + 1) * l,
++ find_if((char **)(mpIndex2 + Index(mInput[0]) * l),
++ (char **)(mpIndex2 + (Index(mInput[0]) + 1) * l),
+ bind2nd(not_equal_to < char *>(),
+ (char *) 0xffffffff));
+- if (t == mpIndex2 + (Index(mInput[0]) + 1) * l)
++ if (t == ((char **)mpIndex2) + (Index(mInput[0]) + 1) * l)
+ p = (char *) 0xffffffff;
+ else
+ p = *t;
+- } else
+- p = mpIndex2[Index(mInput[0]) * l + Index(c)];
++ } else {
++ int dd = Index(mInput[0]) * l + Index(c);
++ p = (char *)(mpIndex2[Index(mInput[0]) * l + Index(c)]);
++ }
+
+ if (p == (char *) 0xffffffff)
+ found = false;
+-
+- p = (unsigned int) p + mpText;
++ p = (unsigned long) p + mpText;
+ } else if (mNum < mHead.mMaxCodes) {
+ p = mpOffset[mNum - 1];
+ if (p == (char *) 0xffffffff)
+diff --git a/src/winime.h b/src/winime.h
+index c2f51ab..816a270 100644
+--- a/src/winime.h
++++ b/src/winime.h
+@@ -83,8 +83,8 @@ class WinIme {
+ char* mpOffset[12];
+ int mFd;
+ char* mpBuf;
+- char** mpIndex1;
+- char** mpIndex2;
++ int *mpIndex1;
++ int *mpIndex2;
+ char* mpText;
+ char* mpCur; //current search position
+ unsigned int mBufSize;
diff --git a/app-i18n/zhcon/files/zhcon-0.2.6-automagic-fix.patch b/app-i18n/zhcon/files/zhcon-0.2.6-automagic-fix.patch
new file mode 100644
index 000000000000..5b4b24137f1e
--- /dev/null
+++ b/app-i18n/zhcon/files/zhcon-0.2.6-automagic-fix.patch
@@ -0,0 +1,36 @@
+--- zhcon-0.2.5.orig/configure.in 2010-01-31 15:12:10.521592172 +0100
++++ zhcon-0.2.5/configure.in 2010-01-31 15:12:33.939593092 +0100
+@@ -170,18 +170,25 @@
+ dnl-----------------------------------------------------------------------
+ dnl Checks for gpm
+ dnl-----------------------------------------------------------------------
+-usegpm="yes"
+-AC_CHECK_HEADERS(gpm.h,,usegpm="no")
+-AC_CHECK_LIB(gpm,Gpm_Open,,usegpm="no")
++AC_ARG_WITH([gpm], AS_HELP_STRING([--without-gpm], [Build without gpm library (default: test)]))
++
++usegpm='no'
++if test "x$with_gpm" != "xno"; then
++ AC_CHECK_HEADERS(gpm.h,,AC_ERROR([gpm.h not found]))
++ AC_CHECK_LIB(gpm,Gpm_Open,,AC_ERROR([libgpm not found]))
++ usegpm='yes'
++fi
+
+ dnl-----------------------------------------------------------------------
+ dnl Checks for libggi
+ dnl-----------------------------------------------------------------------
+-useggi="yes"
+-AC_CHECK_HEADERS(ggi/ggi.h,,useggi="no")
+-AC_CHECK_LIB(ggi, main,,useggi="no")
+-if test "$useggi" = 'yes';then
+- AC_DEFINE(HAVE_GGI_LIB)
++AC_ARG_WITH([ggi], AS_HELP_STRING([--without-ggi], [Build without ggi library (default: test)]))
++
++useggi='no'
++if test "x$with_ggi" != "xno"; then
++ AC_CHECK_HEADERS(ggi/ggi.h,,AC_ERROR([ggi.h not found]))
++ AC_CHECK_LIB(ggi, ggiInit,, AC_ERROR([libggi not found]))
++ useggi='yes'
+ fi
+
+ AC_OUTPUT([Makefile
diff --git a/app-i18n/zhcon/files/zhcon-0.2.6-curses.patch b/app-i18n/zhcon/files/zhcon-0.2.6-curses.patch
new file mode 100644
index 000000000000..200014e1d717
--- /dev/null
+++ b/app-i18n/zhcon/files/zhcon-0.2.6-curses.patch
@@ -0,0 +1,22 @@
+diff --git a/configure.in b/configure.in
+index 63172e4..6c2afcc 100644
+--- a/configure.in
++++ b/configure.in
+@@ -132,7 +132,7 @@ fi
+ AC_SUBST(ZHCON_LOCALE_DIR)
+
+ AC_CHECK_LIB(util, forkpty)
+-AC_CHECK_LIB(curses, main)
++AC_SEARCH_LIBS([tgetent], [cursesw curses ncursesw ncurses], [break;])
+
+ dnl for freebsd
+ dnl AC_CHECK_LIB(c, i386_set_ioperm)
+@@ -172,7 +172,7 @@ dnl Checks for gpm
+ dnl-----------------------------------------------------------------------
+ usegpm="yes"
+ AC_CHECK_HEADERS(gpm.h,,usegpm="no")
+-AC_CHECK_LIB(gpm,main,,usegpm="no")
++AC_CHECK_LIB(gpm,Gpm_Open,,usegpm="no")
+
+ dnl-----------------------------------------------------------------------
+ dnl Checks for libggi
diff --git a/app-i18n/zhcon/files/zhcon-0.2.6.configure.in.patch b/app-i18n/zhcon/files/zhcon-0.2.6.configure.in.patch
new file mode 100644
index 000000000000..0624a934e02c
--- /dev/null
+++ b/app-i18n/zhcon/files/zhcon-0.2.6.configure.in.patch
@@ -0,0 +1,11 @@
+--- a/configure.in 2006-06-22 13:02:59.197841560 +0800
++++ b/configure.in 2006-06-22 12:48:59.000000000 +0800
+@@ -55,7 +55,7 @@
+
+ CFLAGS="$CFLAGS -funsigned-char -O2"
+ CXXFLAGS="$CXXFLAGS -funsigned-char -O2"
+-if test $enable_debug = 'yes';then
++if test "x$enable_debug" = "xyes";then
+ CFLAGS="$CFLAGS -O0 -g3 -Wall"
+ CXXFLAGS="$CXXFLAGS -O0 -g3 -Wall"
+ else
diff --git a/app-i18n/zhcon/files/zhcon-0.2.6.make-fix.patch b/app-i18n/zhcon/files/zhcon-0.2.6.make-fix.patch
new file mode 100644
index 000000000000..ccde407ef81a
--- /dev/null
+++ b/app-i18n/zhcon/files/zhcon-0.2.6.make-fix.patch
@@ -0,0 +1,82 @@
+diff -Naur zhcon-0.2.5.orig/doc/Makefile.am zhcon-0.2.5/doc/Makefile.am
+--- zhcon-0.2.5.orig/doc/Makefile.am 2006-05-03 02:57:18.000000000 +0900
++++ zhcon-0.2.5/doc/Makefile.am 2011-01-25 18:08:26.483746175 +0900
+@@ -3,8 +3,8 @@
+ EXTRA_DIST = zhcon.1.in poem.big5 poem.gb poem.gb.utf8 bpsf.txt manual.tex manual.dvi manual.ps README.html default.css html.tar.gz
+
+ install-data-local:
+- $(mkinstalldirs) $(mandir)/man1/
+- $(INSTALL_DATA) $(top_builddir)/doc/zhcon.1 $(mandir)/man1/zhcon.1
++ $(mkinstalldirs) $(DESTDIR)$(mandir)/man1/
++ $(INSTALL_DATA) $(top_builddir)/doc/zhcon.1 $(DESTDIR)$(mandir)/man1/zhcon.1
+
+ uninstall-local:
+- -rm -f $(mandir)/man1/zhcon.1
++ -rm -f $(DESTDIR)$(mandir)/man1/zhcon.1
+diff -Naur zhcon-0.2.5.orig/font/Makefile.am zhcon-0.2.5/font/Makefile.am
+--- zhcon-0.2.5.orig/font/Makefile.am 2006-04-25 01:39:04.000000000 +0900
++++ zhcon-0.2.5/font/Makefile.am 2011-01-25 18:08:26.483746175 +0900
+@@ -1,8 +1,8 @@
+ EXTRA_DIST = *.bpsf
+
+ install-data-local:
+- $(mkinstalldirs) $(libdir)/zhcon/font/
+- $(INSTALL_DATA) $(srcdir)/*.bpsf $(libdir)/zhcon/font/
++ $(mkinstalldirs) $(DESTDIR)$(libdir)/zhcon/font/
++ $(INSTALL_DATA) $(srcdir)/*.bpsf $(DESTDIR)$(libdir)/zhcon/font/
+
+ uninstall-local:
+- -rm -f $(libdir)/zhcon/font/*.bpsf
++ -rm -f $(DESTDIR)$(libdir)/zhcon/font/*.bpsf
+diff -Naur zhcon-0.2.5.orig/input/Makefile.am zhcon-0.2.5/input/Makefile.am
+--- zhcon-0.2.5.orig/input/Makefile.am 2006-04-25 01:38:44.000000000 +0900
++++ zhcon-0.2.5/input/Makefile.am 2011-01-25 18:08:26.483746175 +0900
+@@ -1,8 +1,8 @@
+ EXTRA_DIST = *.mb
+
+ install-data-local:
+- $(mkinstalldirs) $(libdir)/zhcon/input/
+- $(INSTALL_DATA) $(srcdir)/*.mb $(libdir)/zhcon/input/
++ $(mkinstalldirs) $(DESTDIR)$(libdir)/zhcon/input/
++ $(INSTALL_DATA) $(srcdir)/*.mb $(DESTDIR)$(libdir)/zhcon/input/
+
+ uninstall-local:
+- -rm -f $(libdir)/zhcon/input/*.mb
++ -rm -f $(DESTDIR)$(libdir)/zhcon/input/*.mb
+diff -Naur zhcon-0.2.5.orig/src/Makefile.am zhcon-0.2.5/src/Makefile.am
+--- zhcon-0.2.5.orig/src/Makefile.am 2006-05-03 02:12:41.000000000 +0900
++++ zhcon-0.2.5/src/Makefile.am 2011-01-25 18:11:42.446555911 +0900
+@@ -7,15 +7,12 @@
+
+ SUBDIRS = display
+
+-install-exec-local:
+- chmod 4755 $(bindir)/zhcon
+-
+ install-data-local:
+- $(mkinstalldirs) $(prefix)/etc
+- $(INSTALL_DATA) $(srcdir)/zhcon.conf $(prefix)/etc/zhcon.conf
++ $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
++ $(INSTALL_DATA) $(srcdir)/zhcon.conf $(DESTDIR)$(sysconfdir)/zhcon.conf
+
+ uninstall-local:
+- -rm -f $(prefix)/etc/zhcon.conf
++ -rm -f $(DESTDIR)$(sysconfdir)/zhcon.conf
+
+ # set the include path found by configure
+ INCLUDES= $(all_includes)
+diff -Naur zhcon-0.2.5.orig/tools/Makefile.am zhcon-0.2.5/tools/Makefile.am
+--- zhcon-0.2.5.orig/tools/Makefile.am 2006-04-25 01:38:46.000000000 +0900
++++ zhcon-0.2.5/tools/Makefile.am 2011-01-25 18:04:22.701226453 +0900
+@@ -9,11 +9,6 @@
+ #getbpsf_LDADD = -L/usr/X11R6/lib -lX11
+ #getbpsf_CPPFLAGS = -I/usr/X11R6/include
+
+-LDFLAGS=
+-CXXFLAGS=
+-CCFLAGS=
+-LIBS=
+-
+ EXTRA_DIST = README getbpsf.txt gpm-1.19.6-pty.diff\
+ gpm-1.19.6-patched.tar.gz
+
diff --git a/app-i18n/zhcon/files/zhcon-0.2.6.sysconfdir.patch b/app-i18n/zhcon/files/zhcon-0.2.6.sysconfdir.patch
new file mode 100644
index 000000000000..bc1d8713cd22
--- /dev/null
+++ b/app-i18n/zhcon/files/zhcon-0.2.6.sysconfdir.patch
@@ -0,0 +1,24 @@
+diff -ruN zhcon-0.2.5/src/Makefile.am /tmp/zhcon-0.2.5/src/Makefile.am
+--- a/zhcon-0.2.5/src/Makefile.am 2006-06-22 12:35:01.531885552 +0800
++++ b/zhcon-0.2.5/src/Makefile.am 2006-06-22 12:31:44.000000000 +0800
+@@ -5,6 +5,8 @@
+
+ zhcon_LDADD = display/libdisplay.a
+
++zhcon_CPPFLAGS = -DSYSCONF_DIR=\"${sysconfdir}\"
++
+ SUBDIRS = display
+
+ install-exec-local:
+diff -ruN zhcon-0.2.5/src/zhcon.cpp /tmp/zhcon-0.2.5/src/zhcon.cpp
+--- a/zhcon-0.2.5/src/zhcon.cpp 2006-06-22 12:35:01.398905768 +0800
++++ b/zhcon-0.2.5/src/zhcon.cpp 2006-06-22 12:32:41.000000000 +0800
+@@ -123,7 +123,7 @@
+ string cfgfile = getenv("HOME");
+ cfgfile += "/.zhconrc";
+ if (access(cfgfile.c_str(), R_OK) != 0)
+- cfgfile = PREFIX "/etc/zhcon.conf";
++ cfgfile = SYSCONF_DIR"/zhcon.conf";
+
+ //for debug,a pause enable us to attach zhcon's pid in gdb
+ //char c;cin>>c;
diff --git a/app-i18n/zhcon/metadata.xml b/app-i18n/zhcon/metadata.xml
new file mode 100644
index 000000000000..b720aad5796d
--- /dev/null
+++ b/app-i18n/zhcon/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <longdescription>zhcon is a Fast double-byte virtual console for
+Chinese/Japanese/Korean (CJK) running under GNU/Linux and FreeBSD.
+It adds the ability of displaying and inputting CJK double-byte
+characters on console device. Currently Japanese display and input
+function seems to be broken.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">zhcon</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/zhcon/zhcon-0.2.6-r2.ebuild b/app-i18n/zhcon/zhcon-0.2.6-r2.ebuild
new file mode 100644
index 000000000000..65f87490e84a
--- /dev/null
+++ b/app-i18n/zhcon/zhcon-0.2.6-r2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+WANT_AUTOMAKE="1.9"
+
+inherit autotools eutils
+
+MY_P="${P/6/5}"
+
+DESCRIPTION="A Fast CJK (Chinese/Japanese/Korean) Console Environment"
+HOMEPAGE="http://zhcon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/zhcon/${MY_P}.tar.gz
+ mirror://sourceforge/zhcon/zhcon-0.2.5-to-0.2.6.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ggi gpm"
+
+DEPEND="ggi? ( media-libs/libggi[X] )
+ gpm? ( sys-libs/gpm )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${DISTDIR}"/zhcon-0.2.5-to-0.2.6.diff.gz
+ epatch "${FILESDIR}"/${P}.sysconfdir.patch
+ epatch "${FILESDIR}"/${P}.configure.in.patch
+ epatch "${FILESDIR}"/${P}+gcc-4.3.patch
+ epatch "${FILESDIR}"/${P}+linux-headers-2.6.26.patch
+ epatch "${FILESDIR}"/${P}-curses.patch
+ epatch "${FILESDIR}"/${P}-amd64.patch
+ epatch "${FILESDIR}"/${P}-automagic-fix.patch
+ epatch "${FILESDIR}"/${P}.make-fix.patch
+ for f in $(grep -lir HAVE_GGI_LIB *); do
+ sed -i -e "s/HAVE_GGI_LIB/HAVE_LIBGGI/" "${f}" || die "sed failed"
+ done
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_with ggi) \
+ $(use_with gpm) || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog README NEWS TODO THANKS || die
+ dodoc README.BSD README.gpm README.utf8 || die
+}
diff --git a/app-i18n/zinnia-tomoe/Manifest b/app-i18n/zinnia-tomoe/Manifest
new file mode 100644
index 000000000000..542d7bf528a7
--- /dev/null
+++ b/app-i18n/zinnia-tomoe/Manifest
@@ -0,0 +1,5 @@
+DIST zinnia-tomoe-0.6.0-20080911.tar.bz2 30666390 SHA256 fd1a264b8aeea0ebec59e8c8765864a9543a75fb2dba349745bb3a3587790927 SHA512 5c5cf06de46b8feebebca38d8ee4908af1d58f921e30bbbf92b9e5b79acb37e9c78466a1771dc01ddabe4740a0f03f41c50dce55fc38a414b582a1b4708886f5 WHIRLPOOL 578e92f1b6d52af65d6f9ecac71d714c8c50ded42b8e4f47ffecd9045cdac538544028baf18f360304e58049dcc81ae5a2b025f553b0de71ff1de89048f29070
+EBUILD zinnia-tomoe-0.6.0_p20080911.ebuild 690 SHA256 dbec8867679c4dca79e4b745e270f9260266af23711082f78c53ba252bd54ec8 SHA512 e1ef97b2651317900aceb633973847c37790bc48d0fe131b54d8decf6f52cff13d99b50614c3db734b0eacb9279d5729d764fd090ee256e9482fbf0d18b5a32f WHIRLPOOL e93a7820b719184534ab8cc43364ba1c8aca06987031283fe7ca37503e07b0bffeaa3bc26c7537cc1c6fa33c694095832d12418625b07009194d76e7e112419e
+MISC ChangeLog 2462 SHA256 04a9fabb1b1d3ad0cd3cb651749536c7388bef68bd6df00b5cc93c12a2fb0abd SHA512 c7601d473f7dace7849e0660c79f49a75f6273119b9ced1b1c262f58fa83cc057bd787a3c3847288f31efff13cda8cda2bdaedc9345b88213b38494ce55704d8 WHIRLPOOL 926d75f7808d42015416117b47cad92853aec5716b280a5f26980de10efa13ae51dc961b5d9ee63c5c21a7fdc007c209e8b02ef91a50c59040f3e43676afcb37
+MISC ChangeLog-2015 1017 SHA256 0345891331140b1e19111bc0c63a4aa4f6c198bf0e15050f5e754faaee03f830 SHA512 f27895bb0a9215e21d7ebc5b7e87e40745671700c20f68060f6dbb904c688cf16f2bc865d23a0f9eccef1cf14794ad08693befabefa205f58d50cb1275666b30 WHIRLPOOL bac6b02e0d354c3e294a08f68e6b107cf8effb7cecad6db2bc2d7146a81721e73105e4ab314b1efc666475e2c52ec1045df9d9efa8595c6e4f50a8ffaae3c1ad
+MISC metadata.xml 364 SHA256 6d84a9958c1637fd5b6a45727daeb70d44ac681ffcea459e7e38c15acccc27ab SHA512 5e5c6833463859dbfd6561adce41426f607b435301a01a6e7f2bd8cb598a89632e607706c52fef903d96f2e0094d9c33fdfb69c2384455e451d634ecbee62842 WHIRLPOOL 93cf83d55efe72bff37f7b928ba46297daab02465d98d768d57c1c697feab8067325d2a3557b47c8e77c1d17f2f52f3aaa8278c4567ff8e7e4b2196f2f1e04d6
diff --git a/app-i18n/zinnia-tomoe/metadata.xml b/app-i18n/zinnia-tomoe/metadata.xml
new file mode 100644
index 000000000000..0601843f122a
--- /dev/null
+++ b/app-i18n/zinnia-tomoe/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">taku910/zinnia</remote-id>
+ <remote-id type="sourceforge">zinnia</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/zinnia-tomoe/zinnia-tomoe-0.6.0_p20080911.ebuild b/app-i18n/zinnia-tomoe/zinnia-tomoe-0.6.0_p20080911.ebuild
new file mode 100644
index 000000000000..4c7cac546999
--- /dev/null
+++ b/app-i18n/zinnia-tomoe/zinnia-tomoe-0.6.0_p20080911.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+MY_P="${P/_p/-}"
+
+DESCRIPTION="Handwriting model files trained with Tomoe data"
+HOMEPAGE="https://taku910.github.io/zinnia/ https://github.com/taku910/zinnia https://sourceforge.net/projects/zinnia/"
+SRC_URI="mirror://sourceforge/zinnia/${MY_P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="app-i18n/zinnia"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=(AUTHORS)
+
+src_prepare() {
+ default
+ mv configure.in configure.ac || die
+ sed -e "/^modeldir[[:space:]]*=/s/lib/$(get_libdir)/" -i Makefile.am || die
+ eautoreconf
+}
diff --git a/app-i18n/zinnia/Manifest b/app-i18n/zinnia/Manifest
new file mode 100644
index 000000000000..a7b7a4fe74a0
--- /dev/null
+++ b/app-i18n/zinnia/Manifest
@@ -0,0 +1,8 @@
+AUX zinnia-0.06-c++-2011.patch 235 SHA256 51138bc1aeefd1d991d8878b16e5bd6fad21e650c9abfd61b7f306eca47edde6 SHA512 23d856c2d14b28d4a2863767f1888701eba2693f5b7dda20bdb7959311d7ce875bb2df2776c576979d7f5dfb8106086a472af7a5e37b3972f8e16e2cc4ed1d6f WHIRLPOOL bcf7f19d3190bb449923aa3798688e34b45cd0154f1fbea8555eb2fcbfd94335393f3770dbb0dd7438b8f1da8b4d2e6f774bac6c017ed9b3bf8b405117988f40
+AUX zinnia-0.06-flags.patch 367 SHA256 d94847adc2163f4e56e78ed202c2a505a6c527a02309aca5ec6f2e88702881d2 SHA512 f43f238cc037293a7914a00bf364068f977f5e4451e6a23959b7a6346f20d1cf5ae20d61c9e031dae0897f582ae62e3a8fb8cd77de72fe474b010ebbcc2d10b4 WHIRLPOOL 1a50e971f6881e127bf8035a0dba4c0198e831d37e2ba309b580b7058078c8725f9c37ea85d04096faf5c07a42a46ee9aa54ae220db592218e55ef2da5815646
+AUX zinnia-0.06-perl_build.patch 336 SHA256 9c71d237ce73b534b145a204ab90334b08d45e18f6fdb98f4f94cf603c531f26 SHA512 f3eeea5a6d23c07e50dc99d66b5799c5a03ff42d16afa43b97c8ff1ee9f63efe45864ba4eddb3c1bf69c38a632a4469a5f823ce13d1f57299ae027a1f698c9d0 WHIRLPOOL f46fd55e0585eb2ef2b53b09d2f623f67628f23f2f37a19a7d1b0bf7ab5ac1862266096b6a4805518e4c81e9351ef105ce447ee05ec00fcd41188acd5804c25f
+DIST zinnia-0.06.tar.gz 457415 SHA256 ece3af93f937282971634fd81d3e997f848e8cfa958220e26a4564ca064ac20b SHA512 b9a44dc3664302269c4d8481225964a3188c1921f5af7f136fdccdc452917f6ff934884e266436a0f1e0a32af19d3bea5f5e4416e694a653983039a513277b53 WHIRLPOOL 3d0822a5dfaa46ad5dab144888e10f2a0d473e12dcb0f3754e8d55d93cfed19b5ded44c9ca2f2b16451450e05c8b6e5819bf5789d546eb0955f91b37179fe413
+EBUILD zinnia-0.06-r3.ebuild 1681 SHA256 6ef883af1fb01ebd80b35f98979f7bd5d5362fb733a684713ebc17622ed81ffe SHA512 058586d3a05094aa563efb64396782e945b4194ac6511c8c1fe91032466cfdbdba08d18997db60cedb98f064b80a1aa21642adf1d7ce03b0c1ef82c2ff2c09af WHIRLPOOL 06ff5f527310b84f87c70e1eaa1a1035ca3b3bf4fe61fa4d33dab92bf7fb941d740d59af3e2f27791dd452c8dc3507c699049e548617eab4add14bbf1cdd5958
+MISC ChangeLog 2496 SHA256 35698f1da54e5846ac5c4d238c73bcc5879bb624a73059236b8476d068c61ad6 SHA512 7a3e9591be68de448eb2621760ed0ce35ab7300402a9e7b670fbd3d50e8122a05dc1bff987afcb9896f46a49ec6fccf5fcfd437047427d00bf20b981506c064c WHIRLPOOL 80bd177f591efeed861f5c9e44b6cfbe1c6c07f18b02c8683e14ca5ed51bf47d76777823827920bc515ca43bfbedb88e0d50f24fa10dbfeae197fd857ee0c644
+MISC ChangeLog-2015 2162 SHA256 b875b3543e917df63779cdca4167194ab610a3620cdf93a49937a6cb3b5bb727 SHA512 1c4dfc9761aa016ee0c50e8d6e6e40697f169f00468eaf9b8d7feaac5c012f3acaa0905d12a50742c42758d8f0689514a9a60350efdc88df9dc6833fbe29ffaa WHIRLPOOL a0e6675ff07695b2e8ce77e0ee8fd2005387cfe29c8f568bb6d2e867ae25fd54d951025465f982053e21fe1ef09460b3a8ff1a2b407366a6ac2b122c40922f52
+MISC metadata.xml 364 SHA256 6d84a9958c1637fd5b6a45727daeb70d44ac681ffcea459e7e38c15acccc27ab SHA512 5e5c6833463859dbfd6561adce41426f607b435301a01a6e7f2bd8cb598a89632e607706c52fef903d96f2e0094d9c33fdfb69c2384455e451d634ecbee62842 WHIRLPOOL 93cf83d55efe72bff37f7b928ba46297daab02465d98d768d57c1c697feab8067325d2a3557b47c8e77c1d17f2f52f3aaa8278c4567ff8e7e4b2196f2f1e04d6
diff --git a/app-i18n/zinnia/files/zinnia-0.06-c++-2011.patch b/app-i18n/zinnia/files/zinnia-0.06-c++-2011.patch
new file mode 100644
index 000000000000..0ef6ae40e434
--- /dev/null
+++ b/app-i18n/zinnia/files/zinnia-0.06-c++-2011.patch
@@ -0,0 +1,11 @@
+--- /trainer.cpp
++++ /trainer.cpp
+@@ -103,7 +103,7 @@
+ if (!fn) {
+ return false;
+ }
+- x_.push_back(std::make_pair<std::string, FeatureNode *>(y, fn));
++ x_.push_back(std::make_pair(y, fn));
+ return true;
+ }
+
diff --git a/app-i18n/zinnia/files/zinnia-0.06-flags.patch b/app-i18n/zinnia/files/zinnia-0.06-flags.patch
new file mode 100644
index 000000000000..80442ee4880f
--- /dev/null
+++ b/app-i18n/zinnia/files/zinnia-0.06-flags.patch
@@ -0,0 +1,18 @@
+--- /configure.in
++++ /configure.in
+@@ -59,15 +59,6 @@
+ AC_SUBST([pkgconfigdir])
+ AC_MSG_NOTICE([pkgconfig directory is ${pkgconfigdir}])
+
+-dnl
+-dnl check gcc
+-dnl
+-if test -n "$GCC"; then
+- CFLAGS="-O3 -Wall"
+- CXXFLAGS="-O3 -Wall"
+- AC_MSG_RESULT($ac_cv_x86_sse)
+-fi
+-
+ AC_DEFUN(ADD_CC_FLAG, [
+ AC_MSG_CHECKING(whether ${CC-cc} accepts $1)
+ AC_LANG_SAVE
diff --git a/app-i18n/zinnia/files/zinnia-0.06-perl_build.patch b/app-i18n/zinnia/files/zinnia-0.06-perl_build.patch
new file mode 100644
index 000000000000..4da9e1eeb900
--- /dev/null
+++ b/app-i18n/zinnia/files/zinnia-0.06-perl_build.patch
@@ -0,0 +1,11 @@
+--- /perl/Makefile.PL
++++ /perl/Makefile.PL
+@@ -4,7 +4,7 @@
+ 'CC' => 'c++',
+ 'LD' => 'c++',
+ 'INC' => '',
+- 'LIBS' => '-lzinnia',
++ 'LIBS' => '-L../.libs -lzinnia',
+ # 'VERSION' => '0.1',
+ 'OBJECT' => 'zinnia_wrap.o'
+ );
diff --git a/app-i18n/zinnia/metadata.xml b/app-i18n/zinnia/metadata.xml
new file mode 100644
index 000000000000..0601843f122a
--- /dev/null
+++ b/app-i18n/zinnia/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 type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">taku910/zinnia</remote-id>
+ <remote-id type="sourceforge">zinnia</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/zinnia/zinnia-0.06-r3.ebuild b/app-i18n/zinnia/zinnia-0.06-r3.ebuild
new file mode 100644
index 000000000000..ce1ffaefc08f
--- /dev/null
+++ b/app-i18n/zinnia/zinnia-0.06-r3.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools flag-o-matic perl-module toolchain-funcs
+
+DESCRIPTION="Zinnia - Online hand recognition system with machine learning"
+HOMEPAGE="https://taku910.github.io/zinnia/ https://github.com/taku910/zinnia https://sourceforge.net/projects/zinnia/"
+SRC_URI="mirror://sourceforge/zinnia/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="perl static-libs"
+
+PATCHES=(
+ "${FILESDIR}/${P}-flags.patch"
+ "${FILESDIR}/${P}-perl_build.patch"
+ "${FILESDIR}/${P}-c++-2011.patch"
+)
+
+DOCS=(AUTHORS)
+
+src_prepare() {
+ default
+ mv configure.in configure.ac || die
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
+ eautoreconf
+
+ if use perl; then
+ pushd perl > /dev/null
+ PATCHES=()
+ perl-module_src_prepare
+ popd > /dev/null
+ fi
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_compile() {
+ default
+
+ if use perl; then
+ pushd perl > /dev/null
+
+ # We need to run this here as otherwise it won't pick up the
+ # just-built -lzinnia and cause the extension to have
+ # undefined symbols.
+ perl-module_src_configure
+
+ append-cppflags "-I${S}"
+ append-ldflags "-L${S}/.libs"
+
+ emake \
+ CC="$(tc-getCXX)" \
+ LD="$(tc-getCXX)" \
+ OPTIMIZE="${CPPFLAGS} ${CXXFLAGS}" \
+ LDDLFLAGS="-shared" \
+ OTHERLDFLAGS="${LDFLAGS}"
+ popd > /dev/null
+ fi
+}
+
+src_test() {
+ default
+}
+
+src_install() {
+ default
+ find "${D}" -name "*.la" -delete || die
+
+ if use perl; then
+ pushd perl > /dev/null
+ perl-module_src_install
+ popd > /dev/null
+ fi
+
+ (
+ docinto html
+ dodoc doc/*.css doc/*.html
+ )
+}