summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-i18n
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/anthy-ss/Manifest1
-rw-r--r--app-i18n/anthy-ss/anthy-ss-9026.ebuild73
-rw-r--r--app-i18n/anthy-ss/files/50anthy-gentoo.el4
-rw-r--r--app-i18n/anthy-ss/metadata.xml18
-rw-r--r--app-i18n/anthy/Manifest1
-rw-r--r--app-i18n/anthy/anthy-9100h-r1.ebuild64
-rw-r--r--app-i18n/anthy/files/50anthy-gentoo.el5
-rw-r--r--app-i18n/anthy/files/anthy-9100h-anthy_context_t.patch12
-rw-r--r--app-i18n/anthy/metadata.xml21
-rw-r--r--app-i18n/atokx2/Manifest1
-rw-r--r--app-i18n/atokx2/atokx2-17.0-r2.ebuild101
-rw-r--r--app-i18n/atokx2/atokx2-17.0.ebuild87
-rw-r--r--app-i18n/atokx2/files/atokx2.initd20
-rw-r--r--app-i18n/atokx2/files/iiim.confd8
-rw-r--r--app-i18n/atokx2/files/iiim.initd20
-rw-r--r--app-i18n/atokx2/metadata.xml5
-rw-r--r--app-i18n/atokx3/Manifest3
-rw-r--r--app-i18n/atokx3/atokx3-3.0.0-r11.ebuild221
-rw-r--r--app-i18n/atokx3/files/xinput-iiimf11
-rw-r--r--app-i18n/atokx3/metadata.xml5
-rw-r--r--app-i18n/bidiv/Manifest3
-rw-r--r--app-i18n/bidiv/bidiv-1.5-r1.ebuild36
-rw-r--r--app-i18n/bidiv/bidiv-1.5_p4.ebuild48
-rw-r--r--app-i18n/bidiv/files/bidiv-1.5-fribidi.patch46
-rw-r--r--app-i18n/bidiv/metadata.xml5
-rw-r--r--app-i18n/canfep/Manifest2
-rw-r--r--app-i18n/canfep/canfep-1.0.ebuild39
-rw-r--r--app-i18n/canfep/metadata.xml5
-rw-r--r--app-i18n/canna/Manifest1
-rw-r--r--app-i18n/canna/canna-3.7_p3-r1.ebuild144
-rw-r--r--app-i18n/canna/canna-3.7_p3-r2.ebuild167
-rw-r--r--app-i18n/canna/files/canna-3.7-gentoo.diff.in144
-rw-r--r--app-i18n/canna/files/canna-3.7_p3-strip.patch142
-rw-r--r--app-i18n/canna/files/canna-3.7_p3.confd7
-rw-r--r--app-i18n/canna/files/canna-3.7_p3.initd42
-rw-r--r--app-i18n/canna/files/canna-kpdef-gentoo.diff18
-rw-r--r--app-i18n/canna/files/canna.confd8
-rw-r--r--app-i18n/canna/files/canna.hosts1
-rw-r--r--app-i18n/canna/files/canna.initd37
-rw-r--r--app-i18n/canna/files/update-canna-dics_dir36
-rw-r--r--app-i18n/canna/metadata.xml8
-rw-r--r--app-i18n/cstools/Manifest1
-rw-r--r--app-i18n/cstools/cstools-3.42.ebuild21
-rw-r--r--app-i18n/cstools/metadata.xml15
-rw-r--r--app-i18n/dbskkd-cdb/Manifest1
-rw-r--r--app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild44
-rw-r--r--app-i18n/dbskkd-cdb/files/dbskkd-cdb-2.00-gentoo.patch54
-rw-r--r--app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd10
-rw-r--r--app-i18n/dbskkd-cdb/metadata.xml8
-rw-r--r--app-i18n/enca/Manifest2
-rw-r--r--app-i18n/enca/enca-1.13-r3.ebuild52
-rw-r--r--app-i18n/enca/enca-1.14-r1.ebuild58
-rw-r--r--app-i18n/enca/enca-1.14-r2.ebuild59
-rw-r--r--app-i18n/enca/files/enca-1.14-automake-1.13.patch34
-rw-r--r--app-i18n/enca/files/enca-1.14-gcc4.8-avx-bug.patch15
-rw-r--r--app-i18n/enca/files/enca-remove-dirty-path-hack.patch19
-rw-r--r--app-i18n/enca/metadata.xml17
-rw-r--r--app-i18n/fbiterm/Manifest1
-rw-r--r--app-i18n/fbiterm/fbiterm-0.5-r2.ebuild63
-rw-r--r--app-i18n/fbiterm/files/fbiterm-0.5-cflags.patch13
-rw-r--r--app-i18n/fbiterm/files/fbiterm-0.5-r2-gentoo.diff28
-rw-r--r--app-i18n/fbiterm/metadata.xml5
-rw-r--r--app-i18n/fbterm/Manifest1
-rw-r--r--app-i18n/fbterm/fbterm-1.7-r1.ebuild57
-rw-r--r--app-i18n/fbterm/metadata.xml5
-rw-r--r--app-i18n/fcitx-anthy/Manifest2
-rw-r--r--app-i18n/fcitx-anthy/fcitx-anthy-0.1.1.ebuild29
-rw-r--r--app-i18n/fcitx-anthy/fcitx-anthy-0.2.1.ebuild29
-rw-r--r--app-i18n/fcitx-anthy/metadata.xml5
-rw-r--r--app-i18n/fcitx-chewing/Manifest2
-rw-r--r--app-i18n/fcitx-chewing/fcitx-chewing-0.2.0.ebuild20
-rw-r--r--app-i18n/fcitx-chewing/fcitx-chewing-0.2.2.ebuild20
-rw-r--r--app-i18n/fcitx-chewing/metadata.xml5
-rw-r--r--app-i18n/fcitx-cloudpinyin/Manifest2
-rw-r--r--app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.1.ebuild23
-rw-r--r--app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.4.ebuild23
-rw-r--r--app-i18n/fcitx-cloudpinyin/metadata.xml8
-rw-r--r--app-i18n/fcitx-configtool/Manifest2
-rw-r--r--app-i18n/fcitx-configtool/fcitx-configtool-0.4.6.ebuild34
-rw-r--r--app-i18n/fcitx-configtool/fcitx-configtool-0.4.8.ebuild33
-rw-r--r--app-i18n/fcitx-configtool/metadata.xml11
-rw-r--r--app-i18n/fcitx-hangul/Manifest2
-rw-r--r--app-i18n/fcitx-hangul/fcitx-hangul-0.2.1.ebuild29
-rw-r--r--app-i18n/fcitx-hangul/fcitx-hangul-0.3.0.ebuild29
-rw-r--r--app-i18n/fcitx-hangul/metadata.xml5
-rw-r--r--app-i18n/fcitx-libpinyin/Manifest2
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.2.1.ebuild30
-rw-r--r--app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.1.ebuild39
-rw-r--r--app-i18n/fcitx-libpinyin/metadata.xml10
-rw-r--r--app-i18n/fcitx-qt5/Manifest1
-rw-r--r--app-i18n/fcitx-qt5/fcitx-qt5-1.0.2.ebuild23
-rw-r--r--app-i18n/fcitx-qt5/metadata.xml5
-rw-r--r--app-i18n/fcitx-rime/Manifest2
-rw-r--r--app-i18n/fcitx-rime/fcitx-rime-0.2.0.ebuild34
-rw-r--r--app-i18n/fcitx-rime/fcitx-rime-0.3.1.ebuild34
-rw-r--r--app-i18n/fcitx-rime/metadata.xml13
-rw-r--r--app-i18n/fcitx-sunpinyin/Manifest2
-rw-r--r--app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.0.ebuild34
-rw-r--r--app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.1.ebuild33
-rw-r--r--app-i18n/fcitx-sunpinyin/files/fcitx-sunpinyin-0.4.0-gcc46-compatible.patch27
-rw-r--r--app-i18n/fcitx-sunpinyin/metadata.xml8
-rw-r--r--app-i18n/fcitx-table-extra/Manifest3
-rw-r--r--app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.3.ebuild27
-rw-r--r--app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.6.ebuild27
-rw-r--r--app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.7.ebuild27
-rw-r--r--app-i18n/fcitx-table-extra/metadata.xml5
-rw-r--r--app-i18n/fcitx-unikey/Manifest2
-rw-r--r--app-i18n/fcitx-unikey/fcitx-unikey-0.2.0.ebuild39
-rw-r--r--app-i18n/fcitx-unikey/fcitx-unikey-0.2.4.ebuild34
-rw-r--r--app-i18n/fcitx-unikey/files/fcitx-unikey-0.2.0-cmake-qt-option.patch56
-rw-r--r--app-i18n/fcitx-unikey/metadata.xml5
-rw-r--r--app-i18n/fcitx/Manifest3
-rw-r--r--app-i18n/fcitx/fcitx-4.2.7.ebuild125
-rw-r--r--app-i18n/fcitx/fcitx-4.2.8.5.ebuild127
-rw-r--r--app-i18n/fcitx/fcitx-4.2.8.6.ebuild127
-rw-r--r--app-i18n/fcitx/files/fcitx-4.2.7-gcc46-compatible.patch43
-rw-r--r--app-i18n/fcitx/metadata.xml17
-rw-r--r--app-i18n/freewnn/Manifest2
-rw-r--r--app-i18n/freewnn/files/freewnn-1.1.1_alpha21-as-needed.patch11
-rw-r--r--app-i18n/freewnn/files/freewnn-1.1.1_alpha21-gcc45.patch13
-rw-r--r--app-i18n/freewnn/files/freewnn-1.1.1_alpha21-ldflags.patch26
-rw-r--r--app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch318
-rw-r--r--app-i18n/freewnn/files/freewnn.initd22
-rw-r--r--app-i18n/freewnn/freewnn-1.1.1_alpha21-r1.ebuild59
-rw-r--r--app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild61
-rw-r--r--app-i18n/freewnn/metadata.xml8
-rw-r--r--app-i18n/ibus-anthy/Manifest3
-rw-r--r--app-i18n/ibus-anthy/ibus-anthy-1.2.7-r1.ebuild62
-rw-r--r--app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild66
-rw-r--r--app-i18n/ibus-anthy/metadata.xml13
-rw-r--r--app-i18n/ibus-cangjie/Manifest4
-rw-r--r--app-i18n/ibus-cangjie/files/ibus-cangjie-gtk-unit-test.patch12
-rw-r--r--app-i18n/ibus-cangjie/ibus-cangjie-2.1.ebuild53
-rw-r--r--app-i18n/ibus-cangjie/ibus-cangjie-2.2.ebuild49
-rw-r--r--app-i18n/ibus-cangjie/ibus-cangjie-2.3.ebuild49
-rw-r--r--app-i18n/ibus-cangjie/ibus-cangjie-2.4.ebuild49
-rw-r--r--app-i18n/ibus-cangjie/metadata.xml14
-rw-r--r--app-i18n/ibus-chewing/Manifest1
-rw-r--r--app-i18n/ibus-chewing/ibus-chewing-1.4.7.ebuild43
-rw-r--r--app-i18n/ibus-chewing/metadata.xml9
-rw-r--r--app-i18n/ibus-fbterm/Manifest1
-rw-r--r--app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.1.patch23
-rw-r--r--app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.99.patch22
-rw-r--r--app-i18n/ibus-fbterm/ibus-fbterm-0.9.1.ebuild25
-rw-r--r--app-i18n/ibus-fbterm/metadata.xml5
-rw-r--r--app-i18n/ibus-handwrite/Manifest1
-rw-r--r--app-i18n/ibus-handwrite/files/ibus-handwrite-link.patch13
-rw-r--r--app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild41
-rw-r--r--app-i18n/ibus-handwrite/ibus-handwrite-2.1.4.ebuild34
-rw-r--r--app-i18n/ibus-handwrite/metadata.xml8
-rw-r--r--app-i18n/ibus-hangul/Manifest3
-rw-r--r--app-i18n/ibus-hangul/ibus-hangul-1.4.0.ebuild54
-rw-r--r--app-i18n/ibus-hangul/ibus-hangul-1.4.1.ebuild55
-rw-r--r--app-i18n/ibus-hangul/ibus-hangul-1.4.2-r1.ebuild44
-rw-r--r--app-i18n/ibus-hangul/ibus-hangul-1.4.2.ebuild55
-rw-r--r--app-i18n/ibus-hangul/metadata.xml9
-rw-r--r--app-i18n/ibus-libpinyin/Manifest1
-rw-r--r--app-i18n/ibus-libpinyin/ibus-libpinyin-1.6.92.ebuild44
-rw-r--r--app-i18n/ibus-libpinyin/metadata.xml20
-rw-r--r--app-i18n/ibus-m17n/Manifest3
-rw-r--r--app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild46
-rw-r--r--app-i18n/ibus-m17n/ibus-m17n-1.3.3.ebuild47
-rw-r--r--app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild47
-rw-r--r--app-i18n/ibus-m17n/metadata.xml18
-rw-r--r--app-i18n/ibus-pinyin/Manifest3
-rw-r--r--app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch227
-rw-r--r--app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild68
-rw-r--r--app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild65
-rw-r--r--app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild61
-rw-r--r--app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r2.ebuild51
-rw-r--r--app-i18n/ibus-pinyin/ibus-pinyin-1.5.0.ebuild58
-rw-r--r--app-i18n/ibus-pinyin/metadata.xml17
-rw-r--r--app-i18n/ibus-qt/Manifest3
-rw-r--r--app-i18n/ibus-qt/files/ibus-qt-1.2.0.20091217-doc.patch21
-rw-r--r--app-i18n/ibus-qt/files/ibus-qt-1.3-doc.patch11
-rw-r--r--app-i18n/ibus-qt/files/ibus-qt-1.3.1-display-unset.patch76
-rw-r--r--app-i18n/ibus-qt/files/ibus-qt-1.3.1-gold.patch15
-rw-r--r--app-i18n/ibus-qt/files/ibus-qt-1.3.1-qvariant.patch29
-rw-r--r--app-i18n/ibus-qt/ibus-qt-1.3.1.ebuild57
-rw-r--r--app-i18n/ibus-qt/ibus-qt-1.3.2.ebuild54
-rw-r--r--app-i18n/ibus-qt/ibus-qt-1.3.3.ebuild49
-rw-r--r--app-i18n/ibus-qt/metadata.xml12
-rw-r--r--app-i18n/ibus-rime/Manifest3
-rw-r--r--app-i18n/ibus-rime/ibus-rime-0.9.9.ebuild29
-rw-r--r--app-i18n/ibus-rime/ibus-rime-1.1.ebuild29
-rw-r--r--app-i18n/ibus-rime/ibus-rime-1.2.ebuild29
-rw-r--r--app-i18n/ibus-rime/metadata.xml17
-rw-r--r--app-i18n/ibus-skk/Manifest3
-rw-r--r--app-i18n/ibus-skk/ibus-skk-1.3.9.ebuild47
-rw-r--r--app-i18n/ibus-skk/ibus-skk-1.4.0.ebuild50
-rw-r--r--app-i18n/ibus-skk/ibus-skk-1.4.1-r1.ebuild30
-rw-r--r--app-i18n/ibus-skk/ibus-skk-1.4.1.ebuild50
-rw-r--r--app-i18n/ibus-skk/metadata.xml11
-rw-r--r--app-i18n/ibus-sunpinyin/Manifest2
-rw-r--r--app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.3-force-switch.patch33
-rw-r--r--app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.3-r2.ebuild33
-rw-r--r--app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r1.ebuild56
-rw-r--r--app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild50
-rw-r--r--app-i18n/ibus-sunpinyin/metadata.xml8
-rw-r--r--app-i18n/ibus-table-chinese/Manifest1
-rw-r--r--app-i18n/ibus-table-chinese/ibus-table-chinese-1.4.6.ebuild23
-rw-r--r--app-i18n/ibus-table-chinese/metadata.xml12
-rw-r--r--app-i18n/ibus-table-code/Manifest1
-rw-r--r--app-i18n/ibus-table-code/ibus-table-code-1.2.0.20100305.ebuild23
-rw-r--r--app-i18n/ibus-table-code/metadata.xml9
-rw-r--r--app-i18n/ibus-table-cyrillic/Manifest1
-rw-r--r--app-i18n/ibus-table-cyrillic/ibus-table-cyrillic-1.2.0.20100305.ebuild22
-rw-r--r--app-i18n/ibus-table-cyrillic/metadata.xml9
-rw-r--r--app-i18n/ibus-table-extraphrase/Manifest1
-rw-r--r--app-i18n/ibus-table-extraphrase/ibus-table-extraphrase-1.3.9.20110826.ebuild23
-rw-r--r--app-i18n/ibus-table-extraphrase/metadata.xml8
-rw-r--r--app-i18n/ibus-table-latin/Manifest1
-rw-r--r--app-i18n/ibus-table-latin/ibus-table-latin-1.2.0.20100305.ebuild22
-rw-r--r--app-i18n/ibus-table-latin/metadata.xml9
-rw-r--r--app-i18n/ibus-table-tv/Manifest1
-rw-r--r--app-i18n/ibus-table-tv/ibus-table-tv-1.2.0.20100305.ebuild22
-rw-r--r--app-i18n/ibus-table-tv/metadata.xml9
-rw-r--r--app-i18n/ibus-table/Manifest4
-rw-r--r--app-i18n/ibus-table/files/ibus-table-1.5.0-pycompile.patch13
-rw-r--r--app-i18n/ibus-table/ibus-table-1.2.0.20100111.ebuild46
-rw-r--r--app-i18n/ibus-table/ibus-table-1.3.0.20100621.ebuild54
-rw-r--r--app-i18n/ibus-table/ibus-table-1.3.9.20110827-r1.ebuild54
-rw-r--r--app-i18n/ibus-table/ibus-table-1.5.0-r1.ebuild42
-rw-r--r--app-i18n/ibus-table/ibus-table-1.5.0.ebuild56
-rw-r--r--app-i18n/ibus-table/metadata.xml9
-rw-r--r--app-i18n/ibus-tutcode/Manifest3
-rw-r--r--app-i18n/ibus-tutcode/ibus-tutcode-1.0.0.ebuild24
-rw-r--r--app-i18n/ibus-tutcode/ibus-tutcode-1.0.1.ebuild24
-rw-r--r--app-i18n/ibus-tutcode/ibus-tutcode-1.0.2-r1.ebuild34
-rw-r--r--app-i18n/ibus-tutcode/ibus-tutcode-1.0.2.ebuild27
-rw-r--r--app-i18n/ibus-tutcode/metadata.xml11
-rw-r--r--app-i18n/ibus-unikey/Manifest1
-rw-r--r--app-i18n/ibus-unikey/ibus-unikey-0.6.1.ebuild30
-rw-r--r--app-i18n/ibus-unikey/metadata.xml14
-rw-r--r--app-i18n/ibus/Manifest5
-rw-r--r--app-i18n/ibus/ibus-1.5.10.ebuild191
-rw-r--r--app-i18n/ibus/ibus-1.5.5.ebuild175
-rw-r--r--app-i18n/ibus/ibus-1.5.8-r1.ebuild175
-rw-r--r--app-i18n/ibus/ibus-1.5.9-r1.ebuild191
-rw-r--r--app-i18n/ibus/metadata.xml21
-rw-r--r--app-i18n/im-canna/Manifest1
-rw-r--r--app-i18n/im-canna/im-canna-0.3.2.2.ebuild31
-rw-r--r--app-i18n/im-canna/metadata.xml5
-rw-r--r--app-i18n/im-chooser/Manifest1
-rw-r--r--app-i18n/im-chooser/files/im-chooser-1.5.1-imchooserui.patch21
-rw-r--r--app-i18n/im-chooser/im-chooser-1.6.2.ebuild42
-rw-r--r--app-i18n/im-chooser/metadata.xml11
-rw-r--r--app-i18n/im-freewnn/Manifest1
-rw-r--r--app-i18n/im-freewnn/files/im-freewnn-0.0.2-as-needed.patch35
-rw-r--r--app-i18n/im-freewnn/files/im-freewnn-0.0.2-implicit-declaration.patch26
-rw-r--r--app-i18n/im-freewnn/files/im-freewnn-wnnrc-gentoo.diff20
-rw-r--r--app-i18n/im-freewnn/im-freewnn-0.0.2-r1.ebuild52
-rw-r--r--app-i18n/im-freewnn/metadata.xml5
-rw-r--r--app-i18n/im-ja/Manifest1
-rw-r--r--app-i18n/im-ja/files/im-ja-1.5-gentoo.patch30
-rw-r--r--app-i18n/im-ja/files/im-ja-1.5-pofiles.patch17
-rw-r--r--app-i18n/im-ja/files/im-ja-1.5-underlinking.patch18
-rw-r--r--app-i18n/im-ja/files/xinput-im-ja7
-rw-r--r--app-i18n/im-ja/im-ja-1.5-r3.ebuild97
-rw-r--r--app-i18n/im-ja/metadata.xml16
-rw-r--r--app-i18n/imhangul/Manifest6
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul22
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul2y2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul322
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul392
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul3f2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul3s2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangul3y2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangulahn2
-rw-r--r--app-i18n/imhangul/files/xinput-imhangulro2
-rw-r--r--app-i18n/imhangul/imhangul-0.9.16.ebuild79
-rw-r--r--app-i18n/imhangul/imhangul-2.0.0.ebuild87
-rw-r--r--app-i18n/imhangul/imhangul-2.1.0.ebuild76
-rw-r--r--app-i18n/imhangul/imhangul-3.0.0.ebuild64
-rw-r--r--app-i18n/imhangul/imhangul-3.1.0.ebuild65
-rw-r--r--app-i18n/imhangul/imhangul-3.1.1.ebuild64
-rw-r--r--app-i18n/imhangul/metadata.xml8
-rw-r--r--app-i18n/imsettings/Manifest2
-rw-r--r--app-i18n/imsettings/files/imsettings-1.5.0-gir-scanner.patch29
-rw-r--r--app-i18n/imsettings/imsettings-1.5.0.ebuild78
-rw-r--r--app-i18n/imsettings/imsettings-1.6.8.ebuild76
-rw-r--r--app-i18n/imsettings/metadata.xml10
-rw-r--r--app-i18n/jfbterm/Manifest1
-rw-r--r--app-i18n/jfbterm/files/jfbterm-0.4.7-gentoo.patch144
-rw-r--r--app-i18n/jfbterm/files/jfbterm-0.4.7-no-kernel-headers.patch17
-rw-r--r--app-i18n/jfbterm/files/jfbterm-0.4.7-sigchld-debian.patch22
-rw-r--r--app-i18n/jfbterm/jfbterm-0.4.7-r4.ebuild46
-rw-r--r--app-i18n/jfbterm/metadata.xml15
-rw-r--r--app-i18n/kakasi/Manifest1
-rw-r--r--app-i18n/kakasi/kakasi-2.3.4-r1.ebuild27
-rw-r--r--app-i18n/kakasi/metadata.xml5
-rw-r--r--app-i18n/kanjipad/Manifest1
-rw-r--r--app-i18n/kanjipad/files/kanjipad-2.0.0-cflags.patch19
-rw-r--r--app-i18n/kanjipad/files/kanjipad-2.0.0-underlinking.patch13
-rw-r--r--app-i18n/kanjipad/kanjipad-2.0.0.ebuild41
-rw-r--r--app-i18n/kanjipad/metadata.xml5
-rw-r--r--app-i18n/kcc/Manifest1
-rw-r--r--app-i18n/kcc/files/kcc-exit.diff10
-rw-r--r--app-i18n/kcc/files/kcc-gcc3-gentoo.diff47
-rw-r--r--app-i18n/kcc/kcc-1.0.ebuild35
-rw-r--r--app-i18n/kcc/metadata.xml5
-rw-r--r--app-i18n/kcm-fcitx/Manifest3
-rw-r--r--app-i18n/kcm-fcitx/kcm-fcitx-0.4.2.ebuild21
-rw-r--r--app-i18n/kcm-fcitx/kcm-fcitx-0.4.3.ebuild21
-rw-r--r--app-i18n/kcm-fcitx/kcm-fcitx-0.5.0.ebuild39
-rw-r--r--app-i18n/kcm-fcitx/metadata.xml5
-rw-r--r--app-i18n/kde-l10n-scripts/kde-l10n-scripts-9999.ebuild33
-rw-r--r--app-i18n/kde-l10n-scripts/metadata.xml12
-rw-r--r--app-i18n/kimera/Manifest1
-rw-r--r--app-i18n/kimera/files/kimera-2.11-underlinking.patch13
-rw-r--r--app-i18n/kimera/kimera-2.11-r1.ebuild34
-rw-r--r--app-i18n/kimera/metadata.xml15
-rw-r--r--app-i18n/kinput2/Manifest1
-rw-r--r--app-i18n/kinput2/files/kinput2-3.1-r1-gentoo.diff125
-rw-r--r--app-i18n/kinput2/files/xinput-kinput25
-rw-r--r--app-i18n/kinput2/kinput2-3.1-r1.ebuild60
-rw-r--r--app-i18n/kinput2/kinput2-3.1-r2.ebuild75
-rw-r--r--app-i18n/kinput2/metadata.xml5
-rw-r--r--app-i18n/libcangjie/Manifest2
-rw-r--r--app-i18n/libcangjie/libcangjie-1.1.ebuild17
-rw-r--r--app-i18n/libcangjie/libcangjie-1.3.ebuild17
-rw-r--r--app-i18n/libcangjie/metadata.xml14
-rw-r--r--app-i18n/libguess/Manifest2
-rw-r--r--app-i18n/libguess/libguess-1.1.ebuild35
-rw-r--r--app-i18n/libguess/libguess-1.2.ebuild35
-rw-r--r--app-i18n/libguess/metadata.xml8
-rw-r--r--app-i18n/libhangul/Manifest2
-rw-r--r--app-i18n/libhangul/libhangul-0.0.12.ebuild31
-rw-r--r--app-i18n/libhangul/libhangul-0.1.0.ebuild33
-rw-r--r--app-i18n/libhangul/metadata.xml8
-rw-r--r--app-i18n/libpinyin/Manifest4
-rw-r--r--app-i18n/libpinyin/libpinyin-0.8.0.ebuild34
-rw-r--r--app-i18n/libpinyin/libpinyin-1.0.0.ebuild36
-rw-r--r--app-i18n/libpinyin/metadata.xml9
-rw-r--r--app-i18n/librime/Manifest2
-rw-r--r--app-i18n/librime/files/librime-1.1-BOOST_NO_SCOPED_ENUMS.patch224
-rw-r--r--app-i18n/librime/files/librime-1.1-gcc53613.patch367
-rw-r--r--app-i18n/librime/files/librime-1.2-BOOST_NO_SCOPED_ENUMS.patch224
-rw-r--r--app-i18n/librime/files/librime-dictionary.patch13
-rw-r--r--app-i18n/librime/files/librime-test.patch42
-rw-r--r--app-i18n/librime/librime-0.9.9.ebuild43
-rw-r--r--app-i18n/librime/librime-1.2.ebuild46
-rw-r--r--app-i18n/librime/metadata.xml17
-rw-r--r--app-i18n/libskk/Manifest4
-rw-r--r--app-i18n/libskk/libskk-0.0.11.ebuild50
-rw-r--r--app-i18n/libskk/libskk-0.0.12.ebuild50
-rw-r--r--app-i18n/libskk/libskk-0.0.9.ebuild46
-rw-r--r--app-i18n/libskk/libskk-1.0.1.ebuild50
-rw-r--r--app-i18n/libskk/metadata.xml11
-rw-r--r--app-i18n/libtabe/Manifest3
-rw-r--r--app-i18n/libtabe/files/libtabe-0.2.6-fabs.patch24
-rw-r--r--app-i18n/libtabe/files/libtabe-0.2.6-ldflags.patch57
-rw-r--r--app-i18n/libtabe/libtabe-0.2.6.1.2.ebuild61
-rw-r--r--app-i18n/libtabe/libtabe-0.2.6.ebuild52
-rw-r--r--app-i18n/libtabe/metadata.xml5
-rw-r--r--app-i18n/libtomoe-gtk/Manifest1
-rw-r--r--app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-gucharmap2.patch253
-rw-r--r--app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-underlinking.patch15
-rw-r--r--app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r2.ebuild71
-rw-r--r--app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r3.ebuild76
-rw-r--r--app-i18n/libtomoe-gtk/metadata.xml11
-rw-r--r--app-i18n/man-pages-da/Manifest1
-rw-r--r--app-i18n/man-pages-da/man-pages-da-0.1.2.ebuild26
-rw-r--r--app-i18n/man-pages-da/metadata.xml7
-rw-r--r--app-i18n/man-pages-de/Manifest3
-rw-r--r--app-i18n/man-pages-de/files/man-pages-de-1.3-bzip2.patch19
-rw-r--r--app-i18n/man-pages-de/man-pages-de-1.7.ebuild50
-rw-r--r--app-i18n/man-pages-de/man-pages-de-1.8.ebuild50
-rw-r--r--app-i18n/man-pages-de/man-pages-de-1.9.ebuild50
-rw-r--r--app-i18n/man-pages-de/metadata.xml15
-rw-r--r--app-i18n/man-pages-fr/Manifest2
-rw-r--r--app-i18n/man-pages-fr/man-pages-fr-2.39.0.ebuild24
-rw-r--r--app-i18n/man-pages-fr/man-pages-fr-3.40.1.ebuild24
-rw-r--r--app-i18n/man-pages-fr/metadata.xml8
-rw-r--r--app-i18n/man-pages-it/Manifest1
-rw-r--r--app-i18n/man-pages-it/man-pages-it-2.80-r1.ebuild29
-rw-r--r--app-i18n/man-pages-it/metadata.xml7
-rw-r--r--app-i18n/man-pages-ja/Manifest3
-rw-r--r--app-i18n/man-pages-ja/man-pages-ja-20130215.ebuild93
-rw-r--r--app-i18n/man-pages-ja/man-pages-ja-20131015.ebuild95
-rw-r--r--app-i18n/man-pages-ja/metadata.xml12
-rw-r--r--app-i18n/man-pages-nl/Manifest1
-rw-r--r--app-i18n/man-pages-nl/man-pages-nl-0.13.3.ebuild21
-rw-r--r--app-i18n/man-pages-nl/metadata.xml7
-rw-r--r--app-i18n/man-pages-pl/Manifest1
-rw-r--r--app-i18n/man-pages-pl/man-pages-pl-0_pre20070628-r2.ebuild43
-rw-r--r--app-i18n/man-pages-pl/man-pages-pl-20070628-r2.ebuild43
-rw-r--r--app-i18n/man-pages-pl/metadata.xml7
-rw-r--r--app-i18n/man-pages-ro/Manifest1
-rw-r--r--app-i18n/man-pages-ro/man-pages-ro-0.2.ebuild23
-rw-r--r--app-i18n/man-pages-ro/metadata.xml8
-rw-r--r--app-i18n/man-pages-ru/Manifest3
-rw-r--r--app-i18n/man-pages-ru/man-pages-ru-3.54.2171.1790.20131020.ebuild28
-rw-r--r--app-i18n/man-pages-ru/man-pages-ru-3.56.2172.1866.20140202.ebuild28
-rw-r--r--app-i18n/man-pages-ru/man-pages-ru-3.71.2209.1992.20140911.ebuild28
-rw-r--r--app-i18n/man-pages-ru/metadata.xml16
-rw-r--r--app-i18n/man-pages-zh_CN/Manifest1
-rw-r--r--app-i18n/man-pages-zh_CN/man-pages-zh_CN-1.5.ebuild33
-rw-r--r--app-i18n/man-pages-zh_CN/metadata.xml7
-rw-r--r--app-i18n/mecab-skkserv/Manifest1
-rw-r--r--app-i18n/mecab-skkserv/files/mecab-skkserv11
-rw-r--r--app-i18n/mecab-skkserv/files/mecab-skkserv-0.03-cflags.patch15
-rw-r--r--app-i18n/mecab-skkserv/files/mecab-skkserv-0.03-dicrc.patch9
-rw-r--r--app-i18n/mecab-skkserv/mecab-skkserv-0.03.ebuild41
-rw-r--r--app-i18n/mecab-skkserv/metadata.xml5
-rw-r--r--app-i18n/metadata.xml34
-rw-r--r--app-i18n/mozc/Manifest10
-rw-r--r--app-i18n/mozc/files/50mozc-gentoo.el4
-rw-r--r--app-i18n/mozc/files/mozc-1.10.1390.102-drop-Werror.patch12
-rw-r--r--app-i18n/mozc/files/mozc-1.13.1651.102-gtk-renderer.patch13
-rw-r--r--app-i18n/mozc/files/mozc-1.2.809.102-gentoo.patch14
-rw-r--r--app-i18n/mozc/files/mozc-1.3.975.102-ibus-1.4.patch54
-rw-r--r--app-i18n/mozc/files/mozc-ibus-1.5.4.patch299
-rw-r--r--app-i18n/mozc/metadata.xml16
-rw-r--r--app-i18n/mozc/mozc-1.10.1390.102-r1.ebuild176
-rw-r--r--app-i18n/mozc/mozc-1.13.1651.102.ebuild181
-rw-r--r--app-i18n/mozc/mozc-2.16.2037.102.ebuild230
-rw-r--r--app-i18n/multiskkserv/Manifest1
-rw-r--r--app-i18n/multiskkserv/files/multiskkserv-20100128-cdb.patch45
-rw-r--r--app-i18n/multiskkserv/files/multiskkserv.conf15
-rw-r--r--app-i18n/multiskkserv/files/multiskkserv.initd31
-rw-r--r--app-i18n/multiskkserv/metadata.xml5
-rw-r--r--app-i18n/multiskkserv/multiskkserv-20100128.ebuild46
-rw-r--r--app-i18n/nabi/Manifest6
-rw-r--r--app-i18n/nabi/files/nabi-0.15-asneeded.patch12
-rw-r--r--app-i18n/nabi/files/nabi-0.99.3-asneeded.patch13
-rw-r--r--app-i18n/nabi/files/xinput-nabi6
-rw-r--r--app-i18n/nabi/metadata.xml5
-rw-r--r--app-i18n/nabi/nabi-0.15.ebuild38
-rw-r--r--app-i18n/nabi/nabi-0.17.ebuild39
-rw-r--r--app-i18n/nabi/nabi-0.99.10.ebuild54
-rw-r--r--app-i18n/nabi/nabi-0.99.11.ebuild53
-rw-r--r--app-i18n/nabi/nabi-0.99.3.ebuild50
-rw-r--r--app-i18n/nabi/nabi-0.99.8.ebuild53
-rw-r--r--app-i18n/nkf/Manifest3
-rw-r--r--app-i18n/nkf/files/nkf-2.1.3-strip.patch9
-rw-r--r--app-i18n/nkf/metadata.xml8
-rw-r--r--app-i18n/nkf/nkf-2.1.3-r1.ebuild74
-rw-r--r--app-i18n/nkf/nkf-2.1.3.ebuild69
-rw-r--r--app-i18n/opencc/Manifest3
-rw-r--r--app-i18n/opencc/files/opencc-0.3.0_pre20120819-cmake-libdir.patch17
-rw-r--r--app-i18n/opencc/metadata.xml10
-rw-r--r--app-i18n/opencc/opencc-0.2.0.ebuild41
-rw-r--r--app-i18n/opencc/opencc-0.3.0_pre20120819-r1.ebuild42
-rw-r--r--app-i18n/opencc/opencc-0.3.0_pre20120819.ebuild41
-rw-r--r--app-i18n/opencc/opencc-0.4.3.ebuild36
-rw-r--r--app-i18n/poedit/Manifest2
-rw-r--r--app-i18n/poedit/files/poedit-1.5.5-wx28.patch22
-rw-r--r--app-i18n/poedit/metadata.xml8
-rw-r--r--app-i18n/poedit/poedit-1.5.5.ebuild47
-rw-r--r--app-i18n/poedit/poedit-1.8.3.ebuild71
-rw-r--r--app-i18n/pology/Manifest2
-rw-r--r--app-i18n/pology/metadata.xml5
-rw-r--r--app-i18n/pology/pology-0.11-r1.ebuild64
-rw-r--r--app-i18n/pology/pology-0.12.ebuild61
-rw-r--r--app-i18n/pology/pology-9999.ebuild61
-rw-r--r--app-i18n/pyzy/Manifest2
-rw-r--r--app-i18n/pyzy/files/pyzy-dont-download-dictionary-file.patch15
-rw-r--r--app-i18n/pyzy/metadata.xml17
-rw-r--r--app-i18n/pyzy/pyzy-0.1.0-r1.ebuild52
-rw-r--r--app-i18n/pyzy/pyzy-0.1.0.ebuild51
-rw-r--r--app-i18n/qimhangul/Manifest1
-rw-r--r--app-i18n/qimhangul/metadata.xml5
-rw-r--r--app-i18n/qimhangul/qimhangul-0.2.0.ebuild18
-rw-r--r--app-i18n/qkc/Manifest1
-rw-r--r--app-i18n/qkc/metadata.xml5
-rw-r--r--app-i18n/qkc/qkc-1.00.ebuild35
-rw-r--r--app-i18n/rime-data/Manifest3
-rw-r--r--app-i18n/rime-data/metadata.xml17
-rw-r--r--app-i18n/rime-data/rime-data-0.22.ebuild20
-rw-r--r--app-i18n/rime-data/rime-data-0.32.ebuild20
-rw-r--r--app-i18n/rime-data/rime-data-0.35.ebuild20
-rw-r--r--app-i18n/scim-anthy/Manifest3
-rw-r--r--app-i18n/scim-anthy/metadata.xml13
-rw-r--r--app-i18n/scim-anthy/scim-anthy-1.2.7-r1.ebuild47
-rw-r--r--app-i18n/scim-anthy/scim-anthy-1.3.1.ebuild58
-rw-r--r--app-i18n/scim-bridge/Manifest1
-rw-r--r--app-i18n/scim-bridge/files/scim-bridge-0.4.15.2-gcc43.patch10
-rw-r--r--app-i18n/scim-bridge/files/scim-bridge-0.4.15.2-qt4.patch58
-rw-r--r--app-i18n/scim-bridge/files/scim-bridge-0.4.16+gcc-4.4.patch12
-rw-r--r--app-i18n/scim-bridge/files/scim-bridge-0.4.16+gcc-4.7.patch24
-rw-r--r--app-i18n/scim-bridge/files/scim-bridge-0.4.16-configure.ac.patch164
-rw-r--r--app-i18n/scim-bridge/metadata.xml8
-rw-r--r--app-i18n/scim-bridge/scim-bridge-0.4.16-r2.ebuild87
-rw-r--r--app-i18n/scim-canna/Manifest1
-rw-r--r--app-i18n/scim-canna/metadata.xml8
-rw-r--r--app-i18n/scim-canna/scim-canna-1.0.1.ebuild35
-rw-r--r--app-i18n/scim-hangul/Manifest2
-rw-r--r--app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.3.patch23
-rw-r--r--app-i18n/scim-hangul/files/scim-hangul-0.3.2+gcc-4.7.patch12
-rw-r--r--app-i18n/scim-hangul/files/scim-hangul-0.4.0+gtk.patch11
-rw-r--r--app-i18n/scim-hangul/metadata.xml8
-rw-r--r--app-i18n/scim-hangul/scim-hangul-0.3.2.ebuild47
-rw-r--r--app-i18n/scim-hangul/scim-hangul-0.4.0.ebuild53
-rw-r--r--app-i18n/scim-input-pad/Manifest3
-rw-r--r--app-i18n/scim-input-pad/metadata.xml33
-rw-r--r--app-i18n/scim-input-pad/scim-input-pad-0.1.1.ebuild49
-rw-r--r--app-i18n/scim-input-pad/scim-input-pad-0.1.3.1.ebuild56
-rw-r--r--app-i18n/scim-input-pad/scim-input-pad-0.1.3.ebuild56
-rw-r--r--app-i18n/scim-m17n/Manifest2
-rw-r--r--app-i18n/scim-m17n/files/scim-m17n-0.2.2-gcc43.patch10
-rw-r--r--app-i18n/scim-m17n/metadata.xml8
-rw-r--r--app-i18n/scim-m17n/scim-m17n-0.2.2.ebuild40
-rw-r--r--app-i18n/scim-m17n/scim-m17n-0.2.3.ebuild34
-rw-r--r--app-i18n/scim-pinyin/Manifest2
-rw-r--r--app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-fixconfigure.patch33
-rw-r--r--app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gbk.patch62
-rw-r--r--app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gcc43.patch44
-rw-r--r--app-i18n/scim-pinyin/files/scim-pinyin-qt335.patch25
-rw-r--r--app-i18n/scim-pinyin/metadata.xml8
-rw-r--r--app-i18n/scim-pinyin/scim-pinyin-0.5.91-r3.ebuild48
-rw-r--r--app-i18n/scim-pinyin/scim-pinyin-0.5.92.ebuild39
-rw-r--r--app-i18n/scim-sayura/Manifest1
-rw-r--r--app-i18n/scim-sayura/files/scim-sayura-0.3.3-gcc45.patch15
-rw-r--r--app-i18n/scim-sayura/metadata.xml9
-rw-r--r--app-i18n/scim-sayura/scim-sayura-0.3.3.ebuild32
-rw-r--r--app-i18n/scim-skk/Manifest1
-rw-r--r--app-i18n/scim-skk/files/scim-skk-0.5.2-gcc43.patch11
-rw-r--r--app-i18n/scim-skk/metadata.xml8
-rw-r--r--app-i18n/scim-skk/scim-skk-0.5.2-r1.ebuild54
-rw-r--r--app-i18n/scim-sunpinyin/Manifest1
-rw-r--r--app-i18n/scim-sunpinyin/files/scim-sunpinyin-2.0.3-force-switch.patch34
-rw-r--r--app-i18n/scim-sunpinyin/metadata.xml8
-rw-r--r--app-i18n/scim-sunpinyin/scim-sunpinyin-2.0.3-r2.ebuild32
-rw-r--r--app-i18n/scim-tables/Manifest1
-rw-r--r--app-i18n/scim-tables/files/scim-tables-0.5.12-automake.patch13
-rw-r--r--app-i18n/scim-tables/files/scim-tables-0.5.8+gcc-4.3.patch11
-rw-r--r--app-i18n/scim-tables/metadata.xml8
-rw-r--r--app-i18n/scim-tables/scim-tables-0.5.13.ebuild65
-rw-r--r--app-i18n/scim-tomoe/Manifest1
-rw-r--r--app-i18n/scim-tomoe/files/scim-tomoe-0.6.0-gcc43.patch11
-rw-r--r--app-i18n/scim-tomoe/files/scim-tomoe-0.6.0-gucharmap2.patch21
-rw-r--r--app-i18n/scim-tomoe/metadata.xml11
-rw-r--r--app-i18n/scim-tomoe/scim-tomoe-0.6.0-r1.ebuild29
-rw-r--r--app-i18n/scim-tomoe/scim-tomoe-0.6.0-r2.ebuild38
-rw-r--r--app-i18n/scim-tomoe/scim-tomoe-0.6.0.ebuild23
-rw-r--r--app-i18n/scim-uim/Manifest1
-rw-r--r--app-i18n/scim-uim/files/scim-uim-0.2.0-gcc43.patch11
-rw-r--r--app-i18n/scim-uim/files/scim-uim-0.2.0-uim-1.5.patch12
-rw-r--r--app-i18n/scim-uim/metadata.xml8
-rw-r--r--app-i18n/scim-uim/scim-uim-0.2.0-r2.ebuild41
-rw-r--r--app-i18n/scim-wijesekera/Manifest1
-rw-r--r--app-i18n/scim-wijesekera/files/scim-wijesekera-0.3.3-gcc43.patch22
-rw-r--r--app-i18n/scim-wijesekera/metadata.xml6
-rw-r--r--app-i18n/scim-wijesekera/scim-wijesekera-0.3.3-r1.ebuild31
-rw-r--r--app-i18n/scim-wnn/Manifest2
-rw-r--r--app-i18n/scim-wnn/files/scim-wnn-1.0.0-gcc43.patch22
-rw-r--r--app-i18n/scim-wnn/metadata.xml5
-rw-r--r--app-i18n/scim-wnn/scim-wnn-0.2.4.ebuild47
-rw-r--r--app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild58
-rw-r--r--app-i18n/scim-wnn/scim-wnn-1.0.0.ebuild50
-rw-r--r--app-i18n/scim/Manifest1
-rw-r--r--app-i18n/scim/files/xinput-scim9
-rw-r--r--app-i18n/scim/metadata.xml11
-rw-r--r--app-i18n/scim/scim-1.4.14.ebuild106
-rw-r--r--app-i18n/skk-jisyo/Manifest1
-rw-r--r--app-i18n/skk-jisyo/files/unannotation.awk75
-rw-r--r--app-i18n/skk-jisyo/metadata.xml5
-rw-r--r--app-i18n/skk-jisyo/skk-jisyo-201101.ebuild57
-rw-r--r--app-i18n/skk-jisyo/skk-jisyo-9999.ebuild67
-rw-r--r--app-i18n/skkfep/Manifest1
-rw-r--r--app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch21
-rw-r--r--app-i18n/skkfep/files/skkfep-0.87-gentoo.patch131
-rw-r--r--app-i18n/skkfep/metadata.xml5
-rw-r--r--app-i18n/skkfep/skkfep-0.87-r1.ebuild38
-rw-r--r--app-i18n/skkserv/Manifest1
-rw-r--r--app-i18n/skkserv/files/skkserv-9.6-inet_ntoa-gentoo.patch11
-rw-r--r--app-i18n/skkserv/files/skkserv-9.6-segfault-gentoo.patch15
-rw-r--r--app-i18n/skkserv/files/skkserv.initd16
-rw-r--r--app-i18n/skkserv/metadata.xml5
-rw-r--r--app-i18n/skkserv/skkserv-9.6-r3.ebuild43
-rw-r--r--app-i18n/sunpinyin-data/Manifest3
-rw-r--r--app-i18n/sunpinyin-data/files/SLM-inst.mk62
-rw-r--r--app-i18n/sunpinyin-data/metadata.xml8
-rw-r--r--app-i18n/sunpinyin-data/sunpinyin-data-20121025.ebuild38
-rw-r--r--app-i18n/sunpinyin-data/sunpinyin-data-20130220.ebuild38
-rw-r--r--app-i18n/sunpinyin/Manifest4
-rw-r--r--app-i18n/sunpinyin/files/sunpinyin-2.0.3-force-switch.patch30
-rw-r--r--app-i18n/sunpinyin/files/sunpinyin-2.0.3-gcc-4.7.patch49
-rw-r--r--app-i18n/sunpinyin/metadata.xml8
-rw-r--r--app-i18n/sunpinyin/sunpinyin-2.0.3-r1.ebuild65
-rw-r--r--app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild46
-rw-r--r--app-i18n/tagainijisho/Manifest2
-rw-r--r--app-i18n/tagainijisho/metadata.xml23
-rw-r--r--app-i18n/tagainijisho/tagainijisho-1.0.2.ebuild59
-rw-r--r--app-i18n/tagainijisho/tagainijisho-1.0.3.ebuild53
-rw-r--r--app-i18n/tegaki-zinnia-japanese/Manifest1
-rw-r--r--app-i18n/tegaki-zinnia-japanese/metadata.xml5
-rw-r--r--app-i18n/tegaki-zinnia-japanese/tegaki-zinnia-japanese-0.3.ebuild26
-rw-r--r--app-i18n/tomoe/Manifest1
-rw-r--r--app-i18n/tomoe/files/tomoe-0.6.0-export-symbols.patch240
-rw-r--r--app-i18n/tomoe/files/tomoe-0.6.0-glib232.patch39
-rw-r--r--app-i18n/tomoe/files/tomoe-0.6.0-ldflags.patch24
-rw-r--r--app-i18n/tomoe/metadata.xml12
-rw-r--r--app-i18n/tomoe/tomoe-0.6.0-r1.ebuild88
-rw-r--r--app-i18n/tomoe/tomoe-0.6.0-r2.ebuild93
-rw-r--r--app-i18n/transifex-client/Manifest2
-rw-r--r--app-i18n/transifex-client/files/transifex-client-0.8.0-tests.patch26
-rw-r--r--app-i18n/transifex-client/metadata.xml11
-rw-r--r--app-i18n/transifex-client/transifex-client-0.10.ebuild21
-rw-r--r--app-i18n/transifex-client/transifex-client-0.11.1_beta.ebuild26
-rw-r--r--app-i18n/uim-tomoe-gtk/Manifest1
-rw-r--r--app-i18n/uim-tomoe-gtk/metadata.xml8
-rw-r--r--app-i18n/uim-tomoe-gtk/uim-tomoe-gtk-0.6.0.ebuild23
-rw-r--r--app-i18n/uim/Manifest1
-rw-r--r--app-i18n/uim/files/50uim-gentoo.el4
-rw-r--r--app-i18n/uim/files/uim-1.5.4-zhTW.patch12
-rw-r--r--app-i18n/uim/files/uim-1.6.0-gentoo.patch11
-rw-r--r--app-i18n/uim/files/xinput-uim6
-rw-r--r--app-i18n/uim/metadata.xml19
-rw-r--r--app-i18n/uim/uim-1.8.6-r1.ebuild232
-rw-r--r--app-i18n/unicode-data/Manifest2
-rw-r--r--app-i18n/unicode-data/metadata.xml5
-rw-r--r--app-i18n/unicode-data/unicode-data-6.0.0.ebuild31
-rw-r--r--app-i18n/unicode-data/unicode-data-6.1.0.ebuild29
-rw-r--r--app-i18n/x-unikey/Manifest1
-rw-r--r--app-i18n/x-unikey/files/01x-unikey9
-rw-r--r--app-i18n/x-unikey/files/x-unikey-1.0.4-gcc43.patch12
-rw-r--r--app-i18n/x-unikey/files/x-unikey-1.0.4-gcc44.patch31
-rw-r--r--app-i18n/x-unikey/files/x-unikey-1.0.4-gentoo.patch20
-rw-r--r--app-i18n/x-unikey/metadata.xml8
-rw-r--r--app-i18n/x-unikey/x-unikey-1.0.4-r2.ebuild78
-rw-r--r--app-i18n/xcin/Manifest2
-rw-r--r--app-i18n/xcin/files/xcin-2.5.3_pre3-glibc-2.10.patch110
-rw-r--r--app-i18n/xcin/files/xcin-2.5.3_pre3-ldflags.patch96
-rw-r--r--app-i18n/xcin/files/xcin-2.5.3_pre3-make.patch118
-rw-r--r--app-i18n/xcin/metadata.xml5
-rw-r--r--app-i18n/xcin/xcin-2.5.3_pre3-r2.ebuild71
-rw-r--r--app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild77
-rw-r--r--app-i18n/xsim/Manifest1
-rw-r--r--app-i18n/xsim/files/xsim-0.3.9.4-64bit.patch57
-rw-r--r--app-i18n/xsim/files/xsim-0.3.9.4-compile-fix.patch77
-rw-r--r--app-i18n/xsim/files/xsim-0.3.9.4-eof.patch92
-rw-r--r--app-i18n/xsim/files/xsim-0.3.9.4-gcc-3.4.patch116
-rw-r--r--app-i18n/xsim/files/xsim-0.3.9.4-gcc-4.3.patch44
-rw-r--r--app-i18n/xsim/files/xsim-0.3.9.4-makefile.patch153
-rw-r--r--app-i18n/xsim/metadata.xml5
-rw-r--r--app-i18n/xsim/xsim-0.3.9.4-r5.ebuild78
-rw-r--r--app-i18n/xsunpinyin/Manifest2
-rw-r--r--app-i18n/xsunpinyin/files/README.gentoo5
-rw-r--r--app-i18n/xsunpinyin/files/xsunpinyin-2.0.3-force-switch.patch45
-rw-r--r--app-i18n/xsunpinyin/metadata.xml8
-rw-r--r--app-i18n/xsunpinyin/xsunpinyin-2.0.3-r3.ebuild32
-rw-r--r--app-i18n/xsunpinyin/xsunpinyin-2.0.4_pre20130108.ebuild43
-rw-r--r--app-i18n/xvnkb/Manifest2
-rw-r--r--app-i18n/xvnkb/files/0.2.8a-putenv.patch11
-rw-r--r--app-i18n/xvnkb/files/xvnkb-0.2.8a.patch16
-rw-r--r--app-i18n/xvnkb/files/xvnkb-0.2.9a-ldflags.patch34
-rw-r--r--app-i18n/xvnkb/metadata.xml5
-rw-r--r--app-i18n/xvnkb/xvnkb-0.2.8a-r1.ebuild69
-rw-r--r--app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild65
-rw-r--r--app-i18n/zhcon/Manifest2
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch67
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6+gcc-4.3.patch185
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch18
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch77
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6-automagic-fix.patch36
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6-curses.patch22
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6.configure.in.patch11
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6.make-fix.patch82
-rw-r--r--app-i18n/zhcon/files/zhcon-0.2.6.sysconfdir.patch24
-rw-r--r--app-i18n/zhcon/metadata.xml13
-rw-r--r--app-i18n/zhcon/zhcon-0.2.6-r2.ebuild54
-rw-r--r--app-i18n/zinnia-tomoe/Manifest1
-rw-r--r--app-i18n/zinnia-tomoe/metadata.xml8
-rw-r--r--app-i18n/zinnia-tomoe/zinnia-tomoe-0.6.0_p20080911.ebuild32
-rw-r--r--app-i18n/zinnia/Manifest1
-rw-r--r--app-i18n/zinnia/files/zinnia-0.06-perl.patch13
-rw-r--r--app-i18n/zinnia/files/zinnia-0.06-ricedown.patch20
-rw-r--r--app-i18n/zinnia/metadata.xml8
-rw-r--r--app-i18n/zinnia/zinnia-0.06-r3.ebuild68
671 files changed, 21762 insertions, 0 deletions
diff --git a/app-i18n/anthy-ss/Manifest b/app-i18n/anthy-ss/Manifest
new file mode 100644
index 000000000000..ddd64ca3fc10
--- /dev/null
+++ b/app-i18n/anthy-ss/Manifest
@@ -0,0 +1 @@
+DIST anthy-9026.tar.gz 4064170 SHA256 1a4c2736b531dd088f1d8f22a67a87cfc29de23402c72e70d9e5bb160b448685 SHA512 00b99d5c2e2d91b21e86fc2fb3c46490f97aa20f2d91afb2ddbe59606c0b01da9199088a92119930d0f5b8e266f3314be3cceab3562b58684692090259bc2f79 WHIRLPOOL 6587d9914eede00ca541764a9ead6befd014f9c3bc72dc28e855bc1e50a4da0c616051d7e01c96e3d9ad6d34ab074017a64db41d8ee58d314a04ab2c3de74830
diff --git a/app-i18n/anthy-ss/anthy-ss-9026.ebuild b/app-i18n/anthy-ss/anthy-ss-9026.ebuild
new file mode 100644
index 000000000000..d5752624fcf9
--- /dev/null
+++ b/app-i18n/anthy-ss/anthy-ss-9026.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit elisp-common eutils
+
+IUSE="emacs"
+
+MY_P="${P/-ss/}"
+
+DESCRIPTION="Anthy -- free and secure Japanese input system"
+HOMEPAGE="http://anthy.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/anthy/25984/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
+SLOT="0"
+S="${WORKDIR}/${MY_P}"
+
+DEPEND="!app-i18n/anthy
+ emacs? ( virtual/emacs )"
+
+src_unpack() {
+
+ unpack ${A}
+ cd "${S}"
+
+ local cannadicdir=/var/lib/canna/dic/canna
+
+ if has_version 'app-dicts/canna-2ch'; then
+ einfo "Adding nichan.ctd to anthy.dic."
+ sed -i /placename/a"read ${cannadicdir}/nichan.ctd" \
+ mkworddic/dict.args.in
+ fi
+
+}
+
+src_compile() {
+
+ local myconf
+
+ use emacs || myconf="EMACS=no"
+
+ econf ${myconf} || die
+ emake || die
+
+}
+
+src_install() {
+
+ emake DESTDIR="${D}" install || die
+
+ use emacs && elisp-site-file-install "${FILESDIR}"/50anthy-gentoo.el
+
+ dodoc AUTHORS DIARY NEWS README ChangeLog
+
+ docinto doc
+ rm doc/Makefile*
+ dodoc doc/*
+
+}
+
+pkg_postinst() {
+
+ use emacs && elisp-site-regen
+
+}
+
+pkg_postrm() {
+
+ use emacs && elisp-site-regen
+
+}
diff --git a/app-i18n/anthy-ss/files/50anthy-gentoo.el b/app-i18n/anthy-ss/files/50anthy-gentoo.el
new file mode 100644
index 000000000000..2c3ed77062f7
--- /dev/null
+++ b/app-i18n/anthy-ss/files/50anthy-gentoo.el
@@ -0,0 +1,4 @@
+
+;;; anthy-ss site-lisp configuration
+
+(set-language-info "Japanese" 'input-method "japanese-anthy")
diff --git a/app-i18n/anthy-ss/metadata.xml b/app-i18n/anthy-ss/metadata.xml
new file mode 100644
index 000000000000..7deacf38f2b1
--- /dev/null
+++ b/app-i18n/anthy-ss/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Anthy is a free and secure Japanese kana-kanji server. This ebuild
+ includes cannadic as a server-side dictionary, so you don't need any
+ extra package to run it. You can use anthy with app-i18n/jmode (XIM),
+ app-i18n/uim(XIM, GTK+ immodule) and emacs (to enable Anthy support
+ for emacs, build this package with emacs USE flag).
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge-jp">anthy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/anthy/Manifest b/app-i18n/anthy/Manifest
new file mode 100644
index 000000000000..956a3edb9c0d
--- /dev/null
+++ b/app-i18n/anthy/Manifest
@@ -0,0 +1 @@
+DIST anthy-9100h.tar.gz 4446148 SHA256 d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2275547 SHA512 315ebd9e1af208f3ecaeaa13620213b35f004e47edb54e60c3e02c2997444cd2326cc58b725dd2d0bd6a723130884d946ea193ea3d92418082256b59ecc8d88b WHIRLPOOL dfdaa96e19dbd53ad627c40521922c7df74858e9836a770059dbd6005a09e3978bcd46bcd40380360708c4234e91e77d91161064614596047f53020c2c571245
diff --git a/app-i18n/anthy/anthy-9100h-r1.ebuild b/app-i18n/anthy/anthy-9100h-r1.ebuild
new file mode 100644
index 000000000000..da419e7bbec3
--- /dev/null
+++ b/app-i18n/anthy/anthy-9100h-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+inherit elisp-common eutils
+
+DESCRIPTION="Anthy -- free and secure Japanese input system"
+HOMEPAGE="http://anthy.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/anthy/37536/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+#KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
+SLOT="0"
+IUSE="canna-2ch emacs static-libs"
+
+DEPEND="!app-i18n/anthy-ss
+ canna-2ch? ( app-dicts/canna-2ch )
+ emacs? ( virtual/emacs )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-anthy_context_t.patch"
+
+ if use canna-2ch; then
+ einfo "Adding nichan.ctd to anthy.dic."
+ sed -i \
+ -e "/set_input_encoding eucjp/aread ${EPREFIX}/var/lib/canna/dic/canna/nichan.ctd" \
+ mkworddic/dict.args.in || die
+ fi
+}
+
+src_configure() {
+ local myconf
+
+ use emacs || myconf="EMACS=no"
+
+ econf \
+ $(use_enable static-libs static) \
+ ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ if use emacs ; then
+ elisp-site-file-install "${FILESDIR}"/50anthy-gentoo.el || die
+ fi
+
+ dodoc AUTHORS DIARY NEWS README ChangeLog || die
+
+ rm -f doc/Makefile*
+ docinto doc
+ dodoc doc/* || die
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/app-i18n/anthy/files/50anthy-gentoo.el b/app-i18n/anthy/files/50anthy-gentoo.el
new file mode 100644
index 000000000000..a166df146539
--- /dev/null
+++ b/app-i18n/anthy/files/50anthy-gentoo.el
@@ -0,0 +1,5 @@
+
+;;; anthy site-lisp configuration
+
+(set-language-info "Japanese" 'input-method "japanese-anthy")
+
diff --git a/app-i18n/anthy/files/anthy-9100h-anthy_context_t.patch b/app-i18n/anthy/files/anthy-9100h-anthy_context_t.patch
new file mode 100644
index 000000000000..b46a136663bc
--- /dev/null
+++ b/app-i18n/anthy/files/anthy-9100h-anthy_context_t.patch
@@ -0,0 +1,12 @@
+diff -Naur anthy-9100h.orig/anthy/input.h anthy-9100h/anthy/input.h
+--- anthy-9100h.orig/anthy/input.h 2006-05-13 18:28:35.000000000 +0900
++++ anthy-9100h/anthy/input.h 2011-01-12 23:36:39.629749518 +0900
+@@ -10,6 +10,8 @@
+ #ifndef INPUT_H_INCLUDE
+ #define INPUT_H_INCLUDE
+
++#include "anthy.h"
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
diff --git a/app-i18n/anthy/metadata.xml b/app-i18n/anthy/metadata.xml
new file mode 100644
index 000000000000..22231128a4f7
--- /dev/null
+++ b/app-i18n/anthy/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Anthy is a free and secure Japanese kana-kanji server. This ebuild includes
+ cannadic as a server-side dictionary, so you don't need any extra package to
+ run it. You can use anthy with <pkg>app-i18n/jmode</pkg> (XIM),
+ <pkg>app-i18n/uim</pkg> (XIM, GTK+ immodule) and <pkg>virtual/emacs</pkg>
+ (to enable Anthy support for emacs, build this package with emacs USE flag).
+</longdescription>
+ <use>
+ <flag name="canna-2ch">Enable support for <pkg>app-dicts/canna-2ch</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge-jp">anthy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/atokx2/Manifest b/app-i18n/atokx2/Manifest
new file mode 100644
index 000000000000..fcdbee157ed9
--- /dev/null
+++ b/app-i18n/atokx2/Manifest
@@ -0,0 +1 @@
+DIST atokforlinux_update_17_0_2_1.tar.gz 41387655 SHA256 0fd7c0cbb870c9fa925b065ab92876419db37144f9b82ef37cf7f3cd11dd7294 SHA512 63709c7d4608d46d85eb0dfbe0bd72e23d9367f745be6a19ba3efad2bf8d2b5f2ce0d37b5813f63e81fb448aed65ac823d1870d8c35e4a2d2e99ef85ccde146a WHIRLPOOL 57e64b7c2316ae20205080d166002c26b59eae685273e1ff5b6778a8149b3d8487a69745e0eddbb52b996639442061289b99bc1443a4337b0f81ad70b52d0847
diff --git a/app-i18n/atokx2/atokx2-17.0-r2.ebuild b/app-i18n/atokx2/atokx2-17.0-r2.ebuild
new file mode 100644
index 000000000000..302371ed8108
--- /dev/null
+++ b/app-i18n/atokx2/atokx2-17.0-r2.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="1"
+
+inherit cdrom eutils gnome2-utils
+
+DESCRIPTION="ATOK for Linux - The most famous Japanese Input Method Engine"
+HOMEPAGE="http://www.justsystem.co.jp/linux/atok.html"
+IIIMF_V="trunk_r2059-js1"
+UPDATE_P="atokforlinux_update_17_0_2_1"
+SRC_URI="http://www3.justsystem.co.jp/download/atok/up/lin/${UPDATE_P}.tar.gz"
+
+LICENSE="ATOK MIT GPL-2"
+
+SLOT="0"
+KEYWORDS="-* ~x86"
+IUSE=""
+RESTRICT="strip mirror"
+
+DEPEND=">=x11-libs/gtk+-2.2:2
+ !dev-libs/libiiimcf
+ !dev-libs/csconv
+ !app-i18n/iiimgcf
+ !dev-libs/libiiimp
+ !app-i18n/iiimsf
+ !app-i18n/iiimxcf"
+
+src_unpack() {
+ cdrom_get_cds doc/license.html || die "Please mount ATOK for Linux CD-ROM or set CD_ROOT variable to the directory containing ATOK for Linux."
+ unpack ${A}
+}
+
+src_install() {
+ cd "${D}"
+
+ local iiimgcf
+ if has_version '>=x11-libs/gtk+-2.4' ; then
+ iiimgcf="iiimf-gtk24-${IIIMF_V/js1/js2}.i386.tar.gz
+ iiimf-gtkopt24-${IIIMF_V/js1/js2}.i386.tar.gz"
+ else
+ iiimgcf=iiimf-gtk22-${IIIMF_V/js1/js2}.i386.tar.gz
+ fi
+
+ for i in \
+ iiimf-client-lib-${IIIMF_V}.i386.tar.gz \
+ iiimf-csconv-${IIIMF_V}.i386.tar.gz \
+ iiimf-protocol-lib-${IIIMF_V}.i386.tar.gz \
+ iiimf-rc-${IIIMF_V}.i386.tar.gz \
+ iiimf-server-${IIIMF_V}.i386.tar.gz \
+ iiimf-x-${IIIMF_V}.i386.tar.gz
+ do
+ echo ${CDROM_ROOT}
+ tar xzf ${CDROM_ROOT}/bin/IIIMF/${i} \
+ || die "Failed to unpack ${i}"
+ done
+
+ for i in ${iiimgcf}
+ do
+ tar xzf "${WORKDIR}"/${UPDATE_P}/bin/IIIMF/$i || die
+ done
+
+ # /etc files
+ newinitd "${FILESDIR}"/iiim.initd iiim || die
+ newconfd "${FILESDIR}"/iiim.confd iiim || die
+
+ tar xzf ${CDROM_ROOT}/bin/ATOK/atokx-${PV}-2.0.i386.tar.gz \
+ || die "Failed to unpack atokx-${PV}-2.0.i386.tar.gz"
+ tar xzf "${WORKDIR}"/${UPDATE_P}/bin/ATOK/atokx-${PV}-2.1.i386.patch.tar.gz \
+ || die "Failed to unpack atokx-${PV}-2.1.i386.patch.tar.gz"
+
+ newinitd "${FILESDIR}"/atokx2.initd atokx2 || die
+
+ dohtml -r ${CDROM_ROOT}/doc/* || die
+ insinto /usr/share/doc/${PF}
+ doins ${CDROM_ROOT}/{install_guide.pdf,doc/ATOK/atok.pdf} || die
+}
+
+get_gtk_confdir() {
+ if use amd64 || ( [ "${CONF_LIBDIR}" == "lib32" ] && use x86 ) ; then
+ echo "/etc/gtk-2.0/${CHOST}"
+ else
+ echo "/etc/gtk-2.0"
+ fi
+}
+
+pkg_postinst() {
+ elog
+ elog "To use ATOK for Linux, you need to add atokx2 and iiim to"
+ elog "the default runlevel:"
+ elog "# /sbin/rc-update add atokx2 default"
+ elog "# /sbin/rc-update add iiim default"
+ elog "Also, call /opt/atokx2/bin/atokx2_client.sh from appropriate file."
+ elog
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/atokx2/atokx2-17.0.ebuild b/app-i18n/atokx2/atokx2-17.0.ebuild
new file mode 100644
index 000000000000..08eea31f545a
--- /dev/null
+++ b/app-i18n/atokx2/atokx2-17.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="1"
+
+inherit cdrom eutils gnome2-utils
+
+DESCRIPTION="ATOK for Linux - The most famous Japanese Input Method Engine"
+HOMEPAGE="http://www.justsystem.co.jp/linux/atok.html"
+IIIMF_V="trunk_r2059-js1"
+SRC_URI=""
+
+LICENSE="ATOK MIT GPL-2"
+
+SLOT="0"
+KEYWORDS="-* x86"
+IUSE=""
+RESTRICT="strip"
+
+DEPEND=">=x11-libs/gtk+-2.2:2
+ !dev-libs/libiiimcf
+ !dev-libs/csconv
+ !app-i18n/iiimgcf
+ !dev-libs/libiiimp
+ !app-i18n/iiimsf
+ !app-i18n/iiimxcf"
+
+src_unpack() {
+ cdrom_get_cds doc/license.html || die "Please mount ATOK for Linux CD-ROM or set CD_ROOT variable to the directory containing ATOK for Linux."
+}
+
+src_install() {
+ cd "${D}"
+
+ local iiimgcf
+ if has_version '>=x11-libs/gtk+-2.4' ; then
+ iiimgcf=iiimf-gtk24-${IIIMF_V}.i386.tar.gz
+ else
+ iiimgcf=iiimf-gtk22-${IIIMF_V}.i386.tar.gz
+ fi
+
+ for i in ${iiimgcf} \
+ iiimf-client-lib-${IIIMF_V}.i386.tar.gz \
+ iiimf-csconv-${IIIMF_V}.i386.tar.gz \
+ iiimf-protocol-lib-${IIIMF_V}.i386.tar.gz \
+ iiimf-rc-${IIIMF_V}.i386.tar.gz \
+ iiimf-server-${IIIMF_V}.i386.tar.gz \
+ iiimf-x-${IIIMF_V}.i386.tar.gz
+ do
+ echo ${CDROM_ROOT}
+ tar xzf ${CDROM_ROOT}/bin/IIIMF/${i} || die "Failed to unpack ${i}"
+ done
+
+ tar xzf ${CDROM_ROOT}/bin/ATOK/atokx-${PV}-2.0.i386.tar.gz || die "Failed to unpack atokx-${PV}-2.0.i386.tar.gz"
+
+ newinitd "${FILESDIR}"/atokx2.initd atokx2 || die
+ newinitd "${FILESDIR}"/iiim.initd iiim || die
+ newconfd "${FILESDIR}"/iiim.confd iiim || die
+
+ dohtml -r ${CDROM_ROOT}/doc/* || die
+ insinto /usr/share/doc/${PF}
+ doins ${CDROM_ROOT}/{install_guide.pdf,doc/ATOK/atok.pdf} || die
+}
+
+get_gtk_confdir() {
+ if use amd64 || ( [ "${CONF_LIBDIR}" == "lib32" ] && use x86 ) ; then
+ echo "/etc/gtk-2.0/${CHOST}"
+ else
+ echo "/etc/gtk-2.0"
+ fi
+}
+
+pkg_postinst() {
+ elog
+ elog "To use ATOK for Linux, you need to add atokx2 and iiim to"
+ elog "the default runlevel:"
+ elog "# /sbin/rc-update add atokx2 default"
+ elog "# /sbin/rc-update add iiim default"
+ elog "Also, call /opt/atokx2/bin/atokx2_client.sh from appropriate file."
+ elog
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/atokx2/files/atokx2.initd b/app-i18n/atokx2/files/atokx2.initd
new file mode 100644
index 000000000000..fdccf4d179b5
--- /dev/null
+++ b/app-i18n/atokx2/files/atokx2.initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting atokx2"
+ start-stop-daemon -b --start --quiet --exec /opt/atokx2/sbin/atokx2mngdaemon
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping atokx2"
+ start-stop-daemon --stop --quiet --exec /opt/atokx2/sbin/atokx2mngdaemon
+ eend $?
+}
diff --git a/app-i18n/atokx2/files/iiim.confd b/app-i18n/atokx2/files/iiim.confd
new file mode 100644
index 000000000000..f24ab6d32fdf
--- /dev/null
+++ b/app-i18n/atokx2/files/iiim.confd
@@ -0,0 +1,8 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Config file for /etc/init.d/iiim
+
+# If you want to use Shift + Space to enable/disable ATOK, uncomment
+#JUSTSYSTEM_TRIGGER_SHIFT_SPACE=t
diff --git a/app-i18n/atokx2/files/iiim.initd b/app-i18n/atokx2/files/iiim.initd
new file mode 100644
index 000000000000..51babaec4374
--- /dev/null
+++ b/app-i18n/atokx2/files/iiim.initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net atokx2
+}
+
+start() {
+ ebegin "Starting iiim"
+ start-stop-daemon -b --start --quiet --exec /usr/lib/im/htt
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping iiim"
+ start-stop-daemon --stop --quiet --exec /usr/lib/im/htt
+ eend $?
+}
diff --git a/app-i18n/atokx2/metadata.xml b/app-i18n/atokx2/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/atokx2/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/atokx3/Manifest b/app-i18n/atokx3/Manifest
new file mode 100644
index 000000000000..53fa0ce7c9be
--- /dev/null
+++ b/app-i18n/atokx3/Manifest
@@ -0,0 +1,3 @@
+DIST a20y1311lx.tgz 8463681 SHA256 6f63b0402c01f29fb9a508a022945fc8ed26bfc4101f3613ea2814063dc1ed9f SHA512 e295ba03a3ef8266f07e9feb1b208accf76923ab215dd022836550cc93c5e8eed70c21dd4ad264e9be25b906ac8996f3d1f90d1865daf2790ddf268e7797c39d WHIRLPOOL 11cfc180d07b15cc32eb156b0b7b12ed50f7487da38a1728ff714ebfa687461339bd242ee5d7329bb36055682062b38570dd5f8a901aaaf567137f7292fd58e1
+DIST atokx3gtk216.tar.gz 69246 SHA256 cd81d0e85872274135d94511ee71eda3f29f00ed299c1dacbdf024b9d96c62e2 SHA512 39c0ff01807626f417f34ef02e4be2fe07c52edc931775299e90fd8725d9c870c3473005fc87be5023d089e94fb4700f9ad36a10ad3373be22ec35e2a418eddd WHIRLPOOL 9bdad5de28564d0c7e3e1b3d67bc0fea09e2b1e9af5fb301ebbb90bc41e58fee405468020a06c84b0d97e3bbab28d7e421a0d9d293d9b957230fa476f823302d
+DIST atokx3up2.tar.gz 8427265 SHA256 d9aae2b3917c3370bd40a3f0f767ad15a09a586986e906835952264cd5c1d28e SHA512 b4ce05882418a18e6a0ab58d805a1edeca69187bfa16a98b8f79d749ec0cfdc1b838de30f3049d3b8b0929214164c4c2054dbe283dce0f18a1ab2daa181e306d WHIRLPOOL 43b5e32e62cba0122e918f497a5c5d1da1b303721af8eb00b70a840431cc2aa0ffa7a7009cb4253caab690445a9921741aa6a6394044c4907e1acd1376c6c76e
diff --git a/app-i18n/atokx3/atokx3-3.0.0-r11.ebuild b/app-i18n/atokx3/atokx3-3.0.0-r11.ebuild
new file mode 100644
index 000000000000..9a90690e7db1
--- /dev/null
+++ b/app-i18n/atokx3/atokx3-3.0.0-r11.ebuild
@@ -0,0 +1,221 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cdrom eutils gnome2-utils multilib
+
+MY_UPDATE_P="${PN}up2"
+MY_UPDATE_GTK="${PN}gtk216"
+MY_ZIPCODE_P="a20y1311lx"
+
+DESCRIPTION="ATOK X3 for Linux - The most famous Japanese Input Method Engine"
+HOMEPAGE="http://www.justsystems.com/jp/products/atok_linux/"
+SRC_URI="http://www3.justsystem.co.jp/download/atok/up/lin/${MY_UPDATE_P}.tar.gz
+ http://www3.justsystem.co.jp/download/atok/up/lin/${MY_UPDATE_GTK}.tar.gz
+ http://www3.justsystem.co.jp/download/zipcode/up/lin/${MY_ZIPCODE_P}.tgz"
+
+LICENSE="ATOK MIT"
+
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="multilib"
+
+RESTRICT="strip mirror"
+
+RDEPEND="!app-i18n/atokx2
+ !dev-libs/libiiimcf
+ !dev-libs/csconv
+ !app-i18n/iiimgcf
+ !dev-libs/libiiimp
+ !app-i18n/iiimsf
+ !app-i18n/iiimxcf
+ dev-libs/atk
+ dev-libs/glib:2
+ dev-libs/libxml2:2
+ media-libs/fontconfig
+ media-libs/libpng
+ sys-apps/tcp-wrappers
+ virtual/pam
+ x11-libs/cairo
+ >=x11-libs/gtk+-2.4.13:2
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXxf86vm
+ x11-libs/libdrm
+ x11-libs/pangox-compat
+ multilib? (
+ >=dev-libs/atk-2.10.0[abi_x86_32]
+ >=dev-libs/glib-2.34.3:2[abi_x86_32(-)]
+ >=dev-libs/libxml2-2.9.1-r4:2[abi_x86_32(-)]
+ >=media-libs/fontconfig-2.10.92[abi_x86_32(-)]
+ >=media-libs/libpng-1.2.51[abi_x86_32(-)]
+ >=sys-apps/tcp-wrappers-7.6.22-r1[abi_x86_32(-)]
+ >=virtual/pam-0-r1[abi_x86_32(-)]
+ >=x11-libs/cairo-1.12.14-r4[abi_x86_32]
+ >=x11-libs/gtk+-2.24.23:2[abi_x86_32]
+ >=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)]
+ >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)]
+ >=x11-libs/libXcomposite-0.4.4-r1[abi_x86_32(-)]
+ >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)]
+ >=x11-libs/libXdamage-1.1.4-r1[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=x11-libs/libXfixes-5.0.1[abi_x86_32(-)]
+ >=x11-libs/libXft-2.3.1-r1[abi_x86_32(-)]
+ >=x11-libs/libXi-1.7.2[abi_x86_32(-)]
+ >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)]
+ >=x11-libs/libXrender-0.9.8[abi_x86_32(-)]
+ >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]
+ >=x11-libs/libdrm-2.4.46[abi_x86_32(-)]
+ >=x11-libs/pangox-compat-0.0.2[abi_x86_32]
+ )"
+
+QA_PREBUILT="opt/atokx3/lib/server/*
+ opt/atokx3/lib/client/xaux/*
+ opt/atokx3/lib/client/*
+ opt/atokx3/bin/*
+ usr/libexec/*
+ usr/bin/*
+ usr/$(get_libdir)/*
+ usr/$(get_libdir)/gtk-2.0/immodules/*
+ usr/$(get_libdir)/iiim/le/atokx3/64/*
+ usr/$(ABI=x86 get_libdir)/*
+ usr/$(ABI=x86 get_libdir)/gtk-2.0/immodules/*
+ usr/$(ABI=x86 get_libdir)/iiim/*
+ usr/$(ABI=x86 get_libdir)/iiim/le/atokx3/*"
+
+EMULTILIB_PKG="true"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ if ! cdrom_get_cds atokx3index ; then
+ die "Please mount ATOK for Linux CD-ROM or set CD_ROOT variable to the directory containing ATOK X3 for Linux."
+ fi
+}
+
+src_unpack() {
+ local targets="
+ IIIMF/iiimf-client-lib-trunk_r3104-js*.i386.tar.gz
+ IIIMF/iiimf-gtk-trunk_r3104-js*.i386.tar.gz
+ IIIMF/iiimf-protocol-lib-trunk_r3104-js*.i386.tar.gz
+ IIIMF/iiimf-server-trunk_r3104-js*.i386.tar.gz
+ IIIMF/iiimf-x-trunk_r3104-js*.i386.tar.gz
+ IIIMF/iiimf-client-lib-devel-trunk_r3104-js*.i386.tar.gz
+ IIIMF/iiimf-protocol-lib-devel-trunk_r3104-js*.i386.tar.gz
+ ATOK/atokx-20.0-*.0.0.i386.tar.gz"
+ # IIIMF/iiimf-properties-trunk_r3104-js*.i386.tar.gz
+ # IIIMF/iiimf-docs-trunk_r3104-js*.i386.tar.gz
+ # IIIMF/iiimf-notuse-trunk_r3104-js*.i386.tar.gz
+
+ if use amd64 ; then
+ targets="${targets}
+ IIIMF/iiimf-client-lib-64-trunk_r3104-js*.x86_64.tar.gz
+ IIIMF/iiimf-gtk-64-trunk_r3104-js*.x86_64.tar.gz
+ IIIMF/iiimf-protocol-lib-64-trunk_r3104-js*.x86_64.tar.gz
+ ATOK/atokx-64-20.0-*.0.0.x86_64.tar.gz"
+ # IIIMF/iiimf-client-lib-devel-64-trunk_r3104-js*.x86_64.tar.gz
+ # IIIMF/iiimf-protocol-lib-devel-64-trunk_r3104-js*.x86_64.tar.gz
+ # IIIMF/iiimf-notuse-64-trunk_r3104-js*.x86_64.tar.gz
+ fi
+
+ targets="${targets} ATOK/atokxup-20.0-*.0.0.i386.tar.gz"
+
+ unpack ${MY_UPDATE_P}.tar.gz
+
+ for i in ${targets} ; do
+ if [ -f "${S}"/${MY_UPDATE_P}/bin/${i} ] ; then
+ einfo "unpack" $(basename "${S}"/${MY_UPDATE_P}/bin/${i})
+ tar xzf "${S}"/${MY_UPDATE_P}/bin/${i} || die "Failed to unpack ${i}"
+ elif [ -f "${CDROM_ROOT}"/bin/tarball/${i} ] ; then
+ einfo "unpack" $(basename "${CDROM_ROOT}"/bin/tarball/${i})
+ tar xzf "${CDROM_ROOT}"/bin/tarball/${i} || die "Failed to unpack ${i}"
+ else
+ eerror "${i} not found."
+ die "${i} not found."
+ fi
+ done
+ unpack ${MY_UPDATE_GTK}.tar.gz
+ unpack ${MY_ZIPCODE_P}.tgz
+}
+
+src_prepare() {
+ if use amd64 ; then
+ local lib32="$(ABI=x86 get_libdir)"
+ local lib64="$(get_libdir)"
+ if [ "lib" != "${lib32}" ] ; then
+ mv usr/lib "usr/${lib32}" || die
+ fi
+ if [ "lib64" != "${lib64}" ] ; then
+ mv usr/lib64 "usr/${lib64}" || die
+ fi
+ mkdir -p "usr/${lib64}/iiim/le/atokx3" || die
+ mv "usr/${lib32}/iiim/le/atokx3/64" "usr/${lib64}/iiim/le/atokx3/64" || die
+ rm "usr/${lib32}/iiim/le/atokx3/amd64" || die
+ sed -e "s:/usr/lib:/usr/${lib64}:" \
+ "usr/${lib32}/libiiimcf.la" > "usr/${lib64}/libiiimcf.la" || die
+ sed -e "s:/usr/lib:/usr/${lib64}:" \
+ "usr/${lib32}/libiiimp.la" > "usr/${lib64}/libiiimp.la" || die
+ sed -i -e "s:/usr/lib:/usr/${lib32}:" "usr/${lib32}/libiiimcf.la" || die
+ sed -i -e "s:/usr/lib:/usr/${lib32}:" "usr/${lib32}/libiiimp.la" || die
+ fi
+}
+
+src_install() {
+ dodoc "${MY_UPDATE_P}/README_UP2.txt"
+ rm -rf "${MY_UPDATE_P}"
+
+ cp -dpR * "${ED}" || die
+
+ # amd64 hack
+ if use amd64 ; then
+ local lib32="$(ABI=x86 get_libdir)"
+ local lib64="$(get_libdir)"
+ if [ "${lib32}" != "${lib64}" ] ; then
+ for f in xiiimp.so xiiimp.a iiim-xbe xiiimp.so.2 xiiimp.so.2.0.0 iiimd-watchdog xiiimp.la ; do
+ dosym "${EPREFIX}/usr/${lib32}/iiim/${f}" "/usr/${lib64}/iiim/${f}"
+ done
+ for f in atokx3aux.so atokx3.so ; do
+ dosym "${EPREFIX}/usr/${lib32}/iiim/le/atokx3/${f}" "/usr/${lib64}/iiim/le/atokx3/${f}"
+ done
+ dosym "${EPREFIX}/usr/${lib64}/iiim/le/atokx3/64" /usr/"${lib32}"/iiim/le/atokx3/64
+ dosym "${EPREFIX}/usr/${lib64}/iiim/le/atokx3/64" /usr/"${lib32}"/iiim/le/atokx3/amd64
+ fi
+ fi
+
+ sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-iiimf" > "${T}/iiimf.conf" || die
+ insinto /etc/X11/xinit/xinput.d
+ doins "${T}/iiimf.conf"
+
+ dodoc "${CDROM_ROOT}"/doc/atok.pdf
+ dohtml "${CDROM_ROOT}"/readme.html
+}
+
+pkg_preinst() {
+ # bug #343325
+ if use amd64 && has_multilib_profile && [ -L "${EPREFIX}/usr/$(get_libdir)/iiim" ] ; then
+ rm -f "${EPREFIX}/usr/$(get_libdir)/iiim"
+ fi
+}
+
+pkg_postinst() {
+ elog
+ elog "To use ATOK for Linux, you need to add following to .xinitrc or .xprofile:"
+ elog
+ elog ". /opt/atokx3/bin/atokx3start.sh"
+ elog
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/atokx3/files/xinput-iiimf b/app-i18n/atokx3/files/xinput-iiimf
new file mode 100644
index 000000000000..2131b29b9533
--- /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..2d5852c16c60
--- /dev/null
+++ b/app-i18n/atokx3/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/bidiv/Manifest b/app-i18n/bidiv/Manifest
new file mode 100644
index 000000000000..6fc5ca48f486
--- /dev/null
+++ b/app-i18n/bidiv/Manifest
@@ -0,0 +1,3 @@
+DIST bidiv-1.5.tgz 13865 SHA256 9b9d869fc7e5a16b5270fd50e85241c93b0438a73223fd340eacae0ea3a8e516 SHA512 f8ddaa4a7ae6e7b723eb6e4f5dc91bd2e189c02e116ecd1fb02d300f12e913e9dbf328d65f40ef8c2e7d8e822d1a612966fe0f59f44129fd5dc7ece26c021cc2 WHIRLPOOL a584f1e46097fe09043d9d4a85e1216174c698521af8d98b2da555da88b72a4e74e7ac76dfa4bae42b2de9f010e911cd93199dea0dd8127d9b024a2d6c5ffdae
+DIST bidiv_1.5-4.debian.tar.gz 5863 SHA256 f777effe7d1882f7080ee80b6bff2e8b224d495502e46a5b32cae94c96421aa3 SHA512 63e998cae38e08181cf4e40a54119b9b4b5ab3ede7fcfbf852a1a7ad51a671d14d4094b3af8b89574eef51f8c6ee34f2eab6242bf69e77d954826931a801e8b1 WHIRLPOOL a2d29191bb6162f0d4a21c8853f1c86d26618430d501c8d2722b6dc6bd97f7d9a4ad152fbd5f1d744245531a2bcd5ee80ea19a07dec51a310bfa117c2c48c4ae
+DIST bidiv_1.5.orig.tar.gz 13865 SHA256 9b9d869fc7e5a16b5270fd50e85241c93b0438a73223fd340eacae0ea3a8e516 SHA512 f8ddaa4a7ae6e7b723eb6e4f5dc91bd2e189c02e116ecd1fb02d300f12e913e9dbf328d65f40ef8c2e7d8e822d1a612966fe0f59f44129fd5dc7ece26c021cc2 WHIRLPOOL a584f1e46097fe09043d9d4a85e1216174c698521af8d98b2da555da88b72a4e74e7ac76dfa4bae42b2de9f010e911cd93199dea0dd8127d9b024a2d6c5ffdae
diff --git a/app-i18n/bidiv/bidiv-1.5-r1.ebuild b/app-i18n/bidiv/bidiv-1.5-r1.ebuild
new file mode 100644
index 000000000000..bb9c13f76923
--- /dev/null
+++ b/app-i18n/bidiv/bidiv-1.5-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A BiDirectional Text Viewer"
+HOMEPAGE="http://www.ivrix.org.il"
+SRC_URI="http://ftp.ivrix.org.il/pub/ivrix/src/cmdline/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~ppc ~sparc x86"
+IUSE=""
+
+RDEPEND=">=dev-libs/fribidi-0.19.2-r2"
+DEPEND="${DEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-fribidi.patch
+}
+
+src_compile() {
+ tc-export CC
+ emake
+}
+
+src_install() {
+ dobin bidiv
+ dodoc README WHATSNEW
+ doman bidiv.1
+}
diff --git a/app-i18n/bidiv/bidiv-1.5_p4.ebuild b/app-i18n/bidiv/bidiv-1.5_p4.ebuild
new file mode 100644
index 000000000000..15e58d96dabb
--- /dev/null
+++ b/app-i18n/bidiv/bidiv-1.5_p4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+PATCH_LEVEL=4
+
+DESCRIPTION="A commandline tool displaying logical Hebrew/Arabic"
+HOMEPAGE="http://packages.qa.debian.org/b/bidiv.html"
+SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}.orig.tar.gz
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-${PATCH_LEVEL}.debian.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND=">=dev-libs/fribidi-0.19.2-r2"
+DEPEND="${DEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ # Use order from "series" file:
+ local ddir=${WORKDIR}/debian/patches
+ epatch \
+ "${ddir}"/try_utf8_fix \
+ "${ddir}"/makefile \
+ "${ddir}"/fribidi_019 \
+ "${ddir}"/hyphen_minus \
+ "${ddir}"/term_size_get \
+ "${ddir}"/type_fix \
+ "${ddir}"/cast_fix
+}
+
+src_compile() {
+ tc-export CC
+ emake CC_OPT_FLAGS="-Wall"
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ dodoc README WHATSNEW "${WORKDIR}"/debian/changelog
+}
diff --git a/app-i18n/bidiv/files/bidiv-1.5-fribidi.patch b/app-i18n/bidiv/files/bidiv-1.5-fribidi.patch
new file mode 100644
index 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..2d5852c16c60
--- /dev/null
+++ b/app-i18n/bidiv/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/canfep/Manifest b/app-i18n/canfep/Manifest
new file mode 100644
index 000000000000..65954146f745
--- /dev/null
+++ b/app-i18n/canfep/Manifest
@@ -0,0 +1,2 @@
+DIST canfep-1.0.tar.gz 8067 SHA256 124a204b56a70b0ec1f6c96f32cc499065020910f12e4f9749d29c9c2fdb2d4f SHA512 0fd7c8ca56282fa537b76fe33f46e03d4f0f4727528ccad95cd4726888372da9158fc8bed2cdc67d645defb479040cd4a4d0999f69d38fd8b4080f7ece4e67d6 WHIRLPOOL 49b44552073d90b6079bb9141b885095203a662042eaa24ccc09e14120b2aa3f0a384ac38a94dbdeecb29979d41ff3db63360676567df1832f13f1cbca3e1574
+DIST canfep_utf8.diff 7152 SHA256 d1f0210354bbc2d21caed5fb521d90eea65674c8251c32df8fe070d6b7965da8 SHA512 32d946b8b78efd3b95736738497fe46a7d0e2383f2b665c8af79270d7b0d1404ca051e63fc67375f0b953b8f604475c8d6b2d683089bc97b098fa9524b89208c WHIRLPOOL 97c6cae11c6839460c5d8364c54e5ffaaad486e888b72fa8dd8cf1f98dce3dd62026ab23bfd1262ffab82eda08d46a0efc0fc8fc6d806d7d6504b1df5241cf85
diff --git a/app-i18n/canfep/canfep-1.0.ebuild b/app-i18n/canfep/canfep-1.0.ebuild
new file mode 100644
index 000000000000..c58fc59a5391
--- /dev/null
+++ b/app-i18n/canfep/canfep-1.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Canna Japanese kana-kanji frontend processor on console"
+HOMEPAGE="http://www.geocities.co.jp/SiliconValley-Bay/7584/canfep/"
+SRC_URI="http://www.geocities.co.jp/SiliconValley-Bay/7584/canfep/${P}.tar.gz
+ unicode? ( http://hp.vector.co.jp/authors/VA020411/patches/canfep_utf8.diff )"
+
+LICENSE="canfep"
+SLOT="0"
+KEYWORDS="-alpha ~amd64 ppc ~sparc x86"
+IUSE="unicode"
+
+DEPEND="app-i18n/canna
+ sys-libs/ncurses"
+RDEPEND="app-i18n/canna"
+
+src_prepare() {
+ use unicode && epatch "${DISTDIR}"/canfep_utf8.diff
+ sed -i "s:\$(CFLAGS):\$(CFLAGS) \$(LDFLAGS):" Makefile || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCXX)" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ LIBS="-lcanna -lncurses"
+}
+
+src_install() {
+ dobin canfep
+ dodoc 00changes 00readme
+}
diff --git a/app-i18n/canfep/metadata.xml b/app-i18n/canfep/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/canfep/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/canna/Manifest b/app-i18n/canna/Manifest
new file mode 100644
index 000000000000..151560d8dfa4
--- /dev/null
+++ b/app-i18n/canna/Manifest
@@ -0,0 +1 @@
+DIST Canna37p3.tar.bz2 1263065 SHA256 7d98d925043d3af24f99a8a2a09e3b4d6dfe881efc1303ef4a7f495a0f4542a7 SHA512 82846f2393aa2654dd2c97a93178098b8bd11e5409b584447f1b6fdf303adacc9802e2293cafd98b68af8b69622625ed00aa9712bf270feaa119adfdf4211158 WHIRLPOOL 14433083257ab705bc55b0be5972b9dcce2476209a5c48cdfc53d1f4af6bc739fac2d5fd2f42e7a6e94951a35e1a3e6ca21dd0ec7db6ef307f7d285dc881fbc5
diff --git a/app-i18n/canna/canna-3.7_p3-r1.ebuild b/app-i18n/canna/canna-3.7_p3-r1.ebuild
new file mode 100644
index 000000000000..3855a8522d7f
--- /dev/null
+++ b/app-i18n/canna/canna-3.7_p3-r1.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit cannadic eutils multilib
+
+MY_P="Canna${PV//./}"
+MY_P="${MY_P/_/}"
+
+DESCRIPTION="A client-server based Kana-Kanji conversion system"
+HOMEPAGE="http://canna.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/canna/9565/${MY_P}.tar.bz2"
+
+LICENSE="MIT GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+IUSE=""
+
+DEPEND=">=sys-apps/sed-4
+ x11-misc/gccmakedep
+ x11-misc/imake"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ find . -name '*.man' -o -name '*.jmn' | xargs sed -i.bak -e 's/1M/8/g' || die
+ sed -e "s%@cannapkgver@%${PF}%" \
+ "${FILESDIR}"/${PN}-3.7-gentoo.diff.in > "${T}"/${PF}-gentoo.diff || die
+ epatch "${T}"/${PF}-gentoo.diff
+
+ # bug #248723
+ epatch "${FILESDIR}"/${P}-strip.patch
+
+ # Multilib-strict fix for amd64
+ sed -i -e "s:\(DefLibCannaDir.*\)/lib:\1/$(get_libdir):g" Canna.conf* || die
+ # fix deprecated sort syntax
+ sed -e 's:^\(sortcmd=\".* -s\).*$:\1 -k 1,1\":' \
+ -i cmd/mkbindic/mkbindic.cpp || die
+
+ cd "${S}"/dic/phono
+ epatch "${FILESDIR}"/${PN}-kpdef-gentoo.diff
+
+}
+
+src_compile() {
+ xmkmf || die
+
+ #make libCannaDir=../lib/canna canna || die
+ # bug #279706
+ emake -j1 CDEBUGFLAGS="${CFLAGS}" canna || die
+
+ #if use doc ; then
+ # einfo "Compiling DVI, PS (and PDF) document"
+ # cd doc/man/guide/tex
+ # xmkmf || die
+ # emake -j1 JLATEXCMD=platex \
+ # DVI2PSCMD="dvips -f" \
+ # canna.dvi canna.ps || die
+ # if has_version 'app-text/dvipdfmx' && \
+ # ( has_version 'app-text/acroread' \
+ # || has_version 'app-text/xpdf-japanese' ); then
+ # emake -j1 JLATEXCMD=platex \
+ # DVI2PSCMD="dvips -f" \
+ # canna.pdf || die
+ # fi
+ #fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ emake DESTDIR="${D}" install.man || die
+
+ # install default.canna (removed from Canna36p4)
+ insinto /usr/share/canna
+ newins misc/initfiles/verbose.canna default.canna
+
+ # cannakill should link to /usr/bin/catdic
+ dosym ../bin/catdic /usr/sbin/cannakill
+
+ dodir /usr/share/man/man8 /usr/share/man/ja/man8
+ for man in cannaserver cannakill ; do
+ for mandir in "${D}"/usr/share/man "${D}"/usr/share/man/ja ; do
+ mv ${mandir}/man1/${man}.1 ${mandir}/man8/${man}.8
+ done
+ done
+
+ dodoc CHANGES.jp ChangeLog INSTALL* README* WHATIS*
+
+ #if use doc ; then
+ # insinto /usr/share/doc/${PF}
+ # doins doc/man/guide/tex/canna.{dvi,ps,pdf}
+ #fi
+
+ newinitd "${FILESDIR}"/${P}.initd canna || die
+ newconfd "${FILESDIR}"/${P}.confd canna || die
+ insinto /etc/ ; newins "${FILESDIR}"/canna.hosts hosts.canna || die
+ keepdir /var/log/canna/ || die
+
+ # for backward compatibility
+ dosbin "${FILESDIR}"/update-canna-dics_dir
+
+ insinto /var/lib/canna/dic/dics.d/
+ newins "${D}"/var/lib/canna/dic/canna/dics.dir 00canna.dics.dir
+
+ # fix permission for user dictionary
+ keepdir /var/lib/canna/dic/{user,group}
+ fowners root:bin /var/lib/canna/dic/{user,group}
+ fperms 775 /var/lib/canna/dic/{user,group}
+}
+
+pkg_postinst() {
+ update-cannadic-dir
+ elog
+ elog "Canna dictionary format has been changed."
+ elog "You should rebuild app-dict/canna-* after emerge."
+ elog
+}
+
+pkg_prerm() {
+ if [ -S /tmp/.iroha_unix/IROHA ] ; then
+ # make sure cannaserver get stopped because otherwise
+ # we cannot stop it with /etc/init.d after emerge -C canna
+ einfo
+ einfo "Stopping Canna for safe unmerge"
+ einfo
+ /etc/init.d/canna stop
+ touch "${T}"/canna.cookie
+ fi
+}
+
+pkg_postrm() {
+ if [ -f /usr/sbin/cannaserver -a -e "${T}"/canna.cookie ] ; then
+ #update-cannadic-dir
+ einfo
+ einfo "Restarting Canna"
+ einfo
+ /etc/init.d/canna start
+ rm -f "${T}"/canna.cookie
+ fi
+}
diff --git a/app-i18n/canna/canna-3.7_p3-r2.ebuild b/app-i18n/canna/canna-3.7_p3-r2.ebuild
new file mode 100644
index 000000000000..533560ade4f1
--- /dev/null
+++ b/app-i18n/canna/canna-3.7_p3-r2.ebuild
@@ -0,0 +1,167 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit cannadic eutils multilib
+
+MY_P="Canna${PV//./}"
+MY_P="${MY_P/_/}"
+
+DESCRIPTION="A client-server based Kana-Kanji conversion system"
+HOMEPAGE="http://canna.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/canna/9565/${MY_P}.tar.bz2"
+
+LICENSE="MIT GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc"
+
+DEPEND=">=sys-apps/sed-4
+ x11-misc/gccmakedep
+ x11-misc/imake
+ doc? (
+ app-text/ghostscript-gpl
+ >=dev-texlive/texlive-langcjk-2010
+ dev-texlive/texlive-fontsextra
+ dev-texlive/texlive-genericrecommended
+ dev-texlive/texlive-latexrecommended
+ )"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ find . -name '*.man' -o -name '*.jmn' | xargs sed -i.bak -e 's/1M/8/g' || die
+ sed -e "s%@cannapkgver@%${PF}%" \
+ "${FILESDIR}"/${PN}-3.7-gentoo.diff.in > "${T}"/${PF}-gentoo.diff || die
+ epatch "${T}"/${PF}-gentoo.diff
+
+ # bug #248723
+ epatch "${FILESDIR}"/${P}-strip.patch
+
+ # Multilib-strict fix for amd64
+ sed -i -e "s:\(DefLibCannaDir.*\)/lib:\1/$(get_libdir):g" Canna.conf* || die
+ # fix deprecated sort syntax
+ sed -e 's:^\(sortcmd=\".* -s\).*$:\1 -k 1,1\":' \
+ -i cmd/mkbindic/mkbindic.cpp || die
+
+ cd "${S}"/dic/phono
+ epatch "${FILESDIR}"/${PN}-kpdef-gentoo.diff
+
+}
+
+src_compile() {
+ xmkmf || die
+
+ #make libCannaDir=../lib/canna canna || die
+ # bug #279706
+ emake -j1 CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" SHLIBGLOBALSFLAGS="${LDFLAGS}" canna || die
+
+ if use doc ; then
+ einfo "Compiling DVI, PS (and PDF) document"
+ cd doc/man/guide/tex
+ xmkmf || die
+ emake -j1 CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" SHLIBGLOBALSFLAGS="${LDFLAGS}" \
+ JLATEXCMD=platex \
+ DVI2PSCMD="dvips -f" VARTEXFONTS=${T}/fonts \
+ canna.dvi canna.ps || die
+ if has_version 'app-text/dvipdfmx' && \
+ ( has_version 'app-text/acroread' \
+ || has_version 'app-text/xpdf-japanese' ); then
+ emake -j1 CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" SHLIBGLOBALSFLAGS="${LDFLAGS}" \
+ JLATEXCMD=platex \
+ DVI2PSCMD="dvips -f" VARTEXFONTS=${T}/fonts \
+ canna.pdf || die
+ fi
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ emake DESTDIR="${D}" install.man || die
+
+ # install default.canna (removed from Canna36p4)
+ insinto /usr/share/canna
+ newins misc/initfiles/verbose.canna default.canna
+
+ # cannakill should link to /usr/bin/catdic
+ dosym ../bin/catdic /usr/sbin/cannakill
+
+ dodir /usr/share/man/man8 /usr/share/man/ja/man8
+ for man in cannaserver cannakill ; do
+ for mandir in "${D}"/usr/share/man "${D}"/usr/share/man/ja ; do
+ mv ${mandir}/man1/${man}.1 ${mandir}/man8/${man}.8
+ done
+ done
+
+ dodoc CHANGES.jp ChangeLog INSTALL* README* WHATIS*
+
+ if use doc ; then
+ insinto /usr/share/doc/${PF}
+ doins doc/man/guide/tex/canna.{dvi,ps,pdf}
+ fi
+
+ newinitd "${FILESDIR}"/${P}.initd canna || die
+ newconfd "${FILESDIR}"/${P}.confd canna || die
+ insinto /etc/ ; newins "${FILESDIR}"/canna.hosts hosts.canna || die
+ keepdir /var/log/canna/ || die
+
+ # for backward compatibility
+ dosbin "${FILESDIR}"/update-canna-dics_dir
+
+ insinto /var/lib/canna/dic/dics.d/
+ newins "${D}"/var/lib/canna/dic/canna/dics.dir 00canna.dics.dir
+
+ # fix permission for user dictionary
+ keepdir /var/lib/canna/dic/{user,group}
+ fowners root:bin /var/lib/canna/dic/{user,group}
+ fperms 775 /var/lib/canna/dic/{user,group}
+}
+
+pkg_postinst() {
+ update-cannadic-dir
+ elog
+ elog "Canna dictionary format has been changed."
+ elog "You should rebuild app-dict/canna-* after emerge."
+ elog
+
+ local localearchive="${ROOT}usr/$(get_libdir)/locale/locale-archive"
+ if [ -f "${localearchive}" -a -x /usr/bin/localedef ] && \
+ ! /usr/bin/localedef --list-archive "${localearchive}" | grep -i 'ja_JP.eucjp' >/dev/null 2>&1 ; then
+ elog "Some dictionary tools in this package require ja_JP.eucJP locale."
+ elog "Please add ja_JP.eucJP locale to /etc/locale.gen:"
+ elog
+ elog "# echo 'ja_JP.EUC-JP EUC-JP' >> /etc/locale.gen"
+ elog "# locale-gen"
+ elog
+ fi
+}
+
+pkg_prerm() {
+ if [ -S /tmp/.iroha_unix/IROHA ] ; then
+ # make sure cannaserver get stopped because otherwise
+ # we cannot stop it with /etc/init.d after emerge -C canna
+ einfo
+ einfo "Stopping Canna for safe unmerge"
+ einfo
+ /etc/init.d/canna stop
+ touch "${T}"/canna.cookie
+ fi
+}
+
+pkg_postrm() {
+ if [ -f /usr/sbin/cannaserver -a -e "${T}"/canna.cookie ] ; then
+ #update-cannadic-dir
+ einfo
+ einfo "Restarting Canna"
+ einfo
+ /etc/init.d/canna start
+ rm -f "${T}"/canna.cookie
+ fi
+}
diff --git a/app-i18n/canna/files/canna-3.7-gentoo.diff.in b/app-i18n/canna/files/canna-3.7-gentoo.diff.in
new file mode 100644
index 000000000000..940c97f6dcaa
--- /dev/null
+++ b/app-i18n/canna/files/canna-3.7-gentoo.diff.in
@@ -0,0 +1,144 @@
+diff -urN Canna37b1.ORIG/Canna.conf Canna37b1/Canna.conf
+--- Canna37b1.ORIG/Canna.conf 2003-09-27 15:23:08.000000000 +0900
++++ Canna37b1/Canna.conf 2003-09-27 19:09:13.000000000 +0900
+@@ -114,7 +114,7 @@
+ # define DefErrDir /usr/spool/canna
+ # define DefLibCannaDir /usr/lib
+ # else
+-# define DefErrDir /var/log
++# define DefErrDir /var/log/canna
+ # define DefLibCannaDir $(cannaExecPrefix)/lib
+ # endif
+ #endif
+@@ -140,16 +140,18 @@
+ # define ModernElfLinkAvailable NO
+ #endif
+
+-cannaPrefix = DefCannaPrefix
++cannaPrefix = /usr
+ cannaExecPrefix = $(cannaPrefix)
+ cannaBinDir = $(cannaExecPrefix)/bin
+ cannaSrvDir = DefCannaSrvDir
+ XCOMM cannaLibDir = /var/lib/canna
+ XCOMM cannaLibDir = /var/db/canna
+ cannaLibDir = DefCannaLibDir
+-XCOMM cannaManDir = $(cannaPrefix)/share/man
+-cannaManDir = $(cannaPrefix)/man
++cannaManDir = $(cannaPrefix)/share/man
++XCOMM cannaManDir = $(cannaPrefix)/man
+ cannaIncDir = $(cannaPrefix)/include/canna
++cannaDocDir = $(cannaPrefix)/share/doc/@cannapkgver@
++cannaShareDir = $(cannaPrefix)/share/canna
+
+ libCannaDir = DefLibCannaDir
+ ErrDir = DefErrDir
+@@ -158,7 +160,7 @@
+ #define SupportOldWchar 1
+
+ /* IPv6Ѥ1Ƥ */
+-#define UseInet6 0 /* requires newer IPv6 implementation */
++/* #define UseInet6 0 /* requires newer IPv6 implementation */
+
+ /* 3.2Ϥ3.6ϤޤǤημϤƤ */
+ /* #define DIC_3_6_COMPAT */
+@@ -237,7 +239,7 @@
+ /* #define UseInstalledLibCanna YES */
+ #define UseInstalledLibCanna NO
+
+-DicDir = $(cannaLibDir)/dic
++DicDir = /var/lib/canna/dic
+
+ /* 鲼ѹפǤ */
+
+diff -urN Canna37b1.ORIG/Imakefile Canna37b1/Imakefile
+--- Canna37b1.ORIG/Imakefile 2003-09-25 15:30:20.000000000 +0900
++++ Canna37b1/Imakefile 2003-09-27 19:09:00.000000000 +0900
+@@ -55,6 +55,7 @@
+ @echo "#define CANNAHOSTFILE '$(cannaLibDir)/cannahost'" >> junkjunk
+ @echo "/* for lib/canna */" >> junkjunk
+ @echo "#define CANNALIBDIR '$(cannaLibDir)'" >> junkjunk
++ @echo "#define CANNASHAREDIR '$(cannaShareDir)'" >> junkjunk
+ @echo "#define SUPPORT_OLD_WCHAR '$(supportOldWchar)'" >> junkjunk
+ @echo "/* for scripts */" >> junkjunk
+ @echo "#define CANNABINDIR $(cannaBinDir)" >> junkjunk
+@@ -83,6 +84,7 @@
+ echo "#define CANNAHOSTFILE \"$(cannaLibDir)/cannahost\"";\
+ echo "/* for lib/canna */";\
+ echo "#define CANNALIBDIR \"$(cannaLibDir)\""; \
++ echo "#define CANNASHAREDIR \"$(cannaShareDir)\""; \
+ echo "#define SUPPORT_OLD_WCHAR $(supportOldWchar)"; \
+ echo "/* for scripts */";\
+ echo "#define CANNABINDIR $(cannaBinDir)"; \
+diff -urN Canna37b1.ORIG/dic/phono/Imakefile Canna37b1/dic/phono/Imakefile
+--- Canna37b1.ORIG/dic/phono/Imakefile 2002-10-19 17:27:40.000000000 +0900
++++ Canna37b1/dic/phono/Imakefile 2003-09-27 19:09:00.000000000 +0900
+@@ -27,9 +27,10 @@
+
+ ROMAJI_DIC_DEF = -DSHIFT
+
+- DICDIR = $(cannaLibDir)/dic
+- SAMPLEDIR = $(cannaLibDir)/sample
+- SAMPLESRCDIR = $(cannaLibDir)/sample/src
++ DICDIR = $(DicDir)
++ CANNASHAREDIR = $(cannaShareDir)
++ SAMPLEDIR = $(cannaDocDir)/sample
++ SAMPLESRCDIR = $(cannaDocDir)/sample/src
+
+ KPDEF = default.kpdef jdaemon.kpdef just.kpdef kaisoku.kpdef kana.kpdef \
+ lan5.kpdef matsu.kpdef newjis.kpdef romaji.kpdef sokuon.kpdef \
+@@ -69,7 +70,7 @@
+ MakeDirectories(install,$(DICDIR))
+ MakeDirectories(install,$(SAMPLESRCDIR))
+
+-InstallMultiple($(ROMKANA_TABLES),$(DICDIR))
++InstallMultiple($(ROMKANA_TABLES),$(CANNASHAREDIR))
+
+ #ifdef USE_OBSOLETE_STYLE_FILENAME
+ InstallNonExec(default.kpdef,$(SAMPLESRCDIR))
+diff -urN Canna37b1.ORIG/lib/canna/romaji.c Canna37b1/lib/canna/romaji.c
+--- Canna37b1.ORIG/lib/canna/romaji.c 2003-09-17 17:50:53.000000000 +0900
++++ Canna37b1/lib/canna/romaji.c 2003-09-27 19:09:00.000000000 +0900
+@@ -427,7 +427,7 @@
+ }
+ }
+
+-#if 0 /* currently CANNASHAREDDIR is not defined */
++#if 1 /* currently CANNASHAREDDIR is defined */
+ if (retval == (struct RkRxDic *)NULL) { /* added for Debian by ISHIKAWA Mutsumi <ishikawa@linux.or.jp> */
+ extern jrUserInfoStruct *uinfo;
+
+diff -urN Canna37b1.ORIG/misc/Imakefile Canna37b1/misc/Imakefile
+--- Canna37b1.ORIG/misc/Imakefile 2003-03-05 04:23:53.000000000 +0900
++++ Canna37b1/misc/Imakefile 2003-09-27 19:09:00.000000000 +0900
+@@ -48,7 +48,7 @@
+ MakeLintLibSubdirs($(SUBDIRS))
+ MakeLintSubdirs($(SUBDIRS),install.ln,install.ln)
+
+-MakeDirectories(install,$(cannaLibDir)/sample/src)
++MakeDirectories(install,$(cannaDocDir)/sample/src)
+
+ #ifdef USE_OBSOLETE_STYLE_FILENAME
+ default.canna: default.ca
+@@ -58,8 +58,8 @@
+ $(CP) default.ca default.canna
+ #endif
+
+-InstallNonExec(default.canna,$(cannaLibDir))
+-InstallNonExec(is.c,$(cannaLibDir)/sample/src)
++InstallNonExec(default.canna,$(cannaDocDir))
++InstallNonExec(is.c,$(cannaDocDir)/sample/src)
+
+ clean::
+ $(RM) $(PROGRAMS)
+diff -urN Canna37b1.ORIG/misc/initfiles/Imakefile Canna37b1/misc/initfiles/Imakefile
+--- Canna37b1.ORIG/misc/initfiles/Imakefile 2003-02-04 05:13:01.000000000 +0900
++++ Canna37b1/misc/initfiles/Imakefile 2003-09-27 19:09:00.000000000 +0900
+@@ -6,7 +6,7 @@
+ #endif
+
+ CANNAROOT = ../..
+- SAMPLEDIR = $(cannaLibDir)/sample
++ SAMPLEDIR = $(cannaShareDir)
+
+ all::
+
diff --git a/app-i18n/canna/files/canna-3.7_p3-strip.patch b/app-i18n/canna/files/canna-3.7_p3-strip.patch
new file mode 100644
index 000000000000..ebcde1ef733a
--- /dev/null
+++ b/app-i18n/canna/files/canna-3.7_p3-strip.patch
@@ -0,0 +1,142 @@
+diff -Naur Canna37p3.orig/config.log Canna37p3/config.log
+--- Canna37p3.orig/config.log 1970-01-01 09:00:00.000000000 +0900
++++ Canna37p3/config.log 2009-09-21 10:25:33.000000000 +0900
+@@ -0,0 +1,126 @@
++This file contains any messages produced by compilers while
++running configure, to aid debugging if configure makes a mistake.
++
++It was created by canna configure 3.7p3, which was
++generated by GNU Autoconf 2.59. Invocation command line was
++
++ $ ./configure
++
++## --------- ##
++## Platform. ##
++## --------- ##
++
++hostname = lets
++uname -m = x86_64
++uname -r = 2.6.31-gentoo
++uname -s = Linux
++uname -v = #1 SMP PREEMPT Fri Sep 11 17:39:06 JST 2009
++
++/usr/bin/uname -p = Intel(R) Core(TM)2 Duo CPU L7300 @ 1.40GHz
++/bin/uname -X = unknown
++
++/bin/arch = unknown
++/usr/bin/arch -k = unknown
++/usr/convex/getsysinfo = unknown
++hostinfo = unknown
++/bin/machine = unknown
++/usr/bin/oslevel = unknown
++/bin/universe = unknown
++
++PATH: /usr/local/bin
++PATH: /usr/bin
++PATH: /bin
++PATH: /opt/bin
++PATH: /usr/x86_64-pc-linux-gnu/i686-pc-linux-gnu/gcc-bin/4.3.3
++PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.4.1
++PATH: /usr/kde/3.5/bin
++PATH: /usr/qt/3/bin
++PATH: /opt/android-sdk-1.5/tools
++PATH: /opt/android-sdk-1.5/platforms/android-1.5/tools
++PATH: /usr/games/bin
++
++
++## ----------- ##
++## Core tests. ##
++## ----------- ##
++
++configure:1307: error: You cannot invloke configure directly.
++
++## ---------------- ##
++## Cache variables. ##
++## ---------------- ##
++
++ac_cv_env_CC_set=
++ac_cv_env_CC_value=
++ac_cv_env_CFLAGS_set=
++ac_cv_env_CFLAGS_value=
++ac_cv_env_CPPFLAGS_set=
++ac_cv_env_CPPFLAGS_value=
++ac_cv_env_CPP_set=
++ac_cv_env_CPP_value=
++ac_cv_env_LDFLAGS_set=
++ac_cv_env_LDFLAGS_value=
++ac_cv_env_build_alias_set=
++ac_cv_env_build_alias_value=
++ac_cv_env_host_alias_set=
++ac_cv_env_host_alias_value=
++ac_cv_env_target_alias_set=
++ac_cv_env_target_alias_value=
++
++## ----------------- ##
++## Output variables. ##
++## ----------------- ##
++
++CC=''
++CFLAGS=''
++CPP=''
++CPPFLAGS=''
++DEFS=''
++ECHO_C=''
++ECHO_N='-n'
++ECHO_T=''
++EGREP=''
++EXEEXT=''
++LDFLAGS=''
++LIBOBJS=''
++LIBS=''
++LTLIBOBJS=''
++OBJEXT=''
++PACKAGE_BUGREPORT='canna-dev@lists.sourceforge.jp'
++PACKAGE_NAME='canna'
++PACKAGE_STRING='canna 3.7p3'
++PACKAGE_TARNAME='canna'
++PACKAGE_VERSION='3.7p3'
++PATH_SEPARATOR=':'
++SHELL='/bin/sh'
++ac_ct_CC=''
++bindir='${exec_prefix}/bin'
++build_alias=''
++datadir='${prefix}/share'
++exec_prefix='NONE'
++host_alias=''
++includedir='${prefix}/include'
++infodir='${prefix}/info'
++libdir='${exec_prefix}/lib'
++libexecdir='${exec_prefix}/libexec'
++localstatedir='${prefix}/var'
++mandir='${prefix}/man'
++oldincludedir='/usr/include'
++prefix='NONE'
++program_transform_name='s,x,x,'
++sbindir='${exec_prefix}/sbin'
++sharedstatedir='${prefix}/com'
++sysconfdir='${prefix}/etc'
++target_alias=''
++
++## ----------- ##
++## confdefs.h. ##
++## ----------- ##
++
++#define PACKAGE_BUGREPORT "canna-dev@lists.sourceforge.jp"
++#define PACKAGE_NAME "canna"
++#define PACKAGE_STRING "canna 3.7p3"
++#define PACKAGE_TARNAME "canna"
++#define PACKAGE_VERSION "3.7p3"
++
++configure: exit 1
+diff -Naur Canna37p3.orig/server/Imakefile Canna37p3/server/Imakefile
+--- Canna37p3.orig/server/Imakefile 2004-04-27 06:48:37.000000000 +0900
++++ Canna37p3/server/Imakefile 2009-09-21 10:28:48.000000000 +0900
+@@ -6,7 +6,7 @@
+ #ifdef __EMX__
+ INSTFLAGS = $(INSTUGIDFLAGS)
+ #else
+- INSTFLAGS = -s $(INSTUGIDFLAGS)
++ INSTFLAGS = $(INSTUGIDFLAGS)
+ #endif
+ DEFINES = $(CANNASERVER_DEFINES) $(SIGNAL_DEFINES) ConnectionFlags
+ INCLUDES = -I$(CANNAROOT)/include
diff --git a/app-i18n/canna/files/canna-3.7_p3.confd b/app-i18n/canna/files/canna-3.7_p3.confd
new file mode 100644
index 000000000000..d3fdce5425a2
--- /dev/null
+++ b/app-i18n/canna/files/canna-3.7_p3.confd
@@ -0,0 +1,7 @@
+CANNASERVER_ENABLE_SYSLOG="yes"
+
+# Specify user to run as
+CANNASERVER_OWNER="bin"
+
+# Options for cannaserver
+CANNASERVER_OPTS=""
diff --git a/app-i18n/canna/files/canna-3.7_p3.initd b/app-i18n/canna/files/canna-3.7_p3.initd
new file mode 100644
index 000000000000..d6445626b24d
--- /dev/null
+++ b/app-i18n/canna/files/canna-3.7_p3.initd
@@ -0,0 +1,42 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# CANNASERVER_OPTS and CANNASERVER_OWNER is defined in /etc/conf.d/canna
+CANNASERVER_LOGFILE="/var/log/canna/CANNA0msgs"
+
+depend() {
+ after logger
+}
+
+start() {
+ if [ -S /tmp/.iroha_unix/IROHA ] ; then
+ /usr/sbin/cannakill >/dev/null 2>&1
+ fi
+ rm -f /tmp/.iroha_unix/IROHA
+
+ if [ "${CANNASERVER_ENABLE_SYSLOG}" = "yes" ] ; then
+ CANNASERVER_OPTS="${CANNASERVER_OPTS} -syslog"
+ else
+ touch "${CANNASERVER_LOGFILE}"
+ chmod u+w "${CANNASERVER_LOGFILEj}"
+ fi
+
+ if [ ! -z "${CANNASERVER_OWNER}" ] ; then
+ if [ -f "${CANNASERVER_LOGFILE}" ] ; then
+ chown "${CANNASERVER_OWNER}" "${CANNASERVER_LOGFILE}"
+ fi
+ CANNASERVER_OPTS="${CANNASERVER_OPTS} -u ${CANNASERVER_OWNER}"
+ fi
+
+ ebegin "Starting canna"
+ /usr/sbin/cannaserver ${CANNASERVER_OPTS}
+ eend $? "Failed to start canna"
+}
+
+stop() {
+ ebegin "Stopping canna"
+ /usr/sbin/cannakill
+ eend $? "Failed to stop canna"
+}
diff --git a/app-i18n/canna/files/canna-kpdef-gentoo.diff b/app-i18n/canna/files/canna-kpdef-gentoo.diff
new file mode 100644
index 000000000000..f458c53efdd7
--- /dev/null
+++ b/app-i18n/canna/files/canna-kpdef-gentoo.diff
@@ -0,0 +1,18 @@
+--- default.kpdef.orig 2002-10-19 17:27:40.000000000 +0900
++++ default.kpdef 2003-12-13 00:54:51.000000000 +0900
+@@ -350,3 +350,15 @@
+ _
+ /
+ \\
++
++# some useful romkan symbols
++z,
++z-
++z.
++z/
++z[
++z]
++zh
++zj
++zk
++zl
diff --git a/app-i18n/canna/files/canna.confd b/app-i18n/canna/files/canna.confd
new file mode 100644
index 000000000000..1cb421388735
--- /dev/null
+++ b/app-i18n/canna/files/canna.confd
@@ -0,0 +1,8 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Config file for /etc/init.d/canna
+
+# Specify user to run as
+CANNASERVER_OPTS=""
diff --git a/app-i18n/canna/files/canna.hosts b/app-i18n/canna/files/canna.hosts
new file mode 100644
index 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..d26393b179a4
--- /dev/null
+++ b/app-i18n/canna/files/canna.initd
@@ -0,0 +1,37 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# CANNASERVER_OPTS is defined in /etc/conf.d/canna
+
+depend() {
+ after logger
+}
+
+start() {
+ if [ -S /tmp/.iroha_unix/IROHA ] ; then
+ /usr/sbin/cannakill >/dev/null 2>&1
+ fi
+ rm -f /tmp/.iroha_unix/IROHA
+
+ if [ "${CANNASERVER_OPTS}" = "${CANNASERVER_OPTS/-syslog/}" ] ; then
+ if [ ! -f /var/log/canna/CANNA0msgs ] ; then
+ touch /var/log/canna/CANNA0msgs
+ fi
+ if [ "${CANNASERVER_OPTS}" != "${CANNASERVER_OPTS/-u/}" ] ; then
+ chown `echo ${CANNASERVER_OPTS} | sed -e 's/.*-u *\(\w*\).*/\1/'` /var/log/canna/CANNA0msgs
+ fi
+ chmod u+w /var/log/canna/CANNA0msgs
+ fi
+
+ ebegin "Starting canna"
+ /usr/sbin/cannaserver ${CANNASERVER_OPTS}
+ eend $? "Failed to start canna"
+}
+
+stop() {
+ ebegin "Stopping canna"
+ /usr/sbin/cannakill
+ eend $? "Failed to stop canna"
+}
diff --git a/app-i18n/canna/files/update-canna-dics_dir b/app-i18n/canna/files/update-canna-dics_dir
new file mode 100644
index 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..12ed83cf199d
--- /dev/null
+++ b/app-i18n/canna/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge-jp">canna</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/cstools/Manifest b/app-i18n/cstools/Manifest
new file mode 100644
index 000000000000..b305e73422df
--- /dev/null
+++ b/app-i18n/cstools/Manifest
@@ -0,0 +1 @@
+DIST Cstools-3.42.tar.gz 30650 SHA256 a47a25df1d9bdda3cff209992163bd416634e7728b70cc2c822c86d7687136ca SHA512 78f2f95b5cfde77d23249550085a895abc35965b02ff26382b248d4e713c90c113ad7909b916713dff55c9ee210f13672d609d794b3caf9985fcb207a071f19f WHIRLPOOL a4812da7ec30141b3d8ab09d60d374a49dbc30650aca807bf043f71e83710ccbc0e1f6bd967000a253bb4e2021678944f19885df73e89480e50fcdc66081886c
diff --git a/app-i18n/cstools/cstools-3.42.ebuild b/app-i18n/cstools/cstools-3.42.ebuild
new file mode 100644
index 000000000000..b1eeac8206dc
--- /dev/null
+++ b/app-i18n/cstools/cstools-3.42.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit perl-app
+
+MY_P="Cstools-${PV}"
+DESCRIPTION="A charset conversion tool cstocs and two convenience Perl modules for Czech language"
+SRC_URI="http://www.adelton.com/perl/Cstools/${MY_P}.tar.gz"
+HOMEPAGE="http://www.adelton.com/perl/Cstools/"
+SLOT="0"
+LICENSE="Artistic"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-perl/MIME-tools"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
diff --git a/app-i18n/cstools/metadata.xml b/app-i18n/cstools/metadata.xml
new file mode 100644
index 000000000000..c1358c6fa34b
--- /dev/null
+++ b/app-i18n/cstools/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ Distribution Cstools contains well-known character set conversion
+ program cstocs, and module Cz::Cstocs that makes it easy to do charset
+ conversions directly in Perl scripts, without spawning external process.
+ Also included is Cz::Sort module that provides functions for Czech
+ collation in Perl scripts without a need of locale settings. It is based
+ on conversion table from csr program by Petr Olsak.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-i18n/dbskkd-cdb/Manifest b/app-i18n/dbskkd-cdb/Manifest
new file mode 100644
index 000000000000..662591b2f11a
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/Manifest
@@ -0,0 +1 @@
+DIST dbskkd-cdb-2.00.tar.gz 9296 SHA256 0e434e72153dde3131aeeeafbb40eba0054d0d37cab47b1561e4cf6dda6da8bb SHA512 3582728d2a1917c00437b273208fa150a5a32dcd462752c6751ddbd574ca7f1476b2aca0d2613471a800bd17f80e2c4b60846f9056ae621996f8f5a5592fa22a WHIRLPOOL 028849c4ab2d74338b6fcaed02f3c7b1ecea6315274499233e8097e4dab0bfd6d97a693657a1db8408d4e87933f804e253fa5a2e55a96ec47ba98bc45014e603
diff --git a/app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild b/app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild
new file mode 100644
index 000000000000..0db1fab63e40
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/dbskkd-cdb-2.00.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+inherit eutils multilib toolchain-funcs user
+
+DESCRIPTION="Yet another Dictionary server for the SKK Japanese-input software"
+HOMEPAGE="http://dbskkd-cdb.googlecode.com/"
+SRC_URI="http://dbskkd-cdb.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="|| ( dev-db/cdb dev-db/tinycdb )"
+RDEPEND=">=app-i18n/skk-jisyo-200705[cdb]
+ sys-apps/xinetd"
+
+pkg_setup() {
+ enewuser dbskkd -1 -1 -1
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+ sed -i -e "/^CDBLIB/s:lib:$(get_libdir):" Makefile || die
+ if has_version dev-db/cdb ; then
+ sed -i -e "/^CDBLIB/s:$: /usr/$(get_libdir)/byte.a /usr/$(get_libdir)/unix.a:" Makefile || die
+ fi
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}/${PN}.xinetd" ${PN} || die
+
+ dodoc CHANGES README* *.txt
+}
diff --git a/app-i18n/dbskkd-cdb/files/dbskkd-cdb-2.00-gentoo.patch b/app-i18n/dbskkd-cdb/files/dbskkd-cdb-2.00-gentoo.patch
new file mode 100644
index 000000000000..c4c79d22ead3
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/files/dbskkd-cdb-2.00-gentoo.patch
@@ -0,0 +1,54 @@
+diff -Naur dbskkd-cdb-2.00.orig/Makefile dbskkd-cdb-2.00/Makefile
+--- dbskkd-cdb-2.00.orig/Makefile 2009-02-06 11:56:47.000000000 +0900
++++ dbskkd-cdb-2.00/Makefile 2009-02-13 15:39:03.000000000 +0900
+@@ -1,12 +1,14 @@
+ # dbskkd-cdb Makefile
+
+-CC = cc -Wall -O2 -g -I/usr/local/include
++CC = cc
++CFLAGS += -Wall -g -I/usr/include -I/usr/include/cdb
+ COMPAT =
+-CDBLIB = /usr/local/lib/libcdb.a
+-INSTALLDIR = /usr/local/libexec
++CDBLIB = /usr/lib/libcdb.a
++INSTALLDIR = /usr/libexec
++DESTDIR =
+
+ .c.o:
+- $(CC) $(COMPAT) $(PRIVATE) -c $*.c
++ $(CC) $(CFLAGS) $(COMPAT) $(PRIVATE) -c $*.c
+
+ all: dbskkd-cdb
+
+@@ -14,15 +17,16 @@
+ /bin/rm -f dbskkd-cdb *.o
+
+ dbskkd-cdb: dbskkd-cdb.o
+- $(CC) $(COMPAT) $(PRIVATE) -o dbskkd-cdb \
++ $(CC) $(LDFLAGS) $(COMPAT) $(PRIVATE) -o dbskkd-cdb \
+ dbskkd-cdb.o ${CDBLIB}
+
+ dbskkd-cdb.o: dbskkd-cdb.c
+- $(CC) $(COMPAT) $(PRIVATE) -c dbskkd-cdb.c
++ $(CC) $(CFLAGS) $(COMPAT) $(PRIVATE) -c dbskkd-cdb.c
+
+ error.o: error.c error.h
+
+ install: dbskkd-cdb
+- cp dbskkd-cdb $(INSTALLDIR); chmod 755 $(INSTALLDIR)/dbskkd-cdb
++ mkdir -p $(DESTDIR)$(INSTALLDIR)
++ cp dbskkd-cdb $(DESTDIR)$(INSTALLDIR); chmod 755 $(DESTDIR)$(INSTALLDIR)/dbskkd-cdb
+
+ # end of makefile
+diff -Naur dbskkd-cdb-2.00.orig/dbskkd-cdb.c dbskkd-cdb-2.00/dbskkd-cdb.c
+--- dbskkd-cdb-2.00.orig/dbskkd-cdb.c 2009-02-06 11:56:47.000000000 +0900
++++ dbskkd-cdb-2.00/dbskkd-cdb.c 2009-02-13 15:25:25.000000000 +0900
+@@ -27,7 +27,7 @@
+ * spelling changed from JISHO to JISYO
+ */
+ #ifndef JISYO_FILE
+-#define JISYO_FILE "/usr/local/share/skk/SKK-JISYO.L.cdb"
++#define JISYO_FILE "/usr/share/skk/SKK-JISYO.L.cdb"
+ #endif /* JISYO_FILE */
+
+ #define BUFSIZE (1024) /* max size of a request */
diff --git a/app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd b/app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd
new file mode 100644
index 000000000000..674927fe90b4
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/files/dbskkd-cdb.xinetd
@@ -0,0 +1,10 @@
+service skkserv
+{
+ socket_type = stream
+ wait = no
+ user = dbskkd
+ protocol = tcp
+ port = 1178
+ server = /usr/libexec/dbskkd-cdb
+ disable = yes
+}
diff --git a/app-i18n/dbskkd-cdb/metadata.xml b/app-i18n/dbskkd-cdb/metadata.xml
new file mode 100644
index 000000000000..de646be8897c
--- /dev/null
+++ b/app-i18n/dbskkd-cdb/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">dbskkd-cdb</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/enca/Manifest b/app-i18n/enca/Manifest
new file mode 100644
index 000000000000..29d8660217e7
--- /dev/null
+++ b/app-i18n/enca/Manifest
@@ -0,0 +1,2 @@
+DIST enca-1.13.tar.bz2 532000 SHA256 6c091455d524b3ddae3533fe9bb375092f60ad6fe252e0777c873bd7869c7432 SHA512 7c5cb7b28eea271c4c94135082c1aa3f312bf790aaa4f51c954fd87ed734fae04ec07be99b20e7dfa3a668349c17d97f1eeea1ee553f9b841e74bfafc5a5906a WHIRLPOOL 0080ce92c22c5ad8b34eea767133602d73e3ebcbcb5084794e5e5da37edceab1bba9785f3884aa5c84749be89116eecf7bc59faa0ebb7118e97411f97e97e4a8
+DIST enca-1.14.tar.bz2 560982 SHA256 7f33e3953fbbdac8ed144b31bbab1bb3bf181150db6ba4cd812fd958ce5f4b58 SHA512 9d0582cc8187f3e868339c3e13ca2c654359b240dd564b64a31615aeffb0ec7ae025659576cc72f6cab73b0bfa22286060f665f2c952f8dfe702cf97a39d2245 WHIRLPOOL 921038e3c6a612b38820d7314a7afe83c231e48396cd801dcbeb3f64afe157b0b5009ada00ae59f35ee4a882c4a40f46ac3346139c99da00611b073b561cfbee
diff --git a/app-i18n/enca/enca-1.13-r3.ebuild b/app-i18n/enca/enca-1.13-r3.ebuild
new file mode 100644
index 000000000000..ae119dde3a8e
--- /dev/null
+++ b/app-i18n/enca/enca-1.13-r3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+AUTOTOOLS_AUTORECONF=2.52
+inherit eutils toolchain-funcs autotools-utils
+
+DESCRIPTION="ENCA detects the character coding of a file and converts it if desired"
+HOMEPAGE="http://gitorious.org/enca"
+SRC_URI="http://dl.cihar.com/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="doc +recode"
+
+DEPEND="recode? ( >=app-text/recode-3.6_p15 )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-remove-dirty-path-hack.patch
+ # fix crosscompilation, bug #424473
+ if tc-is-cross-compiler; then
+ sed -e "s#./make_hash#./native_make_hash#" -i tools/Makefile.am || die
+ fi
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-external
+ --disable-static
+ $(use_with recode librecode "${EPREFIX}"/usr)
+ $(use_enable doc gtk-doc)
+ )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ if tc-is-cross-compiler; then
+ pushd "${AUTOTOOLS_BUILD_DIR}"/tools > /dev/null
+ $(tc-getBUILD_CC) -o native_make_hash "${S}"/tools/make_hash.c || die "native make_hash failed"
+ popd > /dev/null
+ fi
+ autotools-utils_src_compile
+}
+
+src_install() {
+ autotools-utils_src_install
+}
diff --git a/app-i18n/enca/enca-1.14-r1.ebuild b/app-i18n/enca/enca-1.14-r1.ebuild
new file mode 100644
index 000000000000..b94dd24e52fa
--- /dev/null
+++ b/app-i18n/enca/enca-1.14-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+AUTOTOOLS_AUTORECONF=2.52
+
+inherit eutils toolchain-funcs autotools-multilib
+
+DESCRIPTION="ENCA detects the character coding of a file and converts it if desired"
+HOMEPAGE="http://gitorious.org/enca"
+SRC_URI="http://dl.cihar.com/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="doc +recode"
+
+DEPEND="recode? ( >=app-text/recode-3.6_p15 )
+ sys-devel/gettext"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-remove-dirty-path-hack.patch
+ epatch "${FILESDIR}"/${P}-automake-1.13.patch
+ rm missing # too old, automake will update it
+ # fix crosscompilation, bug #424473
+ if tc-is-cross-compiler; then
+ sed -e "s#./make_hash#./native_make_hash#" -i tools/Makefile.am || die
+ fi
+ autotools-multilib_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-external
+ --disable-static
+ $(use_with recode librecode "${EPREFIX}"/usr)
+ $(use_enable doc gtk-doc)
+ )
+ autotools-multilib_src_configure
+}
+
+multilib_src_compile() {
+ if tc-is-cross-compiler; then
+ pushd "${BUILD_DIR}"/tools > /dev/null
+ $(tc-getBUILD_CC) -o native_make_hash "${S}"/tools/make_hash.c || die "native make_hash failed"
+ popd > /dev/null
+ fi
+ # It will fail if we run these twice...
+ if ! multilib_is_native_abi ; then
+ sed -i -e 's/ src / /' Makefile || die
+ sed -i -e '/SUBDIRS/s/ test//' Makefile || die
+ sed -i -e 's/install-data-hook:/install-data-hook:\n\ndisabled:/' Makefile || die
+ fi
+ autotools-utils_src_compile
+}
diff --git a/app-i18n/enca/enca-1.14-r2.ebuild b/app-i18n/enca/enca-1.14-r2.ebuild
new file mode 100644
index 000000000000..d8de93abdfde
--- /dev/null
+++ b/app-i18n/enca/enca-1.14-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=2.52
+
+inherit eutils toolchain-funcs autotools-multilib
+
+DESCRIPTION="ENCA detects the character coding of a file and converts it if desired"
+HOMEPAGE="http://gitorious.org/enca"
+SRC_URI="http://dl.cihar.com/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm ~arm64 hppa ia64 ~mips ~ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="doc +recode"
+
+RDEPEND="recode? ( >=app-text/recode-3.6_p15 )"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-remove-dirty-path-hack.patch \
+ "${FILESDIR}"/${P}-automake-1.13.patch \
+ "${FILESDIR}"/${P}-gcc4.8-avx-bug.patch
+ rm missing # too old, automake will update it
+ # fix crosscompilation, bug #424473
+ if tc-is-cross-compiler; then
+ sed -e "s#./make_hash#./native_make_hash#" -i tools/Makefile.am || die
+ fi
+ autotools-multilib_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-external
+ --disable-static
+ $(use_with recode librecode "${EPREFIX}"/usr)
+ $(use_enable doc gtk-doc)
+ )
+ autotools-multilib_src_configure
+}
+
+multilib_src_compile() {
+ if tc-is-cross-compiler; then
+ pushd "${BUILD_DIR}"/tools > /dev/null
+ $(tc-getBUILD_CC) -o native_make_hash "${S}"/tools/make_hash.c || die "native make_hash failed"
+ popd > /dev/null
+ fi
+ # It will fail if we run these twice...
+ if ! multilib_is_native_abi ; then
+ sed -i -e 's/ src / /'\
+ -e '/SUBDIRS/s/ test//' Makefile\
+ -e 's/install-data-hook:/install-data-hook:\n\ndisabled:/' Makefile || die
+ fi
+ autotools-utils_src_compile
+}
diff --git a/app-i18n/enca/files/enca-1.14-automake-1.13.patch b/app-i18n/enca/files/enca-1.14-automake-1.13.patch
new file mode 100644
index 000000000000..653295793fa1
--- /dev/null
+++ b/app-i18n/enca/files/enca-1.14-automake-1.13.patch
@@ -0,0 +1,34 @@
+diff --git a/configure.ac b/configure.ac
+index 956763d..6a624ab 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -24,7 +24,7 @@ AC_CONFIG_FILES( \
+ test/Makefile \
+ tools/Makefile)
+
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+ AM_INIT_AUTOMAKE([1.8 gnits check-news dist-bzip2])
+ AM_ACLOCAL_INCLUDE(m4)
+ AM_MAINTAINER_MODE
+@@ -40,7 +40,7 @@ AC_GNU_SOURCE
+ AC_AIX
+ AC_ISC_POSIX
+ AC_PROG_LIBTOOL
+-AM_PROG_CC_STDC
++AC_PROG_CC
+ AM_PROG_CC_C_O
+ AC_PROG_INSTALL
+ AC_PROG_LN_S
+diff --git a/m4/typevar.m4 b/m4/typevar.m4
+index ce9578d..66077eb 100644
+--- a/m4/typevar.m4
++++ b/m4/typevar.m4
+@@ -6,7 +6,6 @@
+ ## defined in errno.h
+ AC_DEFUN([ye_CHECK_VAR_PROGRAM_INVOCATION_SHORT_NAME],
+ [AC_REQUIRE([AC_PROG_CC])dnl
+-AC_REQUIRE([AM_PROG_CC_STDC])dnl
+ dnl
+
+ dnl Check for program_invocation_short_name (present on GNU systems only?)
diff --git a/app-i18n/enca/files/enca-1.14-gcc4.8-avx-bug.patch b/app-i18n/enca/files/enca-1.14-gcc4.8-avx-bug.patch
new file mode 100644
index 000000000000..3753c73acc98
--- /dev/null
+++ b/app-i18n/enca/files/enca-1.14-gcc4.8-avx-bug.patch
@@ -0,0 +1,15 @@
+Avoid gcc-4.8.4 bug when built with -O3 -march=core-avx2
+https://bugs.gentoo.org/501386
+diff --git a/lib/multibyte.c b/lib/multibyte.c
+index d0d0680..d511f88 100644
+--- a/lib/multibyte.c
++++ b/lib/multibyte.c
+@@ -520,7 +520,7 @@ looks_like_ucs2(EncaAnalyserState *analyser)
+ static int
+ looks_like_ucs4(EncaAnalyserState *analyser)
+ {
+- static const EncaSurface PERMS[] = {
++ /*static*/ const EncaSurface PERMS[] = {
+ ENCA_SURFACE_PERM_4321,
+ ENCA_SURFACE_PERM_21
+ };
diff --git a/app-i18n/enca/files/enca-remove-dirty-path-hack.patch b/app-i18n/enca/files/enca-remove-dirty-path-hack.patch
new file mode 100644
index 000000000000..b96667cd288f
--- /dev/null
+++ b/app-i18n/enca/files/enca-remove-dirty-path-hack.patch
@@ -0,0 +1,19 @@
+diff -Naur enca-1.13.orig//configure.ac enca-1.13/configure.ac
+--- enca-1.13.orig//configure.ac 2010-02-09 05:23:03.000000000 -0500
++++ enca-1.13/configure.ac 2012-06-29 18:04:51.000000000 -0400
+@@ -97,15 +97,6 @@
+ dnl Check for good random number sources
+ AC_CHECK_FILES(/dev/random /dev/urandom /dev/srandom /dev/arandom)
+
+-dnl Dirty path hack. Helps some people with badly set up search paths.
+-if test "$prefix" = "NONE"; then
+- LDFLAGS="$LDFLAGS -L$ac_default_prefix/lib"
+- CPPFLAGS="$CPPFLAGS -I$ac_default_prefix/include"
+-else
+- LDFLAGS="$LDFLAGS -L$prefix/lib"
+- CPPFLAGS="$CPPFLAGS -I$prefix/include"
+-fi
+-
+ dnl Checks for libraries.
+ ye_CHECK_LIBM
+
diff --git a/app-i18n/enca/metadata.xml b/app-i18n/enca/metadata.xml
new file mode 100644
index 000000000000..d10f1bc6bc1c
--- /dev/null
+++ b/app-i18n/enca/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>stasrtf@gmail.com</email>
+ <description>Proxy maintainer</description>
+ <name>Stas</name>
+ </maintainer>
+ <maintainer>
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="gitorious">enca</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fbiterm/Manifest b/app-i18n/fbiterm/Manifest
new file mode 100644
index 000000000000..201144768204
--- /dev/null
+++ b/app-i18n/fbiterm/Manifest
@@ -0,0 +1 @@
+DIST iterm-0.5.tar.gz 608170 SHA256 4b0d2310f5e4a42bfe90c394cae51a26d2a9437716b7e4eee6a5202db9ef1424 SHA512 5b25abe9320fe3317e69048ee49b80e8b341952ac89df83d14ba2bd3893396b4348c257e0dd64ca00914485efc622dac2fbb6d2546b6360774777872a71a3695 WHIRLPOOL 9110e2a894a87fb108f93087583185117098d8be634530cf7162760e50531deb5649bd2dd4da4734effb1523a0eb8c5a7ebeccd57a67918726c7e445c9be9c58
diff --git a/app-i18n/fbiterm/fbiterm-0.5-r2.ebuild b/app-i18n/fbiterm/fbiterm-0.5-r2.ebuild
new file mode 100644
index 000000000000..925c0fc85186
--- /dev/null
+++ b/app-i18n/fbiterm/fbiterm-0.5-r2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit autotools-utils eutils multilib
+
+IUSE=""
+
+DESCRIPTION="Framebuffer internationalized terminal emulator"
+HOMEPAGE="http://www-124.ibm.com/linux/projects/iterm/"
+SRC_URI="http://www-124.ibm.com/linux/projects/iterm/releases/iterm-${PV}.tar.gz"
+
+LICENSE="CPL-0.5"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="x11-libs/libXfont
+ >=media-libs/freetype-2
+ x11-libs/libiterm-mbt
+ sys-libs/zlib"
+RDEPEND="${DEPEND}
+ media-fonts/font-sony-misc
+ media-fonts/unifont"
+
+PATCHES=(
+ "${FILESDIR}"/${PF}-gentoo.diff
+ "${FILESDIR}"/${P}-cflags.patch
+)
+DOCS=( AUTHORS ChangeLog README{,.jp,.zh_CN} )
+AUTOTOOLS_AUTORECONF=1
+
+S="${WORKDIR}/iterm/unix/fbiterm"
+
+src_configure() {
+ local myeconfargs=(
+ --x-includes=/usr/include
+ --x-libraries=/usr/$(get_libdir)
+ )
+ autotools-utils_src_configure
+}
+
+pkg_postinst() {
+ elog
+ elog "1. If you haven't created your locale, run localedef."
+ elog "# localedef -v -c -i en_GB -f UTF-8 en_GB.UTF-8"
+ elog "(If you want to use other locales such as Japanese, replace"
+ elog "en_GB with ja_JP and en_GB.UTF-8 with ja_JP.UTF-8, respectively)"
+ elog
+ elog "2. Set enviroment variable."
+ elog "% export LC_CTYPE=en_GB.UTF-8 (sh, bash, zsh, ...)"
+ elog "> setenv LC_CTYPE en_GB.UTF-8 (csh, tcsh, ...)"
+ elog "(Again, if you want to use Japanese locale, create ja_JP.UTF-8"
+ elog " locale by localedef and set LC_CTYPE to ja_JP.UTF-8)"
+ elog
+ elog "3. Run unicode_start."
+ elog "% unicode_start"
+ elog
+ elog "4. Run fbiterm."
+ elog "% fbiterm"
+ elog
+}
diff --git a/app-i18n/fbiterm/files/fbiterm-0.5-cflags.patch b/app-i18n/fbiterm/files/fbiterm-0.5-cflags.patch
new file mode 100644
index 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..2d5852c16c60
--- /dev/null
+++ b/app-i18n/fbiterm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fbterm/Manifest b/app-i18n/fbterm/Manifest
new file mode 100644
index 000000000000..2dcaedde78b5
--- /dev/null
+++ b/app-i18n/fbterm/Manifest
@@ -0,0 +1 @@
+DIST fbterm-1.7.0.tar.gz 188642 SHA256 720f600817217257aa4c822e67814495dcb6c8d6326cdde5fe3ba1e457d9915d SHA512 ba78b5118b5e4c65046f7f91ce88cb4f828e2debb34358df8518e1907a8d601a2be4dfcf144e84494dc30e4828d333574debe8dd3ffb59e2169c3e48ba1f6a10 WHIRLPOOL 7e01fff188974218a71c4083a4185d52a188431bbd1d282b8d9ca79189854ba5dc942476c83f543fbbe449ddc22f223166be2f6617b04c0d0e0acd240b762c11
diff --git a/app-i18n/fbterm/fbterm-1.7-r1.ebuild b/app-i18n/fbterm/fbterm-1.7-r1.ebuild
new file mode 100644
index 000000000000..d575cfa1f755
--- /dev/null
+++ b/app-i18n/fbterm/fbterm-1.7-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit autotools-utils
+
+DESCRIPTION="Fast terminal emulator for the Linux framebuffer"
+HOMEPAGE="http://fbterm.googlecode.com/"
+SRC_URI="http://fbterm.googlecode.com/files/${P}.0.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="caps gpm video_cards_vesa"
+
+RDEPEND="caps? ( sys-libs/libcap )
+ gpm? ( sys-libs/gpm )
+ video_cards_vesa? ( dev-libs/libx86 )
+ media-libs/fontconfig
+ media-libs/freetype:2"
+DEPEND="${RDEPEND}
+ sys-libs/ncurses
+ virtual/pkgconfig"
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+DOCS=( AUTHORS NEWS README )
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable gpm)
+ $(use_enable video_cards_vesa vesa)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+ $(type -P tic) -o "${ED}/usr/share/terminfo/" \
+ "${S}"/terminfo/fbterm || die "Failed to generate terminfo database"
+ if use caps; then
+ setcap "cap_sys_tty_config+ep" "${ED}"/usr/bin/fbterm
+ else
+ fperms u+s /usr/bin/fbterm
+ fi
+}
+
+pkg_postinst() {
+ einfo
+ einfo " ${PN} won't work with vga16fb. You have to use other native"
+ einfo " framebuffer drivers or vesa driver."
+ einfo " See ${EPREFIX}/usr/share/doc/${P}/README for details."
+ einfo " To use ${PN}, ensure you are in video group."
+ einfo " To input CJK merge app-i18n/fbterm-ucimf"
+ einfo
+}
diff --git a/app-i18n/fbterm/metadata.xml b/app-i18n/fbterm/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/fbterm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-anthy/Manifest b/app-i18n/fcitx-anthy/Manifest
new file mode 100644
index 000000000000..f9552c2b0522
--- /dev/null
+++ b/app-i18n/fcitx-anthy/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-anthy-0.1.1.tar.xz 68604 SHA256 c508068c7c9a56c26ea44b8e6ddb90a2ea75860031f89e171dcda8ec4cd08955 SHA512 e2c4bb20f0b0a370e5f28bff14312c2c14210695418438ebe697b94570fe502be8c96dc8fbf813fd3aa6e352283a7d31808a1f12266d4a8050646a8ae86de9d9 WHIRLPOOL 48f674ef23d62f2dc1286712cbb252d709d9e3890921d1f9296ff89f85c5ae211daa887841fc01f267fe44764275e8b6de4aef859d9f1456cb24f00023b262ce
+DIST fcitx-anthy-0.2.1.tar.xz 72196 SHA256 fd208474666f09f1c189c10c2c0fa9cfda33948b704410e02878fdd92174d78d SHA512 18599251d6ebda96a23f81f63d91e9a9d469d2ea534975c2f4ddbc80584d70646ac6d157d0571f9d48565c0cfd1bb111e2907cae2c00b750014b9f39a7bcf961 WHIRLPOOL 99632911a7831ce24c7535b0e0a249cbbc48b24ec44682f6a09e3dc0a61d7eb74363642098158cc409c3390fb141d03591f1e1b1b3683164d4d6002fe9c92769
diff --git a/app-i18n/fcitx-anthy/fcitx-anthy-0.1.1.ebuild b/app-i18n/fcitx-anthy/fcitx-anthy-0.1.1.ebuild
new file mode 100644
index 000000000000..089b8be39480
--- /dev/null
+++ b/app-i18n/fcitx-anthy/fcitx-anthy-0.1.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Japanese Anthy module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.5
+ app-i18n/anthy"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-anthy/fcitx-anthy-0.2.1.ebuild b/app-i18n/fcitx-anthy/fcitx-anthy-0.2.1.ebuild
new file mode 100644
index 000000000000..a0bc0e741514
--- /dev/null
+++ b/app-i18n/fcitx-anthy/fcitx-anthy-0.2.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Japanese Anthy module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ app-i18n/anthy"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-anthy/metadata.xml b/app-i18n/fcitx-anthy/metadata.xml
new file mode 100644
index 000000000000..cb36a2fd8c76
--- /dev/null
+++ b/app-i18n/fcitx-anthy/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-chewing/Manifest b/app-i18n/fcitx-chewing/Manifest
new file mode 100644
index 000000000000..d054d9c7f2a6
--- /dev/null
+++ b/app-i18n/fcitx-chewing/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-chewing-0.2.0.tar.xz 13968 SHA256 cf03b84004f1839a6f6e10dadf53edfbf8b6dcbb9d70579cde913b6b5e0a8dec SHA512 af8f2fb6fb5fb017522ac81fa9b14907d9537dace21ef594951f1dd717e276319666480aecaa55d0696c2ba80f74d51f7573aea9799d96a37bfa8305b8e04e54 WHIRLPOOL 6508407069d353c05b3167b413f5ab90f839afa6e77282ce79504ae23d831e150747a1c949e5fa8f0c021ba7b44b95087295336ad17d049bfbd41b87555aca5f
+DIST fcitx-chewing-0.2.2.tar.xz 19684 SHA256 fa278ee9d2c20f7ae0a3093a3e490553798186bd67dc1e83f2723bd15b47a450 SHA512 3191c269459779115353fdf3f6fcdd1a8bace2d7f45426eebe1d4198eb8f84ef88680c38b7e03d7db4db45dc41ee2ddbe92d36c71911f09b23ef9f0d5d745617 WHIRLPOOL ab9a2fec736f3e2c4af761360ef0cd0e53fdeae1e850e322d7b5d31ceee9d074f7cb29f9f6e083f26e374928ba559b53d139ba906faf21538771a6f371d677eb
diff --git a/app-i18n/fcitx-chewing/fcitx-chewing-0.2.0.ebuild b/app-i18n/fcitx-chewing/fcitx-chewing-0.2.0.ebuild
new file mode 100644
index 000000000000..0be76516b3ab
--- /dev/null
+++ b/app-i18n/fcitx-chewing/fcitx-chewing-0.2.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="Chewing module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ dev-libs/libchewing"
+DEPEND="${RDEPEND}
+ virtual/libintl"
diff --git a/app-i18n/fcitx-chewing/fcitx-chewing-0.2.2.ebuild b/app-i18n/fcitx-chewing/fcitx-chewing-0.2.2.ebuild
new file mode 100644
index 000000000000..8c8208f587ec
--- /dev/null
+++ b/app-i18n/fcitx-chewing/fcitx-chewing-0.2.2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="Chewing module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ >=dev-libs/libchewing-0.4.0"
+DEPEND="${RDEPEND}
+ virtual/libintl"
diff --git a/app-i18n/fcitx-chewing/metadata.xml b/app-i18n/fcitx-chewing/metadata.xml
new file mode 100644
index 000000000000..cb36a2fd8c76
--- /dev/null
+++ b/app-i18n/fcitx-chewing/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-cloudpinyin/Manifest b/app-i18n/fcitx-cloudpinyin/Manifest
new file mode 100644
index 000000000000..6b17d161ed0c
--- /dev/null
+++ b/app-i18n/fcitx-cloudpinyin/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-cloudpinyin-0.3.1.tar.xz 19296 SHA256 2c919bf7979964bef861b432b821fc43fa94824e82372b03c653219b0fc05f6e SHA512 fda8501d8c132b3810f70d984f77652cefad5a052580c6607f893efdfed132a05053c6edf3ea8ba829e33abc237808eac6ca3521c6616ad2cfa5e3c4e0045297 WHIRLPOOL bcd8aae0339ecdc3db58a950c475e81133a90b08f9294dfea224d38ec7b6e2f929fff2d389761f2c90ee1553b9bd02fd8bf93ab9ef7c23101affebfff7b76d33
+DIST fcitx-cloudpinyin-0.3.4.tar.xz 20796 SHA256 c131e8cfd4d171f7749c2934f13092dcdffcf3d4ff1cefde7ed67daed74b7d90 SHA512 ecfab0e45387793986fc75f24372d69910552d6168c9dd63f258bf05bfa397350bfea2a6fc419ab067fc5a7737a3e8c39d4b8ae5d0501871e3365c8a07553b09 WHIRLPOOL 7dbecb3f5ec38c50364abddeb5c44318503fdf40783b6efd5c8ece029f0cd56f750057b547a25fa6836458ed15646d5923e09c4fc33d927f9d1a40e5332577c7
diff --git a/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.1.ebuild b/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.1.ebuild
new file mode 100644
index 000000000000..fdbb97b66e58
--- /dev/null
+++ b/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="A fcitx module to look up pinyin candidate words on the internet"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ net-misc/curl"
+DEPEND="${RDEPEND}
+ virtual/libiconv
+ virtual/libintl
+ virtual/pkgconfig"
diff --git a/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.4.ebuild b/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.4.ebuild
new file mode 100644
index 000000000000..92cc2d9c9d71
--- /dev/null
+++ b/app-i18n/fcitx-cloudpinyin/fcitx-cloudpinyin-0.3.4.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="A fcitx module to look up pinyin candidate words on the internet"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ net-misc/curl"
+DEPEND="${RDEPEND}
+ virtual/libiconv
+ virtual/libintl
+ virtual/pkgconfig"
diff --git a/app-i18n/fcitx-cloudpinyin/metadata.xml b/app-i18n/fcitx-cloudpinyin/metadata.xml
new file mode 100644
index 000000000000..7cb952df2e6d
--- /dev/null
+++ b/app-i18n/fcitx-cloudpinyin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">fcitx</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-configtool/Manifest b/app-i18n/fcitx-configtool/Manifest
new file mode 100644
index 000000000000..1d391788deb7
--- /dev/null
+++ b/app-i18n/fcitx-configtool/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-configtool-0.4.6.tar.xz 41992 SHA256 8d64107f9f12b4f2cbd82e40b87a2dc4dc76d0ff854481c1103d5e9a2c2e129d SHA512 946bceb77fc6d14210154d9264c86d3333f910893cf3054f65eab72641421847e8ac003889b742f4c28f74c8ab1cfbcfb82abe35ea83ca2548cfc1decc92fc4c WHIRLPOOL 58f8a420f6c98cb6d710bd05d8ca2a3ca48a115015e6de98b105bf71b59bf3dab34eb63009d763dc7a3554fa6ec0b442e8bb277f890230dd94ec371397a6766c
+DIST fcitx-configtool-0.4.8.tar.xz 47196 SHA256 0ebc06d9d325fed096e9cb61fe53b82000d2de0e9aefe5945ba8f0aa2ca851ed SHA512 7b3c43b9d7d1dab04880effe6fc4e80e64c9bad34699c0c8d2992ec971605ef2eaa0b1fb13f71a582289c75560c3edc95af21f6413ac2bb594d5cdb31a0b4cb7 WHIRLPOOL a1817bcc9d6bdcd96e66dbe71d44cb66d6b66802e366b8f21d5f922495176463fc23adff2bbdbfb4003ddcef43839fab06715231fdaada8714eec1e3a073f18f
diff --git a/app-i18n/fcitx-configtool/fcitx-configtool-0.4.6.ebuild b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.6.ebuild
new file mode 100644
index 000000000000..ebf428cbf88f
--- /dev/null
+++ b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.6.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="A GTK+ GUI configuration tool for fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE="gtk +gtk3"
+REQUIRED_USE="|| ( gtk gtk3 )"
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ dev-libs/glib:2
+ gtk? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )"
+DEPEND="${RDEPEND}
+ app-text/iso-codes
+ dev-libs/libunique:1
+ dev-util/intltool
+ virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs="
+ $(cmake-utils_use_enable gtk GTK2)
+ $(cmake-utils_use_enable gtk3 GTK3)"
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/fcitx-configtool/fcitx-configtool-0.4.8.ebuild b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.8.ebuild
new file mode 100644
index 000000000000..48ac139256ae
--- /dev/null
+++ b/app-i18n/fcitx-configtool/fcitx-configtool-0.4.8.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="A GTK+ GUI configuration tool for fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE="gtk +gtk3"
+REQUIRED_USE="|| ( gtk gtk3 )"
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ dev-libs/glib:2
+ gtk? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )"
+DEPEND="${RDEPEND}
+ app-text/iso-codes
+ dev-libs/libunique:1
+ dev-util/intltool
+ virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs="
+ $(cmake-utils_use_enable gtk GTK2)
+ $(cmake-utils_use_enable gtk3 GTK3)"
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/fcitx-configtool/metadata.xml b/app-i18n/fcitx-configtool/metadata.xml
new file mode 100644
index 000000000000..4484e0f7375b
--- /dev/null
+++ b/app-i18n/fcitx-configtool/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <use>
+ <flag name="gtk3">Use GTK+3 instead of 2</flag>
+ </use>
+ <upstream>
+ <remote-id type="google-code">fcitx</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-hangul/Manifest b/app-i18n/fcitx-hangul/Manifest
new file mode 100644
index 000000000000..185ce0dcc00c
--- /dev/null
+++ b/app-i18n/fcitx-hangul/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-hangul-0.2.1.tar.xz 25064 SHA256 a084789d2f5646af9e60b8f95385ee1cbbd2dc402709a8b3a8ea82a16fbbae97 SHA512 da1a0926be129dcf49b5fd199b7a75d4f66d3c58944c7f5ae70219a2903c0277a99e9bd05e0758ae86f24b51f910425d70ea86112d85e852cf6f5f1f7fe78db8 WHIRLPOOL c4dae7a479d385da877ffdea36d439e61fa441090b8f86cecf83239250f1cc1ba19204f378ce39c02fe135dd120a4858819c183b25a79dc1989b0a236b6d37bd
+DIST fcitx-hangul-0.3.0.tar.xz 25600 SHA256 978a66471eb200cc3807fe84e9b5f1392fefdcd51031e5a0bd8647fa994507cb SHA512 07085508da98c49bcecf75fbfad6681263a735a1efcc4fb7a6fa05cb215dfe0c338e95e26cc55e488501b5abbc1007464b1bbf488f07aaca2d1a0a18c8173074 WHIRLPOOL 9833d6eb8484be33e84275174b2b81cc88dbb8d2561c15c7897e172fef61045c856cb9c2c42e7df9baf4d3dbdeb987db556b6a2e8a3e1462cd93f80b6a933b7a
diff --git a/app-i18n/fcitx-hangul/fcitx-hangul-0.2.1.ebuild b/app-i18n/fcitx-hangul/fcitx-hangul-0.2.1.ebuild
new file mode 100644
index 000000000000..adc22c76a54c
--- /dev/null
+++ b/app-i18n/fcitx-hangul/fcitx-hangul-0.2.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Korean Hangul module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ app-i18n/libhangul"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-hangul/fcitx-hangul-0.3.0.ebuild b/app-i18n/fcitx-hangul/fcitx-hangul-0.3.0.ebuild
new file mode 100644
index 000000000000..8e7463d6da38
--- /dev/null
+++ b/app-i18n/fcitx-hangul/fcitx-hangul-0.3.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Korean Hangul module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ app-i18n/libhangul"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-hangul/metadata.xml b/app-i18n/fcitx-hangul/metadata.xml
new file mode 100644
index 000000000000..cb36a2fd8c76
--- /dev/null
+++ b/app-i18n/fcitx-hangul/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-libpinyin/Manifest b/app-i18n/fcitx-libpinyin/Manifest
new file mode 100644
index 000000000000..0d0e6d23c537
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-libpinyin-0.2.1_dict.tar.xz 10007544 SHA256 1ec33b2c56f98079fa5383b5fffcbe095ec64ffaa07eefebbc5d609136a2fab8 SHA512 7e446ac1e07301d6671f3de1059d099237aeeb46fdb9f68fce40a205cdcb17542345334b13f45b19f356743f92601492d178e6e2d578567c2506bed9c808ccbd WHIRLPOOL 598341a001d4cbb544bf3e3fc4449b1a323fc9ae6d3fc5fe8217b9a15bc2db22fb937e61bae32b3420a6b33d235368d6bd31fecfd1a845d1edd3acda320cb6f3
+DIST fcitx-libpinyin-0.3.1_dict.tar.xz 15143832 SHA256 0b553c90d37c36e82ad692803519cb3cf82ae3597ed2f74b1f5251e942c272ae SHA512 3b7501a75dab2f5b83541c71ccac93709f3354f390f322d7b95e4b94e0c4dc6963522759ab52eb77203d787d6d14d3ce1c838dd92ecd0db041a3b7a25008eaa4 WHIRLPOOL 1f655dc2a4439b8ff0583fa88f3d75f2472a8abdeff9132a98d242f2007d3abaf582f8ae31ec18ef693754bdf29788a37f4dda96bd1777d6a43eb1ac8eb6c194
diff --git a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.2.1.ebuild b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.2.1.ebuild
new file mode 100644
index 000000000000..101a0d6c0c24
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.2.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Libpinyin module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}_dict.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ <app-i18n/libpinyin-0.9.0
+ dev-libs/glib:2"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.1.ebuild b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.1.ebuild
new file mode 100644
index 000000000000..e28164527ec7
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/fcitx-libpinyin-0.3.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Libpinyin module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE="dictmanager"
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ app-i18n/libpinyin
+ dev-libs/glib:2
+ dictmanager? ( >=app-i18n/fcitx-4.2.8[qt4]
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtwebkit:4 )"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs="$(cmake-utils_use_enable dictmanager QT)"
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-libpinyin/metadata.xml b/app-i18n/fcitx-libpinyin/metadata.xml
new file mode 100644
index 000000000000..c4a4afa65549
--- /dev/null
+++ b/app-i18n/fcitx-libpinyin/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <use>
+ <flag name='dictmanager'>
+ Enable dictionary manager. Requires <pkg>dev-qt/qtwebkit</pkg>.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-qt5/Manifest b/app-i18n/fcitx-qt5/Manifest
new file mode 100644
index 000000000000..9a86957b539c
--- /dev/null
+++ b/app-i18n/fcitx-qt5/Manifest
@@ -0,0 +1 @@
+DIST fcitx-qt5-1.0.2.tar.xz 53324 SHA256 b8073f07d9384878c616f6d2cea44fc739a3b5731b95b10b3133e0914d49f66d SHA512 f7075d5334e29fd00c54563182c9cc4027011503aa14d577aa2fb75eb8558c385d91c939f1f21e51850c9c64fc5c396aad5b32fdcc8ddd99c46ec74bd577255d WHIRLPOOL 35ae384cf13fdfdb86c34b7dbefbbe780a2c20ac220868824e25a0ba4368581c19d45cbc9447e1c2dd3236b0758ee9e4311dab1f348a524ca2d002d0b43c760c
diff --git a/app-i18n/fcitx-qt5/fcitx-qt5-1.0.2.ebuild b/app-i18n/fcitx-qt5/fcitx-qt5-1.0.2.ebuild
new file mode 100644
index 000000000000..f066264ddc86
--- /dev/null
+++ b/app-i18n/fcitx-qt5/fcitx-qt5-1.0.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="Qt5 input module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ kde-frameworks/extra-cmake-modules"
+DEPEND="${RDEPEND}"
diff --git a/app-i18n/fcitx-qt5/metadata.xml b/app-i18n/fcitx-qt5/metadata.xml
new file mode 100644
index 000000000000..cb36a2fd8c76
--- /dev/null
+++ b/app-i18n/fcitx-qt5/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-rime/Manifest b/app-i18n/fcitx-rime/Manifest
new file mode 100644
index 000000000000..dba3d2464649
--- /dev/null
+++ b/app-i18n/fcitx-rime/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-rime-0.2.0.tar.xz 8116 SHA256 e4bc9243abffd1851b4ee19c88d7c2b32ede134aeda60aee930388f9f33ca269 SHA512 3f02d7bf0e47981e7a135ccaa46653be319d1bb716bd939b50419e47b8d3c07b347434e8529522d4266bd5fac6dbc2cdc1bfd4b7ea0607250023f70f97006228 WHIRLPOOL 7dbdcd3ac90f2d901b5b5c06541b9f6f1debf4ad833c2ddacb840dbd80a4443725fc7bdb41ad2261db8f34cb0dc77fe3d5f0c45e69a0a056618518007c1c708e
+DIST fcitx-rime-0.3.1.tar.xz 39648 SHA256 3ca74de4d20e8fd0e67eb4ccae8af3790bb1f557f183c2af32cb45f371e8521d SHA512 5d3c8fc119e1a104987a7876f3b1c54da074e34ce9feb9c02efa7c9cfd788c3735680a03cdb50d69a5512a9f075c7326bdc267cf076daa916238898da81d2388 WHIRLPOOL ed8f4ed563dfbe01aaac71bb847d4a9b641b041f9916c8c6c34a444202ac00720ebe4274c30906141b103fbbf55d7ce045cef094792c1fffadae03dd0ce73f7a
diff --git a/app-i18n/fcitx-rime/fcitx-rime-0.2.0.ebuild b/app-i18n/fcitx-rime/fcitx-rime-0.2.0.ebuild
new file mode 100644
index 000000000000..25335a90966b
--- /dev/null
+++ b/app-i18n/fcitx-rime/fcitx-rime-0.2.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Rime support for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="https://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ app-i18n/librime
+ app-i18n/rime-data
+ x11-libs/libnotify"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # dont build data resource here, already provided by app-i18n/rime-data
+ sed -i -e 's|add_subdirectory(data)||' CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DRIME_DATA_DIR=/usr/share/rime-data
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/fcitx-rime/fcitx-rime-0.3.1.ebuild b/app-i18n/fcitx-rime/fcitx-rime-0.3.1.ebuild
new file mode 100644
index 000000000000..8b1623ca36bd
--- /dev/null
+++ b/app-i18n/fcitx-rime/fcitx-rime-0.3.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Rime support for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8.1
+ >=app-i18n/librime-1.0
+ app-i18n/rime-data
+ x11-libs/libnotify"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # dont build data resource here, already provided by app-i18n/rime-data
+ sed -i -e 's|add_subdirectory(data)||' CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DRIME_DATA_DIR=/usr/share/rime-data
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/fcitx-rime/metadata.xml b/app-i18n/fcitx-rime/metadata.xml
new file mode 100644
index 000000000000..91091e17d28b
--- /dev/null
+++ b/app-i18n/fcitx-rime/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>http://code.google.com/p/rimeime/issues/list</bugs-to>
+ <remote-id type="google-code">rimeime</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-sunpinyin/Manifest b/app-i18n/fcitx-sunpinyin/Manifest
new file mode 100644
index 000000000000..91c1f13dfb72
--- /dev/null
+++ b/app-i18n/fcitx-sunpinyin/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-sunpinyin-0.4.0.tar.xz 40264 SHA256 366af4123455bd85e5af104ca0368057470079937f79eaa70e58951de4743acc SHA512 53def2f36de0d9517da0d154ae8926075c69a5712bf74a3e5ba5ba6266e2d94152dac77e051473828d98ed6a78d3f10557a8ca2081bf1f799405a4f6a4afb83f WHIRLPOOL 2c92a9d0a9d48eb8e4aca895ccddb91f1d1fbaf137bdc4fe32519cd25a8294be39140d117a0d4d20a5a3fa3c21086bd6edbd44d93fafdf8f885aa7d3d36f9843
+DIST fcitx-sunpinyin-0.4.1.tar.xz 41076 SHA256 7bd0c61a3c821719760bff72c3c114b28e277b87f54dcb61d83e3548b1eb6777 SHA512 7ad9065d86d7bb3ceb6536a0fe3559bf2ba60aebe69e2f07c8dadad1a0a2283a1b85712105c6c2a2bf19b9645c4392204db9c3d1db234618ba7f62ee44eda85c WHIRLPOOL 9339656a5b8cf1359af8f3ceeaa630862a31d4a1089a4b3a738f65c275f0f61d8d06bbe89e496f8922ba4b09b384d96aeac43d7bdfcf21bdaa555c79efd10709
diff --git a/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.0.ebuild b/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.0.ebuild
new file mode 100644
index 000000000000..caa149b2374f
--- /dev/null
+++ b/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Sunpinyin module for fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7
+ >app-i18n/sunpinyin-2.0.3"
+DEPEND="${RDEPEND}
+ virtual/libintl"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-gcc46-compatible.patch"
+ epatch_user
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.1.ebuild b/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.1.ebuild
new file mode 100644
index 000000000000..b57aef5720c1
--- /dev/null
+++ b/app-i18n/fcitx-sunpinyin/fcitx-sunpinyin-0.4.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Sunpinyin module for fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ >app-i18n/sunpinyin-2.0.3"
+DEPEND="${RDEPEND}
+ virtual/libintl"
+
+src_prepare() {
+ epatch_user
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-sunpinyin/files/fcitx-sunpinyin-0.4.0-gcc46-compatible.patch b/app-i18n/fcitx-sunpinyin/files/fcitx-sunpinyin-0.4.0-gcc46-compatible.patch
new file mode 100644
index 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..7cb952df2e6d
--- /dev/null
+++ b/app-i18n/fcitx-sunpinyin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">fcitx</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-table-extra/Manifest b/app-i18n/fcitx-table-extra/Manifest
new file mode 100644
index 000000000000..621aa9742fe7
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/Manifest
@@ -0,0 +1,3 @@
+DIST fcitx-table-extra-0.3.3.tar.xz 3350592 SHA256 ae2bbf9146dfdeafb6220c9a738ddc1f0437da2c5f2da0d578ba4970bc74767d SHA512 ea100ba7bfc558395b678390bb787b15f674c13140ab22b5a9ef423e5114399633d24ec322904fd61d8f3613058744d08f615d4330ed948aad9dcff09818e36f WHIRLPOOL 10a61ea0aac14e9b55902276557c5b5daba17c14a3101d4e4e1384c8922c89dbfe96b1ac543e9ad3408f0951ecd7869a8c4c0d36d168129b2f78d611a0f70158
+DIST fcitx-table-extra-0.3.6.tar.xz 3694520 SHA256 9f80984d23622b90a7d5fbf439f54d7d46f6e2f640618b00079214f50a62a233 SHA512 3970fd9fb14afef5bc55fcfb8234c12951cf88a8ead9be1575ba3100d08f83f23c923093722380ca9c066d6a3fa065bd51f176b09815b0c85f13d8351a004304 WHIRLPOOL b296eb3198cbf578c4b556942591aee9a9998e3677776a8a6d5a4b80cc3e360d4b6cd784e88d5eb3714879d1ec1231d13e2ad9cca50439470362ae1a9473963a
+DIST fcitx-table-extra-0.3.7.tar.xz 3704164 SHA256 8933570ecd803a4f4fe932c983004e669d81b2f08c3bcaa532151545a42e659e SHA512 628eb7d2b09a3383ab92460dc8c2bc86771482cc84bdce847a394ee595423642dff29a39ccf31f56ea8de833f25e9d42952b55b754dd234d0831b5de5431d16a WHIRLPOOL 2744d91154d51d2388192ce313f4be2e839d5dc33e20622a68208e8e4f155883aedb7b4828e619a1a81e21ea4f893fb6806e59ebed66d842259477a7b4127122
diff --git a/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.3.ebuild b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.3.ebuild
new file mode 100644
index 000000000000..eb85808c7ad2
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Extra tables for Fcitx, including Boshiamy, Zhengma, Cangjie and Quick"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7[table]"
+DEPEND="${RDEPEND}
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.6.ebuild b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.6.ebuild
new file mode 100644
index 000000000000..dca95d4bf52f
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.6.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Extra tables for Fcitx, including Boshiamy, Zhengma, Cangjie and Quick"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8[table]"
+DEPEND="${RDEPEND}
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.7.ebuild b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.7.ebuild
new file mode 100644
index 000000000000..a62f314d4670
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/fcitx-table-extra-0.3.7.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Extra tables for Fcitx, including Boshiamy, Zhengma, Cangjie and Quick"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8[table]"
+DEPEND="${RDEPEND}
+ virtual/libintl"
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-table-extra/metadata.xml b/app-i18n/fcitx-table-extra/metadata.xml
new file mode 100644
index 000000000000..cb36a2fd8c76
--- /dev/null
+++ b/app-i18n/fcitx-table-extra/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx-unikey/Manifest b/app-i18n/fcitx-unikey/Manifest
new file mode 100644
index 000000000000..eef4f12d026f
--- /dev/null
+++ b/app-i18n/fcitx-unikey/Manifest
@@ -0,0 +1,2 @@
+DIST fcitx-unikey-0.2.0.tar.xz 70944 SHA256 152da48ffeb665fc5d88202f6491fa5f4d11284792c2ef079bea4a94c8b125e1 SHA512 10c5c2c5b7e4f40710daccc485b220ed4cdadc6e866636032873a86f9f8489490a42671c9d02aedbbda78a94e40801dd888efc9b692d26ff81fe6d1fe2e10fa7 WHIRLPOOL d6dfd445bd5aa98ec28ab0bd9668f288d67f27874ecdd079f78956172f3d5695fd990ce9e70f190a26edd1eab4f48a8263efc8682fe93679a85fc1db2f6745be
+DIST fcitx-unikey-0.2.4.tar.xz 72308 SHA256 726e5999c00e93856639258298688c835db1e80e4ac4d5ff0786433c0593c195 SHA512 d55fe71bbcbc420e0ba3ec61ad3c7e9293e33f30b6303d90591d5a94e89d7bbc513dc940ae5a081b81c0d973fa6674872a695eac03cfbbefb460609993219221 WHIRLPOOL 9178a4ec7bcf0b6f969295bef0b066b266e336352c52f9a8761cb1cb6456df6c3d90a90d90212c2fbe137ebc07a1cf6b79f82e959dc6ad3806158675ee040fbb
diff --git a/app-i18n/fcitx-unikey/fcitx-unikey-0.2.0.ebuild b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.0.ebuild
new file mode 100644
index 000000000000..4e28e9c12825
--- /dev/null
+++ b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Vietnamese Unikey module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE="+qt4"
+
+RDEPEND=">=app-i18n/fcitx-4.2.7[qt4?]"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+src_prepare() {
+ # Add cmake option to build the qt based macro editor or not
+ epatch "${FILESDIR}/${P}-cmake-qt-option.patch"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_enable qt4 QT)
+ )
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-unikey/fcitx-unikey-0.2.4.ebuild b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.4.ebuild
new file mode 100644
index 000000000000..e829fd226be7
--- /dev/null
+++ b/app-i18n/fcitx-unikey/fcitx-unikey-0.2.4.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="Vietnamese Unikey module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE="+qt4"
+
+RDEPEND=">=app-i18n/fcitx-4.2.8[qt4?]"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_enable qt4 QT)
+ )
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/fcitx-unikey/files/fcitx-unikey-0.2.0-cmake-qt-option.patch b/app-i18n/fcitx-unikey/files/fcitx-unikey-0.2.0-cmake-qt-option.patch
new file mode 100644
index 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/metadata.xml b/app-i18n/fcitx-unikey/metadata.xml
new file mode 100644
index 000000000000..cb36a2fd8c76
--- /dev/null
+++ b/app-i18n/fcitx-unikey/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/fcitx/Manifest b/app-i18n/fcitx/Manifest
new file mode 100644
index 000000000000..47e7d57ae72b
--- /dev/null
+++ b/app-i18n/fcitx/Manifest
@@ -0,0 +1,3 @@
+DIST fcitx-4.2.7_dict.tar.xz 8546416 SHA256 0c902617581f04eb0d337634b0bf2b39956abbcc949512cc79d4ee24cfc9dbb5 SHA512 e5d8eb55f644250197e69315ad02b9f6bc84e697b23c20c01a731f98ce8b1a16d764a58b1e1047d45b8decb6be33144707c2a52fc427e6338d8b8186cd4da074 WHIRLPOOL e344bc92a84940d3c885d1ae87a2fc83c95d6cb0f0e95eed76078e996c4a00df82a0c09c4540771f628928db1716f90d50d04469f2c0f2d5c17b5048fbf2d482
+DIST fcitx-4.2.8.5_dict.tar.xz 8696468 SHA256 fe3d6f57805fc61130f8254f19a86fe3baa0f405406414ca2e94bcf86d3d1b72 SHA512 ee6612a34087135065537fa14f09078bad9f029f69b636fb2221193f23d86c5431a9d8a848b264bdcb259680f6bda41d08d58dcf67d19e5a200cb11fa4a26ffe WHIRLPOOL 0a394d5aaa53819bbab66b32e7ae5896187bc45fad146c7eef4ab75640e5c6670cf811bec87e482bb3516b30e1ce28f2cefa91c10838092f9329b1101b5c70db
+DIST fcitx-4.2.8.6_dict.tar.xz 8694328 SHA256 91034e9ef976bbe2649a96b67adf0c133d64e2c0d53be440cc40a4370569d597 SHA512 822e448932e735fe3087384eaf91c6b029b06d3461aa3798501bfbf8f79b8ebc5ea3ac57f01ec32674cc3cb74fcb34b6e285ef265bb49be54543f34dcaf624e4 WHIRLPOOL df24b3b6bbe18a8498732b27817caef6c28278bddd6acfbe49edd9a63d8f33b09ba93ff0bd144e1c1d3b9b9c8079a35a8a047ebf9b361b4f173ec9b23138042e
diff --git a/app-i18n/fcitx/fcitx-4.2.7.ebuild b/app-i18n/fcitx/fcitx-4.2.7.ebuild
new file mode 100644
index 000000000000..04c124be9e90
--- /dev/null
+++ b/app-i18n/fcitx/fcitx-4.2.7.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils eutils gnome2-utils fdo-mime multilib readme.gentoo
+
+DESCRIPTION="Flexible Contect-aware Input Tool with eXtension support"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}_dict.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="+X +autostart +cairo +dbus debug +enchant gtk gtk3 icu introspection lua
+nls opencc +pango qt4 snooper static-libs +table test +xml"
+
+RDEPEND="
+ X? (
+ x11-libs/libX11
+ x11-libs/libXinerama
+ )
+ cairo? (
+ x11-libs/cairo[X]
+ pango? ( x11-libs/pango[X] )
+ !pango? ( media-libs/fontconfig )
+ )
+ dbus? ( sys-apps/dbus )
+ enchant? ( app-text/enchant )
+ gtk? (
+ x11-libs/gtk+:2
+ dev-libs/glib:2
+ dev-libs/dbus-glib
+ )
+ gtk3? (
+ x11-libs/gtk+:3
+ dev-libs/glib:2
+ dev-libs/dbus-glib
+ )
+ icu? ( dev-libs/icu:= )
+ introspection? ( dev-libs/gobject-introspection )
+ lua? ( dev-lang/lua )
+ opencc? ( app-i18n/opencc )
+ qt4? (
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4[glib]
+ )
+ xml? (
+ app-text/iso-codes
+ dev-libs/libxml2
+ x11-libs/libxkbfile
+ )"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+DOCS=( AUTHORS ChangeLog README THANKS TODO
+ doc/pinyin.txt doc/cjkvinput.txt doc/API.txt doc/Develop_Readme )
+HTML_DOCS=( doc/wb_fh.htm )
+
+src_prepare() {
+ use autostart && DOC_CONTENTS="You have enabled the autostart USE flag,
+ which will let fcitx start automatically on XDG compatible desktop
+ environments, such as Gnome, KDE, LXDE, Razor-qt and Xfce. If you use
+ ~/.xinitrc to configure your desktop, make sure to include the fcitx
+ command to start it."
+ epatch "${FILESDIR}/${P}-gcc46-compatible.patch"
+ epatch_user
+}
+
+src_configure() {
+ local mycmakeargs="
+ -DLIB_INSTALL_DIR=/usr/$(get_libdir)
+ $(cmake-utils_use_enable X X11)
+ $(cmake-utils_use_enable autostart XDGAUTOSTART)
+ $(cmake-utils_use_enable cairo CAIRO)
+ $(cmake-utils_use_enable dbus DBUS)
+ $(cmake-utils_use_enable debug DEBUG)
+ $(cmake-utils_use_enable enchant ENCHANT)
+ $(cmake-utils_use_enable gtk GTK2_IM_MODULE)
+ $(cmake-utils_use_enable gtk3 GTK3_IM_MODULE)
+ $(cmake-utils_use_enable icu ICU)
+ $(cmake-utils_use_enable introspection GIR)
+ $(cmake-utils_use_enable lua LUA)
+ $(cmake-utils_use_enable nls GETTEXT)
+ $(cmake-utils_use_enable opencc OPENCC)
+ $(cmake-utils_use_enable pango PANGO)
+ $(cmake-utils_use_enable qt4 QT)
+ $(cmake-utils_use_enable qt4 QT_IM_MODULE)
+ $(cmake-utils_use_enable qt4 QT_GUI)
+ $(cmake-utils_use_enable snooper SNOOPER)
+ $(cmake-utils_use_enable static-libs STATIC)
+ $(cmake-utils_use_enable table TABLE)
+ $(cmake-utils_use_enable test TEST)
+ $(cmake-utils_use_enable xml LIBXML2)"
+ if use gtk || use gtk3 || use qt4 ; then
+ mycmakeargs+=" -DENABLE_GLIB2=ON "
+ fi
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ rm -rf "${ED}"/usr/share/doc/${PN} || die
+ use autostart && readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use autostart && readme.gentoo_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/fcitx/fcitx-4.2.8.5.ebuild b/app-i18n/fcitx/fcitx-4.2.8.5.ebuild
new file mode 100644
index 000000000000..7e4b47d2bce6
--- /dev/null
+++ b/app-i18n/fcitx/fcitx-4.2.8.5.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils eutils gnome2-utils fdo-mime multilib readme.gentoo
+
+DESCRIPTION="Flexible Contect-aware Input Tool with eXtension support"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/fcitx/${P}_dict.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc ppc64 ~x86"
+IUSE="+X +autostart +cairo +dbus debug +enchant gtk gtk3 icu introspection lua
+nls opencc +pango qt4 static-libs +table test +xml"
+
+REQUIRED_USE="cairo? ( X ) gtk? ( X ) gtk3? ( X ) qt4? ( X )"
+
+RDEPEND="
+ X? (
+ x11-libs/libX11
+ x11-libs/libXinerama
+ )
+ cairo? (
+ x11-libs/cairo[X]
+ pango? ( x11-libs/pango[X] )
+ !pango? ( media-libs/fontconfig )
+ )
+ dbus? ( sys-apps/dbus )
+ enchant? ( app-text/enchant )
+ gtk? (
+ x11-libs/gtk+:2
+ dev-libs/glib:2
+ dev-libs/dbus-glib
+ )
+ gtk3? (
+ x11-libs/gtk+:3
+ dev-libs/glib:2
+ dev-libs/dbus-glib
+ )
+ icu? ( dev-libs/icu:= )
+ introspection? ( dev-libs/gobject-introspection )
+ lua? ( dev-lang/lua:= )
+ nls? ( sys-devel/gettext )
+ opencc? ( app-i18n/opencc )
+ qt4? (
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4[glib]
+ )
+ xml? (
+ app-text/iso-codes
+ dev-libs/libxml2
+ x11-libs/libxkbfile
+ )"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog README THANKS TODO
+ doc/pinyin.txt doc/cjkvinput.txt doc/API.txt doc/Develop_Readme )
+HTML_DOCS=( doc/wb_fh.htm )
+
+src_prepare() {
+ use autostart && DOC_CONTENTS="You have enabled the autostart USE flag,
+ which will let fcitx start automatically on XDG compatible desktop
+ environments, such as Gnome, KDE, LXDE, Razor-qt and Xfce. If you use
+ ~/.xinitrc to configure your desktop, make sure to include the fcitx
+ command to start it."
+ epatch_user
+}
+
+src_configure() {
+ local mycmakeargs="
+ -DLIB_INSTALL_DIR=/usr/$(get_libdir)
+ -DSYSCONFDIR=/etc/
+ $(cmake-utils_use_enable X X11)
+ $(cmake-utils_use_enable autostart XDGAUTOSTART)
+ $(cmake-utils_use_enable cairo CAIRO)
+ $(cmake-utils_use_enable dbus DBUS)
+ $(cmake-utils_use_enable debug DEBUG)
+ $(cmake-utils_use_enable enchant ENCHANT)
+ $(cmake-utils_use_enable gtk GTK2_IM_MODULE)
+ $(cmake-utils_use_enable gtk SNOOPER)
+ $(cmake-utils_use_enable gtk3 GTK3_IM_MODULE)
+ $(cmake-utils_use_enable gtk3 SNOOPER)
+ $(cmake-utils_use_enable icu ICU)
+ $(cmake-utils_use_enable introspection GIR)
+ $(cmake-utils_use_enable lua LUA)
+ $(cmake-utils_use_enable nls GETTEXT)
+ $(cmake-utils_use_enable opencc OPENCC)
+ $(cmake-utils_use_enable pango PANGO)
+ $(cmake-utils_use_enable qt4 QT)
+ $(cmake-utils_use_enable qt4 QT_IM_MODULE)
+ $(cmake-utils_use_enable qt4 QT_GUI)
+ $(cmake-utils_use_enable static-libs STATIC)
+ $(cmake-utils_use_enable table TABLE)
+ $(cmake-utils_use_enable test TEST)
+ $(cmake-utils_use_enable xml LIBXML2)"
+ if use gtk || use gtk3 || use qt4 ; then
+ mycmakeargs+=" -DENABLE_GLIB2=ON "
+ fi
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ rm -rf "${ED}"/usr/share/doc/${PN} || die
+ use autostart && readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use autostart && readme.gentoo_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/fcitx/fcitx-4.2.8.6.ebuild b/app-i18n/fcitx/fcitx-4.2.8.6.ebuild
new file mode 100644
index 000000000000..1889d2b651fb
--- /dev/null
+++ b/app-i18n/fcitx/fcitx-4.2.8.6.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils eutils gnome2-utils fdo-mime multilib readme.gentoo
+
+DESCRIPTION="Flexible Contect-aware Input Tool with eXtension support"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/fcitx/${P}_dict.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="+X +autostart +cairo +dbus debug +enchant gtk gtk3 icu introspection lua
+nls opencc +pango qt4 static-libs +table test +xml"
+
+REQUIRED_USE="cairo? ( X ) gtk? ( X ) gtk3? ( X ) qt4? ( X )"
+
+RDEPEND="
+ X? (
+ x11-libs/libX11
+ x11-libs/libXinerama
+ )
+ cairo? (
+ x11-libs/cairo[X]
+ pango? ( x11-libs/pango[X] )
+ !pango? ( media-libs/fontconfig )
+ )
+ dbus? ( sys-apps/dbus )
+ enchant? ( app-text/enchant )
+ gtk? (
+ x11-libs/gtk+:2
+ dev-libs/glib:2
+ dev-libs/dbus-glib
+ )
+ gtk3? (
+ x11-libs/gtk+:3
+ dev-libs/glib:2
+ dev-libs/dbus-glib
+ )
+ icu? ( dev-libs/icu:= )
+ introspection? ( dev-libs/gobject-introspection )
+ lua? ( dev-lang/lua:= )
+ nls? ( sys-devel/gettext )
+ opencc? ( app-i18n/opencc )
+ qt4? (
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4[glib]
+ )
+ xml? (
+ app-text/iso-codes
+ dev-libs/libxml2
+ x11-libs/libxkbfile
+ )"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog README THANKS TODO
+ doc/pinyin.txt doc/cjkvinput.txt doc/API.txt doc/Develop_Readme )
+HTML_DOCS=( doc/wb_fh.htm )
+
+src_prepare() {
+ use autostart && DOC_CONTENTS="You have enabled the autostart USE flag,
+ which will let fcitx start automatically on XDG compatible desktop
+ environments, such as Gnome, KDE, LXDE, LXQt and Xfce. If you use
+ ~/.xinitrc to configure your desktop, make sure to include the fcitx
+ command to start it."
+ epatch_user
+}
+
+src_configure() {
+ local mycmakeargs="
+ -DLIB_INSTALL_DIR=/usr/$(get_libdir)
+ -DSYSCONFDIR=/etc/
+ $(cmake-utils_use_enable X X11)
+ $(cmake-utils_use_enable autostart XDGAUTOSTART)
+ $(cmake-utils_use_enable cairo CAIRO)
+ $(cmake-utils_use_enable dbus DBUS)
+ $(cmake-utils_use_enable debug DEBUG)
+ $(cmake-utils_use_enable enchant ENCHANT)
+ $(cmake-utils_use_enable gtk GTK2_IM_MODULE)
+ $(cmake-utils_use_enable gtk SNOOPER)
+ $(cmake-utils_use_enable gtk3 GTK3_IM_MODULE)
+ $(cmake-utils_use_enable gtk3 SNOOPER)
+ $(cmake-utils_use_enable icu ICU)
+ $(cmake-utils_use_enable introspection GIR)
+ $(cmake-utils_use_enable lua LUA)
+ $(cmake-utils_use_enable nls GETTEXT)
+ $(cmake-utils_use_enable opencc OPENCC)
+ $(cmake-utils_use_enable pango PANGO)
+ $(cmake-utils_use_enable qt4 QT)
+ $(cmake-utils_use_enable qt4 QT_IM_MODULE)
+ $(cmake-utils_use_enable qt4 QT_GUI)
+ $(cmake-utils_use_enable static-libs STATIC)
+ $(cmake-utils_use_enable table TABLE)
+ $(cmake-utils_use_enable test TEST)
+ $(cmake-utils_use_enable xml LIBXML2)"
+ if use gtk || use gtk3 || use qt4 ; then
+ mycmakeargs+=" -DENABLE_GLIB2=ON "
+ fi
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ rm -rf "${ED}"/usr/share/doc/${PN} || die
+ use autostart && readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use autostart && readme.gentoo_pkg_postinst
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/fcitx/files/fcitx-4.2.7-gcc46-compatible.patch b/app-i18n/fcitx/files/fcitx-4.2.7-gcc46-compatible.patch
new file mode 100644
index 000000000000..218f0e8312cf
--- /dev/null
+++ b/app-i18n/fcitx/files/fcitx-4.2.7-gcc46-compatible.patch
@@ -0,0 +1,43 @@
+From 4c703e395b55e939f3ac1e4a4bf5cd36aa5b0abc Mon Sep 17 00:00:00 2001
+From: Weng Xuetian <wengxt@gmail.com>
+Date: Sat, 26 Jan 2013 14:40:00 -0500
+Subject: [PATCH] [fcitx] fix compatible with gcc 4.6
+
+---
+ src/lib/fcitx/module.h | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/lib/fcitx/module.h b/src/lib/fcitx/module.h
+index 28de64f..bae6601 100644
+--- a/src/lib/fcitx/module.h
++++ b/src/lib/fcitx/module.h
+@@ -109,7 +109,7 @@
+ void* FcitxModuleInvokeFunction(FcitxAddon* addon, int functionId, FcitxModuleFunctionArg args);
+ #define FcitxModuleInvokeVaArgs(addon, functionId, ARGV...) \
+ (FcitxModuleInvokeFunction(addon, functionId, \
+- (FcitxModuleFunctionArg){ .args = {ARGV} }))
++ (FcitxModuleFunctionArg){ {ARGV} }))
+
+ /**
+ * invoke inter module function with addon name, returns NULL when fails (the function itself can also return NULL)
+@@ -133,7 +133,7 @@
+ #define InvokeVaArgs(INST, MODULE, FUNC, ARGV...) \
+ ((MODULE##_##FUNC##_RETURNTYPE)FcitxModuleInvokeFunctionByName( \
+ INST, MODULE##_NAME, MODULE##_##FUNC, \
+- (FcitxModuleFunctionArg){ .args = {ARGV} }))
++ (FcitxModuleFunctionArg){ {ARGV} }))
+
+ /** add a function to a addon */
+ #define AddFunction(ADDON, Realname) \
+@@ -215,7 +215,7 @@
+ }
+
+ #define FCITX_DEF_MODULE_ARGS(var, ARGV...) \
+- FcitxModuleFunctionArg var = { .args = {ARGV} }
++ FcitxModuleFunctionArg var = { {ARGV} }
+ /* void *__##var##_array[] = {ARGV}; \ */
+ /* size_t __##var##_length = sizeof(__##var##_array) / sizeof(void*); \ */
+ /* FcitxModuleFunctionArg var[] = { { .n = __##var##_length, \ */
+--
+1.7.10
+
diff --git a/app-i18n/fcitx/metadata.xml b/app-i18n/fcitx/metadata.xml
new file mode 100644
index 000000000000..aecebce76555
--- /dev/null
+++ b/app-i18n/fcitx/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <use>
+ <flag name='autostart'>Enable xdg-compatible autostart of fcitx</flag>
+ <flag name='enchant'>Use <pkg>app-text/enchant</pkg> for text prediction</flag>
+ <flag name='introspection'>Enable GObject Introspection</flag>
+ <flag name='gtk'>Install GTK2 IM module</flag>
+ <flag name='gtk3'>Install GTK3 IM module</flag>
+ <flag name='opencc'>Enable OpenCC for Chinese Transform</flag>
+ <flag name='pango'>Enable support for <pkg>x11-libs/pango</pkg></flag>
+ <flag name='qt4'>Install Qt4 IM module</flag>
+ <flag name='snooper'>Enable Key Snooper for GTK app</flag>
+ <flag name='table'>Enable Table IM</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-i18n/freewnn/Manifest b/app-i18n/freewnn/Manifest
new file mode 100644
index 000000000000..a7e47796b9aa
--- /dev/null
+++ b/app-i18n/freewnn/Manifest
@@ -0,0 +1,2 @@
+DIST FreeWnn-1.1.1-a021.tar.bz2 3108905 SHA256 df9523b2eea7cbc94d9d01c19a01394abe3b648c5ec3f1259adac06fc8ecbb86 SHA512 27a61949d4f9e969d09b7c698c07db0be8140e346dad4e84be72d54f9c087e317e7854ae02e2ebbd530b6b86b4a55c8d209a7dd27de1ed908731487aece5d7a8 WHIRLPOOL 3e34357a3925fdbedd1c71138053196799de9a7b0d5e3c1e23501a52cafac5eda52b6f33b5c75f7ed7e09174dfc36a63b25e3d7d620114b157e6dd82530f6013
+DIST FreeWnn-1.1.1-a022.tar.bz2 3137954 SHA256 3728352fe9d3352ce16884bd0a517eaf227da0cf7e6f1d09b7a3f38f6bfb6dba SHA512 938c8bff69e2f43cce265a6a84822ae08b89725837f808addb66ba202dadafa60c213638f298d9efe1257fd96f7193fd711a3dacecd803289d925d8f6ea6eaf3 WHIRLPOOL f7462c2d6214ea416c8b726b0d086911b238efd39615c4eea5d2c1a9685974ce1c9f20d23d65e861753e64d796c8b98d72682d670d48bf5da80e8051df8d7de9
diff --git a/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-as-needed.patch b/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-as-needed.patch
new file mode 100644
index 000000000000..588c28731db7
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-as-needed.patch
@@ -0,0 +1,11 @@
+--- FreeWnn-1.1.1-a021.orig/Wnn/jlib/Makefile.in 2004-09-12 18:56:55.000000000 +0200
++++ FreeWnn-1.1.1-a021/Wnn/jlib/Makefile.in 2009-12-29 20:29:18.086539501 +0100
+@@ -101,7 +101,7 @@
+ all:: libwnn.la
+
+ libwnn.la: $(OBJS) $(EXTRALIBRARYDEPS)
+- $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS:.o=.lo) -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION)
++ $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS:.o=.lo) @LIBS@ -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION)
+
+ lintlib:: llib-lwnn.ln
+
diff --git a/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-gcc45.patch b/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-gcc45.patch
new file mode 100644
index 000000000000..d46c91d80ae0
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-gcc45.patch
@@ -0,0 +1,13 @@
+diff --git a/Wnn/pubdicplus/Makefile.in b/Wnn/pubdicplus/Makefile.in
+index 41c868d..e9ffc28 100644
+--- a/Wnn/pubdicplus/Makefile.in
++++ b/Wnn/pubdicplus/Makefile.in
+@@ -422,7 +422,7 @@ fzk.master-.c: fzk.master
+ $(LN) $? $@
+
+ std.fzk: fzk.master-.c $(FZK_SRC)
+- $(CPP) $(FZK_FLAG) fzk.master-.c | egrep -v '^(# |#line |#pragma |$$)' | $(ATOF) -h $(HINSI) $@
++ $(CPP) -P $(FZK_FLAG) fzk.master-.c | egrep -v '^(# |#line |#pragma |$$)' | $(ATOF) -h $(HINSI) $@
+
+ full.fzk: $(FZK_SRC)
+ $(MAKE) FZK_FLAG=-DKANSAI std.fzk
diff --git a/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-ldflags.patch b/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-ldflags.patch
new file mode 100644
index 000000000000..f097892249e7
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn-1.1.1_alpha21-ldflags.patch
@@ -0,0 +1,26 @@
+diff --git a/makerule.mk.in b/makerule.mk.in
+index fa9a7e1..dc7210a 100644
+--- a/makerule.mk.in
++++ b/makerule.mk.in
+@@ -94,7 +94,7 @@ ALLDEFINES = $(INCLUDES) $(DEFINES)
+ CFLAGS = @CFLAGS@ @CDEBUGFLAGS@ $(CCOPTIONS) @ipv6@ @DEFS@ $(ALLDEFINES)
+ LIBS = @LIBS@
+ LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)
+-LDOPTIONS = @CDEBUGFLAGS@ $(CCOPTIONS)
++LDOPTIONS = @CDEBUGFLAGS@ $(CCOPTIONS) $(LDFLAGS)
+
+
+ #
+diff --git a/Wnn/jlib.V3/Makefile.in b/Wnn/jlib.V3/Makefile.in
+index 9d5b873..5b1bf23 100644
+--- a/Wnn/jlib.V3/Makefile.in
++++ b/Wnn/jlib.V3/Makefile.in
+@@ -76,7 +76,7 @@ includes::
+ all:: libjd.la
+
+ libjd.la: $(OBJS) $(EXTRALIBRARYDEPS)
+- $(LIBTOOL) $(CC) -o $@ $(OBJS:.o=.lo) -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION)
++ $(LIBTOOL) $(CC) -o $@ $(LDOPTIONS) $(OBJS:.o=.lo) -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION)
+
+ lintlib:: llib-ljd.ln
+
diff --git a/app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch b/app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch
new file mode 100644
index 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.initd b/app-i18n/freewnn/files/freewnn.initd
new file mode 100644
index 000000000000..b81f018ff2f1
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting up ${SERVICE}"
+ /usr/bin/Wnn4/jserver &>/dev/null
+ if [ $? -eq 15 ]; then
+ true;
+ else
+ false;
+ fi
+ eend 0
+}
+
+stop() {
+ ebegin "Stopping ${SERVICE}"
+ /usr/bin/Wnn4/wnnkill &> /dev/null
+ eend $? "Failed to stop ${SERVICE}"
+}
diff --git a/app-i18n/freewnn/freewnn-1.1.1_alpha21-r1.ebuild b/app-i18n/freewnn/freewnn-1.1.1_alpha21-r1.ebuild
new file mode 100644
index 000000000000..63e01499905b
--- /dev/null
+++ b/app-i18n/freewnn/freewnn-1.1.1_alpha21-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+MY_P="FreeWnn-${PV/_alpha/-a0}"
+
+DESCRIPTION="Network-Extensible Kana-to-Kanji Conversion System"
+HOMEPAGE="http://freewnn.sourceforge.jp/
+ http://www.freewnn.org/"
+SRC_URI="mirror://sourceforge.jp/freewnn/17724/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+IUSE="X ipv6"
+
+DEPEND="X? ( x11-libs/libX11 x11-libs/libXmu x11-libs/libXt )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ #Change WNNOWNER to root so we don't need to add wnn user
+ # and disable stripping of binary files
+ sed -i -e "s/WNNOWNER = wnn/WNNOWNER = root/" \
+ -e "s/@INSTPGMFLAGS@//" makerule.mk.in || die
+
+ #bug #318593
+ epatch "${FILESDIR}"/${P}-gcc45.patch
+
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+}
+
+src_compile() {
+ econf \
+ --disable-cWnn \
+ --disable-kWnn \
+ --without-termcap \
+ $(use_with X x) \
+ $(use_with ipv6) \
+ || die
+ emake -j1 || die
+}
+
+src_install() {
+ # install executables, libs ,dictionaries
+ emake DESTDIR="${D}" install || die
+ # install man pages
+ emake DESTDIR="${D}" install.man || die
+ # install docs
+ dodoc ChangeLog* CONTRIBUTORS
+ # install rc script
+ newinitd "${FILESDIR}"/freewnn.initd freewnn
+}
diff --git a/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild b/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild
new file mode 100644
index 000000000000..bc23a7e4ba48
--- /dev/null
+++ b/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+MY_P="FreeWnn-${PV/_alpha/-a0}"
+
+DESCRIPTION="Network-Extensible Kana-to-Kanji Conversion System"
+HOMEPAGE="http://freewnn.sourceforge.jp/
+ http://www.freewnn.org/"
+SRC_URI="mirror://sourceforge.jp/freewnn/59257/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X ipv6"
+
+DEPEND="X? ( x11-libs/libX11 x11-libs/libXmu x11-libs/libXt )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ #Change WNNOWNER to root so we don't need to add wnn user
+ # and disable stripping of binary files
+ sed -i -e "s/WNNOWNER = wnn/WNNOWNER = root/" \
+ -e "s/@INSTPGMFLAGS@//" makerule.mk.in \
+ -e "s/@LN_S@/ln -sf/" || die
+
+ #bug #318593
+
+ epatch "${FILESDIR}"/${P}-parallel-build.patch #517916
+
+ # 542534
+ sed -i -e "s/egrep -v/egrep -av/" kWnn/kdic/Makefile.in \
+ cWnn/tdic/Makefile.in cWnn/cdic/Makefile.in \
+ Wnn/pubdicplus/Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ --disable-cWnn \
+ --disable-kWnn \
+ --without-termcap \
+ $(use_with X x) \
+ $(use_with ipv6)
+}
+
+src_install() {
+ # install executables, libs ,dictionaries
+ emake DESTDIR="${ED}" install || die
+ # install man pages
+ emake DESTDIR="${ED}" install.man || die
+ # install docs
+ dodoc ChangeLog* CONTRIBUTORS
+ # install rc script
+ newinitd "${FILESDIR}"/freewnn.initd freewnn
+}
diff --git a/app-i18n/freewnn/metadata.xml b/app-i18n/freewnn/metadata.xml
new file mode 100644
index 000000000000..12bb1ff75af3
--- /dev/null
+++ b/app-i18n/freewnn/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge-jp">freewnn</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-anthy/Manifest b/app-i18n/ibus-anthy/Manifest
new file mode 100644
index 000000000000..dc4d549595c7
--- /dev/null
+++ b/app-i18n/ibus-anthy/Manifest
@@ -0,0 +1,3 @@
+DIST anthy.i 3170 SHA256 3615639f5cd9bf2adcbc2bac8d3ae968646df1d9d2ba987d80442d5ad99ecdf9 SHA512 400d67c2f0ffbdb3eab241646922d549ec4a42ae5b33714a91b864f4b5dfdf0d9a0d28cb6dcdffa55eb9633651ceae034bb547d7a5c41d9b8d352e955773e069 WHIRLPOOL 9be409df613530658c68bc7491e1dd258f5f1ef1d09895a3557a9e63c3ced5083c1ecd9e274536c9afbc98031c353c05c73304bb4354aaf8e21a1c15de39b8b6
+DIST ibus-anthy-1.2.7.tar.gz 523139 SHA256 33c42c1612423f84fddd8c38f8b2439b8af5f0b5fc7725ae195a01b8999d85e9 SHA512 ee45759bb8303967d09d0f92ee0a97fa63611de936c61073078d795b9ba8858cc882e539611bb5ea68848d471e6d2b0e4d8f51df5335aad7942f15e63c4d159d WHIRLPOOL a27945667347d0fb121d028b23b68219df6417369d32d47a43665c828e8935cd74e04b861e0a4e04a117c08665771c22750eab2869fffd21f23b1e21f633b358
+DIST ibus-anthy-1.5.4.tar.gz 592595 SHA256 4c0a8b88a2c547e72173a7d682d82797f6c65fe712abe5f3b89495d4eec7b031 SHA512 8478e9ea14472d0153cc7a35feae4edea791476dc98cfc266b598f915376d267bd5db48ea0a676209d7a6fa680628116a30fec59afaf696477cfaa14082aad8d WHIRLPOOL f4aec300dc5cff62f81a3ae64ac2d46768e3fbaa579e14abac8bd87e0801155e8258f6f3d66d7015122e929cd2e0f48183aeb37245b3046afa3d80b8ce42d58c
diff --git a/app-i18n/ibus-anthy/ibus-anthy-1.2.7-r1.ebuild b/app-i18n/ibus-anthy/ibus-anthy-1.2.7-r1.ebuild
new file mode 100644
index 000000000000..276c57d0c50d
--- /dev/null
+++ b/app-i18n/ibus-anthy/ibus-anthy-1.2.7-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+PYTHON_DEPEND="2:2.5"
+inherit eutils python
+
+DESCRIPTION="Japanese input method Anthy IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.2.0.20100111
+ !>=app-i18n/ibus-1.4.99
+ app-i18n/anthy
+ >=dev-python/pygtk-2.15.2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-lang/swig
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ >py-compile #397497
+}
+
+src_configure() {
+ PYTHON="$(PYTHON -a)" econf $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+
+ find "${ED}" -name '*.la' -type f -delete || die
+}
+
+pkg_postinst() {
+ elog
+ elog "app-dicts/kasumi is not required but probably useful for you."
+ elog
+ elog "# emerge app-dicts/kasumi"
+ elog
+
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild b/app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild
new file mode 100644
index 000000000000..8ff72f13bca4
--- /dev/null
+++ b/app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1 autotools gnome2-utils
+
+DESCRIPTION="Japanese input method Anthy IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz
+ https://raw.github.com/ibus/ibus-anthy/${PV}/engine/anthy.i"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="deprecated nls"
+
+RDEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.5.0
+ app-i18n/anthy
+ deprecated? ( >=dev-python/pygtk-2.15.2 )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-libs/gobject-introspection
+ dev-util/intltool
+ virtual/pkgconfig
+ deprecated? ( dev-lang/swig )
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+src_prepare() {
+ >py-compile #397497
+ cp "${DISTDIR}"/anthy.i "${S}"/engine # deal with packaging bug
+}
+
+src_configure() {
+ econf --enable-private-png \
+ $(use_enable deprecated pygtk2-anthy) \
+ $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc AUTHORS ChangeLog NEWS README
+
+ find "${ED}" -name '*.la' -type f -delete || die
+
+ python_optimize
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ elog
+ elog "app-dicts/kasumi is not required but probably useful for you."
+ elog
+ elog "# emerge app-dicts/kasumi"
+ elog
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-anthy/metadata.xml b/app-i18n/ibus-anthy/metadata.xml
new file mode 100644
index 000000000000..96a29926bf06
--- /dev/null
+++ b/app-i18n/ibus-anthy/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">The Anthy engine for IBus platform. It provides Japanese input method from
+libanthy.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+ <use>
+ <flag name="deprecated">Install deprecated pygtk2 library</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-i18n/ibus-cangjie/Manifest b/app-i18n/ibus-cangjie/Manifest
new file mode 100644
index 000000000000..ad5798554775
--- /dev/null
+++ b/app-i18n/ibus-cangjie/Manifest
@@ -0,0 +1,4 @@
+DIST ibus-cangjie-2.1.tar.xz 147796 SHA256 00563b16fdbc8033e019b37e3ee17f62fb5dd05c68fd67b114909d7261cd433c SHA512 8ac4b7d9ecd91f9a04190db2aeda595f0740c10afe49aa7f5961eb30962fec5874131c4831b3bf473b008549bb2bb51195c6ab81f32008edbe4f3239e69afadf WHIRLPOOL 6def3a79d6f38382844340e1a1bb5a66911c5db3e260f295c7d5db66b1e4d314ec23f5df184cb4eb6a236688bffad54e61df6604c4a758a622aab4e6c86f4d99
+DIST ibus-cangjie-2.2.tar.xz 148012 SHA256 7c816173d8f79072ada988d7770928572d28be5dd375b4f7e690c9f57dd49018 SHA512 847e6bcc6e89fa864073937b34d5abf26a598b867881fd45d962b107a84470585040afcac5152f4f237be4175a53acad3ac8e7eb48fd8bae8ff2cdd04e2de70b WHIRLPOOL 278b125a9ef1c95c92a5a7a39a7c742bac3fca92b021dffeb156814be5a71fd0d0a3ec1f3fbb141d40a703626914ffc2b26e6d8741cf29415473b293ce8ab56d
+DIST ibus-cangjie-2.3.tar.xz 151184 SHA256 88d4cbf4d1de5cdb90b880a0f2014fbf2c18bf2581760408442bb8195c89e7ff SHA512 adbd51cbd6e4e816c12ab230c9173cf884fc300b886da51a40cb3956b66d43cb13fd477b4923b43032efb5c82d410c1766bb1f6d18445fa704b7db91e13d2497 WHIRLPOOL 0fd4e5ecc0fe8f83367e16e848ad69c02b7a973bde9c705431afe131c1d4dfe78445f62cff34dae1f198c4a4846ab114bc08fd7f3a2e616dd730a4b6f8690c7c
+DIST ibus-cangjie-2.4.tar.xz 150616 SHA256 299a60f1df063bfadc68c5420cbddb5d1a0de31935d95e414f75e0f93e27ba49 SHA512 cef9562fc4a5f3b78881c09b43e502f02322148e501022d3f80989caef4ca98ae26903e9a3dcc422feeba7712a8321c731ba229429e52fe919db5144aa0ead47 WHIRLPOOL a183d66bc53007046a2b3ffb778e6f08c39c709cb5e0d5558e5db617155bb4bc1de2df015f5668f4d6022faecb816171766039658ee8e69621abb0d73869d82d
diff --git a/app-i18n/ibus-cangjie/files/ibus-cangjie-gtk-unit-test.patch b/app-i18n/ibus-cangjie/files/ibus-cangjie-gtk-unit-test.patch
new file mode 100644
index 000000000000..c3842f6945b2
--- /dev/null
+++ b/app-i18n/ibus-cangjie/files/ibus-cangjie-gtk-unit-test.patch
@@ -0,0 +1,12 @@
+diff --git a/tests/test_prefs.py b/tests/test_prefs.py
+index d1bb438..e568939 100644
+--- a/tests/test_prefs.py
++++ b/tests/test_prefs.py
+@@ -37,6 +37,7 @@ class PrefsTestCase(unittest.TestCase):
+ except ET.ParseError as e:
+ raise AssertionError(e)
+
++ @unittest.skip("Importing Gtk doesn't raise a RuntimeError on recent Fedora")
+ def test_ui_file_is_valid_gtk_builder(self):
+ try:
+ from gi.repository import Gtk
diff --git a/app-i18n/ibus-cangjie/ibus-cangjie-2.1.ebuild b/app-i18n/ibus-cangjie/ibus-cangjie-2.1.ebuild
new file mode 100644
index 000000000000..bcddcee08c2b
--- /dev/null
+++ b/app-i18n/ibus-cangjie/ibus-cangjie-2.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{3_3,3_4} )
+
+inherit autotools-utils gnome2-utils python-r1 eutils
+
+DESCRIPTION="The IBus engine for users of the Cangjie and Quick input methods"
+HOMEPAGE="http://cangjians.github.io"
+SRC_URI="http://cangjians.github.io/downloads/ibus-cangjie/ibus-cangjie-${PV}.tar.xz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ dev-util/intltool
+ sys-devel/gettext"
+
+RDEPEND=">=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ virtual/libintl
+ ${PYTHON_DEPS}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-gtk-unit-test.patch"
+}
+
+src_configure() {
+ python_foreach_impl autotools-utils_src_configure
+}
+
+src_compile() {
+ python_foreach_impl autotools-utils_src_compile
+}
+
+src_install() {
+ python_foreach_impl autotools-utils_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-cangjie/ibus-cangjie-2.2.ebuild b/app-i18n/ibus-cangjie/ibus-cangjie-2.2.ebuild
new file mode 100644
index 000000000000..066aa8f449c4
--- /dev/null
+++ b/app-i18n/ibus-cangjie/ibus-cangjie-2.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{3_3,3_4} )
+
+inherit autotools-utils gnome2-utils python-r1 eutils
+
+DESCRIPTION="The IBus engine for users of the Cangjie and Quick input methods"
+HOMEPAGE="http://cangjians.github.io"
+SRC_URI="https://github.com/Cangjians/ibus-cangjie/releases/download/v${PV}/ibus-cangjie-${PV}.tar.xz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ dev-util/intltool
+ sys-devel/gettext"
+
+RDEPEND=">=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ virtual/libintl
+ ${PYTHON_DEPS}"
+
+src_configure() {
+ python_foreach_impl autotools-utils_src_configure
+}
+
+src_compile() {
+ python_foreach_impl autotools-utils_src_compile
+}
+
+src_install() {
+ python_foreach_impl autotools-utils_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-cangjie/ibus-cangjie-2.3.ebuild b/app-i18n/ibus-cangjie/ibus-cangjie-2.3.ebuild
new file mode 100644
index 000000000000..066aa8f449c4
--- /dev/null
+++ b/app-i18n/ibus-cangjie/ibus-cangjie-2.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{3_3,3_4} )
+
+inherit autotools-utils gnome2-utils python-r1 eutils
+
+DESCRIPTION="The IBus engine for users of the Cangjie and Quick input methods"
+HOMEPAGE="http://cangjians.github.io"
+SRC_URI="https://github.com/Cangjians/ibus-cangjie/releases/download/v${PV}/ibus-cangjie-${PV}.tar.xz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ dev-util/intltool
+ sys-devel/gettext"
+
+RDEPEND=">=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ virtual/libintl
+ ${PYTHON_DEPS}"
+
+src_configure() {
+ python_foreach_impl autotools-utils_src_configure
+}
+
+src_compile() {
+ python_foreach_impl autotools-utils_src_compile
+}
+
+src_install() {
+ python_foreach_impl autotools-utils_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-cangjie/ibus-cangjie-2.4.ebuild b/app-i18n/ibus-cangjie/ibus-cangjie-2.4.ebuild
new file mode 100644
index 000000000000..066aa8f449c4
--- /dev/null
+++ b/app-i18n/ibus-cangjie/ibus-cangjie-2.4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{3_3,3_4} )
+
+inherit autotools-utils gnome2-utils python-r1 eutils
+
+DESCRIPTION="The IBus engine for users of the Cangjie and Quick input methods"
+HOMEPAGE="http://cangjians.github.io"
+SRC_URI="https://github.com/Cangjians/ibus-cangjie/releases/download/v${PV}/ibus-cangjie-${PV}.tar.xz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ dev-util/intltool
+ sys-devel/gettext"
+
+RDEPEND=">=app-i18n/ibus-1.4.1
+ app-i18n/libcangjie
+ dev-python/cangjie[${PYTHON_USEDEP}]
+ virtual/libintl
+ ${PYTHON_DEPS}"
+
+src_configure() {
+ python_foreach_impl autotools-utils_src_configure
+}
+
+src_compile() {
+ python_foreach_impl autotools-utils_src_compile
+}
+
+src_install() {
+ python_foreach_impl autotools-utils_src_install
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus-cangjie/metadata.xml b/app-i18n/ibus-cangjie/metadata.xml
new file mode 100644
index 000000000000..7a8c0e170875
--- /dev/null
+++ b/app-i18n/ibus-cangjie/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>brendan@horan.hk</email>
+ <name>Brendan Horan</name>
+ <description>Proxy - Maintainer. Assign bugs to him</description>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Cangjians/ibus-cangjie</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-chewing/Manifest b/app-i18n/ibus-chewing/Manifest
new file mode 100644
index 000000000000..04951f440749
--- /dev/null
+++ b/app-i18n/ibus-chewing/Manifest
@@ -0,0 +1 @@
+DIST ibus-chewing-1.4.7-Source.tar.gz 108078 SHA256 73426b024be52eea0182f6b8c7936482ca2df7754e971e0b7980e504afdf8af2 SHA512 70e9c4950ac846c2f0087200d3b42f845ef8f911962d3f6bf37a3a0054606fa0fc061daa5dac390d022dbd29801fbcae596d2c5126270eb6e9843a9e0af4486e WHIRLPOOL 67b12375adfcc40c9e61e8f69e1bddc8b7c2354e9bdbe4a8fde97c6db3f212ca5b426428e1bf96ede1d5c55f5ffe230a57acd026ef1c0b960ee4cdc692aa35ca
diff --git a/app-i18n/ibus-chewing/ibus-chewing-1.4.7.ebuild b/app-i18n/ibus-chewing/ibus-chewing-1.4.7.ebuild
new file mode 100644
index 000000000000..2afcc7fa0686
--- /dev/null
+++ b/app-i18n/ibus-chewing/ibus-chewing-1.4.7.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit cmake-utils
+
+MY_P=${P}-Source
+
+DESCRIPTION="The Chewing IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND="x11-libs/libXtst
+ >=app-i18n/ibus-1.3
+ >=dev-libs/libchewing-0.3.3
+ x11-libs/gtk+:2
+ dev-util/gob:2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+CMAKE_IN_SOURCE_BUILD=1
+
+DOCS="AUTHORS ChangeLog README RELEASE-NOTES.txt USER-GUIDE"
+
+src_configure() {
+ local mycmakeargs=(
+ -DPRJ_DOC_DIR=/usr/share/doc/${PF}
+ )
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_make all translations
+}
diff --git a/app-i18n/ibus-chewing/metadata.xml b/app-i18n/ibus-chewing/metadata.xml
new file mode 100644
index 000000000000..7d84776d4dff
--- /dev/null
+++ b/app-i18n/ibus-chewing/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">The Chewing engine for IBus platform. It provides Chinese input method from libchewing.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-fbterm/Manifest b/app-i18n/ibus-fbterm/Manifest
new file mode 100644
index 000000000000..6329759cca96
--- /dev/null
+++ b/app-i18n/ibus-fbterm/Manifest
@@ -0,0 +1 @@
+DIST ibus-fbterm-0.9.1.tar.gz 106808 SHA256 98437db4d5d15bbdca3e4b0a08f1bd1be544a305aa1d0f65fedb81b871da2e7c SHA512 7f5bbb0ebf5ad12f3bdccb7966cb1ff7f40f8ebfb94a5767e0382ef5eee24f22021a428ac8073e987c43f32d67cfb7922ffe63666d88dcbd56cfdbcd36f3156f WHIRLPOOL 110e38beadfd64e75b6a40b9885b8aa1dec30771aeaff5dcd4c0f7403d24faa63b6a72d6a3fe79ec3fc1eb09e0f5963dee85664d41849ce3d723e4996ef6ebff
diff --git a/app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.1.patch b/app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.1.patch
new file mode 100644
index 000000000000..08508c231804
--- /dev/null
+++ b/app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.1.patch
@@ -0,0 +1,23 @@
+diff -Nurap ibus-fbterm-0.9.1.orig//src/display.c ibus-fbterm-0.9.1//src/display.c
+--- ibus-fbterm-0.9.1.orig//src/display.c 2012-06-06 17:59:26.000000000 +0900
++++ ibus-fbterm-0.9.1//src/display.c 2012-06-06 18:05:22.000000000 +0900
+@@ -212,7 +212,7 @@ static void calculate_status_win()
+ IBusProperty *prop = ibus_prop_list_get(property_list, i);
+ if (!prop) break;
+
+- w += text_width(prop->label->text);
++ w += text_width(ibus_property_get_label(prop)->text);
+ }
+
+ status_bar_win.x = cursor_x;
+@@ -238,8 +238,8 @@ static void draw_status_bar()
+ IBusProperty *prop = ibus_prop_list_get(property_list, i);
+ if (!prop) break;
+
+- draw_text(x, y, COLOR_FG, COLOR_BG, prop->label->text, strlen(prop->label->text));
+- x += FW(text_width(prop->label->text));
++ draw_text(x, y, COLOR_FG, COLOR_BG, ibus_property_get_label(prop)->text, strlen(ibus_property_get_label(prop)->text));
++ x += FW(text_width(ibus_property_get_label(prop)->text));
+
+ char space = ' ';
+ draw_text(x, y, COLOR_FG, COLOR_BG, &space, 1);
diff --git a/app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.99.patch b/app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.99.patch
new file mode 100644
index 000000000000..6cf858659049
--- /dev/null
+++ b/app-i18n/ibus-fbterm/files/ibus-fbterm-0.9.1-ibus-1.4.99.patch
@@ -0,0 +1,22 @@
+diff --git a/src/ibus-fbterm.c b/src/ibus-fbterm.c
+index ffb7401..b4ddb64 100644
+--- a/src/ibus-fbterm.c
++++ b/src/ibus-fbterm.c
+@@ -119,13 +119,17 @@ static void im_active()
+ debug("im active\n");
+ modifier_state = 0;
+ init_keycode_state();
++#if ! IBUS_CHECK_VERSION(1, 4, 99)
+ ibus_input_context_enable(ibus_ctx);
++#endif
+ }
+
+ static void im_deactive()
+ {
+ debug("im deactive\n");
++#if ! IBUS_CHECK_VERSION(1, 4, 99)
+ ibus_input_context_disable(ibus_ctx);
++#endif
+
+ auxiliary_text_win.w = 0;
+ lookup_table_win.w = 0;
diff --git a/app-i18n/ibus-fbterm/ibus-fbterm-0.9.1.ebuild b/app-i18n/ibus-fbterm/ibus-fbterm-0.9.1.ebuild
new file mode 100644
index 000000000000..53fedfcf7e8d
--- /dev/null
+++ b/app-i18n/ibus-fbterm/ibus-fbterm-0.9.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+inherit autotools-utils
+
+DESCRIPTION="ibus-fbterm is a input method for FbTerm based on iBus"
+HOMEPAGE="http://ibus-fbterm.googlecode.com"
+SRC_URI="https://ibus-fbterm.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-1.4.1
+ app-i18n/fbterm"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-ibus-1.4.1.patch
+ "${FILESDIR}"/${P}-ibus-1.4.99.patch
+)
diff --git a/app-i18n/ibus-fbterm/metadata.xml b/app-i18n/ibus-fbterm/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/ibus-fbterm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/ibus-handwrite/Manifest b/app-i18n/ibus-handwrite/Manifest
new file mode 100644
index 000000000000..9fdf3cb8eb43
--- /dev/null
+++ b/app-i18n/ibus-handwrite/Manifest
@@ -0,0 +1 @@
+DIST ibus-handwrite-2.1.4.tar.bz2 237980 SHA256 fa4ec0624e1ca904d8026fda75a26f0edd3ac6c781c28c03262e4c6ec52ceb34 SHA512 fca7129edb7433e7ea6df1ce67b3f27285fe102cc029a7a1bdb8ba0402407bd81724d1b14667d342ef41491acff03e9c152b748e4fee5387f315d4673c2964e6 WHIRLPOOL 13facb5d7c4a34586202cc1d6b46eb857aaf3649fb64ca44a5b367135860217c554d0cf48656096ac43cc3411b0466c9b2a468d9e2dc99ddac4d7729ff0ad6d9
diff --git a/app-i18n/ibus-handwrite/files/ibus-handwrite-link.patch b/app-i18n/ibus-handwrite/files/ibus-handwrite-link.patch
new file mode 100644
index 000000000000..bd73e4f41f46
--- /dev/null
+++ b/app-i18n/ibus-handwrite/files/ibus-handwrite-link.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.ac b/configure.ac
+index 8625fe9..20fdd42 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -80,6 +80,8 @@ AS_IF([test "x${have_zinnia}" = "xyes" ],[
+ AM_CONDITIONAL(WITH_ZINNIA,[false])
+ ])
+
++AC_SEARCH_LIBS([atan2],[m])
++
+ # check ibus
+ PKG_CHECK_MODULES(IBUS, [
+ ibus-1.0 >= 1.3
diff --git a/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild b/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild
new file mode 100644
index 000000000000..56390185b44b
--- /dev/null
+++ b/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1 autotools-utils multilib
+
+DESCRIPTION="hand write recognition/input using ibus IM engine"
+HOMEPAGE="http://code.google.com/p/ibus-handwrite/"
+SRC_URI="http://ibus-handwrite.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls +zinnia"
+
+RDEPEND="zinnia? ( app-i18n/zinnia app-i18n/zinnia-tomoe )
+ >=app-i18n/ibus-1.3.0
+ >=x11-libs/gtk+-2.10
+ x11-libs/gtkglext"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-link.patch #bug #501954
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable nls)
+ $(use_enable zinnia)
+ $(use_with zinnia zinnia-tomoe "${EPREFIX}"/usr/$(get_libdir)/zinnia/model/tomoe)
+ )
+ autotools-utils_src_configure
+}
diff --git a/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4.ebuild b/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4.ebuild
new file mode 100644
index 000000000000..f5f7bd12611c
--- /dev/null
+++ b/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils python autotools-utils multilib
+
+DESCRIPTION="hand write recognition/input using ibus IM engine"
+HOMEPAGE="http://code.google.com/p/ibus-handwrite/"
+SRC_URI="http://ibus-handwrite.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls +zinnia"
+
+RDEPEND="zinnia? ( app-i18n/zinnia app-i18n/zinnia-tomoe )
+ >=app-i18n/ibus-1.3.0
+ >=x11-libs/gtk+-2.10
+ x11-libs/gtkglext"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable nls)
+ $(use_enable zinnia)
+ $(use_with zinnia zinnia-tomoe "${EPREFIX}"/usr/$(get_libdir)/zinnia/model/tomoe)
+ )
+ autotools-utils_src_configure
+}
diff --git a/app-i18n/ibus-handwrite/metadata.xml b/app-i18n/ibus-handwrite/metadata.xml
new file mode 100644
index 000000000000..b705e0c6c1e7
--- /dev/null
+++ b/app-i18n/ibus-handwrite/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+<use>
+ <flag name="zinnia">Build with <pkg>app-i18n/zinnia</pkg> engine.</flag>
+</use>
+</pkgmetadata>
diff --git a/app-i18n/ibus-hangul/Manifest b/app-i18n/ibus-hangul/Manifest
new file mode 100644
index 000000000000..f044b679a005
--- /dev/null
+++ b/app-i18n/ibus-hangul/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-hangul-1.4.0.tar.gz 439462 SHA256 a955ec0c9ea90ecd8e8d0fd2de1596a5ba1186463862c387d74a418d1707ca0a SHA512 a2ed7c5ec344d31a37fa3decc502d0b2d724f08c668e6072eade7aa5bdbaba0b5812daf5fb5503e6477d0b289f248894eb81f70729e2a87a40516b1d4d09a6de WHIRLPOOL 06c2eeb6d975c414cd3209500ef562e834c02e7e1c96915cc977a9ff9d8779128e978d52cc8f11940d6a9c23ef34f285d2be63b978f2fe6c3aaf253349e8b949
+DIST ibus-hangul-1.4.1.tar.gz 484065 SHA256 8b7cbc124850df9fb78cdcb38b138f10c648b5519d36a92107616606678b662d SHA512 80d893c33e06108e1477bab067d24e333c9fbfaa3f1a839d9070f2b78694ff80965d9dd23cded3a512f1ed71b60ea5e8390ef9f87d2b63858b09158f90d74b9f WHIRLPOOL 0ec6a6d357e2b6234ddd448c72fa04668381b4de0e82d892e83378f3f1d40a31f5a28c667b68045555cdc74ed441640acc81c91d051683f664ea754021ea526c
+DIST ibus-hangul-1.4.2.tar.gz 483967 SHA256 de79dff94028673f1a00b24f9af35f37f59c12b1737d171a24ac4d34fad20b89 SHA512 ba046d3d234db71043e5dd2fbc8d38443dff4d422e360a09b05dd4c411705967495195b71f8feb5986683c20984217934e3bfe45547b4e43b83aa3f33756963f WHIRLPOOL 046a9b67f6730ffbecd9be13b734fbfc87614dd0e4a72b4e5f866bc6149719e7f5a8b9300faad48470ba20432d3baebd5d7bb173e04885802686237f6c421805
diff --git a/app-i18n/ibus-hangul/ibus-hangul-1.4.0.ebuild b/app-i18n/ibus-hangul/ibus-hangul-1.4.0.ebuild
new file mode 100644
index 000000000000..f37b95fc76a4
--- /dev/null
+++ b/app-i18n/ibus-hangul/ibus-hangul-1.4.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+PYTHON_DEPEND="2:2.5"
+
+inherit python
+
+DESCRIPTION="The Hangul engine for IBus input platform"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ =dev-python/pygobject-2*
+ =dev-python/pygtk-2*
+ >=app-i18n/libhangul-0.1
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? (
+ dev-util/intltool
+ >=sys-devel/gettext-0.17
+ )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ >py-compile
+ python_convert_shebangs 2 setup/ibus-setup-hangul.in
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-hangul/ibus-hangul-1.4.1.ebuild b/app-i18n/ibus-hangul/ibus-hangul-1.4.1.ebuild
new file mode 100644
index 000000000000..a2f8585fe061
--- /dev/null
+++ b/app-i18n/ibus-hangul/ibus-hangul-1.4.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+PYTHON_DEPEND="2:2.5"
+
+inherit python
+
+DESCRIPTION="The Hangul engine for IBus input platform"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ =dev-python/pygobject-2*
+ =dev-python/pygtk-2*
+ >=app-i18n/libhangul-0.1
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? (
+ dev-util/intltool
+ >=sys-devel/gettext-0.17
+ )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ python_clean_py-compile_files
+ sed -ie "s:python:${EPYTHON}:" \
+ setup/ibus-setup-hangul.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-hangul/ibus-hangul-1.4.2-r1.ebuild b/app-i18n/ibus-hangul/ibus-hangul-1.4.2-r1.ebuild
new file mode 100644
index 000000000000..4e1d96e45717
--- /dev/null
+++ b/app-i18n/ibus-hangul/ibus-hangul-1.4.2-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="The Hangul engine for IBus input platform"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.4[python,${PYTHON_USEDEP}]
+ =dev-python/pygobject-2*[${PYTHON_USEDEP}]
+ =dev-python/pygtk-2*[${PYTHON_USEDEP}]
+ >=app-i18n/libhangul-0.1
+ nls? ( virtual/libintl )
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? (
+ dev-util/intltool
+ >=sys-devel/gettext-0.17
+ )"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+src_prepare() {
+ sed -ie "s:python:${EPYTHON}:" \
+ setup/ibus-setup-hangul.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
diff --git a/app-i18n/ibus-hangul/ibus-hangul-1.4.2.ebuild b/app-i18n/ibus-hangul/ibus-hangul-1.4.2.ebuild
new file mode 100644
index 000000000000..895eb370f129
--- /dev/null
+++ b/app-i18n/ibus-hangul/ibus-hangul-1.4.2.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_DEPEND="2:2.5"
+
+inherit python
+
+DESCRIPTION="The Hangul engine for IBus input platform"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ =dev-python/pygobject-2*
+ =dev-python/pygtk-2*
+ >=app-i18n/libhangul-0.1
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? (
+ dev-util/intltool
+ >=sys-devel/gettext-0.17
+ )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ python_clean_py-compile_files
+ sed -ie "s:python:${EPYTHON}:" \
+ setup/ibus-setup-hangul.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-hangul/metadata.xml b/app-i18n/ibus-hangul/metadata.xml
new file mode 100644
index 000000000000..299a127ff9b1
--- /dev/null
+++ b/app-i18n/ibus-hangul/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">The Hangul engine for IBus platform. It provides Korean input method from libhangul.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-libpinyin/Manifest b/app-i18n/ibus-libpinyin/Manifest
new file mode 100644
index 000000000000..1d94abe71af9
--- /dev/null
+++ b/app-i18n/ibus-libpinyin/Manifest
@@ -0,0 +1 @@
+DIST ibus-libpinyin-1.6.92.tar.gz 1686249 SHA256 e611cff47b84345e1f60b8e94f74811bcfdf53b6ef7436b5cb5aff47eea743a3 SHA512 b4af0083c9c1dd4273c75372acf5d74ce317effdf56d8a0de8a3e3cd24f40b1b2dba91786d0a1cd72c9d7867b9ae630c4f69b04b378529dca8be0869e91d322d WHIRLPOOL 5dd8493bbbaa0f3d189a825bd4237a56276e88b8da91e75c1e3d49c1c1b2050ee2f9aaa4524ea00418690d8ff2085d6b6f686e60752e838f2515ca9d780347ef
diff --git a/app-i18n/ibus-libpinyin/ibus-libpinyin-1.6.92.ebuild b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.6.92.ebuild
new file mode 100644
index 000000000000..5d8824fd9b76
--- /dev/null
+++ b/app-i18n/ibus-libpinyin/ibus-libpinyin-1.6.92.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+AUTOTOOLS_AUTORECONF=1
+inherit autotools-utils python-single-r1
+
+DESCRIPTION="ibus-libpinyin - pinyin chinese input for ibus using libpinyin"
+HOMEPAGE="https://github.com/libpinyin/ibus-libpinyin"
+
+SRC_URI="https://github.com/libpinyin/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boost opencc lua"
+
+DEPEND="sys-apps/sed"
+RDEPEND=">=app-i18n/ibus-1.4[python,${PYTHON_USEDEP}]
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ >=app-i18n/libpinyin-1.0.0
+ app-i18n/pyzy
+ boost? ( >=dev-libs/boost-1.39 )
+ lua? ( >=dev-lang/lua-5.1 )"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_prepare() {
+ sed -i -e "s/python/${EPYTHON}/" setup/ibus-setup-libpinyin.in || die
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable boost )
+ $(use_enable opencc )
+ $(use_enable lua lua-extension )
+ --enable-english-input-mode
+ )
+ autotools-utils_src_configure
+}
diff --git a/app-i18n/ibus-libpinyin/metadata.xml b/app-i18n/ibus-libpinyin/metadata.xml
new file mode 100644
index 000000000000..5188ad1e2c5c
--- /dev/null
+++ b/app-i18n/ibus-libpinyin/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>graham.ramsey@gmail.com</email>
+ <name>Graham Ramsey</name>
+ </maintainer>
+ <longdescription lang="en">
+ PinYin engine for IBus platform. It provides a Chinese PinYin input method.
+ </longdescription>
+ <use>
+ <flag name="boost">Compile against <pkg>dev-libs/boost</pkg> libraries</flag>
+ <flag name="opencc">Enable support for <pkg>app-i18n/opencc</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="github">libpinyin/ibus-libpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-m17n/Manifest b/app-i18n/ibus-m17n/Manifest
new file mode 100644
index 000000000000..b19671acafc5
--- /dev/null
+++ b/app-i18n/ibus-m17n/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-m17n-1.3.2.tar.gz 414324 SHA256 c1e7529c63305bc5f2ddc4832550becd16e084beaf4217549bf1dd46a9b0e370 SHA512 6cbff2bf08043eb46d5e97c9303ebbb795c69b77c14d113c22fee2111eaee04ba8bc27bbd44b6640be02dd43f4b3711aba1b02fcbb350b8bca8d90dd20b4ba54 WHIRLPOOL 5b59e39028e19f3379abebf6b4ddf835bd01d28df623c2ef03f98a8f5b53acd985ca34d3f3d12cf5258c926de47523fddb48b78ceec0efb967586437e52bdc7e
+DIST ibus-m17n-1.3.3.tar.gz 431113 SHA256 0374aef2149bcf1a337c39ab642ee39da4dbb17758ee8c095f954ca835dc10bf SHA512 1ffb659a2c6837727365760267ebbdf0329cf0b103e1fa105d895f62fc580821f8cfc097687e631cb06881986a5482ecc720df451a5b27dc494cc07d1862c98d WHIRLPOOL 437e1720efe77952d12c9eca28a95e509a3cad288573754eccab8de4fbe3a88d2efbdc9e3c4997ebbc04825d3a318c7b49c384d2459b8ddd1d0af1fd4fd45aeb
+DIST ibus-m17n-1.3.4.tar.gz 436687 SHA256 79004c696c47cd909b39f547ce118a80b672ccdab77a4a5b1824e496d649ae70 SHA512 9e9bc290b0f0d68558d408f6e69aa3bd9bb767db827a95839b576b58c7a5056dedcbd9b0bf1aab5e26ab21e601acd67a53404a5fd54b436efaf2a706489f25c4 WHIRLPOOL 0109df716a9ed71ac7f1d9544e361e38c3b8a7ae81b271d54ab1979a611fc44698649d92dfc68131f29166f60875558421b9f033632c5125c27505465c73d0a4
diff --git a/app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild b/app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild
new file mode 100644
index 000000000000..4c06cfc18965
--- /dev/null
+++ b/app-i18n/ibus-m17n/ibus-m17n-1.3.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+DESCRIPTION="The M17N engine IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="gtk nls"
+
+RDEPEND=">=app-i18n/ibus-1.3
+ gtk? ( >=x11-libs/gtk+-2.12.12:2 )
+ dev-libs/m17n-lib
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=sys-devel/gettext-0.16.1"
+RDEPEND="${RDEPEND}
+ dev-db/m17n-db
+ dev-db/m17n-contrib"
+# gtk? (
+# || (
+# >=x11-libs/gtk+-2.90.5:3
+# >=x11-libs/gtk+-2.12.12:2
+# )
+# )
+
+src_configure() {
+ local myconf
+
+ econf \
+ $(use_with gtk gtk 2.0) \
+ $(use_enable nls) \
+ ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-m17n/ibus-m17n-1.3.3.ebuild b/app-i18n/ibus-m17n/ibus-m17n-1.3.3.ebuild
new file mode 100644
index 000000000000..b1b97aa70e5d
--- /dev/null
+++ b/app-i18n/ibus-m17n/ibus-m17n-1.3.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+DESCRIPTION="The M17N engine IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk nls"
+
+RDEPEND=">=app-i18n/ibus-1.3.99.20110817
+ dev-libs/libxml2
+ gtk? ( >=x11-libs/gtk+-2.12.12:2 )
+ dev-libs/m17n-lib
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=sys-devel/gettext-0.16.1"
+RDEPEND="${RDEPEND}
+ dev-db/m17n-db
+ dev-db/m17n-contrib"
+# gtk? (
+# || (
+# >=x11-libs/gtk+-2.90.5:3
+# >=x11-libs/gtk+-2.12.12:2
+# )
+# )
+
+src_configure() {
+ local myconf
+
+ econf \
+ $(use_with gtk gtk 2.0) \
+ $(use_enable nls) \
+ ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild b/app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild
new file mode 100644
index 000000000000..46b2bd81d70c
--- /dev/null
+++ b/app-i18n/ibus-m17n/ibus-m17n-1.3.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+DESCRIPTION="The M17N engine IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk nls"
+
+RDEPEND=">=app-i18n/ibus-1.3.99.20110817
+ dev-libs/libxml2
+ gtk? ( >=x11-libs/gtk+-2.12.12:2 )
+ dev-libs/m17n-lib
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=sys-devel/gettext-0.16.1"
+RDEPEND="${RDEPEND}
+ dev-db/m17n-db
+ dev-db/m17n-contrib"
+# gtk? (
+# || (
+# >=x11-libs/gtk+-2.90.5:3
+# >=x11-libs/gtk+-2.12.12:2
+# )
+# )
+
+src_configure() {
+ local myconf
+
+ econf \
+ $(use_with gtk gtk 2.0) \
+ $(use_enable nls) \
+ ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-m17n/metadata.xml b/app-i18n/ibus-m17n/metadata.xml
new file mode 100644
index 000000000000..09339d3d5744
--- /dev/null
+++ b/app-i18n/ibus-m17n/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">
+ M17N engine for IBus input platform. It allows input of many
+ launguaes using the input table maps from m17n-db.
+ </longdescription>
+ <upstream>
+ <remote-id type="cpe">cpe:/a:ibus_project:ibus-m17n</remote-id>
+ </upstream>
+ <use>
+ <flag name='gtk'>
+ Build the preference interfaces, based on
+ <pkg>x11-libs/gtk+</pkg> (GTK+ 2).
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/app-i18n/ibus-pinyin/Manifest b/app-i18n/ibus-pinyin/Manifest
new file mode 100644
index 000000000000..a1252d28495d
--- /dev/null
+++ b/app-i18n/ibus-pinyin/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-pinyin-1.4.0.tar.gz 1813003 SHA256 4fcaef6ac0533945c7feb4cb36fc72c102aae63b3fb4cbf338cdcc816182c24a SHA512 3aecac95d5ccdc494b885901780ceb72353350ed6d317e8ac9f34251e7a9354c63ebc5666af46f2fc47b4c7adf69950cb0ddee0cbd32a3e2194910b4974591e4 WHIRLPOOL 6591943f83cec6442196a4007e231711ba2a3121757f7a50381e2278ea8b3b0cda39fac10c0d761addb7235fa6eba0c7bdb8769dea4bb64498e03517482468f1
+DIST ibus-pinyin-1.5.0.tar.gz 692516 SHA256 a85d458dcc51ea9fd65849e63002428b3fcb3b39adcbea9214b5cb4a4cbdbc96 SHA512 b0cd849ee3154543747dde8994eec9aed01d67e0d9be308a2f0230cf22f0281cd8fcabd9763b24238547a37e54400bcd8e541937767b93f005d04302f0c00241 WHIRLPOOL 80fd0ec7306d857870a0ceecce67166dd4d03529d5bdc404347dea6568c9b7271dbeb6feeebd8587bb5ab6856cec7f269fe5be9dbad5eb1b4297054eb9cb5ab2
+DIST pinyin-database-1.2.99.tar.bz2 9977983 SHA256 32c7d07b9f41e1dfc0f9008f54eca8e6cb367e7f2b19ac94c49754442694c321 SHA512 5a7248870407f7f92c418ada49a275062325f2eb33a7eb4b91492e4b706ae70ba931b04377a758ce429fa64cd22e8bee2ac4279d4f205bbce406248eda1decf7 WHIRLPOOL 07043adf9d83eb40b1a53409a31b3711f041e2b4dd5cf3f8c2034c129c31270fd37f2e53ecf2da5503562cf103ccb0a4487fa606928ac38a8775e90ff376ce3a
diff --git a/app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch b/app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch
new file mode 100644
index 000000000000..b7be95d9c89f
--- /dev/null
+++ b/app-i18n/ibus-pinyin/files/ibus-pinyin-1.5.0-content-type-method.patch
@@ -0,0 +1,227 @@
+From f1accaa9a18bd4a1c7234b40e16ad9889c25a461 Mon Sep 17 00:00:00 2001
+From: Peng Wu <alexepico@gmail.com>
+Date: Wed, 6 Nov 2013 13:16:14 +0800
+Subject: [PATCH] support setContentType method
+
+---
+ src/PYBopomofoEngine.cc | 22 ++++++++++++++++++++++
+ src/PYBopomofoEngine.h | 7 +++++++
+ src/PYEngine.cc | 21 +++++++++++++++++++++
+ src/PYEngine.h | 3 +++
+ src/PYPinyinEngine.cc | 22 ++++++++++++++++++++++
+ src/PYPinyinEngine.h | 7 +++++++
+ 6 files changed, 82 insertions(+)
+
+diff --git a/src/PYBopomofoEngine.cc b/src/PYBopomofoEngine.cc
+index 581c4cf..4dfbc2c 100644
+--- a/src/PYBopomofoEngine.cc
++++ b/src/PYBopomofoEngine.cc
+@@ -42,6 +42,10 @@ BopomofoEngine::BopomofoEngine (IBusEngine *engine)
+ {
+ gint i;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM;
++#endif
++
+ /* create editors */
+ m_editors[MODE_INIT].reset (new BopomofoEditor (m_props, BopomofoConfig::instance ()));
+ m_editors[MODE_PUNCT].reset (new PunctEditor (m_props, BopomofoConfig::instance ()));
+@@ -72,6 +76,11 @@ BopomofoEngine::processKeyEvent (guint keyval, guint keycode, guint modifiers)
+ {
+ gboolean retval = FALSE;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ if (IBUS_INPUT_PURPOSE_PASSWORD == m_input_purpose)
++ return retval;
++#endif
++
+ /* check Shift + Release hotkey,
+ * and then ignore other Release key event */
+ if (modifiers & IBUS_RELEASE_MASK) {
+@@ -139,9 +148,22 @@ BopomofoEngine::focusIn (void)
+ void
+ BopomofoEngine::focusOut (void)
+ {
++
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM;
++#endif
++
+ reset ();
+ }
+
++#if IBUS_CHECK_VERSION(1, 5, 4)
++void
++BopomofoEngine::setContentType (guint purpose, guint hints)
++{
++ m_input_purpose = (IBusInputPurpose) purpose;
++}
++#endif
++
+ void
+ BopomofoEngine::reset (void)
+ {
+diff --git a/src/PYBopomofoEngine.h b/src/PYBopomofoEngine.h
+index ce41ce8..14b6780 100644
+--- a/src/PYBopomofoEngine.h
++++ b/src/PYBopomofoEngine.h
+@@ -36,6 +36,9 @@ public:
+ gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers);
+ void focusIn (void);
+ void focusOut (void);
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ void setContentType (guint purpose, guint hints);
++#endif
+ void reset (void);
+ void enable (void);
+ void disable (void);
+@@ -59,6 +62,10 @@ private:
+ private:
+ PinyinProperties m_props;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ IBusInputPurpose m_input_purpose;
++#endif
++
+ guint m_prev_pressed_key;
+
+ enum {
+diff --git a/src/PYEngine.cc b/src/PYEngine.cc
+index d9fa04a..da047b2 100644
+--- a/src/PYEngine.cc
++++ b/src/PYEngine.cc
+@@ -67,6 +67,12 @@ static gboolean ibus_pinyin_engine_process_key_event
+ guint modifiers);
+ static void ibus_pinyin_engine_focus_in (IBusEngine *engine);
+ static void ibus_pinyin_engine_focus_out (IBusEngine *engine);
++#if IBUS_CHECK_VERSION (1, 5, 4)
++static void ibus_pinyin_engine_set_content_type
++ (IBusEngine *engine,
++ guint purpose,
++ guint hints);
++#endif
+ static void ibus_pinyin_engine_reset (IBusEngine *engine);
+ static void ibus_pinyin_engine_enable (IBusEngine *engine);
+ static void ibus_pinyin_engine_disable (IBusEngine *engine);
+@@ -123,6 +129,10 @@ ibus_pinyin_engine_class_init (IBusPinyinEngineClass *klass)
+ engine_class->focus_in = ibus_pinyin_engine_focus_in;
+ engine_class->focus_out = ibus_pinyin_engine_focus_out;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ engine_class->set_content_type = ibus_pinyin_engine_set_content_type;
++#endif
++
+ engine_class->page_up = ibus_pinyin_engine_page_up;
+ engine_class->page_down = ibus_pinyin_engine_page_down;
+
+@@ -182,6 +192,17 @@ ibus_pinyin_engine_process_key_event (IBusEngine *engine,
+ return pinyin->engine->processKeyEvent (keyval, keycode, modifiers);
+ }
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++static void
++ibus_pinyin_engine_set_content_type (IBusEngine *engine,
++ guint purpose,
++ guint hints)
++{
++ IBusPinyinEngine *pinyin = (IBusPinyinEngine *) engine;
++ return pinyin->engine->setContentType (purpose, hints);
++}
++#endif
++
+ static void
+ ibus_pinyin_engine_property_activate (IBusEngine *engine,
+ const gchar *prop_name,
+diff --git a/src/PYEngine.h b/src/PYEngine.h
+index b74e6e8..22e1b79 100644
+--- a/src/PYEngine.h
++++ b/src/PYEngine.h
+@@ -44,6 +44,9 @@ public:
+ virtual gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers) = 0;
+ virtual void focusIn (void) = 0;
+ virtual void focusOut (void) = 0;
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ virtual void setContentType (guint purpose, guint hints) = 0;
++#endif
+ virtual void reset (void) = 0;
+ virtual void enable (void) = 0;
+ virtual void disable (void) = 0;
+diff --git a/src/PYPinyinEngine.cc b/src/PYPinyinEngine.cc
+index 7aea261..570187b 100644
+--- a/src/PYPinyinEngine.cc
++++ b/src/PYPinyinEngine.cc
+@@ -45,6 +45,10 @@ PinyinEngine::PinyinEngine (IBusEngine *engine)
+ {
+ gint i;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM;
++#endif
++
+ if (PinyinConfig::instance ().doublePinyin ())
+ m_editors[MODE_INIT].reset (new DoublePinyinEditor (m_props, PinyinConfig::instance ()));
+ else
+@@ -82,6 +86,11 @@ PinyinEngine::processKeyEvent (guint keyval, guint keycode, guint modifiers)
+ {
+ gboolean retval = FALSE;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ if (IBUS_INPUT_PURPOSE_PASSWORD == m_input_purpose)
++ return retval;
++#endif
++
+ /* check Shift + Release hotkey,
+ * and then ignore other Release key event */
+ if (modifiers & IBUS_RELEASE_MASK) {
+@@ -195,9 +204,22 @@ PinyinEngine::focusIn (void)
+ void
+ PinyinEngine::focusOut (void)
+ {
++
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ m_input_purpose = IBUS_INPUT_PURPOSE_FREE_FORM;
++#endif
++
+ reset ();
+ }
+
++#if IBUS_CHECK_VERSION(1, 5, 4)
++void
++PinyinEngine::setContentType (guint purpose, guint hints)
++{
++ m_input_purpose = (IBusInputPurpose) purpose;
++}
++#endif
++
+ void
+ PinyinEngine::reset (void)
+ {
+diff --git a/src/PYPinyinEngine.h b/src/PYPinyinEngine.h
+index fcce73e..de50269 100644
+--- a/src/PYPinyinEngine.h
++++ b/src/PYPinyinEngine.h
+@@ -35,6 +35,9 @@ public:
+ gboolean processKeyEvent (guint keyval, guint keycode, guint modifiers);
+ void focusIn (void);
+ void focusOut (void);
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ void setContentType (guint purpose, guint hints);
++#endif
+ void reset (void);
+ void enable (void);
+ void disable (void);
+@@ -58,6 +61,10 @@ private:
+ private:
+ PinyinProperties m_props;
+
++#if IBUS_CHECK_VERSION (1, 5, 4)
++ IBusInputPurpose m_input_purpose;
++#endif
++
+ guint m_prev_pressed_key;
+
+ enum {
+--
+1.8.3.1
+
diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild
new file mode 100644
index 000000000000..20a62d50e183
--- /dev/null
+++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+
+inherit python
+
+PYDB_TAR="pinyin-database-1.2.99.tar.bz2"
+DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz
+ http://ibus.googlecode.com/files/${PYDB_TAR}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boost lua nls opencc"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ dev-python/pygtk
+ sys-apps/util-linux
+ boost? ( >=dev-libs/boost-1.39 )
+ lua? (
+ >=dev-lang/lua-5.1
+ <dev-lang/lua-5.2.0
+ )
+ nls? ( virtual/libintl )
+ opencc? ( app-i18n/opencc )"
+DEPEND="${RDEPEND}
+ sys-apps/sed
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ sed -i -e "s/python/&2/" setup/ibus-setup-pinyin.in || die
+ cp "${DISTDIR}"/${PYDB_TAR} data/db/open-phrase/ || die
+ >py-compile
+}
+
+src_configure() {
+ econf \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable nls) \
+ $(use_enable opencc) \
+ --enable-db-open-phrase
+ #--disable-db-android \
+ #--disable-english-input-mode \
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild
new file mode 100644
index 000000000000..ed1645f20f60
--- /dev/null
+++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.4.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+
+inherit python
+
+PYDB_TAR="pinyin-database-1.2.99.tar.bz2"
+DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz
+ http://ibus.googlecode.com/files/${PYDB_TAR}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boost lua nls opencc"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ sys-apps/util-linux
+ boost? ( >=dev-libs/boost-1.39 )
+ lua? (
+ >=dev-lang/lua-5.1
+ <dev-lang/lua-5.2.0
+ )
+ nls? ( virtual/libintl )
+ opencc? ( app-i18n/opencc )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ cp "${DISTDIR}"/${PYDB_TAR} data/db/open-phrase/ || die
+ >py-compile
+}
+
+src_configure() {
+ econf \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable nls) \
+ $(use_enable opencc) \
+ --enable-db-open-phrase
+ #--disable-db-android \
+ #--disable-english-input-mode \
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild
new file mode 100644
index 000000000000..7df7141428c5
--- /dev/null
+++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+
+inherit python eutils
+
+DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="boost lua nls"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ dev-python/pygtk
+ app-i18n/pyzy
+ boost? ( >=dev-libs/boost-1.39 )
+ lua? (
+ >=dev-lang/lua-5.1
+ <dev-lang/lua-5.2 )
+ nls? ( virtual/libintl )"
+
+DEPEND="${RDEPEND}
+ sys-apps/sed
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ sed -i -e "s/python/&2/" setup/ibus-setup-pinyin.in || die
+ epatch "${FILESDIR}"/${P}-content-type-method.patch
+}
+
+src_configure() {
+ econf \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable nls) \
+ --enable-english-input-mode
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r2.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r2.ebuild
new file mode 100644
index 000000000000..3535cfc6ff2c
--- /dev/null
+++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0-r2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+inherit python-single-r1 eutils
+
+DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boost lua nls"
+
+RDEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.4[python,${PYTHON_USEDEP}]
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ app-i18n/pyzy
+ boost? ( >=dev-libs/boost-1.39 )
+ lua? (
+ >=dev-lang/lua-5.1
+ <dev-lang/lua-5.2 )
+ nls? ( virtual/libintl )"
+
+DEPEND="${RDEPEND}
+ sys-apps/sed
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+src_prepare() {
+ sed -i -e "s/python/${EPYTHON}/" setup/ibus-setup-pinyin.in || die
+ epatch "${FILESDIR}"/${P}-content-type-method.patch
+}
+
+src_configure() {
+ econf \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable nls) \
+ --enable-english-input-mode
+}
diff --git a/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0.ebuild b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0.ebuild
new file mode 100644
index 000000000000..48f386ddef9c
--- /dev/null
+++ b/app-i18n/ibus-pinyin/ibus-pinyin-1.5.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+
+inherit python eutils
+
+DESCRIPTION="Chinese PinYin IMEngine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boost lua nls"
+
+RDEPEND=">=app-i18n/ibus-1.4
+ app-i18n/pyzy
+ boost? ( >=dev-libs/boost-1.39 )
+ lua? (
+ >=dev-lang/lua-5.1
+ <dev-lang/lua-5.2 )
+ nls? ( virtual/libintl )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-content-type-method.patch
+}
+
+src_configure() {
+ econf \
+ $(use_enable boost) \
+ $(use_enable lua lua-extension) \
+ $(use_enable nls) \
+ --enable-english-input-mode
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-pinyin/metadata.xml b/app-i18n/ibus-pinyin/metadata.xml
new file mode 100644
index 000000000000..e48d0a4aca00
--- /dev/null
+++ b/app-i18n/ibus-pinyin/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+<longdescription lang="en">
+PinYin engine for IBus platform. It provides a Chinese PinYin input method.
+</longdescription>
+<use>
+ <flag name="boost">Compile against <pkg>dev-libs/boost</pkg> libraries</flag>
+ <flag name="opencc">Enable support for <pkg>app-i18n/opencc</pkg></flag>
+</use>
+</pkgmetadata>
+
diff --git a/app-i18n/ibus-qt/Manifest b/app-i18n/ibus-qt/Manifest
new file mode 100644
index 000000000000..bc5cb6fa3b97
--- /dev/null
+++ b/app-i18n/ibus-qt/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-qt-1.3.1-Source.tar.gz 141488 SHA256 4079577a240c961278f7bdab11a5ad546dff414c687c60560fdbc19208b3ac85 SHA512 2cd28f8ff3fff411496ccaf9ab67ab5332b7f2d2d0d0e3460dbeb34874ed931aa56c222c3ea5ce39053577b91cd2de4ebe01152039cd6def37c366ab3065cff2 WHIRLPOOL 585ead9a02d2014f7536aa633c72e07f8ce990c768d0aa9b5bf00105166f467307fb12457c5da4c2aa0b7b5cf9656d616de7d0e344e8d02161e123368bdad9ff
+DIST ibus-qt-1.3.2-Source.tar.gz 139496 SHA256 070c8ef4e6c74eddf7ddf4385936aed730c2dfe2160162e5c56b5158d1061a76 SHA512 b82c744265daec4bbda3c7f2f1874fab52aca77cbe726a04f350502e1e5637f5e07b5218a81efa6ccf3715e73638e6442376cdf73d5435e47c3bd3571dcbc0c5 WHIRLPOOL 926c8db73249c5c6697befb19f2e425a24ea531f9154295a32dbc8907270ae9ac07ef58c15aa99adc54289b136ee5f01189466f48ebc895b952685ae9457c850
+DIST ibus-qt-1.3.3.tar.gz 141523 SHA256 29bff835a4a07396c5f174d29c2266a39767c1abad48b2b0da1ab8d4c66fb44a SHA512 825a32fec51f10f466efd4255743a12ae98af63bacd07d5dc04e18fab6b830501b04491146c1f8bc92edd93dbf8eaeb68cf71062ffdbf25c2970d807b655c80a WHIRLPOOL 692f5dcf1e89c28a90a4fdfbd0bc62e00e5f680798ecfe9c7a47c9d26510c30415a07facae0e7e44f0416f7b3675a6c4445c8812294ec37ea523603a68d7c6a0
diff --git a/app-i18n/ibus-qt/files/ibus-qt-1.2.0.20091217-doc.patch b/app-i18n/ibus-qt/files/ibus-qt-1.2.0.20091217-doc.patch
new file mode 100644
index 000000000000..a2adbd7b9538
--- /dev/null
+++ b/app-i18n/ibus-qt/files/ibus-qt-1.2.0.20091217-doc.patch
@@ -0,0 +1,21 @@
+--- ibus-qt-1.2.0.20091217-Source.orig/CMakeLists.txt 2009-12-17 14:50:00.000000000 +0900
++++ ibus-qt-1.2.0.20091217-Source/CMakeLists.txt 2010-01-03 09:11:53.000000000 +0900
+@@ -76,7 +76,7 @@
+ # pkg_check_modules(IBUS REQUIRED ibus-1.0>=1.2.0)
+
+ # check doxygen
+-find_package(Doxygen REQUIRED)
++find_package(Doxygen)
+
+ # =====
+ # Define variables
+@@ -100,8 +100,7 @@
+ # install
+ set(MAIN_DOCS
+ AUTHORS
+- README
+- INSTALL)
++ README)
+ install(FILES ${MAIN_DOCS}
+ DESTINATION ${DOCDIR})
+
diff --git a/app-i18n/ibus-qt/files/ibus-qt-1.3-doc.patch b/app-i18n/ibus-qt/files/ibus-qt-1.3-doc.patch
new file mode 100644
index 000000000000..a35e673110ed
--- /dev/null
+++ b/app-i18n/ibus-qt/files/ibus-qt-1.3-doc.patch
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.old 2014-08-04 15:26:19.636569061 +0200
++++ CMakeLists.txt 2014-08-04 15:26:54.637618456 +0200
+@@ -77,7 +77,7 @@
+ pkg_check_modules(IBUS REQUIRED ibus-1.0>=1.3.7)
+
+ # check doxygen
+-find_package(Doxygen REQUIRED)
++find_package(Doxygen)
+
+ # =====
+ # Define variables
diff --git a/app-i18n/ibus-qt/files/ibus-qt-1.3.1-display-unset.patch b/app-i18n/ibus-qt/files/ibus-qt-1.3.1-display-unset.patch
new file mode 100644
index 000000000000..8325779282f4
--- /dev/null
+++ b/app-i18n/ibus-qt/files/ibus-qt-1.3.1-display-unset.patch
@@ -0,0 +1,76 @@
+From d2a4e30fdb92aeaf476dcaaf2b5d6f8275d6af70 Mon Sep 17 00:00:00 2001
+From: Peter Wu <lekensteyn@gmail.com>
+Date: Tue, 4 Sep 2012 19:40:08 +0200
+Subject: [PATCH] Do not crash on missing/invalid DISPLAY envvar.
+
+- Check whether the passed DISPLAY environment variable contains ":".
+
+- Fallback to "-display" parameter passed to QApplication.
+---
+ src/CMakeLists.txt | 2 ++
+ src/qibusbus.cpp | 23 ++++++++++++++++-------
+ 2 files changed, 18 insertions(+), 7 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 2ad5588..8866ac0 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -92,9 +92,11 @@ set_target_properties(
+ target_link_libraries(
+ ibus-qt
+ debug ${QT_QTCORE_LIBRARY_DEBUG}
++ debug ${QT_QTGUI_LIBRARY_DEBUG}
+ debug ${QT_QTDBUS_LIBRARY_DEBUG}
+ debug ${QT_QTXML_LIBRARY_DEBUG}
+ optimized ${QT_QTCORE_LIBRARY_RELEASE}
++ optimized ${QT_QTGUI_LIBRARY_RELEASE}
+ optimized ${QT_QTDBUS_LIBRARY_RELEASE}
+ optimized ${QT_QTXML_LIBRARY_RELEASE}
+ ${DBUS_LIBRARIES}
+diff --git a/src/qibusbus.cpp b/src/qibusbus.cpp
+index 6a45d65..ed8248a 100644
+--- a/src/qibusbus.cpp
++++ b/src/qibusbus.cpp
+@@ -12,7 +12,8 @@
+ #include "qibusbus.h"
+ #include "qibusibusproxy.h"
+ #include "qibusdbusproxy.h"
+-
++#include <X11/Xlib.h>
++#include <QX11Info>
+
+ namespace IBus {
+ /**
+@@ -121,15 +122,23 @@
+ Bus::getSocketPath (void)
+ {
+ QString display = getenv ("DISPLAY");
+- QStringList strs = display.split(":");
+ QString hostname = "unix";
+ QString display_number = "0";
++ /* fallback when -display is passed to QApplication with no DISPLAY env */
++ if (display == NULL) {
++ Display * dpy = QX11Info::display();
++ if (dpy)
++ display = XDisplayString(dpy);
++ }
++ if (display != NULL && display.contains(':')) {
++ QStringList strs = display.split(":");
+
+- if (!strs[0].isEmpty())
+- hostname = strs[0];
+- strs = strs[1].split(".");
+- if (!strs[0].isEmpty())
+- display_number = strs[0];
++ if (!strs[0].isEmpty())
++ hostname = strs[0];
++ strs = strs[1].split(".");
++ if (!strs[0].isEmpty())
++ display_number = strs[0];
++ }
+
+ QString path =
+ QDir::homePath() +
+--
+1.7.10
+
diff --git a/app-i18n/ibus-qt/files/ibus-qt-1.3.1-gold.patch b/app-i18n/ibus-qt/files/ibus-qt-1.3.1-gold.patch
new file mode 100644
index 000000000000..3d1080269110
--- /dev/null
+++ b/app-i18n/ibus-qt/files/ibus-qt-1.3.1-gold.patch
@@ -0,0 +1,15 @@
+ src/CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 8866ac0..f419141 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -100,6 +100,7 @@ target_link_libraries(
+ optimized ${QT_QTDBUS_LIBRARY_RELEASE}
+ optimized ${QT_QTXML_LIBRARY_RELEASE}
+ ${DBUS_LIBRARIES}
++ ${X11_LIBRARIES}
+ )
+
+ install(TARGETS ibus-qt
diff --git a/app-i18n/ibus-qt/files/ibus-qt-1.3.1-qvariant.patch b/app-i18n/ibus-qt/files/ibus-qt-1.3.1-qvariant.patch
new file mode 100644
index 000000000000..23981b35ded5
--- /dev/null
+++ b/app-i18n/ibus-qt/files/ibus-qt-1.3.1-qvariant.patch
@@ -0,0 +1,29 @@
+From 40e119bd5577fc383990ad02b175ec64292f764b Mon Sep 17 00:00:00 2001
+From: Jekyll Wu <adaptee@gmail.com>
+Date: Tue, 16 Oct 2012 11:24:06 +0900
+Subject: [PATCH] Fix a non-const lvalue build error with clang-3.1
+
+BUG=http://code.google.com/p/ibus/issues/detail?id=1506
+
+Review URL: https://codereview.appspot.com/6697048
+Patch from Jekyll Wu <adaptee@gmail.com>.
+---
+ src/qibusserializable.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/qibusserializable.h b/src/qibusserializable.h
+index 594d973..92a32ed 100644
+--- a/src/qibusserializable.h
++++ b/src/qibusserializable.h
+@@ -91,7 +91,7 @@ class Serializable : public Object
+
+ template<typename T>
+ QVariant &
+-qVariantFromSerializable (const Pointer<T> &p, QVariant & variant = QVariant ())
++qVariantFromSerializable (const Pointer<T> &p, QVariant & variant)
+ {
+ QDBusArgument argument;
+
+--
+1.8.1.5
+
diff --git a/app-i18n/ibus-qt/ibus-qt-1.3.1.ebuild b/app-i18n/ibus-qt/ibus-qt-1.3.1.ebuild
new file mode 100644
index 000000000000..c8a86f7c8874
--- /dev/null
+++ b/app-i18n/ibus-qt/ibus-qt-1.3.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit cmake-utils eutils multilib
+
+MY_P="${P}-Source"
+DESCRIPTION="Qt IBus library and Qt input method plugin"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND=">=app-i18n/ibus-1.3.7
+ >=sys-apps/dbus-1.2
+ x11-libs/libX11
+ >=dev-qt/qtcore-4.5:4
+ >=dev-qt/qtdbus-4.5:4"
+DEPEND="${RDEPEND}
+ >=dev-libs/icu-4:=
+ dev-util/cmake
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS="AUTHORS README TODO"
+
+mycmakeargs="-DLIBDIR=$(get_libdir) -DDOCDIR=${EPREFIX}/usr/share/doc/${PF} all"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.2.0.20091217-doc.patch" \
+ "${FILESDIR}"/${PN}-1.3.1-display-unset.patch \
+ "${FILESDIR}"/${PN}-1.3.1-gold.patch \
+ "${FILESDIR}"/${PN}-1.3.1-qvariant.patch
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc ; then
+ cd "${CMAKE_BUILD_DIR}"
+ emake docs || die
+ fi
+}
+
+src_install() {
+ if use doc ; then
+ HTML_DOCS="${CMAKE_BUILD_DIR}/docs/html/*"
+ fi
+
+ cmake-utils_src_install
+}
diff --git a/app-i18n/ibus-qt/ibus-qt-1.3.2.ebuild b/app-i18n/ibus-qt/ibus-qt-1.3.2.ebuild
new file mode 100644
index 000000000000..31922b676549
--- /dev/null
+++ b/app-i18n/ibus-qt/ibus-qt-1.3.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit cmake-utils eutils multilib
+
+MY_P="${P}-Source"
+DESCRIPTION="Qt IBus library and Qt input method plugin"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND=">=app-i18n/ibus-1.3.7
+ >=sys-apps/dbus-1.2
+ x11-libs/libX11
+ >=dev-qt/qtcore-4.5:4
+ >=dev-qt/qtdbus-4.5:4"
+DEPEND="${RDEPEND}
+ >=dev-libs/icu-4:=
+ dev-util/cmake
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS="AUTHORS README TODO"
+
+mycmakeargs="-DLIBDIR=$(get_libdir) -DDOCDIR=${EPREFIX}/usr/share/doc/${PF} all"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.2.0.20091217-doc.patch"
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc ; then
+ cd "${CMAKE_BUILD_DIR}"
+ emake docs || die
+ fi
+}
+
+src_install() {
+ if use doc ; then
+ HTML_DOCS="${CMAKE_BUILD_DIR}/docs/html/*"
+ fi
+
+ cmake-utils_src_install
+}
diff --git a/app-i18n/ibus-qt/ibus-qt-1.3.3.ebuild b/app-i18n/ibus-qt/ibus-qt-1.3.3.ebuild
new file mode 100644
index 000000000000..05f923f1c741
--- /dev/null
+++ b/app-i18n/ibus-qt/ibus-qt-1.3.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit cmake-utils eutils multilib
+
+DESCRIPTION="Qt IBus library and Qt input method plugin"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="https://github.com/ibus/ibus-qt/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND=">=app-i18n/ibus-1.3.7
+ >=sys-apps/dbus-1.2
+ x11-libs/libX11
+ >=dev-qt/qtcore-4.5:4
+ >=dev-qt/qtdbus-4.5:4"
+DEPEND="${RDEPEND}
+ >=dev-libs/icu-4:=
+ dev-util/cmake
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )"
+
+DOCS="AUTHORS README TODO"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.3-doc.patch )
+
+mycmakeargs="-DLIBDIR=$(get_libdir) all"
+
+src_compile() {
+ cmake-utils_src_compile
+
+ if use doc ; then
+ cd "${CMAKE_BUILD_DIR}"
+ emake docs || die
+ fi
+}
+
+src_install() {
+ if use doc ; then
+ HTML_DOCS="${CMAKE_BUILD_DIR}/docs/html/*"
+ fi
+
+ cmake-utils_src_install
+}
diff --git a/app-i18n/ibus-qt/metadata.xml b/app-i18n/ibus-qt/metadata.xml
new file mode 100644
index 000000000000..f605ee66a1f2
--- /dev/null
+++ b/app-i18n/ibus-qt/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">IBus means Intelligent Input Bus. It is a new input framework for Linux OS. It provides
+full featured and user friendly input method user interface. It also may help
+developers to develop input method easily.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ <remote-id type="github">ibus/ibus-qt</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-rime/Manifest b/app-i18n/ibus-rime/Manifest
new file mode 100644
index 000000000000..791d2d1536ca
--- /dev/null
+++ b/app-i18n/ibus-rime/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-rime-0.9.9.tar.gz 23912 SHA256 5bbb76abc763bdd3c83a5fe594f1488b34377b34b3f6e3c8c7b5cf86ab550cad SHA512 b18e6f3ba6c97e3b55900d9c4cb70d58f24b202bf2ae894ca861af10ddb028c193d9ac97e609f3b4f0f183b212b74180a02e5d823f235b4c799733933a48afb7 WHIRLPOOL 65d50aafe79014536da3fbbd274fcdf45b93223b1162dae52a2a6c99b2bf2f15192051011ae7aad13f2044fe24b6cdce018f0527cd9ff61164134893447e0431
+DIST ibus-rime-1.1.tar.gz 23418 SHA256 5aff3bbf5ce1eddd1243436ce2bbbb55a6c745b7cba8b6df4e5049f116a8b2be SHA512 2510f9019045013f85af5b8401286b338b739fa0e908a3e30e1d59971a43c32212f388d367b51942292e236859feb1a70d7e7b8deb17eafd8b4f878cc7ba018f WHIRLPOOL 1df8da49b1d3e420ea78cae9ee65b5bf646928480a7d13ed9d05358b274cb932f2026a232876a3c72402ced5957a03c82d3839f84b2a272f5e650aac17ed7360
+DIST ibus-rime-1.2.tar.gz 33396 SHA256 932e0ce6d480562fbb4e3e266d48cdf6007ce0288db4fa3f3cbc3bb1c69b6fce SHA512 e1851781a6d069a79d04890b5b0aa2a706e611c08df3fcb99f883eeedd4dc4eefcac207f35b5cf1d856a41f0153ec3fbb040b4e6f610727384baa19b52a64155 WHIRLPOOL 3ab5b34268913846f29ae3bacf0c46133ecf19728094850dd2a9d28fe78811af1a7ef2d9e6c04221c4ba44a6e5a8fdb50456836def20a61621639dda14d6d2bb
diff --git a/app-i18n/ibus-rime/ibus-rime-0.9.9.ebuild b/app-i18n/ibus-rime/ibus-rime-0.9.9.ebuild
new file mode 100644
index 000000000000..f65142c1a562
--- /dev/null
+++ b/app-i18n/ibus-rime/ibus-rime-0.9.9.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Rime Input Method Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+SRC_URI="http://rimeime.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="app-i18n/ibus
+ app-i18n/librime
+ x11-libs/libnotify"
+DEPEND="${COMMON_DEPEND}
+ dev-util/cmake"
+RDEPEND="${COMMON_DEPEND}
+ app-i18n/rime-data"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ sed -i -e "/^libexecdir/s:/lib:/libexec:" Makefile || die
+ sed -i -e "/exec/s:/usr/lib:/usr/libexec:" rime.xml || die
+}
diff --git a/app-i18n/ibus-rime/ibus-rime-1.1.ebuild b/app-i18n/ibus-rime/ibus-rime-1.1.ebuild
new file mode 100644
index 000000000000..0265250c5dce
--- /dev/null
+++ b/app-i18n/ibus-rime/ibus-rime-1.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Rime Input Method Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+SRC_URI="http://rimeime.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="app-i18n/ibus
+ app-i18n/librime
+ x11-libs/libnotify"
+DEPEND="${COMMON_DEPEND}
+ dev-util/cmake"
+RDEPEND="${COMMON_DEPEND}
+ app-i18n/rime-data"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ sed -i -e "/^libexecdir/s:/lib:/libexec:" Makefile || die
+ sed -i -e "/exec/s:/usr/lib:/usr/libexec:" rime.xml || die
+}
diff --git a/app-i18n/ibus-rime/ibus-rime-1.2.ebuild b/app-i18n/ibus-rime/ibus-rime-1.2.ebuild
new file mode 100644
index 000000000000..022b86fb58d1
--- /dev/null
+++ b/app-i18n/ibus-rime/ibus-rime-1.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Rime Input Method Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+SRC_URI="http://dl.bintray.com/lotem/rime/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="app-i18n/ibus
+ app-i18n/librime
+ x11-libs/libnotify"
+DEPEND="${COMMON_DEPEND}
+ dev-util/cmake"
+RDEPEND="${COMMON_DEPEND}
+ app-i18n/rime-data"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ sed -i -e "/^libexecdir/s:/lib:/libexec:" Makefile || die
+ sed -i -e "/exec/s:/usr/lib:/usr/libexec:" rime.xml || die
+}
diff --git a/app-i18n/ibus-rime/metadata.xml b/app-i18n/ibus-rime/metadata.xml
new file mode 100644
index 000000000000..0a8c950f3291
--- /dev/null
+++ b/app-i18n/ibus-rime/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>chen.sst@gmail.com</email>
+ <name>Gong Chen</name>
+ </maintainer>
+ <bugs-to>http://code.google.com/p/rimeime/issues/list</bugs-to>
+ <remote-id type="google-code">rimeime</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-skk/Manifest b/app-i18n/ibus-skk/Manifest
new file mode 100644
index 000000000000..2549378863eb
--- /dev/null
+++ b/app-i18n/ibus-skk/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-skk-1.3.9.tar.gz 459987 SHA256 67c615f6e070673e312da50e1125f2f0637b40e0eca4f6ea34325f41322b4ba6 SHA512 f68fbd82d087f7bcae50196854cbe650f8b4ef936238be170d74c33ede4c15370d0f0a8e65216a6ab2547bd2ab7a4b2a4f5a5ee96ed81b0034fcdff6872528fe WHIRLPOOL 3d026b36ee416fd101047b9babfb4cef6dcefb73aea2b359ce01a93fc68fe0e29ac0ce3a21094d0c087623d118730b6abc4aaa7d0062cbddb9db28914b8a4dca
+DIST ibus-skk-1.4.0.tar.gz 478964 SHA256 bbf4309215802dddc41bdb7dc0efad91da99957e07f9216193345b149e43b4d9 SHA512 b3c9520eeb139a315779cd12a3865935ac92063dddf7920e63bcdd9670041e9588ae3858c2e8f0f8f77fbed545630a6021e3296de76a239c4bd75e2927c216da WHIRLPOOL 13f56e9bed96d89a4e015d46e8623442efcb63376e4f42152bfe48809b53ffc7a08ff61311d5321ae1c0c6e6f653a05034085a7887faf6db454128f349b2c60e
+DIST ibus-skk-1.4.1.tar.gz 478018 SHA256 368b114a07f03d5d91cf333215f9429995efbbea73ee7efe2e37fb3bbc6d81de SHA512 d8c0bf2c92fd96486ed10e9dcac861b4fc16e741fd96764671352e9e67226887ad6aa4b76c4891411029d3f5bf692de1162f996a294cecc9e5231e90ea0df5f0 WHIRLPOOL 38f029ad775870c1112d7277337c6083a03008960c54a0a9e09cb2acad5e3dd7c56583645aab9d597870c4a27c4e6c85a11e9e0c33a1533d51c36fa301bdb094
diff --git a/app-i18n/ibus-skk/ibus-skk-1.3.9.ebuild b/app-i18n/ibus-skk/ibus-skk-1.3.9.ebuild
new file mode 100644
index 000000000000..fbd71b29621b
--- /dev/null
+++ b/app-i18n/ibus-skk/ibus-skk-1.3.9.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+PYTHON_DEPEND="2:2.5"
+
+inherit python
+
+DESCRIPTION="Japanese input method Anthy IMEngine for IBus Framework"
+HOMEPAGE="http://github.com/ueno/ibus-skk"
+SRC_URI="mirror://github/ueno/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.3
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+RDEPEND="${RDEPEND}
+ app-i18n/skk-jisyo"
+
+DOCS="ChangeLog NEWS README THANKS TODO"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ >py-compile
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-skk/ibus-skk-1.4.0.ebuild b/app-i18n/ibus-skk/ibus-skk-1.4.0.ebuild
new file mode 100644
index 000000000000..209efc318366
--- /dev/null
+++ b/app-i18n/ibus-skk/ibus-skk-1.4.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+PYTHON_DEPEND="2:2.5"
+
+inherit python
+
+DESCRIPTION="Japanese input method Anthy IMEngine for IBus Framework"
+HOMEPAGE="http://github.com/ueno/ibus-skk"
+SRC_URI="mirror://github/ueno/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.3
+ app-i18n/libskk
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+RDEPEND="${RDEPEND}
+ app-i18n/skk-jisyo"
+
+DOCS="ChangeLog NEWS README THANKS"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ >py-compile
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-skk/ibus-skk-1.4.1-r1.ebuild b/app-i18n/ibus-skk/ibus-skk-1.4.1-r1.ebuild
new file mode 100644
index 000000000000..2034ccc13148
--- /dev/null
+++ b/app-i18n/ibus-skk/ibus-skk-1.4.1-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Japanese input method Anthy IMEngine for IBus Framework"
+HOMEPAGE="http://github.com/ueno/ibus-skk"
+SRC_URI="mirror://github/ueno/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.3
+ >=app-i18n/libskk-0.0.11
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+RDEPEND="${RDEPEND}
+ app-i18n/skk-jisyo"
+
+DOCS="ChangeLog NEWS README THANKS"
+
+src_configure() {
+ econf $(use_enable nls)
+}
diff --git a/app-i18n/ibus-skk/ibus-skk-1.4.1.ebuild b/app-i18n/ibus-skk/ibus-skk-1.4.1.ebuild
new file mode 100644
index 000000000000..e4238a167ba0
--- /dev/null
+++ b/app-i18n/ibus-skk/ibus-skk-1.4.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+PYTHON_DEPEND="2:2.5"
+
+inherit python
+
+DESCRIPTION="Japanese input method Anthy IMEngine for IBus Framework"
+HOMEPAGE="http://github.com/ueno/ibus-skk"
+SRC_URI="mirror://github/ueno/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.3
+ >=app-i18n/libskk-0.0.11
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )"
+RDEPEND="${RDEPEND}
+ app-i18n/skk-jisyo"
+
+DOCS="ChangeLog NEWS README THANKS"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ >py-compile
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}
+}
diff --git a/app-i18n/ibus-skk/metadata.xml b/app-i18n/ibus-skk/metadata.xml
new file mode 100644
index 000000000000..8603c718073c
--- /dev/null
+++ b/app-i18n/ibus-skk/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">
+A Japanese Simple Kana Kanji Input Method Engine for ibus.
+</longdescription>
+ <upstream>
+ <remote-id type="github">ueno/ibus-skk</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-sunpinyin/Manifest b/app-i18n/ibus-sunpinyin/Manifest
new file mode 100644
index 000000000000..3d2f7a5b5bf9
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/Manifest
@@ -0,0 +1,2 @@
+DIST ibus-sunpinyin-2.0.3.tar.gz 218785 SHA256 9c15b89d683318f3b1f3475dcabf7a91ee815692b233a289bcadab3ab7f8fa3c SHA512 75620184540ca71d239f6370dda83dd791b46581b19b309e4e7924f3760072a4d58c06940360539d0ec98d88e24c61922025dbdf97bfe93eb0aba5a778651106 WHIRLPOOL 32bb79dc743ebc44c09cff5cae15ad449aa9951a87a5b2d4cef58788d61cbe4bdaa8923f1e2043243442eeec17d0455ca0b124581b2aa403a320a2da1beba368
+DIST sunpinyin-2.0.4_pre20130108.tar.xz 964764 SHA256 e650957aced55075448b7f02298d0c5cf59a8b8e041e9c7d92d24cb5170de93f SHA512 7c1dd7db8b800e9d436746a560a16de2c6777576868f2e7e28f6dcb767b91ccd62b974f9d4ce6bd6ce80d30e1ee83887c3ee03c227e7e9fa59c01db4867465b2 WHIRLPOOL 82535dcde38c2fce17877e465db7ebeaed14a7f305ad96ca451c5b35ae04244a94e9bde9ce51092a390964c557e39ab43742d2370342f9b72722b24f916c55d6
diff --git a/app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.3-force-switch.patch b/app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.3-force-switch.patch
new file mode 100644
index 000000000000..66b0165b9eb0
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.3-force-switch.patch
@@ -0,0 +1,33 @@
+diff --git a/wrapper/ibus/SConstruct b/wrapper/ibus/SConstruct
+index 92b1094..3e1166f 100644
+--- a/wrapper/ibus/SConstruct
++++ b/wrapper/ibus/SConstruct
+@@ -14,7 +14,7 @@ sources = ['src/debug.cpp',
+
+ locales = ['zh_CN']
+
+-cflags = '-O2 -g -pipe'
++cflags = '-O2 -g -pipe '
+ version = '2.0.3'
+
+ AddOption('--prefix', dest='prefix', metavar='DIR',
+@@ -62,9 +62,6 @@ if GetOption('datadir') is not None:
+
+ opts.Save('configure.conf', env)
+
+-if GetOption('rpath') is not None:
+- env.Append(LINKFLAGS='-Wl,-R -Wl,%s' % GetOption('rpath'))
+-
+ envvar = [('CC', 'CC'),
+ ('CXX', 'CXX'),
+ ('CFLAGS', 'CFLAGS'),
+@@ -85,6 +82,9 @@ extra_cflags += ' -DGETTEXT_PACKAGE=\'"%s"\'' % gettext_package
+ env.Append(CFLAGS=extra_cflags)
+ env.Append(CXXFLAGS=extra_cflags)
+
++if GetOption('rpath') is not None:
++ env.Append(LINKFLAGS=' -Wl,-R -Wl,%s' % GetOption('rpath'))
++
+ #
+ #==============================configure================================
+ #
diff --git a/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.3-r2.ebuild b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.3-r2.ebuild
new file mode 100644
index 000000000000..556c78d31edd
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.3-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_DEPEND="2:2.5"
+inherit eutils python scons-utils
+
+DESCRIPTION="The SunPinYin IMEngine for IBus Framework"
+HOMEPAGE="http://sunpinyin.googlecode.com"
+SRC_URI="${HOMEPAGE}/files/${P}.tar.gz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-i18n/ibus
+ ~app-i18n/sunpinyin-${PV}"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-force-switch.patch"
+}
+
+src_compile() {
+ escons --prefix="/usr"
+}
+
+src_install() {
+ escons --prefix="/usr" --install-sandbox="${D}" install
+}
diff --git a/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r1.ebuild b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r1.ebuild
new file mode 100644
index 000000000000..6b023a93a106
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_DEPEND="2:2.5"
+inherit python scons-utils toolchain-funcs
+
+DESCRIPTION="The SunPinYin IMEngine for IBus Framework"
+HOMEPAGE="https://sunpinyin.googlecode.com/"
+SRC_URI="http://dev.gentoo.org/~yngwin/distfiles/sunpinyin-${PV}.tar.xz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+nls"
+
+RDEPEND="app-i18n/ibus
+ ~app-i18n/sunpinyin-${PV}:=
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ default
+ mv "${WORKDIR}/sunpinyin-${PV}" "${S}" || die
+}
+
+src_configure() {
+ tc-export CXX
+ myesconsargs=(
+ --prefix="${EPREFIX}"/usr
+ --libexecdir="${EPREFIX}"/usr/libexec
+ )
+}
+
+src_compile() {
+ pushd "${S}"/wrapper/ibus
+ escons
+ popd
+}
+
+src_install() {
+ pushd "${S}"/wrapper/ibus
+ escons --install-sandbox="${ED}" install
+ popd
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/ibus-sunpinyin/setup
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/ibus-sunpinyin/setup
+}
diff --git a/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild
new file mode 100644
index 000000000000..92403c58d6ab
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.4_pre20130108-r2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit python-single-r1 scons-utils toolchain-funcs
+
+DESCRIPTION="The SunPinYin IMEngine for IBus Framework"
+HOMEPAGE="https://sunpinyin.googlecode.com/"
+SRC_URI="http://dev.gentoo.org/~yngwin/distfiles/sunpinyin-${PV}.tar.xz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+nls"
+
+RDEPEND="${PYTHON_DEPS}
+ app-i18n/ibus[python,${PYTHON_USEDEP}]
+ ~app-i18n/sunpinyin-${PV}:=
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+src_unpack() {
+ default
+ mv "${WORKDIR}/sunpinyin-${PV}" "${S}" || die
+}
+
+src_prepare() {
+ sed -i -e "s/python/${EPYTHON}/" wrapper/ibus/setup/ibus-setup-sunpinyin.in || die
+}
+
+src_configure() {
+ tc-export CXX
+ myesconsargs=(
+ --prefix="${EPREFIX}"/usr
+ --libexecdir="${EPREFIX}"/usr/libexec
+ )
+}
+
+src_compile() {
+ escons -C wrapper/ibus
+}
+
+src_install() {
+ escons -C wrapper/ibus --install-sandbox="${ED}" install
+}
diff --git a/app-i18n/ibus-sunpinyin/metadata.xml b/app-i18n/ibus-sunpinyin/metadata.xml
new file mode 100644
index 000000000000..d83314f5cabe
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">sunpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table-chinese/Manifest b/app-i18n/ibus-table-chinese/Manifest
new file mode 100644
index 000000000000..10ebfe1d3b6b
--- /dev/null
+++ b/app-i18n/ibus-table-chinese/Manifest
@@ -0,0 +1 @@
+DIST ibus-table-chinese-1.4.6-Source.tar.gz 7604868 SHA256 5e3422e59417e70e65cfd342cc3c0627a3b612b1405c493df0245a3841bd9386 SHA512 52a72c388ad287572ae334bb25537b6054f72ecdd641aa1c539b85a5e9a4cf97801ae38baa8ace1caabca95d845d2fb4156eb174ac7ad1c9123409749318d76d WHIRLPOOL bdfd4203fe8954bb02002bfa3868e67f9b1aebcf1a416cc281381601ac42020b98b344443889c7714ce456a171710f00b1f0c0f34f7eb42867a9da6382d7a174
diff --git a/app-i18n/ibus-table-chinese/ibus-table-chinese-1.4.6.ebuild b/app-i18n/ibus-table-chinese/ibus-table-chinese-1.4.6.ebuild
new file mode 100644
index 000000000000..7a6cbdb4f047
--- /dev/null
+++ b/app-i18n/ibus-table-chinese/ibus-table-chinese-1.4.6.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="Chinese input tables for ibus-table"
+HOMEPAGE="https://github.com/definite/ibus-table-chinese"
+MY_P="${P}-Source"
+SRC_URI="http://ibus.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-table-1.2.0"
+DEPEND="${RDEPEND}
+ dev-util/cmake-fedora"
+
+CMAKE_IN_SOURCE_BUILD=1
+S="${WORKDIR}/${MY_P}"
diff --git a/app-i18n/ibus-table-chinese/metadata.xml b/app-i18n/ibus-table-chinese/metadata.xml
new file mode 100644
index 000000000000..90760e39892f
--- /dev/null
+++ b/app-i18n/ibus-table-chinese/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>cjk@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ <remote-id type="github">definite/ibus-table-chinese</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table-code/Manifest b/app-i18n/ibus-table-code/Manifest
new file mode 100644
index 000000000000..d1393894c9e1
--- /dev/null
+++ b/app-i18n/ibus-table-code/Manifest
@@ -0,0 +1 @@
+DIST ibus-table-code-1.2.0.20100305.tar.gz 550208 SHA256 b81e85546ebe74b67f07801d3f25a420dbab936ad6832b8b7dd25fd2f33286df SHA512 20e0b1d8bcf525d2ef510ef3ba90780980c76e158b12d9be99eb73ea4abaf8fd0be119fe047a3ce87d9751365d7abaf3f4566e25fcf08eeaaace1acfa73c3de8 WHIRLPOOL e2e74f9b3d0329c28c8197055aaa5529f88c3deeeef2fc1d4eda9b6a3c1542acf72202cb67075e6c66d45b571d5d7f31a5f7fd3dd1cf1d7d93c1b6116865a449
diff --git a/app-i18n/ibus-table-code/ibus-table-code-1.2.0.20100305.ebuild b/app-i18n/ibus-table-code/ibus-table-code-1.2.0.20100305.ebuild
new file mode 100644
index 000000000000..83b30691d2a8
--- /dev/null
+++ b/app-i18n/ibus-table-code/ibus-table-code-1.2.0.20100305.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="The code tables for IBus-Table"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-table-1.2.0.20090912
+ !>app-i18n/ibus-table-1.3.9"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-table-code/metadata.xml b/app-i18n/ibus-table-code/metadata.xml
new file mode 100644
index 000000000000..e81802ffe5c5
--- /dev/null
+++ b/app-i18n/ibus-table-code/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">The package contains additional tables for Ibus-Table.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table-cyrillic/Manifest b/app-i18n/ibus-table-cyrillic/Manifest
new file mode 100644
index 000000000000..540481a1835a
--- /dev/null
+++ b/app-i18n/ibus-table-cyrillic/Manifest
@@ -0,0 +1 @@
+DIST ibus-table-cyrillic-1.2.0.20100305.tar.gz 93474 SHA256 cfe929df5c46da9ccd57efdd851ce2110f1143863a6e18b586f09319fba405b0 SHA512 420d335453def7a5a701562e22d87c20a3d22af7f42e7df3c58f4f3735e0f5d510198838a31632fedf3a34cd192a543f2466a27dabb5cec71e467dca98b6f231 WHIRLPOOL 45a6fdc87391f3aa7740be024aac83e8a61256465698efd098f3388d574159449ee542d169705dc3fe6a4696d8307b99823936995446fc412a6028d94f66fcda
diff --git a/app-i18n/ibus-table-cyrillic/ibus-table-cyrillic-1.2.0.20100305.ebuild b/app-i18n/ibus-table-cyrillic/ibus-table-cyrillic-1.2.0.20100305.ebuild
new file mode 100644
index 000000000000..e4aa6923cb68
--- /dev/null
+++ b/app-i18n/ibus-table-cyrillic/ibus-table-cyrillic-1.2.0.20100305.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Translit, Russian Traditional, Yawerty tables for IBus-Table"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-table-1.2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-table-cyrillic/metadata.xml b/app-i18n/ibus-table-cyrillic/metadata.xml
new file mode 100644
index 000000000000..b260e7d8963a
--- /dev/null
+++ b/app-i18n/ibus-table-cyrillic/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">ibus-table-cyrillic provides Transit, Russian Traditional, Yawerty input method on IBus-Table on IBus framework.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table-extraphrase/Manifest b/app-i18n/ibus-table-extraphrase/Manifest
new file mode 100644
index 000000000000..67b3417e457c
--- /dev/null
+++ b/app-i18n/ibus-table-extraphrase/Manifest
@@ -0,0 +1 @@
+DIST ibus-table-extraphrase-1.3.9.20110826.tar.gz 2200447 SHA256 4db86e1ea82398c0396a4e157dd2f50003c5445f421fda706560f9242f13c74e SHA512 5310cee7bd74455a732cd568a2a60887765588ef7fabdcd950f66fb2d5fab6dcdd059d2e460c0962117495c88656386a0c738dbd94f9ba553f3365fb3b42ce5d WHIRLPOOL 03a39e184d2bbaf47ef68aa28cd05da7d988109b9b09e70dd06ae54a41f66684d3dbace03cfdd161dc5d0eccbaf468a67c55125057af8bd82a59da1a8d453c47
diff --git a/app-i18n/ibus-table-extraphrase/ibus-table-extraphrase-1.3.9.20110826.ebuild b/app-i18n/ibus-table-extraphrase/ibus-table-extraphrase-1.3.9.20110826.ebuild
new file mode 100644
index 000000000000..671c7dceb915
--- /dev/null
+++ b/app-i18n/ibus-table-extraphrase/ibus-table-extraphrase-1.3.9.20110826.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Chinese extra phrases for ibus-table based IME"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-table-1.1"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/app-i18n/ibus-table-extraphrase/metadata.xml b/app-i18n/ibus-table-extraphrase/metadata.xml
new file mode 100644
index 000000000000..7c97bd6353d3
--- /dev/null
+++ b/app-i18n/ibus-table-extraphrase/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table-latin/Manifest b/app-i18n/ibus-table-latin/Manifest
new file mode 100644
index 000000000000..bef5649d0fcf
--- /dev/null
+++ b/app-i18n/ibus-table-latin/Manifest
@@ -0,0 +1 @@
+DIST ibus-table-latin-1.2.0.20100305.tar.gz 88608 SHA256 ed89dd5c669d4a6c69f147ee74f5495d05ba6c5425421950b46ab4a4099e4834 SHA512 103b176364f548e7aaf8b006354e82b1933fa791587de734f7d9474ad85b7f9918b0b85136eb391c07d8a8df9024f1013a5a604e30ad5f13db5647a9380eb2cf WHIRLPOOL ff4420ea39fd330f44e9dd2f7b9b9ed3f90e82d2b0c72fcf40cf0c56541ae84b723fcfc4aa794bd6af54b831f8f2f1214329d7aaf353261dfb1f9441b534c54e
diff --git a/app-i18n/ibus-table-latin/ibus-table-latin-1.2.0.20100305.ebuild b/app-i18n/ibus-table-latin/ibus-table-latin-1.2.0.20100305.ebuild
new file mode 100644
index 000000000000..df2074c05a86
--- /dev/null
+++ b/app-i18n/ibus-table-latin/ibus-table-latin-1.2.0.20100305.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="The Latin tables for IBus-Table"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-table-1.2.0.20090912"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-table-latin/metadata.xml b/app-i18n/ibus-table-latin/metadata.xml
new file mode 100644
index 000000000000..875d1031b779
--- /dev/null
+++ b/app-i18n/ibus-table-latin/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">The Latin tables for Ibus-Table.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table-tv/Manifest b/app-i18n/ibus-table-tv/Manifest
new file mode 100644
index 000000000000..7ee8d5269335
--- /dev/null
+++ b/app-i18n/ibus-table-tv/Manifest
@@ -0,0 +1 @@
+DIST ibus-table-tv-1.2.0.20100305.tar.gz 75183 SHA256 98acc450afdfdb7b6eabb43c78dbb60dc15921b7e04deb3ba4299e1f9358c990 SHA512 5bfe114f1cfd426d11dca103a636d59603264854c8f861de8716e48efe4c3ab1a1b6c8cff6820797799513c67a67d92a98de9ba577504b55fe41b7347922112f WHIRLPOOL 0d40ea44637bbc441deb7a26713007adf2d63671191a69e7a171f7cf0ed9a0daee6e46beeea280345a9848dba6e563ac6e4a89cc017c3b2ed06d349ad28e6bbc
diff --git a/app-i18n/ibus-table-tv/ibus-table-tv-1.2.0.20100305.ebuild b/app-i18n/ibus-table-tv/ibus-table-tv-1.2.0.20100305.ebuild
new file mode 100644
index 000000000000..79bcde9ad9bd
--- /dev/null
+++ b/app-i18n/ibus-table-tv/ibus-table-tv-1.2.0.20100305.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="The Thai and Viqr (Vietnamese) tables for IBus-Table"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/ibus-table-1.2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/ibus-table-tv/metadata.xml b/app-i18n/ibus-table-tv/metadata.xml
new file mode 100644
index 000000000000..db59448265e5
--- /dev/null
+++ b/app-i18n/ibus-table-tv/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">The Thai and Viqr (Vietnamese) tables for Ibus-Table.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-table/Manifest b/app-i18n/ibus-table/Manifest
new file mode 100644
index 000000000000..4880258ec816
--- /dev/null
+++ b/app-i18n/ibus-table/Manifest
@@ -0,0 +1,4 @@
+DIST ibus-table-1.2.0.20100111.tar.gz 419886 SHA256 0ae9e4628059978bbfd51af89fed66ce2ee0841f40e2b6ecd2cd1e10f7368044 SHA512 201baeaa74c5488783c2a99f3192a258113324e18fc9e8e8214be74c433b1ed6fc87faeda7f987df16a707b8733c9855322ec5c4404738d9fdfec53a3aec254a WHIRLPOOL acaf643cd315cadb3bd033a20a83474da51a68d24ca155c61b9ab9185eeb7937226c28f069d12eedcc89edf86d550fb929f29e4ba0ee39ca90a2431e005df8d3
+DIST ibus-table-1.3.0.20100621.tar.gz 421845 SHA256 c2c9604082bd3c50e76c2cd8494855485845147a6b9fe05d4fa1c4a2f6fd3324 SHA512 25192988b1194fc210545f967c4b5888cb790d12505c04cfbce54cacc013ad0e058de961b2321e837f50b41e44d4b9b77d687b4abd3654bb012c349b7d4099ab WHIRLPOOL 563892f540d3ac373d7817c4cf56bcd211376c764ef2eef60354633559dc20a12ba8066e5c755eb45f4e5f71d7c0e8cfb282c57e68d7f1826b79134246d43bdf
+DIST ibus-table-1.3.9.20110827.tar.gz 428810 SHA256 99c5eee5175233d8ee5678d3a16ef3ed76c029eaeb9792d811345a02652f0401 SHA512 508197f2d862cd10c3818df032c014e03a9ba35cc4e16394dad448dc3efa8d0d53c361d8caadd6108ce222cca0841dfa4f0a76daae5edb1a51f31c7c6692205d WHIRLPOOL 78a2aeddbd4efbb83bde51f2ef6ec86edfa2f7c73139b208863985781c8b09b85de3659b1f51210cbe805d1cf9c0390892a04b62e1d848e5796e9bf1f6502ed7
+DIST ibus-table-1.5.0.tar.gz 432844 SHA256 6ba89c70c50773d43927769a2c608f71b282afbf3538188f65b9c89ebdc1a184 SHA512 2c52da1b4d6ae8aec29e97a8a413b388912cfcfd15860ba0e65c97b139b14f8a7d4087eb196d516abe731df03a2e4904666194414242da8cf1f3f0b54696248e WHIRLPOOL cec2ad28dd8fa936738e7e2ae1ffa3c0e96a6d5c6cf88c74a98ed0900c31464ba405c6e4449977936733dc28f3c7768f22bb216fca2a583f1679a7bcb596c39d
diff --git a/app-i18n/ibus-table/files/ibus-table-1.5.0-pycompile.patch b/app-i18n/ibus-table/files/ibus-table-1.5.0-pycompile.patch
new file mode 100644
index 000000000000..a492607eca27
--- /dev/null
+++ b/app-i18n/ibus-table/files/ibus-table-1.5.0-pycompile.patch
@@ -0,0 +1,13 @@
+diff --git a/engine/Makefile.in b/engine/Makefile.in
+index c9d1a42..4d25a09 100644
+--- a/engine/Makefile.in
++++ b/engine/Makefile.in
+@@ -418,7 +418,7 @@ install-engine_tablePYTHON: $(engine_table_PYTHON)
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(engine_tabledir)" || exit $$?; \
+ done || exit $$?; \
+ if test -n "$$dlist"; then \
+- $(am__py_compile) --destdir "$(DESTDIR)" \
++ $(py_compile) --destdir "$(DESTDIR)" \
+ --basedir "$(engine_tabledir)" $$dlist; \
+ else :; fi
+
diff --git a/app-i18n/ibus-table/ibus-table-1.2.0.20100111.ebuild b/app-i18n/ibus-table/ibus-table-1.2.0.20100111.ebuild
new file mode 100644
index 000000000000..bcee465474c7
--- /dev/null
+++ b/app-i18n/ibus-table/ibus-table-1.2.0.20100111.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+inherit python
+
+DESCRIPTION="The Table Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ virtual/pkgconfig"
+
+src_prepare() {
+ mv py-compile py-compile.orig || die
+ ln -s "$(type -P true)" py-compile || die
+}
+
+src_configure() {
+ econf $(use_enable nls) --disable-additional
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}/engine
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}/engine
+}
diff --git a/app-i18n/ibus-table/ibus-table-1.3.0.20100621.ebuild b/app-i18n/ibus-table/ibus-table-1.3.0.20100621.ebuild
new file mode 100644
index 000000000000..3fcdbbfa3738
--- /dev/null
+++ b/app-i18n/ibus-table/ibus-table-1.3.0.20100621.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+inherit python
+
+DESCRIPTION="The Table Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ virtual/pkgconfig"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ mv py-compile py-compile.orig || die
+ ln -s "$(type -P true)" py-compile || die
+ python_convert_shebangs 2 engine/tabcreatedb.py || die
+ sed -i -e "s/python/python2/" \
+ engine/ibus-table-createdb.in engine/ibus-engine-table.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls) --disable-additional
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}/engine
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}/engine
+}
diff --git a/app-i18n/ibus-table/ibus-table-1.3.9.20110827-r1.ebuild b/app-i18n/ibus-table/ibus-table-1.3.9.20110827-r1.ebuild
new file mode 100644
index 000000000000..df7e0ec4f808
--- /dev/null
+++ b/app-i18n/ibus-table/ibus-table-1.3.9.20110827-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+inherit python
+
+DESCRIPTION="The Table Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ virtual/pkgconfig"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ mv py-compile py-compile.orig || die
+ ln -s "$(type -P true)" py-compile || die
+ python_convert_shebangs 2 engine/tabcreatedb.py || die
+ sed -i -e "s/python/python2/" \
+ engine/ibus-table-createdb.in engine/ibus-engine-table.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls) --disable-additional PYTHON="${EPREFIX}"/usr/bin/python2
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}/engine
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}/engine
+}
diff --git a/app-i18n/ibus-table/ibus-table-1.5.0-r1.ebuild b/app-i18n/ibus-table/ibus-table-1.5.0-r1.ebuild
new file mode 100644
index 000000000000..4466705acc32
--- /dev/null
+++ b/app-i18n/ibus-table/ibus-table-1.5.0-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+inherit eutils python-single-r1
+
+DESCRIPTION="The Table Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND="${PYTHON_DEPS}
+ >=app-i18n/ibus-1.2[python,${PYTHON_USEDEP}]
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ virtual/pkgconfig"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+src_prepare() {
+ python_fix_shebang .
+
+ sed -i -e "s/python/${EPYTHON}/" \
+ engine/ibus-table-createdb.in engine/ibus-engine-table.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/app-i18n/ibus-table/ibus-table-1.5.0.ebuild b/app-i18n/ibus-table/ibus-table-1.5.0.ebuild
new file mode 100644
index 000000000000..aaab9a442b77
--- /dev/null
+++ b/app-i18n/ibus-table/ibus-table-1.5.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_DEPEND="2:2.5"
+PYTHON_USE_WITH="sqlite"
+inherit eutils python
+
+DESCRIPTION="The Table Engine for IBus Framework"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/ibus-1.2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ virtual/pkgconfig"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-pycompile.patch
+
+ mv py-compile py-compile.orig || die
+ ln -s "$(type -P true)" py-compile || die
+ python_convert_shebangs 2 engine/tabcreatedb.py || die
+ sed -i -e "s/python/python2/" \
+ engine/ibus-table-createdb.in engine/ibus-engine-table.in || die
+}
+
+src_configure() {
+ econf $(use_enable nls) PYTHON="${EPREFIX}"/usr/bin/python2
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc AUTHORS ChangeLog NEWS README
+}
+
+pkg_postinst() {
+ python_mod_optimize /usr/share/${PN}/engine
+}
+
+pkg_postrm() {
+ python_mod_cleanup /usr/share/${PN}/engine
+}
diff --git a/app-i18n/ibus-table/metadata.xml b/app-i18n/ibus-table/metadata.xml
new file mode 100644
index 000000000000..46e3a1d32673
--- /dev/null
+++ b/app-i18n/ibus-table/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">The package contains general Table engine for IBus platform.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-tutcode/Manifest b/app-i18n/ibus-tutcode/Manifest
new file mode 100644
index 000000000000..a39be414be91
--- /dev/null
+++ b/app-i18n/ibus-tutcode/Manifest
@@ -0,0 +1,3 @@
+DIST ibus-tutcode-1.0.0.tar.bz2 216599 SHA256 d0d15f43960ffa0af22ddc7461add7e08f65d3006ed75de35090e5e42419d098 SHA512 36c5e0b74c5cefa221fc9c15ba3b334638044324730887a4c1b70a8c013d7b7651832503339edb28a15929e052d833a6b3f9cdc104a47b80ec62a38413d411f2 WHIRLPOOL 80031d2a65c8be9272f804b641488028a04025fa4f3ff2c13a8dac5413ac770ed0de40fc51c81a7eff2ede95652ae302c1bd5757e1643f7c66b457e8391ae294
+DIST ibus-tutcode-1.0.1.tar.bz2 217017 SHA256 5a3bd8a941602e33799dc6c8b09a38e0009b98c004ebf4557cc6391221909900 SHA512 2b0245f5188b91d668ea503793acbad149471300e593e13eef6f433bdc3e5ba89dca52cc843751c5be1bdfdede390c9b35ed8370d4246e06f3261b1fed31f0e2 WHIRLPOOL 149c7ca6e1b98068aa4e67132d704de8d7cca0b8f5a0edbb621f53f69aa28c665265430053668de3422648c4a11a8aec6595c2317bca4b00c4ed459ca2a96706
+DIST ibus-tutcode-1.0.2.tar.bz2 217894 SHA256 ccbdcffffb7e8fb63dca2fd1e5bbc638ca276ee9c4c4cfa7f097d20d1eabbde0 SHA512 f7845323396d24a3097cf475c8fa40890b923434e551b8941a6f4cb4d84a4aed7d7b293295ba515603131a8e03a99d58b19dc3d81a7ee13d8d7d904edb5ece02 WHIRLPOOL ae3f18605dab02a00a94048af7aa5a6863ae92020190c46abcf6e4b964e282140666e078ec64382ec3f1dba0f0726534143ad6feb9341169f7ccbe20aabcb249
diff --git a/app-i18n/ibus-tutcode/ibus-tutcode-1.0.0.ebuild b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.0.ebuild
new file mode 100644
index 000000000000..ecd356957c52
--- /dev/null
+++ b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="a Japanese TUT-Code input engine for IBus"
+HOMEPAGE="https://github.com/deton/ibus-tutcode/"
+SRC_URI="mirror://github/deton/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/python-2.5
+ >=sys-devel/gettext-0.16.1"
+RDEPEND="${DEPEND}
+ app-i18n/ibus"
+
+src_install() {
+ default
+ dodoc ${PN}.json.example
+}
diff --git a/app-i18n/ibus-tutcode/ibus-tutcode-1.0.1.ebuild b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.1.ebuild
new file mode 100644
index 000000000000..ecd356957c52
--- /dev/null
+++ b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="a Japanese TUT-Code input engine for IBus"
+HOMEPAGE="https://github.com/deton/ibus-tutcode/"
+SRC_URI="mirror://github/deton/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/python-2.5
+ >=sys-devel/gettext-0.16.1"
+RDEPEND="${DEPEND}
+ app-i18n/ibus"
+
+src_install() {
+ default
+ dodoc ${PN}.json.example
+}
diff --git a/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2-r1.ebuild b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..3f6c847322dd
--- /dev/null
+++ b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit python-single-r1
+
+DESCRIPTION="a Japanese TUT-Code input engine for IBus"
+HOMEPAGE="https://github.com/deton/ibus-tutcode/"
+SRC_URI="mirror://github/deton/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="test"
+
+CDEPEND="${PYTHON_DEPS}
+ >=sys-devel/gettext-0.16.1"
+DEPEND="${CDEPEND}
+ test? ( app-i18n/ibus )"
+RDEPEND="${CDEPEND}
+ app-i18n/ibus"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+src_prepare() {
+ sed -i -e "s/python/${EPYTHON}/" engine/ibus-engine-tutcode.in || die
+}
+
+src_install() {
+ default
+ dodoc ${PN}.json.example
+}
diff --git a/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2.ebuild b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2.ebuild
new file mode 100644
index 000000000000..c02ee9edaa11
--- /dev/null
+++ b/app-i18n/ibus-tutcode/ibus-tutcode-1.0.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="a Japanese TUT-Code input engine for IBus"
+HOMEPAGE="https://github.com/deton/ibus-tutcode/"
+SRC_URI="mirror://github/deton/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="test"
+
+CDEPEND=">=dev-lang/python-2.5
+ >=sys-devel/gettext-0.16.1"
+DEPEND="${CDEPEND}
+ test? ( app-i18n/ibus )"
+RDEPEND="${CDEPEND}
+ app-i18n/ibus"
+
+src_install() {
+ default
+ dodoc ${PN}.json.example
+}
diff --git a/app-i18n/ibus-tutcode/metadata.xml b/app-i18n/ibus-tutcode/metadata.xml
new file mode 100644
index 000000000000..f18ac2c4cac6
--- /dev/null
+++ b/app-i18n/ibus-tutcode/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>naota@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">deton/ibus-tutcode</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus-unikey/Manifest b/app-i18n/ibus-unikey/Manifest
new file mode 100644
index 000000000000..72fb913c076c
--- /dev/null
+++ b/app-i18n/ibus-unikey/Manifest
@@ -0,0 +1 @@
+DIST ibus-unikey-0.6.1.tar.gz 516250 SHA256 989bbea706d2d8d7b86630b1f2b4f63d8ed5167a1cc2b8fafd7f2198ec78d734 SHA512 f8d519802d9b304cdaebfcee3f9fef5f17756cde48aa48b9dd357d714e2eaaba0df8f91218b658fdd1d85343804e054b7987caff2734913b29dc76263c30d4e6 WHIRLPOOL 4a14d0145477527b100272801f2ac8e90178c8d6d7ae743619d6babcf1da069bc550a3eac473c8ac9b60e0b5eeaf1ea780a97d1e3ebd81a0b557e51f20615c4c
diff --git a/app-i18n/ibus-unikey/ibus-unikey-0.6.1.ebuild b/app-i18n/ibus-unikey/ibus-unikey-0.6.1.ebuild
new file mode 100644
index 000000000000..9e830634fef0
--- /dev/null
+++ b/app-i18n/ibus-unikey/ibus-unikey-0.6.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+inherit eutils
+
+DESCRIPTION="Vietnamese Input Method Engine for IBUS using Unikey IME"
+HOMEPAGE="http://code.google.com/p/ibus-unikey/"
+SRC_URI="http://ibus-unikey.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk3"
+
+RDEPEND="gtk3? ( >app-i18n/ibus-1.4.0[gtk3]
+ x11-libs/gtk+:3 )
+ !gtk3? ( >=app-i18n/ibus-1.4.0
+ >=x11-libs/gtk+-2.12:2 )
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ >=sys-devel/gettext-0.17"
+
+src_configure() {
+ use gtk3 && myconf="--with-gtk-version=3" || myconf=""
+ econf ${myconf}
+}
diff --git a/app-i18n/ibus-unikey/metadata.xml b/app-i18n/ibus-unikey/metadata.xml
new file mode 100644
index 000000000000..229a5e652cc5
--- /dev/null
+++ b/app-i18n/ibus-unikey/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">Ibus-unikey is a IM Engine for IBus
+Use for type Vietnamese
+Support via forum at: http://forum.ubuntu-vn.com/viewforum.php?f=85</longdescription>
+ <use>
+ <flag name="gtk3">Enable support for gtk+3</flag>
+ </use>
+ <upstream>
+ <remote-id type="google-code">ibus-unikey</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/ibus/Manifest b/app-i18n/ibus/Manifest
new file mode 100644
index 000000000000..a8adb10f5941
--- /dev/null
+++ b/app-i18n/ibus/Manifest
@@ -0,0 +1,5 @@
+DIST ibus-1.5.10.tar.gz 2169299 SHA256 1d01b7806602875a1f3004f32e1000a39be01f59731d6baf36446498e26f5594 SHA512 2f7f07c20cac5f934f24c3bc99b29efe30aa5ced501ac442a9da16454cb889d946fa262b3495c1778f200c8f62a1fd8d67f47f43ae6ee214d3d392feb6e413c9 WHIRLPOOL 575d5bba84ed8afb608030260b5fbbd47bdfc4ff1368590e0c34b2fed1cf2878e71bdb7b6da286d0b0d5a27f7fcc9e2a02675a86bbc9417c1d060246b7a6acbd
+DIST ibus-1.5.5.tar.gz 2063794 SHA256 02ab36af6048399fedbe8d85074b161219b89df5020932df33cf8829764f8aec SHA512 8249d6ee4918b0e0fe030af736eed2260e1376b2fdaf0d819f289e0bd880a5e3874f1fb3d097fc74b9f359822ce16f4dae52a263aa28c2e2ce7bdf671cb2fea9 WHIRLPOOL 33ba90e5cdd54ecd7a03af8c5d2c1d2e8cfc88bfc53b65e5240eb4c60d6138007b754a60e8b1e79c98ce92e299d14f1a0cce445ad40b04e862adf3919401d77d
+DIST ibus-1.5.8.tar.gz 2120220 SHA256 cfc562ae73de753dc8cb9ae30fe117286ddd94cd109002108f2eeb47e8101a29 SHA512 428e40be7ebea57832295e76b5c4350351c6d40c5178c57c61c8d6f31e524a315184c3d533ad88592e53ae7c6cb4beed67796ad61910f99f260fc9c243b2fc98 WHIRLPOOL 2fc0059a75b3f4b253770303a8c9c8ae02947153eaf7b9c220e2e10657275293a556b068ba4cad0d27f315b7374ffaedb53b20cd13f8408a3729cfaaea869d78
+DIST ibus-1.5.9-upstream-patches-0.tar.xz 30380 SHA256 9efe631008cfad1d59db01a83ae093149b2c827d480705836f0bf8a29706f1e0 SHA512 98c323de9793938d8c0bd646071d0ea7860212e3ae826e97ed0e0a092ec715084529b3a3cee3def63958dd3d56357b2e33e4e3d3946cca90bec3409469cf14d4 WHIRLPOOL 0aaf7aaba36de96525f0339a16df2c435e2f2c5cc6168c9b2da25bd7003af88f6d55ca53ae692c9c611b563ddfcb48a0e19e915f8361ba51a4aac813edc45f41
+DIST ibus-1.5.9.tar.gz 2128459 SHA256 ad41014aa3cb961854ee0aa392a5abd7452fab2c6b77d8ff2d736b7405b48ac6 SHA512 8a21303abceb38f1e5903342590c229a243db1497503fa08d547e1029bc25b90a2031f0386e57ddfcb897a14819d202289fcac1e3c8bad059698b04501a7ede9 WHIRLPOOL 88135818669cb3c189ce02a7caba3ec262bd95ffa6d139e8f76113ca91fc778f5f7703cfbfb1f5d5dd3cbb6948ba14d9c326f318b0286381caec45db3b453221
diff --git a/app-i18n/ibus/ibus-1.5.10.ebuild b/app-i18n/ibus/ibus-1.5.10.ebuild
new file mode 100644
index 000000000000..133ca89aa90b
--- /dev/null
+++ b/app-i18n/ibus/ibus-1.5.10.ebuild
@@ -0,0 +1,191 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.20"
+VALA_USE_DEPEND="vapigen"
+# Vapigen is needed for the vala binding
+# Valac is needed when building from git for the engine
+UPSTREAM_VER=
+
+inherit autotools bash-completion-r1 eutils gnome2-utils multilib python-single-r1 readme.gentoo vala virtualx
+
+DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
+HOMEPAGE="http://code.google.com/p/ibus/"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~ia64 ppc ~ppc64 ~sparc x86 ~x86-fbsd"
+IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test vala wayland +X"
+REQUIRED_USE="
+ || ( gtk gtk3 X )
+ deprecated? ( python )
+ vala? ( introspection )
+ python? (
+ ${PYTHON_REQUIRED_USE}
+ || ( deprecated ( gtk3 introspection ) ) )" #342903
+
+[[ -n ${UPSTREAM_VER} ]] && \
+ UPSTRAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
+
+SRC_URI="https://github.com/ibus/ibus/releases/download/${PV}/${P}.tar.gz
+ ${UPSTRAM_PATCHSET_URI}"
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.26:2
+ gnome-base/librsvg:2
+ sys-apps/dbus[X?]
+ app-text/iso-codes
+ >=gnome-base/dconf-0.13.4
+ x11-libs/libnotify
+ gconf? ( >=gnome-base/gconf-2.12:2 )
+ gtk? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ python? ( ${PYTHON_DEPS} )
+ X? (
+ x11-libs/libX11
+ x11-libs/gtk+:2 )
+ introspection? ( >=dev-libs/gobject-introspection-0.6.8 )
+ nls? ( virtual/libintl )
+ wayland? ( dev-libs/wayland )"
+RDEPEND="${COMMON_DEPEND}
+ x11-apps/setxkbmap
+ python? (
+ dev-python/pyxdg
+ deprecated? (
+ >=dev-python/dbus-python-0.83
+ dev-python/pygobject:2
+ dev-python/pygtk:2 )
+ gtk3? (
+ dev-python/pygobject:3
+ x11-libs/gdk-pixbuf:2[introspection]
+ x11-libs/pango[introspection]
+ x11-libs/gtk+:3[introspection] )
+ )"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/perl-5.8.1
+ dev-util/gtk-doc-am
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ vala? ( $(vala_depend) )"
+
+# stress test in bus/ fails
+# IBUS-CRITICAL **: bus_test_client_init: assertion `ibus_bus_is_connected (_bus)' failed
+RESTRICT="test"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="To use ibus, you should:
+1. Get input engines from sunrise overlay.
+Run \"emerge -s ibus-\" in your favorite terminal
+for a list of packages we already have.
+
+2. Setup ibus:
+$ ibus-setup
+
+3. Set the following in your user startup scripts
+such as .xinitrc, .xsession or .xprofile:
+
+export XMODIFIERS=\"@im=ibus\"
+export GTK_IM_MODULE=\"ibus\"
+export QT_IM_MODULE=\"xim\"
+ibus-daemon -d -x
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Upstream's patchset
+ if [[ -n ${UPSTREAM_VER} ]]; then
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ EPATCH_OPTS="-p1" \
+ epatch "${WORKDIR}"/patches-upstream
+ fi
+
+ # We run "dconf update" in pkg_postinst/postrm to avoid sandbox violations
+ sed -e 's/dconf update/:/' \
+ -i data/dconf/Makefile.{am,in} || die
+ use vala && vala_src_prepare
+
+ eautoreconf
+}
+
+src_configure() {
+ local python_conf
+ if use python; then
+ python_conf="PYTHON=${PYTHON}
+ $(use_enable deprecated python-library)
+ $(use_enable gtk3 setup)"
+ else
+ python_conf="--disable-python-library --disable-setup"
+ fi
+ econf \
+ --enable-dconf \
+ $(use_enable introspection) \
+ $(use_enable gconf) \
+ $(use_enable gtk gtk2) \
+ $(use_enable gtk xim) \
+ $(use_enable gtk3) \
+ $(use_enable gtk3 ui) \
+ $(use_enable nls) \
+ $(use_enable test tests) \
+ $(use_enable X xim) \
+ $(use_enable vala) \
+ $(use_enable wayland) \
+ ${python_conf}
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ Xemake check || die
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --all
+
+ mv "${ED}"/usr/share/bash-completion/completions/ibus.bash "${T}"
+ rm -rf "${ED}"/usr/share/bash-completion || die
+ newbashcomp "${T}"/ibus.bash ${PN}
+ insinto /etc/X11/xinit/xinput.d
+ newins xinput-ibus ibus.conf
+
+ keepdir /usr/share/ibus/{engine,icons} #289547
+
+ use deprecated && python_optimize
+ use python && use gtk3 && python_optimize
+
+ readme.gentoo_create_doc
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_schemas_savelist
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ gnome2_schemas_update
+ gnome2_icon_cache_update
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use gconf && gnome2_schemas_update
+ gnome2_schemas_savelist
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus/ibus-1.5.5.ebuild b/app-i18n/ibus/ibus-1.5.5.ebuild
new file mode 100644
index 000000000000..526d663ef009
--- /dev/null
+++ b/app-i18n/ibus/ibus-1.5.5.ebuild
@@ -0,0 +1,175 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.20"
+VALA_USE_DEPEND="vapigen"
+# Vapigen is needed for the vala binding
+# Valac is needed when building from git for the engine
+
+inherit bash-completion-r1 eutils gnome2-utils multilib python-single-r1 readme.gentoo vala virtualx
+
+DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~ia64 ppc ppc64 ~sparc x86 ~x86-fbsd"
+IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test vala wayland +X"
+REQUIRED_USE="|| ( gtk gtk3 X )
+ deprecated? ( python )
+ python? (
+ ${PYTHON_REQUIRED_USE}
+ || ( deprecated ( gtk3 introspection ) ) )" #342903
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.26:2
+ gnome-base/librsvg:2
+ sys-apps/dbus[X?]
+ app-text/iso-codes
+ >=gnome-base/dconf-0.13.4
+ x11-libs/libnotify
+
+ gconf? ( >=gnome-base/gconf-2.12:2 )
+ gtk? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ python? ( ${PYTHON_DEPS} )
+ X? (
+ x11-libs/libX11
+ x11-libs/gtk+:2 )
+ introspection? ( >=dev-libs/gobject-introspection-0.6.8 )
+ nls? ( virtual/libintl )
+ wayland? ( dev-libs/wayland )"
+RDEPEND="${COMMON_DEPEND}
+ x11-apps/setxkbmap
+ python? (
+ dev-python/pyxdg
+ deprecated? (
+ >=dev-python/dbus-python-0.83
+ dev-python/pygobject:2
+ dev-python/pygtk:2 )
+ gtk3? (
+ dev-python/pygobject:3
+ x11-libs/gdk-pixbuf:2[introspection]
+ x11-libs/pango[introspection]
+ x11-libs/gtk+:3[introspection] )
+ )"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/perl-5.8.1
+ dev-util/gtk-doc-am
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ vala? ( $(vala_depend) )
+ gnome-base/gconf"
+
+# stress test in bus/ fails
+# IBUS-CRITICAL **: bus_test_client_init: assertion `ibus_bus_is_connected (_bus)' failed
+RESTRICT="test"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="To use ibus, you should:
+1. Get input engines from sunrise overlay.
+Run \"emerge -s ibus-\" in your favorite terminal
+for a list of packages we already have.
+
+2. Setup ibus:
+$ ibus-setup
+
+3. Set the following in your user startup scripts
+such as .xinitrc, .xsession or .xprofile:
+
+export XMODIFIERS=\"@im=ibus\"
+export GTK_IM_MODULE=\"ibus\"
+export QT_IM_MODULE=\"xim\"
+ibus-daemon -d -x
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # We run "dconf update" in pkg_postinst/postrm to avoid sandbox violations
+ sed -e 's/dconf update/$(NULL)/' \
+ -i data/dconf/Makefile.{am,in} || die
+ use vala && vala_src_prepare
+ cp "${S}"/client/gtk2/ibusimcontext.c "${S}"/client/gtk3/ibusimcontext.c || die
+}
+
+src_configure() {
+ local python_conf
+ if use python; then
+ python_conf="PYTHON=${PYTHON}
+ $(use_enable deprecated python-library)
+ $(use_enable gtk3 setup)"
+ else
+ python_conf="--disable-python-library --disable-setup"
+ fi
+ econf \
+ --enable-dconf \
+ $(use_enable introspection) \
+ $(use_enable gconf) \
+ $(use_enable gtk gtk2) \
+ $(use_enable gtk xim) \
+ $(use_enable gtk3) \
+ $(use_enable gtk3 ui) \
+ $(use_enable nls) \
+ $(use_enable test tests) \
+ $(use_enable X xim) \
+ $(use_enable vala) \
+ $(use_enable wayland) \
+ ${python_conf}
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ Xemake check || die
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --all
+
+ mv "${ED}"/usr/share/bash-completion/completions/ibus.bash "${T}"
+ rm -rf "${ED}"/usr/share/bash-completion || die
+ newbashcomp "${T}"/ibus.bash ${PN}
+ insinto /etc/X11/xinit/xinput.d
+ newins xinput-ibus ibus.conf
+
+ keepdir /usr/share/ibus/{engine,icons} #289547
+
+ use deprecated && python_optimize
+ use python && use gtk3 && python_optimize
+
+ readme.gentoo_create_doc
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_schemas_savelist
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ gnome2_schemas_update
+ gnome2_icon_cache_update
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use gconf && gnome2_schemas_update
+ gnome2_schemas_savelist
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus/ibus-1.5.8-r1.ebuild b/app-i18n/ibus/ibus-1.5.8-r1.ebuild
new file mode 100644
index 000000000000..d073005d661d
--- /dev/null
+++ b/app-i18n/ibus/ibus-1.5.8-r1.ebuild
@@ -0,0 +1,175 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.20"
+VALA_USE_DEPEND="vapigen"
+# Vapigen is needed for the vala binding
+# Valac is needed when building from git for the engine
+
+inherit bash-completion-r1 eutils gnome2-utils multilib python-single-r1 readme.gentoo vala virtualx
+
+DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
+HOMEPAGE="http://code.google.com/p/ibus/"
+SRC_URI="https://github.com/ibus/ibus/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test vala wayland +X"
+REQUIRED_USE="|| ( gtk gtk3 X )
+ deprecated? ( python )
+ python? (
+ ${PYTHON_REQUIRED_USE}
+ || ( deprecated ( gtk3 introspection ) ) )" #342903
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.26:2
+ gnome-base/librsvg:2
+ sys-apps/dbus[X?]
+ app-text/iso-codes
+ >=gnome-base/dconf-0.13.4
+ x11-libs/libnotify
+
+ gconf? ( >=gnome-base/gconf-2.12:2 )
+ gtk? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ python? ( ${PYTHON_DEPS} )
+ X? (
+ x11-libs/libX11
+ x11-libs/gtk+:2 )
+ introspection? ( >=dev-libs/gobject-introspection-0.6.8 )
+ nls? ( virtual/libintl )
+ wayland? ( dev-libs/wayland )"
+RDEPEND="${COMMON_DEPEND}
+ x11-apps/setxkbmap
+ python? (
+ dev-python/pyxdg
+ deprecated? (
+ >=dev-python/dbus-python-0.83
+ dev-python/pygobject:2
+ dev-python/pygtk:2 )
+ gtk3? (
+ dev-python/pygobject:3
+ x11-libs/gdk-pixbuf:2[introspection]
+ x11-libs/pango[introspection]
+ x11-libs/gtk+:3[introspection] )
+ )"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/perl-5.8.1
+ dev-util/gtk-doc-am
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ vala? ( $(vala_depend) )
+ gnome-base/gconf"
+
+# stress test in bus/ fails
+# IBUS-CRITICAL **: bus_test_client_init: assertion `ibus_bus_is_connected (_bus)' failed
+RESTRICT="test"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="To use ibus, you should:
+1. Get input engines from sunrise overlay.
+Run \"emerge -s ibus-\" in your favorite terminal
+for a list of packages we already have.
+
+2. Setup ibus:
+$ ibus-setup
+
+3. Set the following in your user startup scripts
+such as .xinitrc, .xsession or .xprofile:
+
+export XMODIFIERS=\"@im=ibus\"
+export GTK_IM_MODULE=\"ibus\"
+export QT_IM_MODULE=\"xim\"
+ibus-daemon -d -x
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # We run "dconf update" in pkg_postinst/postrm to avoid sandbox violations
+ sed -e 's/dconf update/:/' \
+ -i data/dconf/Makefile.{am,in} || die
+ use vala && vala_src_prepare
+}
+
+src_configure() {
+ local python_conf
+ if use python; then
+ python_conf="PYTHON=${PYTHON}
+ $(use_enable deprecated python-library)
+ $(use_enable gtk3 setup)"
+ else
+ python_conf="--disable-python-library --disable-setup"
+ fi
+ econf \
+ --enable-dconf \
+ $(use_enable introspection) \
+ $(use_enable gconf) \
+ $(use_enable gtk gtk2) \
+ $(use_enable gtk xim) \
+ $(use_enable gtk3) \
+ $(use_enable gtk3 ui) \
+ $(use_enable nls) \
+ $(use_enable test tests) \
+ $(use_enable X xim) \
+ $(use_enable vala) \
+ $(use_enable wayland) \
+ ${python_conf}
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ Xemake check || die
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --all
+
+ mv "${ED}"/usr/share/bash-completion/completions/ibus.bash "${T}"
+ rm -rf "${ED}"/usr/share/bash-completion || die
+ newbashcomp "${T}"/ibus.bash ${PN}
+ insinto /etc/X11/xinit/xinput.d
+ newins xinput-ibus ibus.conf
+
+ keepdir /usr/share/ibus/{engine,icons} #289547
+
+ use deprecated && python_optimize
+ use python && use gtk3 && python_optimize
+
+ readme.gentoo_create_doc
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_schemas_savelist
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ gnome2_schemas_update
+ gnome2_icon_cache_update
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use gconf && gnome2_schemas_update
+ gnome2_schemas_savelist
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus/ibus-1.5.9-r1.ebuild b/app-i18n/ibus/ibus-1.5.9-r1.ebuild
new file mode 100644
index 000000000000..90c1a905a913
--- /dev/null
+++ b/app-i18n/ibus/ibus-1.5.9-r1.ebuild
@@ -0,0 +1,191 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.20"
+VALA_USE_DEPEND="vapigen"
+# Vapigen is needed for the vala binding
+# Valac is needed when building from git for the engine
+UPSTREAM_VER=0
+
+inherit autotools bash-completion-r1 eutils gnome2-utils multilib python-single-r1 readme.gentoo vala virtualx
+
+DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
+HOMEPAGE="http://code.google.com/p/ibus/"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test +vala wayland +X"
+REQUIRED_USE="
+ || ( gtk gtk3 X )
+ deprecated? ( python )
+ vala? ( introspection )
+ python? (
+ ${PYTHON_REQUIRED_USE}
+ || ( deprecated ( gtk3 introspection ) ) )" #342903
+
+[[ -n ${UPSTREAM_VER} ]] && \
+ UPSTRAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
+
+SRC_URI="https://github.com/ibus/ibus/releases/download/${PV}/${P}.tar.gz
+ ${UPSTRAM_PATCHSET_URI}"
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.26:2
+ gnome-base/librsvg:2
+ sys-apps/dbus[X?]
+ app-text/iso-codes
+ >=gnome-base/dconf-0.13.4
+ x11-libs/libnotify
+ gconf? ( >=gnome-base/gconf-2.12:2 )
+ gtk? ( x11-libs/gtk+:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ python? ( ${PYTHON_DEPS} )
+ X? (
+ x11-libs/libX11
+ x11-libs/gtk+:2 )
+ introspection? ( >=dev-libs/gobject-introspection-0.6.8 )
+ nls? ( virtual/libintl )
+ wayland? ( dev-libs/wayland )"
+RDEPEND="${COMMON_DEPEND}
+ x11-apps/setxkbmap
+ python? (
+ dev-python/pyxdg
+ deprecated? (
+ >=dev-python/dbus-python-0.83
+ dev-python/pygobject:2
+ dev-python/pygtk:2 )
+ gtk3? (
+ dev-python/pygobject:3
+ x11-libs/gdk-pixbuf:2[introspection]
+ x11-libs/pango[introspection]
+ x11-libs/gtk+:3[introspection] )
+ )"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/perl-5.8.1
+ dev-util/gtk-doc-am
+ dev-util/intltool
+ virtual/pkgconfig
+ nls? ( >=sys-devel/gettext-0.16.1 )
+ vala? ( $(vala_depend) )"
+
+# stress test in bus/ fails
+# IBUS-CRITICAL **: bus_test_client_init: assertion `ibus_bus_is_connected (_bus)' failed
+RESTRICT="test"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="To use ibus, you should:
+1. Get input engines from sunrise overlay.
+Run \"emerge -s ibus-\" in your favorite terminal
+for a list of packages we already have.
+
+2. Setup ibus:
+$ ibus-setup
+
+3. Set the following in your user startup scripts
+such as .xinitrc, .xsession or .xprofile:
+
+export XMODIFIERS=\"@im=ibus\"
+export GTK_IM_MODULE=\"ibus\"
+export QT_IM_MODULE=\"xim\"
+ibus-daemon -d -x
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Upstream's patchset
+ if [[ -n ${UPSTREAM_VER} ]]; then
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ EPATCH_OPTS="-p1" \
+ epatch "${WORKDIR}"/patches-upstream
+ fi
+
+ # We run "dconf update" in pkg_postinst/postrm to avoid sandbox violations
+ sed -e 's/dconf update/:/' \
+ -i data/dconf/Makefile.{am,in} || die
+ use vala && vala_src_prepare
+
+ eautoreconf
+}
+
+src_configure() {
+ local python_conf
+ if use python; then
+ python_conf="PYTHON=${PYTHON}
+ $(use_enable deprecated python-library)
+ $(use_enable gtk3 setup)"
+ else
+ python_conf="--disable-python-library --disable-setup"
+ fi
+ econf \
+ --enable-dconf \
+ $(use_enable introspection) \
+ $(use_enable gconf) \
+ $(use_enable gtk gtk2) \
+ $(use_enable gtk xim) \
+ $(use_enable gtk3) \
+ $(use_enable gtk3 ui) \
+ $(use_enable nls) \
+ $(use_enable test tests) \
+ $(use_enable X xim) \
+ $(use_enable vala) \
+ $(use_enable wayland) \
+ ${python_conf}
+}
+
+src_test() {
+ unset DBUS_SESSION_BUS_ADDRESS
+ Xemake check || die
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --all
+
+ mv "${ED}"/usr/share/bash-completion/completions/ibus.bash "${T}"
+ rm -rf "${ED}"/usr/share/bash-completion || die
+ newbashcomp "${T}"/ibus.bash ${PN}
+ insinto /etc/X11/xinit/xinput.d
+ newins xinput-ibus ibus.conf
+
+ keepdir /usr/share/ibus/{engine,icons} #289547
+
+ use deprecated && python_optimize
+ use python && use gtk3 && python_optimize
+
+ readme.gentoo_create_doc
+}
+
+pkg_preinst() {
+ use gconf && gnome2_gconf_savelist
+ gnome2_schemas_savelist
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use gconf && gnome2_gconf_install
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ gnome2_schemas_update
+ gnome2_icon_cache_update
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk2
+ use gtk3 && gnome2_query_immodules_gtk3
+ use gconf && gnome2_schemas_update
+ gnome2_schemas_savelist
+ gnome2_icon_cache_update
+}
diff --git a/app-i18n/ibus/metadata.xml b/app-i18n/ibus/metadata.xml
new file mode 100644
index 000000000000..b81da6fb8318
--- /dev/null
+++ b/app-i18n/ibus/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">
+IBus means Intelligent Input Bus. It is a new input framework for Linux OS. It provides
+full featured and user friendly input method user interface. It also may help
+developers to develop input method easily.
+</longdescription>
+ <use>
+ <flag name="gconf">Enable support for <pkg>gnome-base/gconf</pkg></flag>
+ <flag name="gtk3">Enable support for gtk+3</flag>
+ <flag name="vala">Enable support for <pkg>dev-lang/vala</pkg></flag>
+ <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg> for introspection</flag>
+ <flag name="deprecated">install the deprecated ibus python library</flag>
+ </use>
+ <upstream>
+ <remote-id type="cpe">cpe:/a:ibus_project:ibus</remote-id>
+ <remote-id type="github">ibus/ibus</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/im-canna/Manifest b/app-i18n/im-canna/Manifest
new file mode 100644
index 000000000000..44c5bef09004
--- /dev/null
+++ b/app-i18n/im-canna/Manifest
@@ -0,0 +1 @@
+DIST im-canna-0.3.2.2.tar.gz 314633 SHA256 df767584a92ddd23d6849979d27d7f99d2b6859dd2478cc1c5d151a8de8e393f SHA512 6ec4253038ca97e3e6319c024e4d11ca5418bf478280c4b19b81a9c628310a06bcd4ec35334d3a2bbdff0245bdfa660c1cdfd949ddd6b768d3b73d78648edc81 WHIRLPOOL 512cb9610714a6cf6c8bc24302b63213fce50a2ff69751f9695d97f2076d1e04c4607c4cd8d001ddf09d8bef0ea3429bb7a3e617632231d5c5ca239e2382bb2d
diff --git a/app-i18n/im-canna/im-canna-0.3.2.2.ebuild b/app-i18n/im-canna/im-canna-0.3.2.2.ebuild
new file mode 100644
index 000000000000..79e74c0e1afe
--- /dev/null
+++ b/app-i18n/im-canna/im-canna-0.3.2.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit gnome2-utils
+
+DESCRIPTION="Japanese Canna input method module for GTK+2"
+HOMEPAGE="http://bonobo.gnome.gr.jp/~nakai/immodule/"
+SRC_URI="http://bonobo.gnome.gr.jp/~nakai/immodule/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE=""
+
+RDEPEND=">=x11-libs/gtk+-2.4:2
+ app-i18n/canna"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/im-canna/metadata.xml b/app-i18n/im-canna/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/im-canna/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/im-chooser/Manifest b/app-i18n/im-chooser/Manifest
new file mode 100644
index 000000000000..1ce6d4309a70
--- /dev/null
+++ b/app-i18n/im-chooser/Manifest
@@ -0,0 +1 @@
+DIST im-chooser-1.6.2.tar.bz2 515776 SHA256 0df444df86a60ff2534eea58c51a5e8bcc343c13a6b3d87356d9c5da3e4867b1 SHA512 86ed483ccdeb045f2b96df443ffbccb4d66bd11dac215e52d10eabb983fbbcecc848b074f7771c76bab311db04ec982865f2cce27d6274144068361aa04f42b9 WHIRLPOOL 3280243d859cd53ddf5d3cd64c7acbbc74718e751c0ca756315a2a3966b7db9215cb5d174cc5bcf25c5ecee653cd6c6019ddbdf62b4906d470710e8455d7b2cf
diff --git a/app-i18n/im-chooser/files/im-chooser-1.5.1-imchooserui.patch b/app-i18n/im-chooser/files/im-chooser-1.5.1-imchooserui.patch
new file mode 100644
index 000000000000..9e5a9f48d574
--- /dev/null
+++ b/app-i18n/im-chooser/files/im-chooser-1.5.1-imchooserui.patch
@@ -0,0 +1,21 @@
+diff --git a/libimchooseui/imchooseui.c b/libimchooseui/imchooseui.c
+index f135aff..dd5881a 100644
+--- a/libimchooseui/imchooseui.c
++++ b/libimchooseui/imchooseui.c
+@@ -41,14 +41,14 @@ static void _imchoose_ui_switch_im_finish (GObject *source_object,
+ GAsyncResult *res,
+ gpointer user_data);
+
+-typedef struct _IMChooseUIPrivate {
++struct _IMChooseUIPrivate {
+ IMSettingsClient *client;
+ gchar *default_im;
+ gchar *initial_im;
+ gchar *current_im;
+ guint note_type;
+ gboolean clicked:1;
+-} IMChooseUIPrivate;
++};
+ enum {
+ POS_ICON = 0,
+ POS_LABEL,
diff --git a/app-i18n/im-chooser/im-chooser-1.6.2.ebuild b/app-i18n/im-chooser/im-chooser-1.6.2.ebuild
new file mode 100644
index 000000000000..6f313fad4e5c
--- /dev/null
+++ b/app-i18n/im-chooser/im-chooser-1.6.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit gnome2 eutils
+
+DESCRIPTION="Desktop Input Method configuration tool"
+HOMEPAGE="https://fedorahosted.org/im-chooser/"
+SRC_URI="https://fedorahosted.org/releases/i/m/im-chooser/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnome"
+
+RDEPEND=">=app-i18n/imsettings-1.3.0
+ >=dev-libs/glib-2.16:2
+ >=x11-libs/gtk+-2.16:2
+ gnome? ( >=gnome-base/gnome-control-center-2.29:2 )"
+# || (
+# (
+# >=dev-libs/glib:3
+# >=x11-libs/gtk+:3
+# gnome? ( gnome-base/gnome-control-center:3 )
+# )
+# (
+# >=dev-libs/glib-2.16:2
+# >=x11-libs/gtk+-2.16:2
+# gnome? ( >=gnome-base/gnome-control-center-2.29:2 )
+# )
+# )
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.5.1-imchooserui.patch
+ gnome2_src_prepare
+}
diff --git a/app-i18n/im-chooser/metadata.xml b/app-i18n/im-chooser/metadata.xml
new file mode 100644
index 000000000000..d7d91208e9c5
--- /dev/null
+++ b/app-i18n/im-chooser/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+<longdescription lang="en">
+IM Chooser is a GUI configuration tool for IMSettings to
+choose Input Method you want to use or disable it entirely
+on the desktop.
+</longdescription>
+</pkgmetadata>
+
diff --git a/app-i18n/im-freewnn/Manifest b/app-i18n/im-freewnn/Manifest
new file mode 100644
index 000000000000..7c69c9b6e4b1
--- /dev/null
+++ b/app-i18n/im-freewnn/Manifest
@@ -0,0 +1 @@
+DIST im-freewnn-0.0.2.tar.gz 322963 SHA256 79b7783bd9516024df352c9a3e1dec55d56d46faf2b7517b63fe9cd81f6f8866 SHA512 c942d320433d0b1ff15fc1566eff183f5761ce14cb0575834f4ee80504be6d286068203c22ffea81345dab3db11a873f0a559b3d38ba8505f4966f9532a06358 WHIRLPOOL c06ab23037b6c3a302534b24b15ac93ff41edf9a9ba505c6727a4ab655fcfd98ffd86a4954e83ff6f40590bc732d8ecb67b38ea777d31ecc5cba11453ba161f3
diff --git a/app-i18n/im-freewnn/files/im-freewnn-0.0.2-as-needed.patch b/app-i18n/im-freewnn/files/im-freewnn-0.0.2-as-needed.patch
new file mode 100644
index 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-0.0.2-implicit-declaration.patch b/app-i18n/im-freewnn/files/im-freewnn-0.0.2-implicit-declaration.patch
new file mode 100644
index 000000000000..c52618924c97
--- /dev/null
+++ b/app-i18n/im-freewnn/files/im-freewnn-0.0.2-implicit-declaration.patch
@@ -0,0 +1,26 @@
+diff --git a/freewnn-utils.c b/freewnn-utils.c
+index 3cf63b3..0e871d6 100644
+--- a/freewnn-utils.c
++++ b/freewnn-utils.c
+@@ -18,6 +18,9 @@
+ * Boston, MA 02111-1307, USA.
+ */
+
++#include <stdlib.h>
++#include <string.h>
++
+ #include "freewnn-utils.h"
+ #include "kata2hkata.h"
+
+diff --git a/im-freewnn.c b/im-freewnn.c
+index b56d63c..833582e 100644
+--- a/im-freewnn.c
++++ b/im-freewnn.c
+@@ -26,6 +26,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+
+ #include <string.h>
+ #include "keytable.h"
diff --git a/app-i18n/im-freewnn/files/im-freewnn-wnnrc-gentoo.diff b/app-i18n/im-freewnn/files/im-freewnn-wnnrc-gentoo.diff
new file mode 100644
index 000000000000..ae7d629edc20
--- /dev/null
+++ b/app-i18n/im-freewnn/files/im-freewnn-wnnrc-gentoo.diff
@@ -0,0 +1,20 @@
+--- im-freewnn.c 2004-08-05 09:47:08.000000000 +0900
++++ im-freewnn.c-wnnrc 2004-08-05 21:55:50.540038392 +0900
+@@ -53,7 +53,7 @@
+ { 0, NULL },
+ };
+
+-static const gchar* ideos = " 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\〜‖|…‥‘’“”()〔〕[]{}〈〉《》「」『』【】+−±×÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇∧∨¬⇒⇔∀∃∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬ʼn♯♭♪†‡¶◯ゎゐゑヮヰヱヴヵヶΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψωАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂";
++static const gchar* ideos = " 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\??|…‥‘’“”()〔〕[]{}〈〉《》「」『』【】+?±×÷=≠<>≦≧∞∴♂♀°′″℃¥$??%#&*@§☆★○●◎◇∧∨?⇒⇔∀∃∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬ʼn♯♭♪†‡¶◯ゎゐゑヮヰヱヴヵヶΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψωАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂";
+
+ #ifdef BUFSIZ
+ #undef BUFSIZ
+@@ -236,7 +236,7 @@
+ return;
+ }
+
+- jl_set_env_wnnrc(wenv, "/etc/FreeWnn/ja/wnnenvrc", printConfirm, printError);
++ jl_set_env_wnnrc(wenv, "/usr/lib/wnn/ja_JP/wnnenvrc", printConfirm, printError);
+
+ cf->modewin = freewnn_modewin_new(cf->wnnbuf, &cf->functable);
+ cf->candwin = candwin_new();
diff --git a/app-i18n/im-freewnn/im-freewnn-0.0.2-r1.ebuild b/app-i18n/im-freewnn/im-freewnn-0.0.2-r1.ebuild
new file mode 100644
index 000000000000..ff6a98fbf6c7
--- /dev/null
+++ b/app-i18n/im-freewnn/im-freewnn-0.0.2-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="1"
+
+inherit autotools eutils gnome2-utils multilib
+
+DESCRIPTION="Japanese FreeWnn input method module for GTK+2"
+HOMEPAGE="http://bonobo.gnome.gr.jp/~nakai/immodule/"
+SRC_URI="http://bonobo.gnome.gr.jp/~nakai/immodule/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+
+RDEPEND="dev-libs/glib
+ x11-libs/pango
+ >=x11-libs/gtk+-2.4:2
+ >=app-i18n/freewnn-1.1.1_alpha21-r1"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+pkg_setup() {
+ # An arch specific config directory is used on multilib systems
+ has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
+ GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0/}
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}-wnnrc-gentoo.diff"
+ # bug #298744
+ epatch "${FILESDIR}/${P}-as-needed.patch"
+ epatch "${FILESDIR}/${P}-implicit-declaration.patch"
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/im-freewnn/metadata.xml b/app-i18n/im-freewnn/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/im-freewnn/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/im-ja/Manifest b/app-i18n/im-ja/Manifest
new file mode 100644
index 000000000000..14a67be26cd1
--- /dev/null
+++ b/app-i18n/im-ja/Manifest
@@ -0,0 +1 @@
+DIST im-ja-1.5.tar.gz 905539 SHA256 96f4ed82706a873bdade99a934a1a66431f146758837ed0f007e3c145649f780 SHA512 97c75aa5437b3f887d7004d87f4dd7e444fb2ad393af0117dab64fdef87c0a92b1a97c1934a8e1e67e6c1753ad78f1c9a67f5aca10710115a8b331aae4f17864 WHIRLPOOL c9d3cd722ce3b31cedfc75667d752a0df22fd3eda6e6f3421c5d381c86735e047c80db5c14b0b59a71d524b617276850fddc8b0378e18bbda825208381fa7700
diff --git a/app-i18n/im-ja/files/im-ja-1.5-gentoo.patch b/app-i18n/im-ja/files/im-ja-1.5-gentoo.patch
new file mode 100644
index 000000000000..af78e77876fa
--- /dev/null
+++ b/app-i18n/im-ja/files/im-ja-1.5-gentoo.patch
@@ -0,0 +1,30 @@
+diff -Naur im-ja-1.5.orig/configure.in im-ja-1.5/configure.in
+--- im-ja-1.5.orig/configure.in 2006-04-18 19:52:25.000000000 +0900
++++ im-ja-1.5/configure.in 2009-10-19 08:19:22.000000000 +0900
+@@ -28,6 +28,7 @@
+ PKG_CHECK_MODULES([GTK], gtk+-2.0 >= 2.4.0)
+ PKG_CHECK_MODULES([GCONF], gconf-2.0)
+ PKG_CHECK_MODULES([LIBGLADE], libglade-2.0 >= 2.4.0)
++PKG_CHECK_MODULES([LIBGNOMEUI], libgnomeui-2.0 >= 2.4.0)
+
+ AM_GCONF_SOURCE_2
+
+diff -Naur im-ja-1.5.orig/src/gnome-panel-applet/Makefile.am im-ja-1.5/src/gnome-panel-applet/Makefile.am
+--- im-ja-1.5.orig/src/gnome-panel-applet/Makefile.am 2006-04-18 19:52:24.000000000 +0900
++++ im-ja-1.5/src/gnome-panel-applet/Makefile.am 2009-10-19 08:21:24.000000000 +0900
+@@ -26,13 +26,14 @@
+ -DIM_JA_LIBPROGDIR=\"$(libprogdir)\" \
+ -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
+ $(LIBPANELAPPLET_CFLAGS) \
++ $(LIBGNOMEUI_CFLAGS) \
+ @DEBUG_FLAGS@ \
+ @DISABLE_CANNA_FLAG@ \
+ @DISABLE_ANTHY_FLAG@ \
+ @DISABLE_SKK_FLAG@ \
+ @DISABLE_WNN_FLAG@
+
+-im_ja_applet_LDADD = $(LIBPANELAPPLET_LIBS)
++im_ja_applet_LDADD = $(LIBPANELAPPLET_LIBS) $(LIBGNOMEUI_LIBS)
+
+ uidir = $(datadir)/gnome-2.0/ui
+ ui_DATA = GNOME_ImJaApplet.xml
diff --git a/app-i18n/im-ja/files/im-ja-1.5-pofiles.patch b/app-i18n/im-ja/files/im-ja-1.5-pofiles.patch
new file mode 100644
index 000000000000..611cc61450d8
--- /dev/null
+++ b/app-i18n/im-ja/files/im-ja-1.5-pofiles.patch
@@ -0,0 +1,17 @@
+diff --git a/po/POTFILES.in b/po/POTFILES.in
+index a52fa9a..7fac135 100644
+--- a/po/POTFILES.in
++++ b/po/POTFILES.in
+@@ -3,10 +3,12 @@ gnome/im-ja.desktop.in
+ src/actionmenu.c
+ src/candwin.c
+ src/conf.c
++src/eggtrayicon/eggtrayicon.c
+ src/gnome-panel-applet/GNOME_ImJaApplet.server.in.in
+ src/gnome-panel-applet/GNOME_ImJaApplet.xml
+ src/gnome-panel-applet/im-ja-applet.c
+ src/gtk/im-ja-gtk.c
++src/helper/im-ja-helper.c
+ src/im-ja-conf/im-ja-conf.c
+ src/im-ja-conf/im-ja-conf.glade
+ src/im-ja.c
diff --git a/app-i18n/im-ja/files/im-ja-1.5-underlinking.patch b/app-i18n/im-ja/files/im-ja-1.5-underlinking.patch
new file mode 100644
index 000000000000..adbc2144d23b
--- /dev/null
+++ b/app-i18n/im-ja/files/im-ja-1.5-underlinking.patch
@@ -0,0 +1,18 @@
+--- src/xim/Makefile.am.old 2014-06-01 20:06:19.209885674 +0200
++++ src/xim/Makefile.am 2014-06-01 20:06:27.020040088 +0200
+@@ -88,4 +88,4 @@
+ @DISABLE_SKK_FLAG@ \
+ @X_CFLAGS@
+ im_ja_xim_server_LDADD = IMdkit/libXimd.a
+-im_ja_xim_server_LDFLAGS = @GTK_LIBS@ @GCONF_LIBS@ @X_LIBS@ @X_PRE_LIBS@ -lX11 @CANNA_LIBS@ @WNN_LIBS@ @ANTHY_LIBS@
++im_ja_xim_server_LDFLAGS = @GTK_LIBS@ @GCONF_LIBS@ @X_LIBS@ @X_PRE_LIBS@ -lX11 -lm @CANNA_LIBS@ @WNN_LIBS@ @ANTHY_LIBS@
+--- src/helper/Makefile.am.old 2014-06-01 20:09:11.592293279 +0200
++++ src/helper/Makefile.am 2014-06-01 20:09:24.454547489 +0200
+@@ -23,6 +23,6 @@
+ @DISABLE_SKK_FLAG@ \
+ @DISABLE_WNN_FLAG@
+
+-im_ja_helper_LDADD = @GTK_LIBS@ @GCONF_LIBS@
++im_ja_helper_LDADD = @GTK_LIBS@ @GCONF_LIBS@ -lX11
+
+
diff --git a/app-i18n/im-ja/files/xinput-im-ja b/app-i18n/im-ja/files/xinput-im-ja
new file mode 100644
index 000000000000..6f76ec609ac1
--- /dev/null
+++ b/app-i18n/im-ja/files/xinput-im-ja
@@ -0,0 +1,7 @@
+XIM=im-ja-xim-server
+XIM_PROGRAM="@EPREFIX@/usr/bin/im-ja-xim-server"
+PREFERENCE_PROGRAM="@EPREFIX@/usr/bin/im-ja-conf"
+ICON=im-ja-capplet
+SHORT_DESC="im-ja"
+GTK_IM_MODULE=im-ja
+#QT_IM_MODULE=im-ja
diff --git a/app-i18n/im-ja/im-ja-1.5-r3.ebuild b/app-i18n/im-ja/im-ja-1.5-r3.ebuild
new file mode 100644
index 000000000000..d7f424188faf
--- /dev/null
+++ b/app-i18n/im-ja/im-ja-1.5-r3.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GNOME2_LA_PUNT="yes"
+GCONF_DEBUG="no"
+
+inherit autotools gnome2 eutils multilib readme.gentoo
+
+DESCRIPTION="A Japanese input module for GTK2 and XIM"
+HOMEPAGE="http://im-ja.sourceforge.net/"
+SRC_URI="http://im-ja.sourceforge.net/${P}.tar.gz
+ http://im-ja.sourceforge.net/old/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="canna freewnn skk anthy"
+# --enable-debug causes build failure with gtk+-2.4
+#IUSE="${IUSE} debug"
+
+RDEPEND="
+ >=dev-libs/glib-2.4:2
+ >=dev-libs/atk-1.6
+ >=x11-libs/gtk+-2.4:2
+ >=x11-libs/pango-1.2.1
+ >=gnome-base/gconf-2.4:2
+ >=gnome-base/libglade-2.4:2.0
+ >=gnome-base/libgnomeui-2.4
+ freewnn? ( app-i18n/freewnn )
+ canna? ( app-i18n/canna )
+ skk? ( virtual/skkserv )
+ anthy? ( app-i18n/anthy )
+"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ dev-util/intltool
+ dev-perl/URI
+ virtual/pkgconfig
+"
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="This version of im-ja comes with experimental XIM support.
+If you'd like to try it out, run im-ja-xim-server and set
+environment variable XMODIFIERS to @im=im-ja-xim-server
+e.g.)
+$ export XMODIFIERS=@im=im-ja-xim-server (sh)
+> setenv XMODIFIERS @im=im-ja-xim-server (csh)"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-gentoo.patch" \
+ "${FILESDIR}"/${P}-pofiles.patch \
+ "${FILESDIR}/${P}-underlinking.patch"
+
+ sed -ie 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in || die
+
+ eautoreconf
+ gnome2_src_prepare
+}
+
+src_configure() {
+ local myconf
+ # You cannot use `use_enable ...` here. im-ja's configure script
+ # doesn't distinguish --enable-canna from --disable-canna, so
+ # --enable-canna stands for --disable-canna in the script ;-(
+ use canna || myconf="$myconf --disable-canna"
+ use freewnn || myconf="$myconf --disable-wnn"
+ use anthy || myconf="$myconf --disable-anthy"
+ use skk || myconf="$myconf --disable-skk"
+ #use debug && myconf="$myconf --enable-debug"
+
+ gnome2_src_configure \
+ --disable-gnome \
+ $myconf
+}
+
+src_install() {
+ gnome2_src_install
+
+ sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-${PN}" > "${T}/${PN}.conf" || die
+ insinto /etc/X11/xinit/xinput.d
+ doins "${T}/${PN}.conf"
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk2
+ gnome2_pkg_postinst
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+ gnome2_pkg_postrm
+}
diff --git a/app-i18n/im-ja/metadata.xml b/app-i18n/im-ja/metadata.xml
new file mode 100644
index 000000000000..46a11b21711f
--- /dev/null
+++ b/app-i18n/im-ja/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+<longdescription>
+ IM-JA is a Japanese input module for GTK+2. It supports kanji
+ conversion using either the Canna or the (Free)Wnn kanji conversion
+ engine. IM-JA can also do kanji character recognition, you can draw
+ kanji into a widget using the mouse. This feature is based on the
+ KanjiPad application which has been enhanced in IM-JA.
+</longdescription>
+<use>
+ <flag name='anthy'>Support for Anthy input method</flag>
+ <flag name='skk'>Support for SKK input method</flag>
+</use>
+</pkgmetadata>
diff --git a/app-i18n/imhangul/Manifest b/app-i18n/imhangul/Manifest
new file mode 100644
index 000000000000..36dd1d9666fc
--- /dev/null
+++ b/app-i18n/imhangul/Manifest
@@ -0,0 +1,6 @@
+DIST imhangul-0.9.16.tar.bz2 253102 SHA256 fb36064cfdec3d3a36a4d9a08ccdcd9d2dbb5b999a6ff6688527139addc8add3 SHA512 60d233c96c442dcb34ffdd269d9793a12845481a7f213e5ea2337368b82cece58a7978a4702f79ab540191a851e93c251d72ddbbab10c2632f783d33dfc5c702 WHIRLPOOL a56b2697608a9692b4ca46d31fcf9bd49e2b8829c1c9c68f0cd861e7bcfbf3578b4b368c539addc509647c80ab5cd2288c9125f129b88ef73dd8030c4ffaf86f
+DIST imhangul-2.0.0.tar.bz2 255591 SHA256 504b3cce9dc269bc94a14c6e725b86620cb135e6d43f8b945d799162f50bbb43 SHA512 203d83ec714ee464d3caa304a462a93129712d2221188a4f5cbb1caac309fb91f3b49749ab81d01d3c8bc2feeaf80398e9b8bc5e09b79c228fbc13ed9fbc28d3 WHIRLPOOL c4a7372215de7ec4a5fb850be6a8756c21096fb12ebb7e2d25e7fddbe369aad584ab98b9a76ddfaa862d03341d7c5efc0455a419ac663fd6c6cc51a7b4f6bd59
+DIST imhangul-2.1.0.tar.bz2 268205 SHA256 08c6deb97eda7c96e8180528f3b2aeee3e367757c643e2c48dde7d7b5ac77dc9 SHA512 ea4621c4e0e5ed1786e644b577bc0c9f3dbbf296f938ddb2ab04923d8147e01123e10e09a61484e30c3ab0ff51d86da80a93bce583eceee207eab90c27df5f8e WHIRLPOOL c758955538eb970b3a2ed73df3ba6c08963ea16628b1befa8f7130f6afa00dc8179ea9bf25a951070c0fdb17fcaa0a17c6d0e97b5eebbd3e6c1d859ad1f00348
+DIST imhangul-3.0.0.tar.bz2 265064 SHA256 fbc6fbdd33781eeac873c677cb30da7163f0f8e8277bad386a93267c34b50eef SHA512 39e52716c0d9ad60200627bc8231ae4ff639504c3ea4a826bbc02c420af71586ac1c96aa19842eda2e14700bde4a656eed6a5af08f6ced7d3c11ca82e71a5dba WHIRLPOOL c5700937a4f4cd4945662afc28bbdfa3e4565ab9f8762a0a2fcb6019bf457d32788f913272eccce336f0baa00ed187f6f6b87c4c04449c8ba981390b1181f825
+DIST imhangul-3.1.0.tar.bz2 267943 SHA256 69cd696a56321dd6cf7dc32d4bc7959a5853aee6ee61e4c4b26521473e84dad3 SHA512 48f3247511925e670bcafd07437e66943fbc50b58cd1b2c40832c6b71df39804b57e0bcb2d8dcf41d5309067becaef436b8102241d8e47519a5a351e9c27379a WHIRLPOOL 840e93f99226eaa3597f603754e36a9955dd52dd6076ab67f3da242fc0efaf9a9c7ca11bd52871878b56fc807c9925f2f1d654024cbfba3012ecfd7c3ade99f0
+DIST imhangul-3.1.1.tar.bz2 288236 SHA256 24f103e55c38f2cd4b708398106ac19760e2ef1834513f46f32b0baf439461e0 SHA512 a27fb34a826ceccb16e4c8a422f5571c7c6a4c253cd2a55c1025b0c22500a380a35a8703e9f0f6300fdc92544e1d7b59e33f11e059b85754b1619698e0f74d89 WHIRLPOOL c5cdb552891463a1d3f231b17ab9bf50810746a2ca7bfe3f9aeed001356232f188512de9e66c2d34777eec784c139e8286e7050fae6351b5e90099ec655d2764
diff --git a/app-i18n/imhangul/files/xinput-imhangul2 b/app-i18n/imhangul/files/xinput-imhangul2
new file mode 100644
index 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-0.9.16.ebuild b/app-i18n/imhangul/imhangul-0.9.16.ebuild
new file mode 100644
index 000000000000..45f35540de9b
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-0.9.16.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit multilib
+
+DESCRIPTION="Gtk+-2.0 Hangul Input Modules"
+HOMEPAGE="http://kldp.net/projects/imhangul/"
+SRC_URI="http://kldp.net/frs/download.php/5856/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ >=x11-libs/gtk+-2.2:2
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+get_gtk_confdir() {
+ if has_multilib_profile ; then
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0/${CHOST}}"
+ else
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0}"
+ fi
+ echo ${GTK2_CONFDIR}
+}
+
+update_gtk_immodules() {
+ local GTK2_CONFDIR=$(get_gtk_confdir)
+
+ mkdir -p "${GTK2_CONFDIR}"
+
+ if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then
+ "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${GTK2_CONFDIR}/gtk.immodules"
+ fi
+}
+
+src_configure() {
+ econf \
+ --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-2.0/immodules" \
+ --with-gtk-im-module-file="$(get_gtk_confdir)" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+pkg_postinst() {
+ update_gtk_immodules
+
+ elog ""
+ elog "If you want to use one of the module as a default input method, "
+ elog ""
+ elog "export GTK_IM_MODULE=hangul2 # 2 input type"
+ elog "export GTK_IM_MODULE=hangul3f # 3 input type"
+ elog ""
+}
+
+pkg_postrm() {
+ update_gtk_immodules
+}
diff --git a/app-i18n/imhangul/imhangul-2.0.0.ebuild b/app-i18n/imhangul/imhangul-2.0.0.ebuild
new file mode 100644
index 000000000000..ccb76bb8681d
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-2.0.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit multilib
+
+DESCRIPTION="Gtk+-2.0 Hangul Input Modules"
+HOMEPAGE="http://kldp.net/projects/imhangul/"
+SRC_URI="http://kldp.net/frs/download.php/5924/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ >=x11-libs/gtk+-2.2:2
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+get_gtk_confdir() {
+ # bug #366889
+ if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0/$(get_abi_CHOST)}"
+ else
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0}"
+ fi
+ echo ${GTK2_CONFDIR}
+}
+
+update_gtk_immodules() {
+ local GTK2_CONFDIR=$(get_gtk_confdir)
+
+ mkdir -p "${GTK2_CONFDIR}"
+
+ if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then
+ "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${GTK2_CONFDIR}/gtk.immodules"
+ fi
+}
+
+src_prepare() {
+ # Drop DEPRECATED flags, bug #387825
+ sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-2.0/immodules" \
+ --with-gtk-im-module-file="$(get_gtk_confdir)" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}" -name "*.la" -type f -delete || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+pkg_postinst() {
+ update_gtk_immodules
+
+ elog ""
+ elog "If you want to use one of the module as a default input method, "
+ elog ""
+ elog "export GTK_IM_MODULE=hangul2 # 2 input type"
+ elog "export GTK_IM_MODULE=hangul3f # 3 input type"
+ elog ""
+}
+
+pkg_postrm() {
+ update_gtk_immodules
+}
diff --git a/app-i18n/imhangul/imhangul-2.1.0.ebuild b/app-i18n/imhangul/imhangul-2.1.0.ebuild
new file mode 100644
index 000000000000..a3018c913246
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-2.1.0.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit gnome2-utils multilib
+
+DESCRIPTION="Gtk+-2.0 Hangul Input Modules"
+HOMEPAGE="http://code.google.com/p/imhangul/"
+SRC_URI="http://imhangul.googlecode.com/files/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ >=x11-libs/gtk+-2.2:2
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+get_gtk_confdir() {
+ # bug #366889
+ if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0/$(get_abi_CHOST)}"
+ else
+ GTK2_CONFDIR="${GTK2_CONFDIR:=${EPREFIX}/etc/gtk-2.0}"
+ fi
+ echo ${GTK2_CONFDIR}
+}
+
+src_prepare() {
+ # Drop DEPRECATED flags, bug #387825
+ sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-2.0/immodules" \
+ --with-gtk-im-module-file="$(get_gtk_confdir)" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}" -name "*.la" -type f -delete || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk2
+ elog ""
+ elog "If you want to use one of the module as a default input method, "
+ elog ""
+ elog "export GTK_IM_MODULE=hangul2 # 2 input type"
+ elog "export GTK_IM_MODULE=hangul3f # 3 input type"
+ elog ""
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/imhangul/imhangul-3.0.0.ebuild b/app-i18n/imhangul/imhangul-3.0.0.ebuild
new file mode 100644
index 000000000000..2bb88e90cf2f
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-3.0.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit gnome2-utils multilib
+
+DESCRIPTION="Gtk+-3.0 Hangul Input Modules"
+HOMEPAGE="http://kldp.net/projects/imhangul/"
+SRC_URI="http://kldp.net/frs/download.php/5925/${P}.tar.bz2"
+
+SLOT="3"
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ x11-libs/gtk+:3
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_prepare() {
+ # Drop DEPRECATED flags, bug #387825
+ sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
+}
+
+src_configure() {
+ econf --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-3.0/$(pkg-config gtk+-3.0 --variable=gtk_binary_version)/immodules" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}" -name "*.la" -type f -delete || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk3
+ elog ""
+ elog "If you want to use one of the module as a default input method, "
+ elog ""
+ elog "export GTK_IM_MODULE=hangul2 # 2 input type"
+ elog "export GTK_IM_MODULE=hangul3f # 3 input type"
+ elog ""
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/imhangul/imhangul-3.1.0.ebuild b/app-i18n/imhangul/imhangul-3.1.0.ebuild
new file mode 100644
index 000000000000..8dd79cd53998
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-3.1.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit gnome2-utils multilib
+
+DESCRIPTION="Gtk+-3.0 Hangul Input Modules"
+HOMEPAGE="http://code.google.com/p/imhangul/"
+SRC_URI="http://imhangul.googlecode.com/files/${P}.tar.bz2"
+
+SLOT="3"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ x11-libs/gtk+:3
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_prepare() {
+ # Drop DEPRECATED flags, bug #387825
+ sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
+}
+
+src_configure() {
+ econf --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-3.0/$(pkg-config gtk+-3.0 --variable=gtk_binary_version)/immodules" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}" -name "*.la" -type f -delete || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk3
+
+ elog ""
+ elog "If you want to use one of the module as a default input method, "
+ elog ""
+ elog "export GTK_IM_MODULE=hangul2 # 2 input type"
+ elog "export GTK_IM_MODULE=hangul3f # 3 input type"
+ elog ""
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/imhangul/imhangul-3.1.1.ebuild b/app-i18n/imhangul/imhangul-3.1.1.ebuild
new file mode 100644
index 000000000000..9c28791db98e
--- /dev/null
+++ b/app-i18n/imhangul/imhangul-3.1.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit multilib
+
+DESCRIPTION="Gtk+-3.0 Hangul Input Modules"
+HOMEPAGE="http://code.google.com/p/imhangul/"
+SRC_URI="http://imhangul.googlecode.com/files/${P}.tar.bz2"
+
+SLOT="3"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ x11-libs/gtk+:3
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_prepare() {
+ # Drop DEPRECATED flags, bug #387825
+ sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' Makefile.am Makefile.in || die
+}
+
+src_configure() {
+ econf --with-gtk-im-module-dir="${EPREFIX}/usr/$(get_libdir)/gtk-3.0/$(pkg-config gtk+-3.0 --variable=gtk_binary_version)/immodules" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}" -name "*.la" -type f -delete || die
+
+ insinto /etc/X11/xinit/xinput.d
+ newins "${FILESDIR}/xinput-imhangul2" imhangul2.conf || die
+ newins "${FILESDIR}/xinput-imhangul2y" imhangul2y.conf || die
+ newins "${FILESDIR}/xinput-imhangul32" imhangul32.conf || die
+ newins "${FILESDIR}/xinput-imhangul39" imhangul39.conf || die
+ newins "${FILESDIR}/xinput-imhangul3f" imhangul3f.conf || die
+ newins "${FILESDIR}/xinput-imhangul3s" imhangul3s.conf || die
+ newins "${FILESDIR}/xinput-imhangul3y" imhangul3y.conf || die
+ newins "${FILESDIR}/xinput-imhangulahn" imhangulahn.conf || die
+ newins "${FILESDIR}/xinput-imhangulro" imhangulro.conf || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO imhangul.conf || die
+}
+
+pkg_postinst() {
+ gnome2_query_immodules_gtk3
+ elog ""
+ elog "If you want to use one of the module as a default input method, "
+ elog ""
+ elog "export GTK_IM_MODULE=hangul2 # 2 input type"
+ elog "export GTK_IM_MODULE=hangul3f # 3 input type"
+ elog ""
+}
+
+pkg_postrm() {
+ gnome2_query_immodules_gtk3
+}
diff --git a/app-i18n/imhangul/metadata.xml b/app-i18n/imhangul/metadata.xml
new file mode 100644
index 000000000000..b59e83555ce5
--- /dev/null
+++ b/app-i18n/imhangul/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">imhangul</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/imsettings/Manifest b/app-i18n/imsettings/Manifest
new file mode 100644
index 000000000000..684dc0aaa9e7
--- /dev/null
+++ b/app-i18n/imsettings/Manifest
@@ -0,0 +1,2 @@
+DIST imsettings-1.5.0.tar.bz2 567488 SHA256 06a9d82718104fb9b86ded11bc73afaf7dd858b138eb24d8264c6a4877db161e SHA512 0743264fc09c9998d93fd92195946936141f17a943783b40906d0e269db691c7559e05158217f7a3b46b18cd29004338b94ca9958d52185c630e26cd7dfca08d WHIRLPOOL 21e96e5b9aeb80189a9aa6650d86d0cf1a72287a246eb43c0e54af94d1d5dc37e47c5760e17b36c0c3f222367520f81a50150fc3e4a4449e3ed284d237e91d06
+DIST imsettings-1.6.8.tar.bz2 593942 SHA256 2620ffbf9a6dc842dbf994b4773d4fe355eb77076ccf33f726ba63f16c0d08ba SHA512 a15a4824529b16f61653fdf3e149656c7a2ca1384579c755cec6650414499c3d24ac15178971d961f327c5fd8acd7892b9b4f9c60608166c281c11ab3f2b25b0 WHIRLPOOL c39cb54b9be8424dc1d9eceae12f793847585638f29a52282427c3c07ee1bd3e5ed9d67ff73727b055499c3963e106024eb9f164b32ebcf553b2dfccf1114a6d
diff --git a/app-i18n/imsettings/files/imsettings-1.5.0-gir-scanner.patch b/app-i18n/imsettings/files/imsettings-1.5.0-gir-scanner.patch
new file mode 100644
index 000000000000..be7350f9401f
--- /dev/null
+++ b/app-i18n/imsettings/files/imsettings-1.5.0-gir-scanner.patch
@@ -0,0 +1,29 @@
+From 75e1ec9cea4bb9f108c0637a4b62cabfa500ed61 Mon Sep 17 00:00:00 2001
+From: Akira TAGOH <akira@tagoh.org>
+Date: Wed, 3 Apr 2013 19:37:15 +0900
+Subject: [PATCH] Fix a build issue with the latest gobject-introspection
+
+---
+ imsettings/Makefile.am | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/imsettings/Makefile.am b/imsettings/Makefile.am
+index 574480a..8e5999a 100644
+--- a/imsettings/Makefile.am
++++ b/imsettings/Makefile.am
+@@ -117,9 +117,11 @@ IMSettings_1_3_gir_INCLUDES = \
+ GObject-2.0 \
+ Gio-2.0 \
+ $(NULL)
++IMSettings_1_3_gir_SCANNERFLAGS = \
++ --symbol-prefix=imsettings \
++ $(NULL)
+ IMSettings_1_3_gir_CFLAGS = \
+ $(INCLUDES) \
+- --symbol-prefix=imsettings \
+ $(NULL)
+ IMSettings_1_3_gir_LIBS = libimsettings.la
+ IMSettings_1_3_gir_FILES = $(introspection_sources)
+--
+1.8.5.2
+
diff --git a/app-i18n/imsettings/imsettings-1.5.0.ebuild b/app-i18n/imsettings/imsettings-1.5.0.ebuild
new file mode 100644
index 000000000000..b91eac4a64ac
--- /dev/null
+++ b/app-i18n/imsettings/imsettings-1.5.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils autotools
+
+DESCRIPTION="Delivery framework for general Input Method configuration"
+HOMEPAGE="http://tagoh.github.com/imsettings/"
+SRC_URI="https://bitbucket.org/tagoh/imsettings/downloads/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gconf gtk3 qt4 static-libs xfconf"
+
+# X11 connections are required for test.
+RESTRICT="test"
+
+RDEPEND=">=dev-libs/check-0.9.4
+ >=dev-libs/glib-2.26
+ sys-apps/dbus
+ >=x11-libs/gtk+-2.12:2
+ >=x11-libs/libgxim-0.4.0
+ >=x11-libs/libnotify-0.7
+ x11-libs/libX11
+ gconf? ( gnome-base/gconf )
+ gtk3? ( x11-libs/gtk+:3 )
+ qt4? ( dev-qt/qtcore:4 )
+ xfconf? ( xfce-base/xfconf )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ doc? ( dev-util/gtk-doc )"
+
+MY_XINPUTSH="90-xinput"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_prepare() {
+ # Prevent automagic linking to libxfconf-0.
+ if ! use gconf; then
+ sed -i -e 's:gconf-2.0:dIsAbLe&:' configure || die
+ fi
+ if ! use gtk3; then
+ sed -i -e 's:gtk+-3.0:dIsAbLe&:' configure || die
+ fi
+ if ! use qt4; then
+ sed -i -e 's:QtCore:dIsAbLe&:' configure || die
+ fi
+ if ! use xfconf; then
+ sed -i -e 's:libxfconf-0:dIsAbLe&:' configure || die
+ fi
+ epatch "${FILESDIR}"/${P}-gir-scanner.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ --with-xinputsh="${MY_XINPUTSH}"
+}
+
+src_install() {
+ default
+
+ find "${ED}" -name '*.la' -exec rm -f '{}' +
+
+ fperms 0755 /usr/libexec/xinputinfo.sh
+ fperms 0755 "/etc/X11/xinit/xinitrc.d/${MY_XINPUTSH}"
+}
+
+pkg_postinst() {
+ if [ ! -e "${EPREFIX}/etc/X11/xinit/xinputrc" ] ; then
+ ln -sf xinput.d/xcompose.conf "${EPREFIX}/etc/X11/xinit/xinputrc"
+ fi
+}
diff --git a/app-i18n/imsettings/imsettings-1.6.8.ebuild b/app-i18n/imsettings/imsettings-1.6.8.ebuild
new file mode 100644
index 000000000000..1454eeaa1602
--- /dev/null
+++ b/app-i18n/imsettings/imsettings-1.6.8.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils autotools
+
+DESCRIPTION="Delivery framework for general Input Method configuration"
+HOMEPAGE="http://tagoh.bitbucket.org/imsettings/"
+SRC_URI="https://bitbucket.org/tagoh/imsettings/downloads/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc gconf gtk3 qt4 static-libs xfconf"
+
+# X11 connections are required for test.
+RESTRICT="test"
+
+RDEPEND=">=dev-libs/check-0.9.4
+ >=dev-libs/glib-2.32
+ sys-apps/dbus
+ >=x11-libs/gtk+-2.12:2
+ >=x11-libs/libgxim-0.5.0
+ >=x11-libs/libnotify-0.7
+ x11-libs/libX11
+ gconf? ( gnome-base/gconf )
+ gtk3? ( x11-libs/gtk+:3 )
+ qt4? ( dev-qt/qtcore:4 )
+ xfconf? ( xfce-base/xfconf )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ doc? ( dev-util/gtk-doc )"
+
+MY_XINPUTSH="90-xinput"
+
+DOCS=( AUTHORS ChangeLog NEWS README )
+
+src_prepare() {
+ # Prevent automagic linking to libxfconf-0.
+ if ! use gconf; then
+ sed -i -e 's:gconf-2.0:dIsAbLe&:' configure || die
+ fi
+ if ! use gtk3; then
+ sed -i -e 's:gtk+-3.0:dIsAbLe&:' configure || die
+ fi
+ if ! use qt4; then
+ sed -i -e 's:use_qt="yes":use_qt="no":' configure || die
+ fi
+ if ! use xfconf; then
+ sed -i -e 's:libxfconf-0:dIsAbLe&:' configure || die
+ fi
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ --with-xinputsh="${MY_XINPUTSH}"
+}
+
+src_install() {
+ default
+
+ find "${ED}" -name '*.la' -exec rm -f '{}' +
+
+ fperms 0755 /usr/libexec/xinputinfo.sh
+ fperms 0755 "/etc/X11/xinit/xinitrc.d/${MY_XINPUTSH}"
+}
+
+pkg_postinst() {
+ if [ ! -e "${EPREFIX}/etc/X11/xinit/xinputrc" ] ; then
+ ln -sf xinput.d/xcompose.conf "${EPREFIX}/etc/X11/xinit/xinputrc"
+ fi
+}
diff --git a/app-i18n/imsettings/metadata.xml b/app-i18n/imsettings/metadata.xml
new file mode 100644
index 000000000000..6a110ec0e896
--- /dev/null
+++ b/app-i18n/imsettings/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+<use>
+ <flag name='xfconf'>Enable integration in the Xfce desktop environment with <pkg>xfce-base/xfconf</pkg></flag>
+ <flag name='gconf'>Enable GConf support</flag>
+ <flag name='gtk3'>Enable support for <pkg>x11-libs/gtk+</pkg>:3</flag>
+</use>
+</pkgmetadata>
diff --git a/app-i18n/jfbterm/Manifest b/app-i18n/jfbterm/Manifest
new file mode 100644
index 000000000000..395a7a7dc0a4
--- /dev/null
+++ b/app-i18n/jfbterm/Manifest
@@ -0,0 +1 @@
+DIST jfbterm-0.4.7.tar.gz 104592 SHA256 a18446040cfaadd51c1ce77bb06ba6860372a70a04e36962e2635253a1f693a3 SHA512 267dc777c2a296731ac7e5fb89381891e26ac119be63c8889b0e194246a3ac03b1c4b50f7d9254221c2ab201a126da46d312946845ddaad82fcc718a76472dcc WHIRLPOOL faa57bca89ab88808b07f0902d86069df8440feb840a72842efe6f4c30922fbc1bdf622715fe93f75d3beee5fab40b72ded107cf17a7b91f2c3fcc86f43d5944
diff --git a/app-i18n/jfbterm/files/jfbterm-0.4.7-gentoo.patch b/app-i18n/jfbterm/files/jfbterm-0.4.7-gentoo.patch
new file mode 100644
index 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/jfbterm-0.4.7-r4.ebuild b/app-i18n/jfbterm/jfbterm-0.4.7-r4.ebuild
new file mode 100644
index 000000000000..a1266429d3f4
--- /dev/null
+++ b/app-i18n/jfbterm/jfbterm-0.4.7-r4.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit flag-o-matic eutils autotools
+
+DESCRIPTION="The J Framebuffer Terminal/Multilingual Enhancement with UTF-8 support"
+HOMEPAGE="http://jfbterm.sourceforge.jp/"
+SRC_URI="mirror://sourceforge.jp/${PN}/13501/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 sparc x86"
+IUSE="debug"
+
+DEPEND=">=sys-libs/ncurses-5.6"
+RDEPEND="media-fonts/unifont
+ media-fonts/font-misc-misc
+ media-fonts/intlfonts"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-sigchld-debian.patch"
+ epatch "${FILESDIR}/${P}-no-kernel-headers.patch"
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+
+ eautoreconf
+}
+
+src_compile() {
+ econf $(use_enable debug) || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ dodir /etc /usr/share/fonts/jfbterm
+ emake -j1 DESTDIR="${D}" install || die "emake install failed"
+
+ mv "${D}"/etc/jfbterm.conf{.sample,}
+
+ doman jfbterm.1 jfbterm.conf.5 || die "doman failed"
+
+ dodoc AUTHORS ChangeLog NEWS README* jfbterm.conf.sample* \
+ || die "dodoc failed"
+}
diff --git a/app-i18n/jfbterm/metadata.xml b/app-i18n/jfbterm/metadata.xml
new file mode 100644
index 000000000000..8c34bf4bda67
--- /dev/null
+++ b/app-i18n/jfbterm/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">
+ JFBTERM/ME takes advantages of framebuffer device that is supported
+ since linux kernel 2.2.x (at least on ix86 architecture) and make it
+ enable to display multilingual text on console. Is is developed on
+ ix86 architecture, and it will works on other architectures such as
+ linux/ppc.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge-jp">jfbterm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/kakasi/Manifest b/app-i18n/kakasi/Manifest
new file mode 100644
index 000000000000..c19d7ceda062
--- /dev/null
+++ b/app-i18n/kakasi/Manifest
@@ -0,0 +1 @@
+DIST kakasi-2.3.4.tar.gz 1099258 SHA256 c272560f5c11fe45b011c4e26ada66218fb0109d5582c5876aa49c5e24718534 SHA512 33fa17251ba00163f6d9df208f18c88ff2dfa9891320f1d00fc0c72686bbcc59cf3ccbfb76fa66dfb135a6e942ef4d5d907edc3f1ca9d380c5b7a7d4df090a66 WHIRLPOOL 018eacc55750f22839639248c97888c039b2cd16053f486ce4017080c8462f6aa214f5ac6d18e9a7ec6a00317c54ad8aa666992d889ab96846c680403d1dece3
diff --git a/app-i18n/kakasi/kakasi-2.3.4-r1.ebuild b/app-i18n/kakasi/kakasi-2.3.4-r1.ebuild
new file mode 100644
index 000000000000..c0b6caba0991
--- /dev/null
+++ b/app-i18n/kakasi/kakasi-2.3.4-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Converts Japanese text between kanji, kana, and romaji"
+HOMEPAGE="http://kakasi.namazu.org/"
+SRC_URI="http://kakasi.namazu.org/stable/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
+IUSE=""
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ doman doc/kakasi.1
+ dodoc AUTHORS ChangeLog NEWS ONEWS README README-ja THANKS TODO
+ dodoc doc/ChangeLog.lib doc/JISYO doc/README.lib
+}
diff --git a/app-i18n/kakasi/metadata.xml b/app-i18n/kakasi/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/kakasi/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/kanjipad/Manifest b/app-i18n/kanjipad/Manifest
new file mode 100644
index 000000000000..74ae797b8b6c
--- /dev/null
+++ b/app-i18n/kanjipad/Manifest
@@ -0,0 +1 @@
+DIST kanjipad-2.0.0.tar.gz 75930 SHA256 28272f61ec09c607a3578e3626e9e4fd43d1d9d1e21cb64328745766d00ee9e1 SHA512 66a38597358f97a9b43c3d1f4a9d6cf583b6158350131bae3b4d47edb167877def8eff4dde666c41549accb54c7256e08403985bb06d56758050a46d5b471ef6 WHIRLPOOL e94dfc8be761ded30eeb09c33c80cd23af99135fc68a890ceb71bdb7508f3a88264cb21f69d93259a1e2101f769cc7114968be856eeafbbcd00f587b743e770f
diff --git a/app-i18n/kanjipad/files/kanjipad-2.0.0-cflags.patch b/app-i18n/kanjipad/files/kanjipad-2.0.0-cflags.patch
new file mode 100644
index 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..478fc76a6759
--- /dev/null
+++ b/app-i18n/kanjipad/kanjipad-2.0.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Japanese handwriting recognition tool"
+HOMEPAGE="http://fishsoup.net/software/kanjipad/"
+SRC_URI="http://fishsoup.net/software/kanjipad/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 amd64 ppc64"
+IUSE=""
+
+RDEPEND="x11-libs/gtk+:2
+ dev-libs/glib:2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cflags.patch \
+ "${FILESDIR}"/${P}-underlinking.patch
+}
+
+src_compile() {
+ tc-export CC
+ perl -i -pe "s|PREFIX=/usr/local|PREFIX=/usr|;
+ s|-DG.*DISABLE_DEPRECATED||g" Makefile || die
+
+ emake || die
+}
+
+src_install() {
+ dobin kanjipad kpengine || die
+ insinto /usr/share/kanjipad
+ doins jdata.dat || die
+ dodoc ChangeLog README TODO jstroke/README-kanjipad
+}
diff --git a/app-i18n/kanjipad/metadata.xml b/app-i18n/kanjipad/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/kanjipad/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/kcc/Manifest b/app-i18n/kcc/Manifest
new file mode 100644
index 000000000000..12d1e3d80c0b
--- /dev/null
+++ b/app-i18n/kcc/Manifest
@@ -0,0 +1 @@
+DIST kcc.tar.gz 18869 SHA256 4f77ab0bcd7b377bca887973eb364ba5b2f9a0c057fb7e0f9b998f020f57d231 SHA512 2ec1645bb7edbe49c6845cd6e6794568bd48efec367d2d9628ddb8a72d2b5edd590be101f4d9c8856764ae85c9aad7b0adf69601b78fddffdc23235b96f65145 WHIRLPOOL b957057124acaacb61141d26b509ed8b73443b68d8a5f3fb4e498807dcc6f3aa88e120b1467adede86990f85a07776459e7bd0f1224ec8f79b2c1595074ef978
diff --git a/app-i18n/kcc/files/kcc-exit.diff b/app-i18n/kcc/files/kcc-exit.diff
new file mode 100644
index 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..850711cc64d1
--- /dev/null
+++ b/app-i18n/kcc/kcc-1.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A Kanji code converter"
+HOMEPAGE="http://www2s.biglobe.ne.jp/~Nori/ruby/"
+SRC_URI="ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/${PN}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-gcc3-gentoo.diff"
+ epatch "${FILESDIR}/${PN}-exit.diff"
+ sed -i "s:\(-o kcc\):\$(LDFLAGS) \1:" Makefile
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin kcc
+ dodoc README
+ cp -f kcc.jman kcc.1 || die
+ doman -i18n=ja kcc.1
+}
diff --git a/app-i18n/kcc/metadata.xml b/app-i18n/kcc/metadata.xml
new file mode 100644
index 000000000000..cb36a2fd8c76
--- /dev/null
+++ b/app-i18n/kcc/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/kcm-fcitx/Manifest b/app-i18n/kcm-fcitx/Manifest
new file mode 100644
index 000000000000..54f743a503aa
--- /dev/null
+++ b/app-i18n/kcm-fcitx/Manifest
@@ -0,0 +1,3 @@
+DIST kcm-fcitx-0.4.2.tar.xz 63796 SHA256 f681c1a4172b74a63c36094f860eff4ea778422e1062b00fd03509eda745ed66 SHA512 51ccc5b03f076e73cda7852b1bb1598e56114fe1a7733f3eb0a731c0249cbaa2ac7f4c27115929d236cc94a3f131fc790933cddff624387d050fecf3e170842e WHIRLPOOL 6c0f3e4d345c7570ee519878c141ba2f708c85e0dc8a171058af291e6a02b48cdd3965335b9eb766f9a149b31d5fccc0334f8bb7352eb978625367af064e6b17
+DIST kcm-fcitx-0.4.3.tar.xz 56864 SHA256 b7e9ad4569c0940f9654d58de1f13281fcbcab56febbd346951edcfa0a86e208 SHA512 d311699a5d99f75d353899b7fba0a950491ee8b891724b855033449900ec4b3db9408bb1b80e60ceb0dbb0ce91072162062261a497f83a2a683214b71c3f4713 WHIRLPOOL 04aec049436a120362d02ba900a0d8639feb359b4cc6b99a871c7ffa8d9660270c321828b8660c718890a7f0ea308ea584711ed712762aab712fe8d7e72a205a
+DIST kcm-fcitx-0.5.0.tar.xz 55964 SHA256 079b309aea4b354d081d45d3dde6d754b24717eb7653344055633453cb328b33 SHA512 219b962c4b6f1763b389dc20d22a671d960a884f5c3f0faddbd4919b61dd6d93e600cbf440b15bc42f63cb383ed5ca65e657fa835c520196c8bd9d64a160baa3 WHIRLPOOL df9db7b5198130409986c4805a7771b6df4bd44d532071499ec6eb522af7bfdd9d576fbdf3664720e47a02a57e35409c69fff962152423ac59bab71d8c1e0947
diff --git a/app-i18n/kcm-fcitx/kcm-fcitx-0.4.2.ebuild b/app-i18n/kcm-fcitx/kcm-fcitx-0.4.2.ebuild
new file mode 100644
index 000000000000..34b95e949f30
--- /dev/null
+++ b/app-i18n/kcm-fcitx/kcm-fcitx-0.4.2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit kde4-base
+
+DESCRIPTION="KDE configuration module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://fcitx.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.7[qt4]
+ x11-libs/libxkbfile"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
diff --git a/app-i18n/kcm-fcitx/kcm-fcitx-0.4.3.ebuild b/app-i18n/kcm-fcitx/kcm-fcitx-0.4.3.ebuild
new file mode 100644
index 000000000000..24407d44be69
--- /dev/null
+++ b/app-i18n/kcm-fcitx/kcm-fcitx-0.4.3.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit kde4-base
+
+DESCRIPTION="KDE configuration module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8[qt4]
+ x11-libs/libxkbfile"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
diff --git a/app-i18n/kcm-fcitx/kcm-fcitx-0.5.0.ebuild b/app-i18n/kcm-fcitx/kcm-fcitx-0.5.0.ebuild
new file mode 100644
index 000000000000..283188e82b5e
--- /dev/null
+++ b/app-i18n/kcm-fcitx/kcm-fcitx-0.5.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit kde5
+
+DESCRIPTION="KDE configuration module for Fcitx"
+HOMEPAGE="http://fcitx-im.org/"
+SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="5"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/fcitx-4.2.8
+ app-i18n/fcitx-qt5
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ $(add_frameworks_dep extra-cmake-modules)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kcmutils)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemviews)
+ $(add_frameworks_dep knewstuff)
+ $(add_frameworks_dep kwidgetsaddons)
+ sys-devel/gettext
+ x11-libs/libxkbfile"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ # po directory is empty, making the build fail
+ comment_add_subdirectory po
+}
diff --git a/app-i18n/kcm-fcitx/metadata.xml b/app-i18n/kcm-fcitx/metadata.xml
new file mode 100644
index 000000000000..cb36a2fd8c76
--- /dev/null
+++ b/app-i18n/kcm-fcitx/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/kde-l10n-scripts/kde-l10n-scripts-9999.ebuild b/app-i18n/kde-l10n-scripts/kde-l10n-scripts-9999.ebuild
new file mode 100644
index 000000000000..e3fc376d2aaa
--- /dev/null
+++ b/app-i18n/kde-l10n-scripts/kde-l10n-scripts-9999.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+EGIT_REPO_URI="git://github.com/vpelcak/kde-scripts.git"
+[[ ${PV} == 9999 ]] && inherit git-2
+
+DESCRIPTION="Set of scripts to manage KDE translation files"
+HOMEPAGE="https://github.com/vpelcak/kde-scripts"
+[[ ${PV} == 9999 ]] || SRC_URI=""
+
+LICENSE="LGPL-3"
+SLOT="0"
+[[ ${PV} == 9999 ]] || \
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ app-crypt/md5deep
+ app-i18n/pology
+ app-shells/bash:*
+ dev-vcs/subversion
+ kde-apps/poxml[extras]
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e "s:/usr/local:/usr:" \
+ Makefile || die
+}
diff --git a/app-i18n/kde-l10n-scripts/metadata.xml b/app-i18n/kde-l10n-scripts/metadata.xml
new file mode 100644
index 000000000000..c8d8de0993a3
--- /dev/null
+++ b/app-i18n/kde-l10n-scripts/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>scarabeus@gentoo.org</email>
+ <name>Tomáš Chvátal</name>
+ </maintainer>
+ <herd>kde</herd>
+ <upstream>
+ <remote-id type="github">vpelcak/kde-scripts</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/kimera/Manifest b/app-i18n/kimera/Manifest
new file mode 100644
index 000000000000..99c8bf06023d
--- /dev/null
+++ b/app-i18n/kimera/Manifest
@@ -0,0 +1 @@
+DIST kimera-2.11.tar.gz 106010 SHA256 4c3ccb532be1d50fa37963a0f0dfa661d92c9c13fcf618c17c9c5dbd66217d98 SHA512 b03ca2a665010e2d63100e367c42ebf1b1e68178093b78955bbeb5a73ebb6305f4292f925494e484edd574836ce66375f74766bd43445901c388e8db8d3a8e5b WHIRLPOOL 826f753c8370e4656e2cc500b02b37e17906fc08402eb0f023b4b3ea7d73fe69b65fc96685cb7cf17143713f4294ad3618e5118d4cae82359e253afdb33b19c7
diff --git a/app-i18n/kimera/files/kimera-2.11-underlinking.patch b/app-i18n/kimera/files/kimera-2.11-underlinking.patch
new file mode 100644
index 000000000000..dab4b63e7c14
--- /dev/null
+++ b/app-i18n/kimera/files/kimera-2.11-underlinking.patch
@@ -0,0 +1,13 @@
+diff --git a/kimera.pro b/kimera.pro
+index 0d4f0be..a2b63da 100644
+--- a/kimera.pro
++++ b/kimera.pro
+@@ -90,7 +90,7 @@ SOURCES = \
+ isEmpty( no_anthy ) {
+ HEADERS += src/anthyengine.h
+ SOURCES += src/anthyengine.cpp
+-# LIBS += -ldl
++ LIBS += $$QMAKE_LIBS_DYNLOAD
+ isEmpty( default_kanjiengine ) {
+ default_kanjiengine = Anthy
+ }
diff --git a/app-i18n/kimera/kimera-2.11-r1.ebuild b/app-i18n/kimera/kimera-2.11-r1.ebuild
new file mode 100644
index 000000000000..f4dd8e3d39e2
--- /dev/null
+++ b/app-i18n/kimera/kimera-2.11-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+inherit qt4-r2 eutils multilib
+
+DESCRIPTION="A Japanese input method which supports the XIM protocol"
+SRC_URI="mirror://sourceforge.jp/kimera/37271/${P}.tar.gz"
+HOMEPAGE="http://kimera.sourceforge.jp/"
+
+SLOT="0"
+LICENSE="GPL-3"
+KEYWORDS="amd64 x86"
+IUSE="+anthy"
+
+DEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qt3support:4
+ anthy? ( app-i18n/anthy )
+ !anthy? ( app-i18n/canna )"
+RDEPEND="${DEPEND}"
+
+DOCS="AUTHORS README*"
+
+src_configure() {
+ local myconf="target.path=/usr/$(get_libdir)/${P}"
+ use anthy || myconf="${myconf} no_anthy=1"
+ eqmake4 kimera.pro ${myconf}
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-underlinking.patch
+}
diff --git a/app-i18n/kimera/metadata.xml b/app-i18n/kimera/metadata.xml
new file mode 100644
index 000000000000..62f7c5a60790
--- /dev/null
+++ b/app-i18n/kimera/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription>
+Kimera is a Qt-based Japanese input method bridge.
+Currently it supports Canna and Anthy.
+</longdescription>
+ <use>
+ <flag name="anthy">Support for Anthy input method</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge-jp">kimera</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/kinput2/Manifest b/app-i18n/kinput2/Manifest
new file mode 100644
index 000000000000..fac30f308616
--- /dev/null
+++ b/app-i18n/kinput2/Manifest
@@ -0,0 +1 @@
+DIST kinput2-v3.1.tar.gz 512177 SHA256 2815c35181f9e9b866fb6e7f3d9bb8814b98312aad703ce5c7560d449eb60a9a SHA512 5950f7294fa2bf915e6591290a3deb2c95f27706f3a180a084d14fbc008f3cf363b155b29c8103a8b999e44ae98182ff35bcfda85725b2c565f3e37f54788731 WHIRLPOOL 620c7d619c9f2c9ba0b51b6a544f59be357598687d79888da30ff75ff9a85288cff08d208764d2918852f0233e6dabf26ad37bfa5a5db3b225fae8a0c72b9add
diff --git a/app-i18n/kinput2/files/kinput2-3.1-r1-gentoo.diff b/app-i18n/kinput2/files/kinput2-3.1-r1-gentoo.diff
new file mode 100644
index 000000000000..d4c03d527c4d
--- /dev/null
+++ b/app-i18n/kinput2/files/kinput2-3.1-r1-gentoo.diff
@@ -0,0 +1,125 @@
+diff -Naur kinput2-v3.1.orig/Kinput2.conf kinput2-v3.1/Kinput2.conf
+--- kinput2-v3.1.orig/Kinput2.conf 2002-10-03 18:35:26.000000000 +0900
++++ kinput2-v3.1/Kinput2.conf 2003-08-13 15:51:21.000000000 +0900
+@@ -17,8 +17,8 @@
+
+ /* #define UseWnn */ /* define if you are going to use Wnn (v4, v6 or v7) */
+ /* #define UseWnn6 */ /* define if you are going to use Wnn6 or above */
+-#define UseCanna /* define if you are going to use Canna */
+-#define UseSj3 /* define if you are going to use Sj3 */
++/* #define UseCanna */ /* define if you are going to use Canna */
++/* #define UseSj3 */ /* define if you are going to use Sj3 */
+ /* #define UseAtok */ /* define if you are going to use Atok */
+
+
+@@ -34,7 +34,7 @@
+ * You have to define WnnLibDir if Wnn4 configuration files
+ * are not installed in /usr/local/lib/wnn (which is the default).
+ */
+-/* #define WnnLibDir /some/peculiar/directory/wnn */
++#define WnnLibDir /usr/lib/wnn
+
+ /* for convenience.. */
+ #if defined(UseWnn6) && !defined(UseWnn)
+@@ -52,17 +52,17 @@
+ * WnnLibDir above.
+ */
+ XCOMM use installed header files
+-XCOMM WNNINCDIR = /usr/X11R6/include/wnn
++WNNINCDIR = /usr/include/wnn
+ XCOMM use installed library
+-XCOMM WNNLIB = -lwnn
++WNNLIB = -lwnn
+
+ /*
+ * Or, use library in the source tree..
+ */
+ XCOMM use library in the source tree
+-WNNSRC = $(CONTRIBSRC)/programs/Xsi/Wnn
+-WNNINCDIR = $(WNNSRC)/include
+-WNNLIB = $(WNNSRC)/jlib/libwnn.a
++XCOMM WNNSRC = $(CONTRIBSRC)/programs/Xsi/Wnn
++XCOMM WNNINCDIR = $(WNNSRC)/include
++XCOMM WNNLIB = $(WNNSRC)/jlib/libwnn.a
+
+
+ XCOMM Canna configuration
+@@ -78,17 +78,17 @@
+ * If you have already installed Canna header files and libraries..
+ */
+ XCOMM use installed headers/libraries
+-XCOMM CANNAINSTDIR = /usr/local/canna
+-XCOMM CANNASRC = $(CANNAINSTDIR)/include
+-XCOMM CANNALIB = -lcanna16
++CANNAINSTDIR = /usr
++CANNASRC = $(CANNAINSTDIR)/include
++CANNALIB = -lcanna16
+
+ /*
+ * If you have compiled Canna that came with X11R6 (contrib/programs/Canna),
+ * but not installed yet..
+ */
+ XCOMM use headers/libraries in the source tree
+-CANNASRC = $(CONTRIBSRC)/programs/Canna32
+-CANNALIB = -L$(CANNASRC)/lib/canna16 -lcanna16
++XCOMM CANNASRC = $(CONTRIBSRC)/programs/Canna32
++XCOMM CANNALIB = -L$(CANNASRC)/lib/canna16 -lcanna16
+
+
+ XCOMM SJ3 configuration
+@@ -100,7 +100,7 @@
+ * definition files are to be installed
+ */
+
+-SJ3DEF_DIR = $(LIBDIR)/sj3def
++XCOMM SJ3DEF_DIR = $(LIBDIR)/sj3def
+
+ /*
+ * If you have installed SJ3 library and header file,
+@@ -117,8 +117,8 @@
+ * Use compiled library in the source tree..
+ */
+ XCOMM use library in the source tree
+-SJ3SRC = $(CONTRIBSRC)/programs/sj3
+-SJ3LIB = $(SJ3SRC)/sj3lib/libsj3lib.a
++XCOMM SJ3SRC = $(CONTRIBSRC)/programs/sj3
++XCOMM SJ3LIB = $(SJ3SRC)/sj3lib/libsj3lib.a
+
+
+ XCOMM Atok configuration
+@@ -133,8 +133,8 @@
+ */
+ XCOMM use installed headers/libraries
+ XCOMM ATOKINCDIR = /usr/include/atok
+-XCOMM ATOKLIBDIR = /usr/jp/lib
+-ATOKLIB = -latok12n -latok12util
++XCOMM ATOKLIBDIR = /var/lib/atok
++XCOMM ATOKLIB = -latok12n -latok12util
+
+
+ /**
+diff -Naur kinput2-v3.1.orig/cmd/kinput2.c kinput2-v3.1/cmd/kinput2.c
+--- kinput2-v3.1.orig/cmd/kinput2.c 2002-10-03 18:35:26.000000000 +0900
++++ kinput2-v3.1/cmd/kinput2.c 2003-08-13 15:51:21.000000000 +0900
+@@ -644,3 +644,8 @@
+ return n;
+ }
+ #endif
++
++#if defined(linux) && defined(PPC)
++/* avoid nusty gcc bug */
++void _XtInherit() {}
++#endif
+diff -Naur kinput2-v3.1.orig/lib/imlib/imconv.c kinput2-v3.1/lib/imlib/imconv.c
+--- kinput2-v3.1.orig/lib/imlib/imconv.c 2002-10-03 18:35:30.000000000 +0900
++++ kinput2-v3.1/lib/imlib/imconv.c 2003-08-13 15:55:54.000000000 +0900
+@@ -591,6 +591,9 @@
+ }
+ }
+ IMFinishRequest(conn, offset);
++ #ifdef STATUS_SYNC
++ IMFlush(conn);
++ #endif /* STATUS_SYNC */
+ }
+
+ /*- preeditCaret: do actual preedit caret -*/
diff --git a/app-i18n/kinput2/files/xinput-kinput2 b/app-i18n/kinput2/files/xinput-kinput2
new file mode 100644
index 000000000000..16de07ca4f7e
--- /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..c83c9efc8ca3
--- /dev/null
+++ b/app-i18n/kinput2/kinput2-3.1-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+MY_P="${PN}-v${PV}"
+DESCRIPTION="A Japanese input server which supports the XIM protocol"
+HOMEPAGE="http://www.nec.co.jp/canna/"
+SRC_URI="ftp://ftp.sra.co.jp/pub/x11/${PN}/${MY_P}.tar.gz"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="x86 ppc sparc amd64 ppc64"
+IUSE="freewnn"
+
+RDEPEND="freewnn? ( >=app-i18n/freewnn-1.1.1_alpha19 )
+ !freewnn? ( >=app-i18n/canna-3.5_beta2-r1 )
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXmu
+ x11-libs/libXp
+ x11-libs/libXt"
+
+DEPEND="${RDEPEND}
+ x11-misc/gccmakedep
+ x11-misc/imake
+ app-text/rman"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ local mysed=""
+
+ unpack ${A}
+ epatch "${FILESDIR}/${PF}-gentoo.diff"
+
+ if use freewnn; then
+ sed -i -e '/\/\* #define UseWnn/s:^:#define UseWnn\n:' "${S}/Kinput2.conf"
+ else
+ sed -i -e '/\/\* #define UseCanna/s:^:#define UseCanna\n:' "${S}/Kinput2.conf"
+ fi
+}
+
+src_compile() {
+ xmkmf -a || die
+ emake \
+ XAPPLOADDIR="/usr/share/X11/app-defaults/" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" \
+ || die
+}
+
+src_install() {
+ emake XAPPLOADDIR="/usr/share/X11/app-defaults/" DESTDIR="${D}" install || die
+ rm -rf "${D}/usr/lib/X11"
+
+ dodoc README NEWS doc/*
+ newman cmd/${PN}.man ${PN}.1
+}
diff --git a/app-i18n/kinput2/kinput2-3.1-r2.ebuild b/app-i18n/kinput2/kinput2-3.1-r2.ebuild
new file mode 100644
index 000000000000..86aae3e92753
--- /dev/null
+++ b/app-i18n/kinput2/kinput2-3.1-r2.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit eutils
+
+MY_P="${PN}-v${PV}"
+DESCRIPTION="A Japanese input server which supports the XIM protocol"
+HOMEPAGE="http://www.nec.co.jp/canna/"
+SRC_URI="ftp://ftp.sra.co.jp/pub/x11/${PN}/${MY_P}.tar.gz"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86"
+IUSE="freewnn"
+
+RDEPEND="freewnn? ( >=app-i18n/freewnn-1.1.1_alpha19 )
+ !freewnn? ( >=app-i18n/canna-3.5_beta2-r1 )
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXmu
+ x11-libs/libXp
+ x11-libs/libXt"
+
+DEPEND="${RDEPEND}
+ x11-misc/gccmakedep
+ x11-misc/imake
+ app-text/rman"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-r1-gentoo.diff"
+
+ if use freewnn; then
+ sed -i -e '/\/\* #define UseWnn/s:^:#define UseWnn\n:' Kinput2.conf || die
+ else
+ sed -i -e '/\/\* #define UseCanna/s:^:#define UseCanna\n:' Kinput2.conf || die
+ fi
+}
+
+src_configure() {
+ xmkmf -a || die
+}
+
+src_compile() {
+ emake \
+ XAPPLOADDIR="${EPREFIX}/usr/share/X11/app-defaults/" \
+ CDEBUGFLAGS="${CFLAGS}" \
+ LOCAL_LDFLAGS="${LDFLAGS}" \
+ || die
+}
+
+src_install() {
+ emake XAPPLOADDIR="/usr/share/X11/app-defaults/" DESTDIR="${D}" install || die
+ rm -rf "${ED}/usr/lib/X11" || die
+
+ local server
+ if use freewnn; then
+ server="wnn"
+ else
+ server="canna"
+ fi
+
+ insinto /etc/X11/xinit/xinput.d
+ sed \
+ -e "s:@EPREFIX@:${EPREFIX}:g" \
+ -e "s:@SERVER@:${server}:g" \
+ "${FILESDIR}/xinput-kinput2" > "${T}/kinput2.conf" || die
+ doins "${T}/kinput2.conf" || die
+
+ dodoc README NEWS doc/* || die
+ newman cmd/${PN}.man ${PN}.1 || die
+}
diff --git a/app-i18n/kinput2/metadata.xml b/app-i18n/kinput2/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/kinput2/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/libcangjie/Manifest b/app-i18n/libcangjie/Manifest
new file mode 100644
index 000000000000..0e05223dc7a7
--- /dev/null
+++ b/app-i18n/libcangjie/Manifest
@@ -0,0 +1,2 @@
+DIST libcangjie-1.1.tar.xz 573924 SHA256 2909722abb9d85e83ad43c8ebd555d057c079014eb8e883c8d0f69b72d23031a SHA512 99c2dd055830bbaf6e2ef26cc285dd3edec780561af0799b450cc2fa44c8590217bbf38cd3d087c01cca1b467c7fff722c548b83fcb7c9177cd7c681a22f2901 WHIRLPOOL 9f5c72769dff9a09231ae3209b53e3427ad4e2b92a0143f4c43803624540038d4e58505b7bdc417e70f7bb53edcc11cdea31f8a2ecc5eadc578223cbf6bb3380
+DIST libcangjie-1.3.tar.xz 575240 SHA256 f4b9a0cf8673f49adb22b675992360799d66eb8d5bce2bd603358de78509d30b SHA512 216ad965cb265d700cc94e6b7892dd9a7d814eba364b7700870b7e704d17d8dc75be4c7af0a7a7fc0088a32e389e62822a05d089f1df714c5ffd347ece8b9f35 WHIRLPOOL 6f83df0dc10630f52ecbab5178c520dabcb19511fcac673484512193eeb5542d8d7daea1b5671f856f2898d4c6d97f1cc3125bc90c3567bfba46fe5da214fa0c
diff --git a/app-i18n/libcangjie/libcangjie-1.1.ebuild b/app-i18n/libcangjie/libcangjie-1.1.ebuild
new file mode 100644
index 000000000000..9604ed7dc1fe
--- /dev/null
+++ b/app-i18n/libcangjie/libcangjie-1.1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="The library implementing the Cangjie input method"
+HOMEPAGE="http://cangjians.github.io"
+SRC_URI="http://cangjians.github.io/downloads/libcangjie/libcangjie-${PV}.tar.xz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-db/sqlite:3="
+
+RDEPEND="${DEPEND}"
diff --git a/app-i18n/libcangjie/libcangjie-1.3.ebuild b/app-i18n/libcangjie/libcangjie-1.3.ebuild
new file mode 100644
index 000000000000..f7afc0e582d7
--- /dev/null
+++ b/app-i18n/libcangjie/libcangjie-1.3.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="The library implementing the Cangjie input method"
+HOMEPAGE="http://cangjians.github.io"
+SRC_URI="https://github.com/Cangjians/libcangjie/releases/download/v${PV}/libcangjie-${PV}.tar.xz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-db/sqlite:3="
+
+RDEPEND="${DEPEND}"
diff --git a/app-i18n/libcangjie/metadata.xml b/app-i18n/libcangjie/metadata.xml
new file mode 100644
index 000000000000..bab0395fc927
--- /dev/null
+++ b/app-i18n/libcangjie/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>brendan@horan.hk</email>
+ <name>Brendan Horan</name>
+ <description>Proxy - Maintainer. Assign bugs to him</description>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Cangjians/libcangjie</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/libguess/Manifest b/app-i18n/libguess/Manifest
new file mode 100644
index 000000000000..c63be4fc037c
--- /dev/null
+++ b/app-i18n/libguess/Manifest
@@ -0,0 +1,2 @@
+DIST libguess-1.1.tar.bz2 79915 SHA256 733e4782817666f108d6e8fd5c117e36a006779e049866b6814a8bce9b4d5af7 SHA512 8f817da7f05ff53886395183134d3dae40b2d31bf2296f1614c08d87d68b389e18dbaf9327d9c31cf5d4fff04a89edc6af2476d3a92384c57d6d2b0147525084 WHIRLPOOL 3c2a00e8512aade473252b5a918d74e88213bfc2ff120944a306ca4cdb2b9d4af074eadfb584f82cbb41b75a7d98f1ab24468759573265b8d2f4a5e84238da69
+DIST libguess-1.2.tar.bz2 79685 SHA256 8019a16bdc7ca9d2efbdcc1429d48d033d5053d42e45fccea10abf98074f05f8 SHA512 a17269e42e12b81e0201a27e41d9e290ac7351000473ddfcb968d5fc6e09cb5753d0534277ec257d43224cb675c8d563849853ab68ab6079a35480d6c40fb053 WHIRLPOOL 13214225ce44ec8f5f717eef3dbf402a5522a4de835bffd3d12607c16f2187d14bf0f7e6cea0e94d7a4c7142422170085a268ad30538b50186e278d11264fb6a
diff --git a/app-i18n/libguess/libguess-1.1.ebuild b/app-i18n/libguess/libguess-1.1.ebuild
new file mode 100644
index 000000000000..3be3a3f4f8c8
--- /dev/null
+++ b/app-i18n/libguess/libguess-1.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+DESCRIPTION="A high-speed character set detection library"
+HOMEPAGE="http://www.atheme.org/project/libguess"
+SRC_URI="http://distfiles.atheme.org/${P}.tar.bz2"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ~ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="examples"
+
+RDEPEND="
+ >=dev-libs/libmowgli-0.7.0:0"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_configure() {
+ econf $(use_enable examples) \
+ || die "econf failed"
+}
+
+src_test() {
+ cd src/tests
+ make || die "test failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README
+}
diff --git a/app-i18n/libguess/libguess-1.2.ebuild b/app-i18n/libguess/libguess-1.2.ebuild
new file mode 100644
index 000000000000..4d1c2337d4d7
--- /dev/null
+++ b/app-i18n/libguess/libguess-1.2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="A high-speed character set detection library"
+HOMEPAGE="http://www.atheme.org/project/libguess"
+SRC_URI="http://rabbit.dereferenced.org/~nenolod/distfiles/${P}.tar.bz2"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="examples"
+
+RDEPEND="
+ >=dev-libs/libmowgli-0.7.0:0"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_configure() {
+ econf $(use_enable examples) \
+ || die "econf failed"
+}
+
+src_test() {
+ cd src/tests
+ make || die "test failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README
+}
diff --git a/app-i18n/libguess/metadata.xml b/app-i18n/libguess/metadata.xml
new file mode 100644
index 000000000000..7803cdb58252
--- /dev/null
+++ b/app-i18n/libguess/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/libhangul/Manifest b/app-i18n/libhangul/Manifest
new file mode 100644
index 000000000000..be1d718c73ac
--- /dev/null
+++ b/app-i18n/libhangul/Manifest
@@ -0,0 +1,2 @@
+DIST libhangul-0.0.12.tar.gz 2879381 SHA256 97b5ffbb9df2ddeb7ba5890824555236ed3db8bf7b78456ca7fe538bc63027c8 SHA512 5d7b84e5872fb89f7ad5f8c1a813aa6e650929eca821cf0e2b0ad831dac541f1108dd1290aa17b6dc738c40088f75ee1d1fb969f6c11ad09222c817ce50b8ade WHIRLPOOL 5727e578557e70647d2da08163dc9701a19e167cbe52ccde97f6721add6ee7d7843165f07d9a6a8049c77b15e7610e1e659d6428d7f71680354d99ae7a7a10cb
+DIST libhangul-0.1.0.tar.gz 2899845 SHA256 5905aa5c557d8d46e190fec1afdd75babf3bc086ef286b42007572703658295a SHA512 cf84850bf7a41e743457300513c5efdf7b3e18d168f4fdc324aaa8e1be78743752fcb98385764f94c707777ab82cc9444e076808e61fdbd915c9c0d7ea93c534 WHIRLPOOL 898c355f587d2943dc9044ffb46a4e4215922a8e2a7c6c36853927e924efb7e47f88ad46741fbb70a1d68547872f2a3db77926cfe9c78ed6171095cd0a466f28
diff --git a/app-i18n/libhangul/libhangul-0.0.12.ebuild b/app-i18n/libhangul/libhangul-0.0.12.ebuild
new file mode 100644
index 000000000000..00facf07994d
--- /dev/null
+++ b/app-i18n/libhangul/libhangul-0.0.12.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+DESCRIPTION="libhangul is a generalized and portable library for processing hangul"
+HOMEPAGE="http://kldp.net/projects/hangul/"
+SRC_URI="http://kldp.net/frs/download.php/5855/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE="nls static-libs test"
+
+RDEPEND="nls? ( virtual/libintl )"
+DEPEND="nls? ( sys-devel/gettext )
+ virtual/pkgconfig
+ test? ( dev-libs/check )"
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable static-libs static) || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/libhangul/libhangul-0.1.0.ebuild b/app-i18n/libhangul/libhangul-0.1.0.ebuild
new file mode 100644
index 000000000000..f149e3b4e60c
--- /dev/null
+++ b/app-i18n/libhangul/libhangul-0.1.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="libhangul is a generalized and portable library for processing hangul"
+HOMEPAGE="http://code.google.com/p/libhangul/"
+SRC_URI="http://libhangul.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 x86"
+IUSE="nls static-libs test"
+
+RDEPEND="nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ test? ( dev-libs/check )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ rm -f "${ED}"/usr/lib*/libhangul.la
+}
diff --git a/app-i18n/libhangul/metadata.xml b/app-i18n/libhangul/metadata.xml
new file mode 100644
index 000000000000..7264771eb8f1
--- /dev/null
+++ b/app-i18n/libhangul/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">libhangul</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/libpinyin/Manifest b/app-i18n/libpinyin/Manifest
new file mode 100644
index 000000000000..e9feef4e7428
--- /dev/null
+++ b/app-i18n/libpinyin/Manifest
@@ -0,0 +1,4 @@
+DIST libpinyin-0.8.0.tar 2682880 SHA256 42fdb08a880a8c42a25712267463704f988293e0bec20871a306022aefb08290 SHA512 762686b9e2fc95e8071832735764c54cb6252fa40bd5d3eb1e15445a267795b775288cef41f671bf4680f13c0a8b44377b12696ade832b80684300e1dd8787a0 WHIRLPOOL 0be6445e6e39c2f8f9124d0f549d11421092364d55c9345f2862f465ba78044b01df9e338acba055818a7d735e0c41e8e71b3f2f03830a14dd196a9dfe2c9107
+DIST libpinyin-1.0.0.tar 2744320 SHA256 ba72c5a71f373771086198b844470d7384cb25b293f962212b02f8f4d718e40c SHA512 577d6d3d3e647a4a5047e3fc019d0e5b7778f49a229eabbf71da9ea73f6d8b935e6ca673698ddfb7d677e1634e05fb2dd0d3811f7b64e7b1184504160af42b87 WHIRLPOOL ad0b975b17010bcb5481eb3aa7304880fe97a682c8fcd0944a9070cf5148130c90714205fb16c440476667876b9f30834eaeec0ec6ef948a5dd59a1bf8a10454
+DIST model.text.tar.gz 10285854 SHA256 a4924c5b5923c3ff9ce55456a417486d07d3b2f7afc194f4338a1221fe36b533 SHA512 d3f137c7de0f357950abbb1e00c0f5d62fb5b4b0ea9f3a6dff29bf6bb2e4f5293319321abf1bad88742868563f65d74f0226f433ba4bcfdfe2c23fef6fea7c74 WHIRLPOOL fd1d637cfcecbbbd7506d15fd107106e578013aa9ca4c0be1aab110fb49ebcb2dbf1493953349e7cf7b0a8a5a0c2c216d993278d8ae78b42f5c703363b4efe60
+DIST model7.text.tar.gz 19666966 SHA256 c9a3c38e6439302603b5c3772ea9dae280b4ef46bd6e8762ed40452dc400af78 SHA512 74a56a23cdca24124037f688ed85a921089155a1b9a0b61e646f805b2bb698c56682c5d6a47ff86657c8b131a831dbee9d5cc5165d4c1f235b77fcd5b2e480ad WHIRLPOOL 5285398bb6bd431caa3449b9540a1c08dad785456d9152fc44f6303866891de5538da4c5945eb8e8a0b64a081a58e7e6d25caacd05e2e3a7219e4335f0414986
diff --git a/app-i18n/libpinyin/libpinyin-0.8.0.ebuild b/app-i18n/libpinyin/libpinyin-0.8.0.ebuild
new file mode 100644
index 000000000000..534625a3ccaf
--- /dev/null
+++ b/app-i18n/libpinyin/libpinyin-0.8.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="Library for Chinese pinyin input methods"
+HOMEPAGE="https://github.com/libpinyin/libpinyin"
+SRC_URI="mirror://github/${PN}/${PN}/${PN}-lite-${PV}.tar.gz -> ${P}.tar
+ mirror://github/${PN}/${PN}/model.text.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+RDEPEND="=sys-libs/db-4*
+ dev-libs/glib:2"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_prepare() {
+ ln -s "${DISTDIR}"/model.text.tar.gz data || die
+ sed -e '/wget/d' -i data/Makefile.am || die
+ epatch_user
+ eautoreconf
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/app-i18n/libpinyin/libpinyin-1.0.0.ebuild b/app-i18n/libpinyin/libpinyin-1.0.0.ebuild
new file mode 100644
index 000000000000..dfaa3a58e4d2
--- /dev/null
+++ b/app-i18n/libpinyin/libpinyin-1.0.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils
+
+MODELV=7
+
+DESCRIPTION="Library for Chinese pinyin input methods"
+HOMEPAGE="https://github.com/libpinyin/libpinyin"
+SRC_URI="mirror://sourceforge/${PN}/${PN}/${PN}-lite-${PV}.tar.gz -> ${P}.tar
+ mirror://sourceforge/${PN}/models/model${MODELV}.text.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm64 ~ppc ppc64 x86"
+IUSE=""
+
+RDEPEND="=sys-libs/db-4*
+ dev-libs/glib:2"
+DEPEND="${RDEPEND}
+ virtual/libintl
+ virtual/pkgconfig"
+
+src_prepare() {
+ ln -s "${DISTDIR}"/model${MODELV}.text.tar.gz data || die
+ sed -e '/wget/d' -i data/Makefile.am || die
+ epatch_user
+ eautoreconf
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/app-i18n/libpinyin/metadata.xml b/app-i18n/libpinyin/metadata.xml
new file mode 100644
index 000000000000..de5111485391
--- /dev/null
+++ b/app-i18n/libpinyin/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="github">libpinyin/libpinyin</remote-id>
+ <remote-id type="sourceforge">libpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/librime/Manifest b/app-i18n/librime/Manifest
new file mode 100644
index 000000000000..4d07fbcad057
--- /dev/null
+++ b/app-i18n/librime/Manifest
@@ -0,0 +1,2 @@
+DIST librime-0.9.9.tar.gz 2548968 SHA256 e828acc853a5d9e3ca191d065112c410183aadb5bd1d021704f82a8644ff6fd8 SHA512 71b39e713d5bbb73441dfb3038be6dc04518d2169df336e7fcb19b4c3b19a48d7db7c230fb1107148f3b7d95342851d23569617ff8138200c7ef1d750060c00f WHIRLPOOL fb5798491352eb1682a2bed7a73486df153a2479eef0adadc00726ab958b50606e32d59bfa8ded86c3aa35bac5e120e4251903fcb54326936251f1f3af726f92
+DIST librime-1.2.tar.gz 5199581 SHA256 fb04a7e0a4eeb2f25031c9a366cedfdab641ab06960f50c42febef5195de9381 SHA512 75a771916a58b1ab678dbf05ac074a651cea077e81d25e4dfd0ea839fabe6cf606135851e72c19d6a8a9c6ed66b89928b90785f282e8786c375bc1d393059227 WHIRLPOOL 44a821fc4e1a562cb01ce7c28efc5a4fd3ca8e9d2d4e55ddda3434b677a17b59d7114a634bfd95ae53072f0e6f2e5f027b2c81ab70fa51b011934c7c39fbcf51
diff --git a/app-i18n/librime/files/librime-1.1-BOOST_NO_SCOPED_ENUMS.patch b/app-i18n/librime/files/librime-1.1-BOOST_NO_SCOPED_ENUMS.patch
new file mode 100644
index 000000000000..3f33efdcdda6
--- /dev/null
+++ b/app-i18n/librime/files/librime-1.1-BOOST_NO_SCOPED_ENUMS.patch
@@ -0,0 +1,224 @@
+Index: librime-1.1git20140306/include/rime/lever/customizer.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/lever/customizer.h
++++ librime-1.1git20140306/include/rime/lever/customizer.h
+@@ -8,6 +8,9 @@
+ #define RIME_CUSTOMIZER_H_
+
+ #include <string>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #define BOOST_NO_CXX11_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>;
+
+Index: librime-1.1git20140306/include/rime/lever/switcher_settings.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/lever/switcher_settings.h
++++ librime-1.1git20140306/include/rime/lever/switcher_settings.h
+@@ -9,6 +9,9 @@
+
+ #include <string>
+ #include <vector>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include "custom_settings.h"
+
+Index: librime-1.1git20140306/include/rime/lever/user_dict_manager.h
+===================================================================
+--- librime-1.1git20140306.orig/include/rime/lever/user_dict_manager.h
++++ librime-1.1git20140306/include/rime/lever/user_dict_manager.h
+@@ -9,6 +9,9 @@
+
+ #include <string>
+ #include <vector>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+
+ namespace rime {
+Index: librime-1.1git20140306/src/core_module.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/core_module.cc
++++ librime-1.1git20140306/src/core_module.cc
+@@ -5,6 +5,9 @@
+ // 2013-10-17 GONG Chen <chen.sst@gmail.com>
+ //
+
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime_api.h>
+ #include <rime/common.h>
+Index: librime-1.1git20140306/src/dict/db.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/dict/db.cc
++++ librime-1.1git20140306/src/dict/db.cc
+@@ -5,6 +5,9 @@
+ // 2011-11-02 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime_version.h>
+ #include <rime/common.h>
+Index: librime-1.1git20140306/src/dict/dict_compiler.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/dict/dict_compiler.cc
++++ librime-1.1git20140306/src/dict/dict_compiler.cc
+@@ -7,6 +7,9 @@
+ #include <fstream>
+ #include <map>
+ #include <set>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime/algo/algebra.h>
+ #include <rime/algo/utilities.h>
+Index: librime-1.1git20140306/src/dict/dictionary.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/dict/dictionary.cc
++++ librime-1.1git20140306/src/dict/dictionary.cc
+@@ -5,6 +5,9 @@
+ // 2011-07-05 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <utility>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime/common.h>
+ #include <rime/schema.h>
+Index: librime-1.1git20140306/src/dict/mapped_file.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/dict/mapped_file.cc
++++ librime-1.1git20140306/src/dict/mapped_file.cc
+@@ -7,6 +7,9 @@
+ // 2011-06-30 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <fstream>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/interprocess/file_mapping.hpp>
+ #include <boost/interprocess/mapped_region.hpp>
+Index: librime-1.1git20140306/src/dict/preset_vocabulary.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/dict/preset_vocabulary.cc
++++ librime-1.1git20140306/src/dict/preset_vocabulary.cc
+@@ -4,6 +4,9 @@
+ //
+ // 2011-11-27 GONG Chen <chen.sst@gmail.com>
+ //
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/lexical_cast.hpp>
+ #include <utf8.h>
+Index: librime-1.1git20140306/src/dict/tree_db.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/dict/tree_db.cc
++++ librime-1.1git20140306/src/dict/tree_db.cc
+@@ -4,6 +4,9 @@
+ //
+ // 2011-11-02 GONG Chen <chen.sst@gmail.com>
+ //
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #if defined(_MSC_VER)
+ #pragma warning(disable: 4244)
+Index: librime-1.1git20140306/src/gear/simplifier.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/gear/simplifier.cc
++++ librime-1.1git20140306/src/gear/simplifier.cc
+@@ -7,6 +7,9 @@
+ #include <string>
+ #include <vector>
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <opencc/opencc.h>
+ #include <stdint.h>
+Index: librime-1.1git20140306/src/lever/custom_settings.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/lever/custom_settings.cc
++++ librime-1.1git20140306/src/lever/custom_settings.cc
+@@ -5,6 +5,9 @@
+ // 2012-02-26 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime/config.h>
+ #include <rime/deployer.h>
+Index: librime-1.1git20140306/src/lever/deployment_tasks.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/lever/deployment_tasks.cc
++++ librime-1.1git20140306/src/lever/deployment_tasks.cc
+@@ -5,6 +5,9 @@
+ // 2011-12-10 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #define BOOST_NO_CXX11_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/uuid/random_generator.hpp>
+Index: librime-1.1git20140306/src/lever/switcher_settings.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/lever/switcher_settings.cc
++++ librime-1.1git20140306/src/lever/switcher_settings.cc
+@@ -6,6 +6,9 @@
+ //
+ #include <utility>
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <rime/config.h>
+ #include <rime/deployer.h>
+Index: librime-1.1git20140306/src/lever/user_dict_manager.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/lever/user_dict_manager.cc
++++ librime-1.1git20140306/src/lever/user_dict_manager.cc
+@@ -6,6 +6,9 @@
+ //
+ #include <fstream>
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/scope_exit.hpp>
+ #include <rime/common.h>
+Index: librime-1.1git20140306/src/lever/userdb_recovery_task.cc
+===================================================================
+--- librime-1.1git20140306.orig/src/lever/userdb_recovery_task.cc
++++ librime-1.1git20140306/src/lever/userdb_recovery_task.cc
+@@ -5,6 +5,9 @@
+ // 2013-04-22 GONG Chen <chen.sst@gmail.com>
+ //
+ #include <boost/algorithm/string.hpp>
++#ifndef BOOST_NO_SCOPED_ENUMS
++#define BOOST_NO_SCOPED_ENUMS
++#endif // BOOST_NO_SCOPED_ENUMS
+ #include <boost/filesystem.hpp>
+ #include <boost/scope_exit.hpp>
+ #include <rime/deployer.h>
diff --git a/app-i18n/librime/files/librime-1.1-gcc53613.patch b/app-i18n/librime/files/librime-1.1-gcc53613.patch
new file mode 100644
index 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..c5ba06b09e9d
--- /dev/null
+++ b/app-i18n/librime/librime-0.9.9.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils multilib
+
+DESCRIPTION="Rime Input Method Engine library"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+SRC_URI="http://rimeime.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE="static-libs test"
+
+RDEPEND="app-i18n/opencc
+ dev-cpp/glog
+ >=dev-cpp/yaml-cpp-0.5.0
+ dev-db/kyotocabinet
+ >=dev-libs/boost-1.46.0[threads(+)]
+ sys-libs/zlib
+ x11-proto/xproto"
+DEPEND="${RDEPEND}
+ test? ( dev-cpp/gtest )"
+
+S="${WORKDIR}/${PN}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-test.patch"
+ "${FILESDIR}/${PN}-dictionary.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_build static-libs STATIC)
+ -DBUILD_DATA=OFF
+ $(cmake-utils_use_build test TEST)
+ -DLIB_INSTALL_DIR=/usr/$(get_libdir)
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-i18n/librime/librime-1.2.ebuild b/app-i18n/librime/librime-1.2.ebuild
new file mode 100644
index 000000000000..b4bd200f9dab
--- /dev/null
+++ b/app-i18n/librime/librime-1.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils multilib versionator toolchain-funcs
+
+DESCRIPTION="Rime Input Method Engine library"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+SRC_URI="http://dl.bintray.com/lotem/rime/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 ~x86"
+IUSE="static-libs test"
+
+RDEPEND="app-i18n/opencc
+ dev-cpp/glog
+ >=dev-cpp/yaml-cpp-0.5.0
+ dev-db/kyotocabinet
+ dev-libs/marisa
+ >=dev-libs/boost-1.46.0[threads(+)]
+ sys-libs/zlib
+ x11-proto/xproto"
+DEPEND="${RDEPEND}
+ test? ( dev-cpp/gtest )"
+
+S="${WORKDIR}/${PN}"
+
+#bug 496080, backport patch for <gcc-4.8
+PATCHES=(
+ "${FILESDIR}/${PN}-1.2-BOOST_NO_SCOPED_ENUMS.patch"
+ "${FILESDIR}/${PN}-1.1-gcc53613.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_build static-libs STATIC)
+ -DBUILD_DATA=OFF
+ -DBUILD_SEPARATE_LIBS=OFF
+ $(cmake-utils_use_build test TEST)
+ -DLIB_INSTALL_DIR=/usr/$(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..0a8c950f3291
--- /dev/null
+++ b/app-i18n/librime/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>chen.sst@gmail.com</email>
+ <name>Gong Chen</name>
+ </maintainer>
+ <bugs-to>http://code.google.com/p/rimeime/issues/list</bugs-to>
+ <remote-id type="google-code">rimeime</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/libskk/Manifest b/app-i18n/libskk/Manifest
new file mode 100644
index 000000000000..49d342d852fa
--- /dev/null
+++ b/app-i18n/libskk/Manifest
@@ -0,0 +1,4 @@
+DIST libskk-0.0.11.tar.gz 840232 SHA256 ce4a7ce8072481461671bfa066f7069c88696e6475dde547c73efb37c310684e SHA512 6c2f4f03cad0b464237d0352d7cacaf1a10531847af415b7a4e1ac3ff0784d01fa8895e46835448a2c3e6dc6a8892331ead8a09e075ccf6fa98e0c8db5150c22 WHIRLPOOL 501096fda5cefeff92a2b90815c895a0511c1adc75cbc39b7345d31fa15520d079758c927919005ee768e3884f2784caf7323e18f25fb754881aec48a6895bed
+DIST libskk-0.0.12.tar.gz 847745 SHA256 6d2eb10595cf810c2f31258505cfbb0be41f44b4d8541b99402ed47e71c68576 SHA512 7489b7475f7de4f11fd4394e6a916fd96cd3197e431a325085d2888f69e6afc27eed8ba6989829e98617cfb811b36c83b188ab4475398df83b0f7c46fb3e5360 WHIRLPOOL 32d9c3b6c652a8382008c621763354436a8f373e95811def17ffa116c020aa2e7e524ea62251b9771dc580c4ffeaefa7949e1b5dab0bdabd6a6577eb03e3668c
+DIST libskk-0.0.9.tar.gz 719373 SHA256 1c691c658d160229928a72ef102731f8ab44a135fab7e4bdf2d17f264b359333 SHA512 09b6d58097a843a28e3c67f0652cbe194eefbafcc3cb9520db5bbf8dfa0bea275a3b0b0b4ec4d5577c19fbcd6b66db791c3773ccc5ed6b9781fb31620c70d0ce WHIRLPOOL 3835019a5bca597e353bb3ca1d2b05d93c40c39d9ed44a92d92c490e65f2fb45b97ab5047cef4edeefde5c22875cae58e3a26cbc9db4dac3b580434717f40111
+DIST libskk-1.0.1.tar.gz 860453 SHA256 37bb7859deffd038319a8bc7f9c7d3b207d7dce6afea5e3da519381d7a05388c SHA512 17dc7c0361083c08c29267b4fe2d066b079e5156728f461717044f99579ec2674b56c960d2be5a42a2dffb693106d2d3d78ec8cb833e8f189d48e421a25d91b0 WHIRLPOOL c40970c33b807ee37e27888dda7220ed4e979a05a18c742f0fbfe39444192363b82d2e4b10f837b015ae8d0e359c4e67f7e548269b5b032a3e944f1ca0ff7791
diff --git a/app-i18n/libskk/libskk-0.0.11.ebuild b/app-i18n/libskk/libskk-0.0.11.ebuild
new file mode 100644
index 000000000000..adf90e9fe8f9
--- /dev/null
+++ b/app-i18n/libskk/libskk-0.0.11.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+VALA_MIN_API_VERSION=0.14
+
+inherit virtualx vala
+
+DESCRIPTION="GObject-based library to deal with Japanese kana-to-kanji conversion method"
+HOMEPAGE="https://github.com/ueno/libskk"
+SRC_URI="mirror://github/ueno/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls +introspection static-libs"
+
+RDEPEND=">=dev-libs/glib-2.16
+ dev-libs/libgee:0
+ dev-libs/json-glib
+ introspection? ( >=dev-libs/gobject-introspection-0.10.8 )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ $(vala_depend)
+ virtual/pkgconfig
+ nls? (
+ dev-util/intltool
+ sys-devel/gettext
+ )"
+# doc? ( >=dev-util/valadoc-0.3.1 )
+
+DOCS="ChangeLog NEWS README"
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable static-libs static) \
+ $(use_enable introspection)
+}
+
+src_test() {
+ Xemake check || die "emake check failed."
+}
+
+src_install() {
+ default
+ rm -f "${ED}"/usr/lib*/lib*.la
+}
diff --git a/app-i18n/libskk/libskk-0.0.12.ebuild b/app-i18n/libskk/libskk-0.0.12.ebuild
new file mode 100644
index 000000000000..adf90e9fe8f9
--- /dev/null
+++ b/app-i18n/libskk/libskk-0.0.12.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+VALA_MIN_API_VERSION=0.14
+
+inherit virtualx vala
+
+DESCRIPTION="GObject-based library to deal with Japanese kana-to-kanji conversion method"
+HOMEPAGE="https://github.com/ueno/libskk"
+SRC_URI="mirror://github/ueno/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls +introspection static-libs"
+
+RDEPEND=">=dev-libs/glib-2.16
+ dev-libs/libgee:0
+ dev-libs/json-glib
+ introspection? ( >=dev-libs/gobject-introspection-0.10.8 )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ $(vala_depend)
+ virtual/pkgconfig
+ nls? (
+ dev-util/intltool
+ sys-devel/gettext
+ )"
+# doc? ( >=dev-util/valadoc-0.3.1 )
+
+DOCS="ChangeLog NEWS README"
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable static-libs static) \
+ $(use_enable introspection)
+}
+
+src_test() {
+ Xemake check || die "emake check failed."
+}
+
+src_install() {
+ default
+ rm -f "${ED}"/usr/lib*/lib*.la
+}
diff --git a/app-i18n/libskk/libskk-0.0.9.ebuild b/app-i18n/libskk/libskk-0.0.9.ebuild
new file mode 100644
index 000000000000..e703e5fd8242
--- /dev/null
+++ b/app-i18n/libskk/libskk-0.0.9.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+VALA_MIN_API_VERSION=0.12
+
+inherit vala
+
+DESCRIPTION="GObject-based library to deal with Japanese kana-to-kanji conversion method"
+HOMEPAGE="https://github.com/ueno/libskk"
+SRC_URI="mirror://github/ueno/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls static-libs"
+
+RDEPEND="dev-libs/glib
+ dev-libs/libgee:0
+ dev-libs/json-glib
+ >=dev-libs/gobject-introspection-0.9
+ $(vala_depend)
+ nls? ( virtual/libintl )"
+# >=dev-util/valadoc-0.3.1
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+
+ if ! use static-libs ; then
+ find "${ED}" -name '*.la' -delete
+ fi
+
+ doman docs/skk.1
+ dodoc AUTHORS ChangeLog NEWS README
+}
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..63ab617af98b
--- /dev/null
+++ b/app-i18n/libskk/libskk-1.0.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+VALA_MIN_API_VERSION="0.14"
+
+inherit virtualx vala
+
+DESCRIPTION="GObject-based library to deal with Japanese kana-to-kanji conversion method"
+HOMEPAGE="https://github.com/ueno/libskk"
+SRC_URI="https://www.bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls +introspection static-libs"
+
+RDEPEND=">=dev-libs/glib-2.16
+ dev-libs/libgee:0
+ dev-libs/json-glib
+ introspection? ( >=dev-libs/gobject-introspection-0.10.8 )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ $(vala_depend)
+ virtual/pkgconfig
+ nls? (
+ dev-util/intltool
+ sys-devel/gettext
+ )"
+# doc? ( >=dev-util/valadoc-0.3.1 )
+
+DOCS="ChangeLog NEWS README"
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable static-libs static) \
+ $(use_enable introspection)
+}
+
+src_test() {
+ Xemake check || die "emake check failed."
+}
+
+src_install() {
+ default
+ rm -f "${ED}"/usr/lib*/lib*.la
+}
diff --git a/app-i18n/libskk/metadata.xml b/app-i18n/libskk/metadata.xml
new file mode 100644
index 000000000000..11924c6429bb
--- /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>
+ <herd>cjk</herd>
+ <use>
+ <flag name="introspection">Use <pkg>dev-libs/gobject-introspection</pkg> for introspection</flag>
+ </use>
+ <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..56c8e3733eee
--- /dev/null
+++ b/app-i18n/libtabe/Manifest
@@ -0,0 +1,3 @@
+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
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..2f16c275ea95
--- /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: http://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..5372b150b369
--- /dev/null
+++ b/app-i18n/libtabe/libtabe-0.2.6.1.2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="http://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..c3e6de7a0d3f
--- /dev/null
+++ b/app-i18n/libtabe/libtabe-0.2.6.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils libtool autotools multilib
+
+DESCRIPTION="Libtabe provides bimsphone support for xcin-2.5+"
+HOMEPAGE="http://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..2d5852c16c60
--- /dev/null
+++ b/app-i18n/libtabe/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/libtomoe-gtk/Manifest b/app-i18n/libtomoe-gtk/Manifest
new file mode 100644
index 000000000000..0b831f9df0ea
--- /dev/null
+++ b/app-i18n/libtomoe-gtk/Manifest
@@ -0,0 +1 @@
+DIST tomoe-gtk-0.6.0.tar.gz 448058 SHA256 4e9b228e25451b1e875127a57eb40270e38c59cf4d46bc25c208e370d884ba64 SHA512 caa9b79edde7885e00d939cb3de30b32da0c1c8a7d803e26c756ee0695f7e15bee241036b1125f838e72e016f4bee9736a398108fff0eed20f1fdb86d221dc43 WHIRLPOOL e17ed0cde3af6b355d91f4e44dc73d630dff0e4bb08b1fd7acb36410773957a32f116d798d8a436df70513f336f173a1313ab5172c3d4dd110eff6e50eeebf7a
diff --git a/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-gucharmap2.patch b/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-gucharmap2.patch
new file mode 100644
index 000000000000..44900beb6784
--- /dev/null
+++ b/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-gucharmap2.patch
@@ -0,0 +1,253 @@
+---
+ Update libtomoe-gtk to gucharmap-2 API
+ https://bugs.gentoo.org/show_bug.cgi?id=243160
+
+ Makefile.am | 1
+ bindings/python/Makefile.am | 5 ++-
+ configure.ac | 14 +++++---
+ src/tomoe-gucharmap.c | 71 +++++++++++++++++++++++++++++++++++++++-----
+ 4 files changed, 78 insertions(+), 13 deletions(-)
+
+--- a/Makefile.am 2007-06-07 14:36:06.000000000 +0900
++++ b/Makefile.am 2008-12-21 01:24:06.000000000 +0900
+@@ -1,3 +1,4 @@
++ACLOCAL_AMFLAGS = -I macros
+ SUBDIRS=src data po test doc bindings
+
+ EXTRA_DIST = autogen.sh tomoe-gtk.pc
+--- a/configure.ac 2007-06-12 17:17:23.000000000 +0900
++++ b/configure.ac 2008-12-21 01:08:16.000000000 +0900
+@@ -94,6 +94,9 @@
+ AC_SUBST(TOMOE_CFLAGS)
+ AC_SUBST(TOMOE_LIBS)
+
++TOMOE_GTK_REQUIRED_LIBS="tomoe >= 0.4.0 gtk+-2.0 >= 2.4.0"
++AC_SUBST(TOMOE_GTK_REQUIRED_LIBS)
++
+ # Checks for gucharmap
+ AC_ARG_WITH(gucharmap,
+ AS_HELP_STRING([--with-gucharmap],
+@@ -102,14 +105,15 @@
+ [use_gucharmap=yes])
+ if test x"$use_gucharmap" = "xyes"; then
+ # Checks for gucharmap
+- PKG_CHECK_MODULES(GUCHARMAP, [gucharmap >= 1.4.0])
+- TOMOE_GTK_REQUIRED_LIBS="tomoe >= 0.4.0 gtk+-2.0 >= 2.4.0 gucharmap >= 1.4.0"
+-else
+- TOMOE_GTK_REQUIRED_LIBS="tomoe >= 0.4.0 gtk+-2.0 >= 2.4.0"
++ PKG_CHECK_EXISTS(gucharmap-2,
++ [PKG_CHECK_MODULES(GUCHARMAP, [gucharmap-2],
++ [gucharmap_lib="gucharmap-2"])],
++ [PKG_CHECK_MODULES(GUCHARMAP, [gucharmap >= 1.4.0],
++ [gucharmap_lib="gucharmap >= 1.4.0"])])
++ TOMOE_GTK_REQUIRED_LIBS="$TOMOE_GTK_REQUIRED_LIBS $gucharmap_lib"
+ fi
+ AC_SUBST(GUCHARMAP_CFLAGS)
+ AC_SUBST(GUCHARMAP_LIBS)
+-AC_SUBST(TOMOE_GTK_REQUIRED_LIBS)
+ AM_CONDITIONAL([USE_GUCHARMAP], [test x"$use_gucharmap" = "xyes"])
+
+ # Check for pygtk
+--- a/src/tomoe-gucharmap.c 2007-04-27 14:41:40.000000000 +0900
++++ b/src/tomoe-gucharmap.c 2008-12-21 01:08:16.000000000 +0900
+@@ -34,7 +34,11 @@
+ {
+ GtkWidget *chapters_type_combobox;
+ GtkWidget *chapters_combobox;
++#ifdef GUCHARMAP_TYPE_CHAPTERS
+ GucharmapChapters *chapters;
++#else
++ GucharmapChaptersModel *chapters_model;
++#endif
+ GucharmapCharmap *charmap;
+ gchar *selected;
+ };
+@@ -120,14 +124,24 @@
+ gtk_widget_show (combobox);
+
+ /* gucharmap */
++#ifdef GUCHARMAP_TYPE_CHAPTERS
+ priv->chapters = GUCHARMAP_CHAPTERS (gucharmap_block_chapters_new ());
+ priv->charmap = GUCHARMAP_CHARMAP (gucharmap_charmap_new (priv->chapters));
++#else
++ priv->chapters_model = gucharmap_block_chapters_model_new ();
++ priv->charmap = GUCHARMAP_CHARMAP (gucharmap_charmap_new ());
++ gucharmap_charmap_set_chapters_model (priv->charmap, priv->chapters_model);
++#endif
+ widget = GTK_WIDGET (priv->charmap);
+ gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE, TRUE, 2);
+ gtk_widget_show (widget);
+
+ /* Hide chapters page by default. Usually use combo box instead. */
++#ifdef GUCHARMAP_TYPE_CHAPTERS
+ gtk_widget_hide (GTK_WIDGET (priv->chapters));
++#else
++ gucharmap_charmap_set_chapters_visible (priv->charmap, FALSE);
++#endif
+
+ #if 0
+ /* CharDetails view will be here */
+@@ -146,10 +160,11 @@
+ g_signal_connect (G_OBJECT (priv->chapters_combobox), "changed",
+ G_CALLBACK (on_chapters_combo_changed),
+ (gpointer) page);
+- g_signal_connect (G_OBJECT (priv->charmap->chartable), "activate",
++ g_signal_connect (G_OBJECT (gucharmap_charmap_get_chartable (priv->charmap)),
++ "activate",
+ G_CALLBACK (on_gucharmap_activate),
+ (gpointer) page);
+- g_signal_connect (G_OBJECT (priv->charmap->chartable),
++ g_signal_connect (G_OBJECT (gucharmap_charmap_get_chartable (priv->charmap)),
+ "button-release-event",
+ G_CALLBACK (on_gucharmap_button_release),
+ (gpointer) page);
+@@ -162,7 +177,11 @@
+
+ priv->chapters_type_combobox = NULL;
+ priv->chapters_combobox = NULL;
++#ifdef GUCHARMAP_TYPE_CHAPTERS
+ priv->chapters = NULL;
++#else
++ priv->chapters_model = NULL;
++#endif
+ priv->charmap = NULL;
+ if (priv->selected) {
+ g_free (priv->selected);
+@@ -188,7 +207,11 @@
+ tomoe_gucharmap_get_selected_char (TomoeGucharmap *page)
+ {
+ TomoeGucharmapPrivate *priv;
++#ifdef GUCHARMAP_TABLE
+ GucharmapTable *table;
++#else
++ GucharmapChartable *table;
++#endif
+ gunichar c;
+ gchar buf[7];
+ gint bytes;
+@@ -196,9 +219,17 @@
+ g_return_val_if_fail (TOMOE_IS_GUCHARMAP (page), NULL);
+
+ priv = TOMOE_GUCHARMAP_GET_PRIVATE (page);
++#ifdef GUCHARMAP_TABLE
+ table = GUCHARMAP_TABLE (priv->charmap->chartable);
++#else
++ table = gucharmap_charmap_get_chartable (priv->charmap);
++#endif
+
++#ifdef GUCHARMAP_TABLE
+ c = gucharmap_table_get_active_character (table);
++#else
++ c = gucharmap_chartable_get_active_character (table);
++#endif
+ bytes = g_unichar_to_utf8(c, buf);
+
+ if (bytes > 0 && bytes < 7) {
+@@ -222,7 +253,13 @@
+ setup_chapters_combo_box (TomoeGucharmap *page)
+ {
+ TomoeGucharmapPrivate *priv = TOMOE_GUCHARMAP_GET_PRIVATE (page);
+- GtkTreeModel *model = priv->chapters->tree_model;
++ GtkTreeModel *model;
++
++#ifdef GUCHARMAP_TYPE_CHAPTERS
++ model = priv->chapters->tree_model;
++#else
++ model = GTK_TREE_MODEL (priv->chapters_model);
++#endif
+
+ gtk_combo_box_set_model (GTK_COMBO_BOX (priv->chapters_combobox), model);
+ gtk_combo_box_set_active (GTK_COMBO_BOX (priv->chapters_combobox), 0);
+@@ -235,12 +272,26 @@
+ TomoeGucharmapPrivate *priv = TOMOE_GUCHARMAP_GET_PRIVATE (page);
+ gint idx = gtk_combo_box_get_active (combobox);
+
+- if (idx == 1)
++ if (idx == 1) {
++#ifdef GUCHARMAP_TYPE_CHAPTERS
+ priv->chapters = GUCHARMAP_CHAPTERS (gucharmap_script_chapters_new ());
+- else
++#else
++ priv->chapters_model = gucharmap_script_chapters_model_new ();
++#endif
++ } else {
++#ifdef GUCHARMAP_TYPE_CHAPTERS
+ priv->chapters = GUCHARMAP_CHAPTERS (gucharmap_block_chapters_new ());
++#else
++ priv->chapters_model = gucharmap_block_chapters_model_new ();
++#endif
++ }
++#ifdef GUCHARMAP_TYPE_CHAPTERS
+ gucharmap_charmap_set_chapters (priv->charmap, priv->chapters);
+ gtk_widget_hide (GTK_WIDGET (priv->chapters));
++#else
++ gucharmap_charmap_set_chapters_model (priv->charmap, priv->chapters_model);
++ gucharmap_charmap_set_chapters_visible (priv->charmap, FALSE);
++#endif
+ setup_chapters_combo_box (page);
+ }
+
+@@ -249,6 +300,7 @@
+ {
+ TomoeGucharmap *page = data;
+ TomoeGucharmapPrivate *priv = TOMOE_GUCHARMAP_GET_PRIVATE (page);
++ GtkTreeView *tree_view;
+ GtkTreePath *path;
+ gchar buf[8];
+ gint idx;
+@@ -256,8 +308,13 @@
+ idx = gtk_combo_box_get_active (combobox);
+ g_snprintf (buf, 8 , "%d", idx);
+ path = gtk_tree_path_new_from_string (buf);
+- gtk_tree_view_set_cursor (GTK_TREE_VIEW (priv->chapters->tree_view),
+- path, NULL, FALSE);
++#ifdef GUCHARMAP_TYPE_CHAPTERS
++ tree_view = GTK_TREE_VIEW (priv->chapters->tree_view);
++#else
++ tree_view =
++ GTK_TREE_VIEW (gucharmap_charmap_get_chapters_view (priv->charmap));
++#endif
++ gtk_tree_view_set_cursor (tree_view, path, NULL, FALSE);
+ gtk_tree_path_free (path);
+ }
+
+--- a/bindings/python/Makefile.am
++++ b/bindings/python/Makefile.am
+@@ -6,6 +6,7 @@
+ $(PYTHON_CFLAGS) \
+ $(PYGOBJECT_CFLAGS) \
+ $(PYGTK_CFLAGS) \
++ $(GUCHARMAP_CFLAGS) \
+ $(GTK2_CFLAGS) \
+ $(TOMOE_CFLAGS) \
+ -I$(top_srcdir)/src \
+@@ -21,11 +22,13 @@
+ -module \
+ -avoid-version \
+ $(TOMOE_LDFLAGS) \
+- $(PYTHON_LDFLAGS)
++ $(PYTHON_LDFLAGS) \
++ $(GUCHARMAP_LDFLAGS)
+
+ tomoegtk_la_LIBADD = \
+ $(TOMOE_LIBS) \
+ $(PYGTK_LIBS) \
++ $(GUCHARMAP_LIBS) \
+ $(top_builddir)/src/libtomoe-gtk.la
+
+ OVERRIDES = \
+--- a/doc/reference/Makefile.am 2009-03-09 23:53:04.000000000 +0100
++++ b/doc/reference/Makefile.am 2009-03-09 23:52:30.000000000 +0100
+@@ -27,10 +27,12 @@
+ -I$(top_srcdir)/src \
+ -I$(top_builddir)/src \
+ $(TOMOE_CFLAGS) \
++ $(GUCHARMAP_CFLAGS) \
+ $(GTK2_CFLAGS)
+ GTKDOC_LIBS = \
+ $(top_builddir)/src/libtomoe-gtk.la \
+ $(TOMOE_LIBS) \
++ $(GUCHARMAP_LIBS) \
+ $(GTK2_LIBS)
+
+ # Extra options to supply to gtkdoc-mkdb
diff --git a/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-underlinking.patch b/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-underlinking.patch
new file mode 100644
index 000000000000..755b50a68eb0
--- /dev/null
+++ b/app-i18n/libtomoe-gtk/files/libtomoe-gtk-0.6.0-underlinking.patch
@@ -0,0 +1,15 @@
+diff --git a/test/Makefile.am b/test/Makefile.am
+index 4f4206e..4a21629 100644
+--- a/test/Makefile.am
++++ b/test/Makefile.am
+@@ -42,8 +42,8 @@ LDADDS = \
+
+ noinst_PROGRAMS = testtomoegtk testtomoegtkedit
+
+-testtomoegtk_LDADD = $(LDADDS)
++testtomoegtk_LDADD = $(LDADDS) -lm
+ testtomoegtk_SOURCES = testtomoegtk.c
+
+-testtomoegtkedit_LDADD = $(LDADDS)
++testtomoegtkedit_LDADD = $(LDADDS) -lm
+ testtomoegtkedit_SOURCES = testtomoegtkedit.c
diff --git a/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r2.ebuild b/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r2.ebuild
new file mode 100644
index 000000000000..870bb27a21ed
--- /dev/null
+++ b/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="python? 2"
+
+inherit autotools eutils python
+
+MY_P="tomoe-gtk-${PV}"
+DESCRIPTION="Tomoe GTK+ interface widget library"
+HOMEPAGE="http://tomoe.sourceforge.jp/"
+SRC_URI="mirror://sourceforge/tomoe/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc +gucharmap python static-libs"
+
+RDEPEND=">=app-i18n/tomoe-0.6.0[python?]
+ python? (
+ dev-python/pygtk:2
+ dev-python/pygobject:2
+ )
+ gucharmap? ( gnome-extra/gucharmap:0 )"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ virtual/pkgconfig
+ sys-devel/gettext
+ doc? ( >=dev-util/gtk-doc-1.4 )"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ if use python ; then
+ python_set_active_version 2
+ fi
+}
+
+src_prepare() {
+ # Fix compilation with gucharmap-2.24, bug #243160
+ epatch "${FILESDIR}/${P}-gucharmap2.patch"
+ epatch "${FILESDIR}/${P}-underlinking.patch"
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ #--with-python b0rked
+ use python || myconf="${myconf} --without-python"
+
+ econf \
+ $(use_enable doc gtk-doc) \
+ $(use_with gucharmap) \
+ $(use_enable static-libs static) \
+ ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ if use python ; then
+ find "${ED}$(python_get_sitedir)" \( -name "*.la" -o -name "*.a" \) -type f -delete || die
+ fi
+ if ! use static-libs ; then
+ find "${ED}" -name "*.la" -type f -delete || die
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r3.ebuild b/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r3.ebuild
new file mode 100644
index 000000000000..26e243604025
--- /dev/null
+++ b/app-i18n/libtomoe-gtk/libtomoe-gtk-0.6.0-r3.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils python-single-r1
+
+MY_P="tomoe-gtk-${PV}"
+DESCRIPTION="Tomoe GTK+ interface widget library"
+HOMEPAGE="http://tomoe.sourceforge.jp/"
+SRC_URI="mirror://sourceforge/tomoe/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc +gucharmap python static-libs"
+
+RDEPEND=">=app-i18n/tomoe-0.6.0
+ python? (
+ ${PYTHON_DEPS}
+ >=app-i18n/tomoe-0.6.0[python,${PYTHON_USEDEP}]
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ )
+ gucharmap? ( gnome-extra/gucharmap:0 )"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ virtual/pkgconfig
+ sys-devel/gettext
+ doc? ( >=dev-util/gtk-doc-1.4 )"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ if use python ; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ # Fix compilation with gucharmap-2.24, bug #243160
+ epatch "${FILESDIR}/${P}-gucharmap2.patch"
+ epatch "${FILESDIR}/${P}-underlinking.patch"
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ #--with-python b0rked hard
+ unset PYTHON
+ use python || myconf="${myconf} --without-python"
+
+ econf \
+ $(use_enable doc gtk-doc) \
+ $(use_with gucharmap) \
+ $(use_enable static-libs static) \
+ ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ if use python ; then
+ find "${D}$(python_get_sitedir)" \( -name "*.la" -o -name "*.a" \) -type f -delete || die
+ fi
+ if ! use static-libs ; then
+ find "${ED}" -name "*.la" -type f -delete || die
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
diff --git a/app-i18n/libtomoe-gtk/metadata.xml b/app-i18n/libtomoe-gtk/metadata.xml
new file mode 100644
index 000000000000..084e6cd5c686
--- /dev/null
+++ b/app-i18n/libtomoe-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>
+ <herd>cjk</herd>
+ <use>
+ <flag name="gucharmap">Enable gucharmap dictionary plugin</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">tomoe</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-da/Manifest b/app-i18n/man-pages-da/Manifest
new file mode 100644
index 000000000000..1f4af354df7d
--- /dev/null
+++ b/app-i18n/man-pages-da/Manifest
@@ -0,0 +1 @@
+DIST manpages-da-0.1.2.tar.gz 8962 SHA256 7f224420fc1e9d147dfda5fb85130645c820cedbe3bf51151cd0f05856344c2b SHA512 7642908f5952f54c0db6af6886b6592e10889d8734776d8d42fe923b084ef85732820d40a095936e6f1bf48d9430b401afeb28202e530b5a48e4a3447ed5c4c6 WHIRLPOOL 1179bf276e95aa3d41543246e363f48e37c73cc99dad49d4b6767d193929883bbeb549ed908cc3e766e9e211de009405c4028995136b83215088aa50fa64774e
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..90a46a712bc2
--- /dev/null
+++ b/app-i18n/man-pages-da/man-pages-da-0.1.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..d9cd2cad66c2
--- /dev/null
+++ b/app-i18n/man-pages-da/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-de/Manifest b/app-i18n/man-pages-de/Manifest
new file mode 100644
index 000000000000..fa1ed3a3514d
--- /dev/null
+++ b/app-i18n/man-pages-de/Manifest
@@ -0,0 +1,3 @@
+DIST manpages-de-1.7.tar.xz 1300384 SHA256 7bb014f4ffdc7a303791bb0ee672d901348babcb4c23002cecd3fc145831728a SHA512 d70f25daf10e233358b705c06a7c9e123fffc492429b4b9e1717c5db3a47d92fefb5e628fc75056306bc8bf0da7146aabd2c80a77cb50a430d2e11d6ce9712e0 WHIRLPOOL d8198220f4998e2550166a4b79434c4c1031c1e320b4b858dbf1468c1b1f19aa1d6a02816acd470191546dd5b08b4d1fff4fe612652866db932ee5b4e3dae33a
+DIST manpages-de-1.8.tar.xz 1345324 SHA256 e9d82b7bf41accd492b66b7ef2cbaefb5ce30c5ab2a2ad9ae1833424a8b93d6f SHA512 284be71610ddc11f578179f809ecaf2d92eb77b4ba1281ce21f3486e312c2888fc2d830967589702f0df6cee28da6adb4737b416cf8214001ddd14de0292ecd3 WHIRLPOOL e5d2b4afc6cd1b9231f8d837d7507a494b152c30687540bc128994f56e70e29ce9c3918621fb4ed3e62a1be21cddf4a324dd0379160b631885cbce064e0201e3
+DIST manpages-de-1.9.tar.xz 1415628 SHA256 2c6c02ecd428b9b3cb9298ea2ef0b4972c6e569479e7d5a969d7086c2d7150e8 SHA512 5f01e817274490a90118c875a46f2b5767e62dacc8904f6a327a0883f96c895c7e07d1a76ad2947404552ed93abddd21c16ab51f6f1d076403003dfa0ec34426 WHIRLPOOL d68a1fc0bbf6751c78e0b1beac94d32e7b83539a5571d3546018fc896b70f919ac751c467823796cba0fd59867ca8bcf06a4214beebb004e94551e6545bf2c4e
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..f39472ac6e59
--- /dev/null
+++ b/app-i18n/man-pages-de/files/man-pages-de-1.3-bzip2.patch
@@ -0,0 +1,19 @@
+--- po/generate-manpage.sh.old 2012-11-29 13:26:30.000000000 +0100
++++ po/generate-manpage.sh 2013-08-18 18:34:37.715547485 +0200
+@@ -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.7.ebuild b/app-i18n/man-pages-de/man-pages-de-1.7.ebuild
new file mode 100644
index 000000000000..5a07e29a6437
--- /dev/null
+++ b/app-i18n/man-pages-de/man-pages-de-1.7.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils 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="${RDEPEND}
+ app-text/po4a"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.3-bzip2.patch
+
+ # 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.8.ebuild b/app-i18n/man-pages-de/man-pages-de-1.8.ebuild
new file mode 100644
index 000000000000..339d9f61e960
--- /dev/null
+++ b/app-i18n/man-pages-de/man-pages-de-1.8.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils 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="${RDEPEND}
+ app-text/po4a"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.3-bzip2.patch
+
+ # 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.9.ebuild b/app-i18n/man-pages-de/man-pages-de-1.9.ebuild
new file mode 100644
index 000000000000..339d9f61e960
--- /dev/null
+++ b/app-i18n/man-pages-de/man-pages-de-1.9.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils 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="${RDEPEND}
+ app-text/po4a"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.3-bzip2.patch
+
+ # 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..90686b854c06
--- /dev/null
+++ b/app-i18n/man-pages-de/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>oehme.markus@gmx.de</email>
+ <name>Markus Oehme</name>
+ <description>Assign bugs to him</description>
+ </maintainer>
+ <maintainer>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ <description>Proxy maintainer. CC him on bugs</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-fr/Manifest b/app-i18n/man-pages-fr/Manifest
new file mode 100644
index 000000000000..dc7ad0734080
--- /dev/null
+++ b/app-i18n/man-pages-fr/Manifest
@@ -0,0 +1,2 @@
+DIST man-pages-fr-2.39.0.tar.bz2 893093 SHA256 0a9157868ef7f5be469a4252d0df08d0df0cf7b57b986a55e9e4e7592c212da2 SHA512 1c3d856a16cb42a55293d89806c176b6bd952119e1ca2300d1f4e66471147877a25dba9050e3998a6110592c7de6bcd36bd60f945b2f30d663248ccfc80274ea WHIRLPOOL d47fbdf9eb2e2164c7643fb2f91480c360b80f6338afcd74bde733d9b3a1e7a4279b509e2ac96befdd0e757eadd1adbf4ddb53773a03e90ae488c6397c407f04
+DIST man-pages-fr-3.40.1.tar.bz2 1136351 SHA256 0bab5b5f703c805139bfa38ceb2360173044aca5dd398bc1e307da9745e35988 SHA512 58027da7b78a442a84448ed6d7c6c89ccbe97fd811afb26a9c6580da2e15b86f7fae4c876d773f7ceca1fbe92c265693eae01b76ad4795b52c0298ba25ac1330 WHIRLPOOL dcf6a253a149e41d489fc4362e8430ce37b823f0d7804fc80f2aa97d0f4f9fe1def1804bad69f8f1de4e8ee79c1297b8a32e0b9a4449b4c2b64da4408fe28dbe
diff --git a/app-i18n/man-pages-fr/man-pages-fr-2.39.0.ebuild b/app-i18n/man-pages-fr/man-pages-fr-2.39.0.ebuild
new file mode 100644
index 000000000000..8afd13cc9e23
--- /dev/null
+++ b/app-i18n/man-pages-fr/man-pages-fr-2.39.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="A somewhat comprehensive collection of french Linux man pages"
+HOMEPAGE="http://fr.tldp.org/manfr.php"
+SRC_URI="ftp://ftp.win.tue.nl/pub/linux-local/manpages/translations/${P}.tar.bz2"
+
+LICENSE="man-pages GPL-2+ BSD MIT LDP-1 public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-linux"
+IUSE=""
+
+RDEPEND="virtual/man"
+
+src_compile() { :; }
+
+src_install() {
+ dodoc LISEZ_MOI changements
+ for x in man? ; do
+ insinto /usr/share/man/fr/${x}
+ doins ${x}/* || die "doins ${x}"
+ done
+}
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..a472715ee896
--- /dev/null
+++ b/app-i18n/man-pages-fr/man-pages-fr-3.40.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="A somewhat comprehensive collection of french Linux man pages"
+HOMEPAGE="http://traduc.org/perkamon"
+SRC_URI="http://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/metadata.xml b/app-i18n/man-pages-fr/metadata.xml
new file mode 100644
index 000000000000..f9d50da18d39
--- /dev/null
+++ b/app-i18n/man-pages-fr/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <description>This package lacks a primary herd or maintainer.</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-it/Manifest b/app-i18n/man-pages-it/Manifest
new file mode 100644
index 000000000000..5c4e53490d31
--- /dev/null
+++ b/app-i18n/man-pages-it/Manifest
@@ -0,0 +1 @@
+DIST man-pages-it-2.80.tar.gz 1789480 SHA256 a9c88fd61b057e31ea4a3183fbaf71927aa3962928eefc4c393364e7b0ad8492 SHA512 81cee1b4d0c818b83830355ba1347df7a309b87ebfe3169db7763b22de8638273eacf377d0b9127aa1e748c8fd427eb268dda6d6c4b543c6d3788edda86980ef WHIRLPOOL cae8dea02428f17409421a46c0a475f583e7a84d2eeb0c831061bf09571fde796e4de86799197a7acf6b09922be635f0078c62796509343c5547607f5439d5a7
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..c9d5676d1864
--- /dev/null
+++ b/app-i18n/man-pages-it/man-pages-it-2.80-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="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/metadata.xml b/app-i18n/man-pages-it/metadata.xml
new file mode 100644
index 000000000000..d9cd2cad66c2
--- /dev/null
+++ b/app-i18n/man-pages-it/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-ja/Manifest b/app-i18n/man-pages-ja/Manifest
new file mode 100644
index 000000000000..5788bdca5fd0
--- /dev/null
+++ b/app-i18n/man-pages-ja/Manifest
@@ -0,0 +1,3 @@
+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
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..9adf80fa8803
--- /dev/null
+++ b/app-i18n/man-pages-ja/man-pages-ja-20130215.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+ http://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..2c4607397ef8
--- /dev/null
+++ b/app-i18n/man-pages-ja/man-pages-ja-20131015.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+ http://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..2bcaa144a473
--- /dev/null
+++ b/app-i18n/man-pages-ja/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription>
+ 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>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-nl/Manifest b/app-i18n/man-pages-nl/Manifest
new file mode 100644
index 000000000000..dccf33f31720
--- /dev/null
+++ b/app-i18n/man-pages-nl/Manifest
@@ -0,0 +1 @@
+DIST manpages-nl-0.13.3.tar.gz 303975 SHA256 925b2f9e73b4be755fc4c415bec93b48977b8a79eecf01e4b2825b17facc4f05 SHA512 2fe12911105366e3355a46f7da988ccb888ada5f20760a4651dd34a7dcb354e85796ca70f54c06b921dd7fffc7b5c9141b4a09b0a53bff383540621652e59591 WHIRLPOOL 80db76a81488ec70c4ff472a82d44cc599b4ef285f44f2ceac33459469dd11b3315685e53429b3389c6789ec747d6e60de89b9816962e8d438ae23aa8164ba99
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..ac8d17fbc27b
--- /dev/null
+++ b/app-i18n/man-pages-nl/man-pages-nl-0.13.3.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..d9cd2cad66c2
--- /dev/null
+++ b/app-i18n/man-pages-nl/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-pl/Manifest b/app-i18n/man-pages-pl/Manifest
new file mode 100644
index 000000000000..7e999f08f02b
--- /dev/null
+++ b/app-i18n/man-pages-pl/Manifest
@@ -0,0 +1 @@
+DIST man-PL28-06-2007.tar.gz 3436680 SHA256 9cd783f5b6e42fd53b7cc929225824f3b8e9e8cb1615e481ac02a43ac29a510b SHA512 cc5de191b5dc7963018db8c2e7094b8e4e6db0dc0afefaa3a36e73a0bc70a3889d68ce78c4a900862dc5590a00bf57a3897050ed25c45d2f6f33765858cc4c8b WHIRLPOOL e490e6c12c31a55959473299364cff5009b2d97f9f98c2aea2252588e2f6b0e5fb7a6ddf0756ef46bda03369c4ada77646407c5d96642e77be141f468065bc3a
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..a0527f2aab56
--- /dev/null
+++ b/app-i18n/man-pages-pl/man-pages-pl-0_pre20070628-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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/man-pages-pl-20070628-r2.ebuild b/app-i18n/man-pages-pl/man-pages-pl-20070628-r2.ebuild
new file mode 100644
index 000000000000..ae69052ea8bf
--- /dev/null
+++ b/app-i18n/man-pages-pl/man-pages-pl-20070628-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit 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-PL${PV:6:2}-${PV:4:2}-${PV:0:4}.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..aba833ed90e0
--- /dev/null
+++ b/app-i18n/man-pages-pl/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-ro/Manifest b/app-i18n/man-pages-ro/Manifest
new file mode 100644
index 000000000000..866d0d0e2746
--- /dev/null
+++ b/app-i18n/man-pages-ro/Manifest
@@ -0,0 +1 @@
+DIST man-pages-ro-0.2.tar.gz 42764 SHA256 60fecd0c3e8cdb34bbff8370a2c12de6404eb2a8133ab7dfe93e50013f35af52 SHA512 d45deab53dbc34ef9809c19c00cded7f67bf78979cd9a8dc4a5e418465a2d56327822a07736d38fdfc34d036909866b67fdd78d1c2dcbbdb7e60d5bfbfb2599a WHIRLPOOL d69c39140007c3656995beebd47d4ee855279605b6061f5abc1ef0f7948b517d4e22fa09993b92dc1144d6df0bdcfa0b225531124c5d07cbe17d87d24f360ad1
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..2a8f32cf3539
--- /dev/null
+++ b/app-i18n/man-pages-ro/man-pages-ro-0.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..f9d50da18d39
--- /dev/null
+++ b/app-i18n/man-pages-ro/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <description>This package lacks a primary herd or maintainer.</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/man-pages-ru/Manifest b/app-i18n/man-pages-ru/Manifest
new file mode 100644
index 000000000000..e4ffbd3d406a
--- /dev/null
+++ b/app-i18n/man-pages-ru/Manifest
@@ -0,0 +1,3 @@
+DIST man-pages-ru_3.54-2171-1790-20131020.tar.bz2 764794 SHA256 ff2140c48bfcdce930189a9122ed2eda9e61170352daa48dac2a2fa4bc51dc5a SHA512 3dc4194fef836b3fb4fdcc85de0b80f29a805d0ca5a88207e11a2296726b2bd0023853c986dba4ae61a533cef7372314b05fb476d55d84007fc1355ebf8c5494 WHIRLPOOL cbc305f57b866ddff58e3730311d8534eb64bc726760eb89f60c0fbe66154a3ac6a8fbbd6d9a8fc71748a2a7cc7977c87ee6a2545c270a9c6b7a47d2034a521d
+DIST man-pages-ru_3.56-2172-1866-20140202.tar.bz2 833650 SHA256 23f7387dfcf0431c20d915584f07033648fda534d5b9228a62323aedb3b89cca SHA512 6b765585041bb52cddf1c5707240840d26dfe2d4eee9fa7b3ed156c7e863a112f95fb6af75aa95f9b1dff29a2178e2adfe714048b221853d83c7dc26075d4839 WHIRLPOOL 1114c9389e135ed8de1bcf386a2ac9f8116d8fd4b4418770e698cf00e65e90941be116cb7d2f3f438cacfbd2881e156934c7b91dcbe6c3585bdc57f3fecb6a03
+DIST man-pages-ru_3.71-2209-1992-20140911.tar.bz2 1009646 SHA256 b6f599776a175c7fff8b8b37be8be0ab8ecd5df55c382b7a687dcf6bca8d478f SHA512 c6585323ef9cece674fe4144ff1e73e2d4d831e3f8766b5091f57b7e7c13d9c68c446323515f85f4c7fd956987e40d1d22a81c0cba21593133030e1f968fde12 WHIRLPOOL a41d141be4d6d9663829ccbced477bec11adad718cd95098c74e37e82b2317c38251dc399b7531454e48ce9d56604870c0a372f24eb8e6ab2b36a56dbf8b910f
diff --git a/app-i18n/man-pages-ru/man-pages-ru-3.54.2171.1790.20131020.ebuild b/app-i18n/man-pages-ru/man-pages-ru-3.54.2171.1790.20131020.ebuild
new file mode 100644
index 000000000000..3b626c039983
--- /dev/null
+++ b/app-i18n/man-pages-ru/man-pages-ru-3.54.2171.1790.20131020.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+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/man-pages-ru-3.56.2172.1866.20140202.ebuild b/app-i18n/man-pages-ru/man-pages-ru-3.56.2172.1866.20140202.ebuild
new file mode 100644
index 000000000000..44c90dfe10f2
--- /dev/null
+++ b/app-i18n/man-pages-ru/man-pages-ru-3.56.2172.1866.20140202.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+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/man-pages-ru-3.71.2209.1992.20140911.ebuild b/app-i18n/man-pages-ru/man-pages-ru-3.71.2209.1992.20140911.ebuild
new file mode 100644
index 000000000000..fe61b9656cb5
--- /dev/null
+++ b/app-i18n/man-pages-ru/man-pages-ru-3.71.2209.1992.20140911.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+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..6df3f05d4a73
--- /dev/null
+++ b/app-i18n/man-pages-ru/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>
+ <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>
+ <description>Upstream contact, translation coordinator</description>
+ </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..a843442bdbf4
--- /dev/null
+++ b/app-i18n/man-pages-zh_CN/Manifest
@@ -0,0 +1 @@
+DIST man-pages-zh_CN-1.5.tar.gz 3762338 SHA256 e78fac5063c86fbab1c30323afbbe4fe8dbb68e2556bb32c35ef4bdebdb3ecf0 SHA512 799eac7e6c64dd9bb647bf490457bc6ece76870d261606e33f48df977762b66f778fb5afe3608443be100e516988c700ddb53de2a226e7b29d32348fa240ce91 WHIRLPOOL 793b2bac8216b585cff39189b60c74b833d312f44af89ecba0f9f4e845cb770a725ee52cbe48ea37b2dd9c72d3723efca4114fc6bf3ec74c173df4c60b587644
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..724b85fa51ae
--- /dev/null
+++ b/app-i18n/man-pages-zh_CN/man-pages-zh_CN-1.5.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit 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 ~ia64-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..1470e032181b
--- /dev/null
+++ b/app-i18n/man-pages-zh_CN/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/mecab-skkserv/Manifest b/app-i18n/mecab-skkserv/Manifest
new file mode 100644
index 000000000000..4ecaff5d6fd1
--- /dev/null
+++ b/app-i18n/mecab-skkserv/Manifest
@@ -0,0 +1 @@
+DIST mecab-skkserv-0.03.tar.gz 5398452 SHA256 d036402ab37170034ff8ed38b9d25f1bab75170fbda865ac297ccee77570f0da SHA512 268621035391ec780b8aa04980d668afc83410853d25f06b4578dba3d4e3803ebfea42aabde1325fd80edad7524a4658480e40a00c6bfec1f04310a8d47bb2c9 WHIRLPOOL be29e7fa5571dfdca08d8c1dc59260514dda34c29900d541f6cb216a298f3602ad4c6fcaf919af600cac4fb6e79194f0d024664ba186ab5cbc53fd996e252411
diff --git a/app-i18n/mecab-skkserv/files/mecab-skkserv b/app-i18n/mecab-skkserv/files/mecab-skkserv
new file mode 100644
index 000000000000..5fa43fcd0471
--- /dev/null
+++ b/app-i18n/mecab-skkserv/files/mecab-skkserv
@@ -0,0 +1,11 @@
+service skkserv
+{
+ disable = yes
+ port = 1178
+ socket_type = stream
+ wait = no
+ only_from = 127.0.0.1
+ user = nobody
+ server = /usr/bin/mecab-skkserv
+ log_on_failure += USERID
+}
diff --git a/app-i18n/mecab-skkserv/files/mecab-skkserv-0.03-cflags.patch b/app-i18n/mecab-skkserv/files/mecab-skkserv-0.03-cflags.patch
new file mode 100644
index 000000000000..6144d69f2823
--- /dev/null
+++ b/app-i18n/mecab-skkserv/files/mecab-skkserv-0.03-cflags.patch
@@ -0,0 +1,15 @@
+diff --git a/configure.in b/configure.in
+index c7c00aa..a2c7a9e 100644
+--- 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-0.03-dicrc.patch b/app-i18n/mecab-skkserv/files/mecab-skkserv-0.03-dicrc.patch
new file mode 100644
index 000000000000..3cd8d611917f
--- /dev/null
+++ b/app-i18n/mecab-skkserv/files/mecab-skkserv-0.03-dicrc.patch
@@ -0,0 +1,9 @@
+diff --git a/dicrc b/dicrc
+index cb6a53e..7f06086 100644
+--- 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/mecab-skkserv-0.03.ebuild b/app-i18n/mecab-skkserv/mecab-skkserv-0.03.ebuild
new file mode 100644
index 000000000000..b32503b8b90f
--- /dev/null
+++ b/app-i18n/mecab-skkserv/mecab-skkserv-0.03.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit autotools-utils multilib
+
+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/mecab-skkserv/${P}.tar.gz"
+
+LICENSE="GPL-2 ipadic"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=app-text/mecab-0.91"
+RDEPEND="${DEPEND}
+ sys-apps/xinetd"
+
+DOCS=( README NEWS AUTHORS )
+HTML_DOCS=( index.html )
+PATCHES=(
+ "${FILESDIR}"/${P}-cflags.patch
+ "${FILESDIR}"/${P}-dicrc.patch
+ )
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+src_prepare() {
+ sed -i -e "/^dictdir/s@lib@$(get_libdir)@" Makefile.am || die
+ autotools-utils_src_prepare
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ # for running skkserv from xinetd
+ insinto /etc/xinetd.d; doins "${FILESDIR}"/mecab-skkserv
+}
diff --git a/app-i18n/mecab-skkserv/metadata.xml b/app-i18n/mecab-skkserv/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/mecab-skkserv/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/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..c88789227fd9
--- /dev/null
+++ b/app-i18n/mozc/Manifest
@@ -0,0 +1,10 @@
+DIST fcitx-mozc-2.16.2037.102.2.patch 140421 SHA256 ff175f3e0301c33f750780765ea264887827d00bc7a59fc8b55ae514ba449a1e SHA512 22b885859588bb8e0efd354d153da461a654203729c723156a419bf33fae473e3f7165964aa3cb3b5c969f97c2727f9d87b0d587330e4eeab67f07d4458542a3 WHIRLPOOL cd9534c8904a7c9f866a8ddd41ab4c57b3ad8b5650fda4cf9ccc1e544c8e0da25c749870606687ee66e4252f224babdbe10415e035038ced654812bad8d299dc
+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 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 protobuf-2.5.0.tar.bz2 1866763 SHA256 13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677 SHA512 5994b3669808b82fef5c860ecad36358c0767f84acac877e7bfcf722e59d972835a955714149bdd4158fbd1328a51d01397a563991d26475351ee72be48142ee WHIRLPOOL 7e6786e1f20bf253d0e386a95c2bbfe1b443f484d492f97552cadcea62c24461436aa88130e3ff20b4dc9f352c101458cb8c03686f1cc4e6e2133b6e78f5b70d
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-1.2.809.102-gentoo.patch b/app-i18n/mozc/files/mozc-1.2.809.102-gentoo.patch
new file mode 100644
index 000000000000..3e3ef1392932
--- /dev/null
+++ b/app-i18n/mozc/files/mozc-1.2.809.102-gentoo.patch
@@ -0,0 +1,14 @@
+diff -Naur mozc-1.2.809.102.orig/build_mozc.py mozc-1.2.809.102/build_mozc.py
+--- mozc-1.2.809.102.orig/build_mozc.py 2011-08-17 10:02:41.000000000 +0900
++++ mozc-1.2.809.102/build_mozc.py 2011-08-18 01:01:25.109704261 +0900
+@@ -654,9 +654,7 @@
+ if envvar in os.environ:
+ os.environ[envvar] = os.getenv(envvar)
+
+- build_args = ['-j%s' % options.jobs,
+- 'MAKE_JOBS=%s' % options.jobs,
+- 'BUILDTYPE=%s' % options.configuration]
++ build_args = ['BUILDTYPE=%s' % options.configuration]
+ build_args.append('builddir_name=%s' % GetBuildBaseName(options))
+
+ RunOrDie([make_command] + build_args + target_names)
diff --git a/app-i18n/mozc/files/mozc-1.3.975.102-ibus-1.4.patch b/app-i18n/mozc/files/mozc-1.3.975.102-ibus-1.4.patch
new file mode 100644
index 000000000000..ed697b6c8bd8
--- /dev/null
+++ b/app-i18n/mozc/files/mozc-1.3.975.102-ibus-1.4.patch
@@ -0,0 +1,54 @@
+http://bugs.gentoo.org/402397
+
+--- unix/ibus/mozc_engine.cc
++++ unix/ibus/mozc_engine.cc
+@@ -620,8 +620,15 @@
+
+ #ifndef OS_CHROMEOS
+ if (prop_mozc_tool_) {
++#if IBUS_CHECK_VERSION(1, 4, 0)
++ while ((prop = ibus_prop_list_get(
++ const_cast<IBusPropList*>(
++ ibus_property_get_sub_props(prop_mozc_tool_)), i++))) {
++ if (!g_strcmp0(property_name, ibus_property_get_key(prop))) {
++#else
+ while ((prop = ibus_prop_list_get(prop_mozc_tool_->sub_props, i++))) {
+- if (!g_strcmp0(property_name, prop->key)) {
++ if (!g_strcmp0(property_name, prop->key)) {
++#endif
+ const MozcEngineToolProperty *entry =
+ reinterpret_cast<const MozcEngineToolProperty*>(
+ g_object_get_data(G_OBJECT(prop), kGObjectDataKey));
+@@ -640,8 +647,15 @@
+ }
+
+ i = 0;
++#if IBUS_CHECK_VERSION(1, 4, 0)
++ while ((prop = ibus_prop_list_get(
++ const_cast<IBusPropList*>(
++ ibus_property_get_sub_props(prop_composition_mode_)), i++))) {
++ if (!g_strcmp0(property_name, ibus_property_get_key(prop))) {
++#else
+ while ((prop = ibus_prop_list_get(prop_composition_mode_->sub_props, i++))) {
+- if (!g_strcmp0(property_name, prop->key)) {
++ if (!g_strcmp0(property_name, prop->key)) {
++#endif
+ const MozcEngineProperty *entry =
+ reinterpret_cast<const MozcEngineProperty*>(
+ g_object_get_data(G_OBJECT(prop), kGObjectDataKey));
+@@ -1096,8 +1110,15 @@
+
+ size_t i = 0;
+ IBusProperty *prop = NULL;
++#if IBUS_CHECK_VERSION(1, 4, 0)
++ while ((prop = ibus_prop_list_get(
++ const_cast<IBusPropList*>(
++ ibus_property_get_sub_props(prop_composition_mode_)), i++))) {
++ if (!g_strcmp0(entry->key, ibus_property_get_key(prop))) {
++#else
+ while ((prop = ibus_prop_list_get(prop_composition_mode_->sub_props, i++))) {
+ if (!g_strcmp0(entry->key, prop->key)) {
++#endif
+ // Update the language panel.
+ ibus_property_set_icon(prop_composition_mode_,
+ GetIconPath(entry->icon).c_str());
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..61a84a9b2f9c
--- /dev/null
+++ b/app-i18n/mozc/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription 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="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>
+ </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..f65dd5df035d
--- /dev/null
+++ b/app-i18n/mozc/mozc-1.10.1390.102-r1.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="http://code.google.com/p/mozc/"
+
+PROTOBUF_VER="2.5.0"
+GMOCK_VER="1.6.0"
+GTEST_VER="1.6.0"
+JSONCPP_VER="0.6.0-rc2"
+MOZC_URL="http://mozc.googlecode.com/files/${P}.tar.bz2"
+PROTOBUF_URL="http://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"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/openssl
+ 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..2711a97a6c6a
--- /dev/null
+++ b/app-i18n/mozc/mozc-1.13.1651.102.ebuild
@@ -0,0 +1,181 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="http://code.google.com/p/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="http://mozc.googlecode.com/files/${P}.tar.bz2"
+PROTOBUF_URL="http://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="http://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"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/openssl
+ >=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..e09dcc54468a
--- /dev/null
+++ b/app-i18n/mozc/mozc-2.16.2037.102.ebuild
@@ -0,0 +1,230 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="http://code.google.com/p/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="http://dev.gentoo.org/~naota/files/${P}.tar.bz2"
+PROTOBUF_URL="http://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="http://dev.gentoo.org/~naota/files/gyp-${GYP_DATE}.tar.bz2"
+JAPANESE_USAGE_DICT_URL="http://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"
+
+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/multiskkserv/Manifest b/app-i18n/multiskkserv/Manifest
new file mode 100644
index 000000000000..e022ddba57a2
--- /dev/null
+++ b/app-i18n/multiskkserv/Manifest
@@ -0,0 +1 @@
+DIST multiskkserv-20100128.tar.xz 250004 SHA256 e216026891af86b5ce17d5103bdce25d7aac923e53306728fafa7ed7863681bc SHA512 27409600f549317dd2e2fcd0f0a35406a5d445c74e0ba266ed3c19cec849b6d508a30edd65bf72931b0222f003d934a802e5c3c979d5b52ab30da473cabbf5a5 WHIRLPOOL 8cc5ffb53b143b936462bac7b1d2a4021744199f3b151127fb22c1706ca22f25bcd8ccdb4a2b0f7b4208d488c475e8661daff4b16c3fef65b7d7519e224ca327
diff --git a/app-i18n/multiskkserv/files/multiskkserv-20100128-cdb.patch b/app-i18n/multiskkserv/files/multiskkserv-20100128-cdb.patch
new file mode 100644
index 000000000000..938043ca46b3
--- /dev/null
+++ b/app-i18n/multiskkserv/files/multiskkserv-20100128-cdb.patch
@@ -0,0 +1,45 @@
+diff --git a/configure.in b/configure.in
+index 648f742..2ac4e92 100644
+--- a/configure.in
++++ b/configure.in
+@@ -108,22 +108,24 @@ if test "$with_cdb" = "no"; then
+ else
+ if test "$with_cdb" = "yes"; then
+ for i in /usr/local /usr; do
+- if test -d "$i/include" -a -f "$i/include/cdb.h"; then
+- CDB_DIR="$i"
+- CDB_INCLUDES="-I$i/include"
+- available_cdb="yes"
+- for j in cdb.a buffer.a unix.a byte.a alloc.a; do
+- if test -f "$i/lib/$j"; then
+- LIBADD_CDB="$LIBADD_CDB $i/lib/$j"
+- else
+- available_cdb="no"
+- break
+- fi
+- done
+- if test "$available_cdb" = "yes"; then
+- break
+- fi
+- fi
++ for inc in include include/cdb; do
++ if test -d "$i/$inc" -a -f "$i/$inc/cdb.h"; then
++ CDB_DIR="$i"
++ CDB_INCLUDES="-I$i/$inc"
++ available_cdb="yes"
++ for j in cdb.a buffer.a unix.a byte.a alloc.a; do
++ if test -f "$i/lib/$j"; then
++ LIBADD_CDB="$LIBADD_CDB $i/lib/$j"
++ else
++ available_cdb="no"
++ break
++ fi
++ done
++ if test "$available_cdb" = "yes"; then
++ break
++ fi
++ fi
++ done
+ done
+ else
+ if test -d "$with_cdb" -a -f "$with_cdb/cdb.h"; then
diff --git a/app-i18n/multiskkserv/files/multiskkserv.conf b/app-i18n/multiskkserv/files/multiskkserv.conf
new file mode 100644
index 000000000000..e2e95fd8e501
--- /dev/null
+++ b/app-i18n/multiskkserv/files/multiskkserv.conf
@@ -0,0 +1,15 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# 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..22a6d5fb43e3
--- /dev/null
+++ b/app-i18n/multiskkserv/files/multiskkserv.initd
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ if [ -e /var/run/multiskkserv.pid ] ; then
+ eerror "Anothor pid file is detected."
+ eerror "If you are sure any multiskkserv is not running,"
+ eerror "please rm /var/run/multiskkserv manually."
+ fi
+
+ ebegin "Starting multiskkserv"
+ start-stop-daemon --start --quiet --background \
+ --make-pidfile --pidfile /var/run/multiskkserv.pid \
+ /usr/sbin/multiskkserv -- \
+ -r /usr/share/skk ${SKKJISYO_CDB}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping multiskkserv"
+ start-stop-daemon --stop --quiet -R 5 \
+ --pidfile /var/run/multiskkserv.pid \
+ --exec /usr/sbin/multiskkserv
+ eend $?
+}
diff --git a/app-i18n/multiskkserv/metadata.xml b/app-i18n/multiskkserv/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/multiskkserv/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/multiskkserv/multiskkserv-20100128.ebuild b/app-i18n/multiskkserv/multiskkserv-20100128.ebuild
new file mode 100644
index 000000000000..13f4559b464e
--- /dev/null
+++ b/app-i18n/multiskkserv/multiskkserv-20100128.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit autotools eutils
+
+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="app-arch/xz-utils
+ dev-db/cdb
+ test? ( app-i18n/nkf )"
+RDEPEND="|| (
+ >=app-i18n/skk-jisyo-200705[cdb]
+ app-i18n/skk-jisyo-cdb
+ )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cdb.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf --with-cdb=yes
+}
+
+src_install() {
+ default
+
+ newconfd "${FILESDIR}"/multiskkserv.conf multiskkserv
+ newinitd "${FILESDIR}"/multiskkserv.initd multiskkserv
+}
+
+pkg_postinst() {
+ elog "By default, multiskkserv will look up only SKK-JISYO.L.cdb."
+ elog "If you want to use more dictionaries,"
+ elog "edit /etc/conf.d/multiskkserv manually."
+}
diff --git a/app-i18n/nabi/Manifest b/app-i18n/nabi/Manifest
new file mode 100644
index 000000000000..606d91df536a
--- /dev/null
+++ b/app-i18n/nabi/Manifest
@@ -0,0 +1,6 @@
+DIST nabi-0.15.tar.gz 633850 SHA256 f39ccc86e1a2a2ad08127a232d06da39be9a39ba8fb933afd5a04f501a20a39d SHA512 44d33d27c36d0be5757a3de3e3760a339a1e143c28ebf926cbbbd714de882ed67f428365c8f15af16917ac24e151b6f4ff6b732b80ada4c3c750cd0d31de8313 WHIRLPOOL 2b3d0f250d669b290419750eb38b87d1a1ec1d0d416822fb98618ce6eb722d8d14486a1c4484f5e930e3b4a43f8924614947328b293f9843b765abf0c1f3ad29
+DIST nabi-0.17.tar.gz 656438 SHA256 1a239a7bb0644441ca781459fbf5a1c5fb95e823351bf308aa680eb60cc45b94 SHA512 457a91981cdc9ef30d316f1288a6983fbb692866d5c34151d718976e3fe813988fa9965100193d2fb4ff73458d44bbce3dd2bda2b37b280f03aeaba9ce2d3c9c WHIRLPOOL 967902b8a78ebac8ea29bb765e28dbc2c0126537c6f9907e441b73e9e1a5ebc133edae72cbb215b90d2e551fe10188f67c8f4134d6ef62d732ba91745578b503
+DIST nabi-0.99.10.tar.gz 839787 SHA256 a341480f52dd24779a4cea65f7520df7a51413ac725c17788671fc6d1e41ce3d SHA512 eb3edbdfde42c5381f76598d7011b9bbc8f0f842645be78d9ddc716c0a430b2a4479d7e2d7282cbe374d6479bd79c9347d546e158d424c3d5388d92055455dd0 WHIRLPOOL d6df870a14cd8f6436f6935f11a9c6acbfedc21719dc0551d083b688a3019a10726d5eff8a7f5f9b654dd64e80dc71035af844aa2835da3174bee1e910bebd9f
+DIST nabi-0.99.11.tar.gz 840845 SHA256 f9acff298f3dc7a80eff1281b04e00dda0e68ad56c1b28443800f09fd8c7ceb3 SHA512 0cc2a1e04241a13207226db6c2db811b32ca0cc41c28905122126d6193d6a83c575960aca0f4da0574e399a11b96e7b8c250b6f6245cc8ff3de37c2ea761b834 WHIRLPOOL fd29b61e591b89133c3df1f007d8f686e4ae63e6362aa3f4b25f4021d966ae720308f38c5846031246c90b83fb93d11c150f4093240c49e70f982f5b7de4f870
+DIST nabi-0.99.3.tar.gz 773189 SHA256 60a8bc0cbc14274ae73e13cd487a90b3b85f517740f958007ab7cd13f86b28de SHA512 fd96e8ee47352e9ab722df4fab188bfee5f57791742f1810fbfdca0fa97f74408356d62437b8ae5da58f94157e27d645ff34570c147b39e6cb344d19ef078513 WHIRLPOOL 7b335a221339c59c7d20f627499a330b967f687e2e9766973ff9023a04b83361f97b0d0d33f101c1b76eb48cba22d29f1968405890437244e7bc1c4423d1f9df
+DIST nabi-0.99.8.tar.gz 831411 SHA256 8bad787f72e7fc3b81566ac7da0377fecafddd1b4bbfff9f0c56c932f68e4254 SHA512 57e8a5218b56edb3cf6c1f6ff0086dc8c1f32752adadf41b0d486cd4aaf8c703bdb6ceee2db386da6449bd4aa61dd2119033c29879c5bcf7bd793fa9e7c905ef WHIRLPOOL f3e2b1d12b7f35b8c3e4d1482d5d852b053df4414db0ebb73d5ba5186dc5710a258a4b93c56039f366851bf92639e8833af716d3d2a1ce473ab3d67faf094f1e
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..cb36a2fd8c76
--- /dev/null
+++ b/app-i18n/nabi/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/nabi/nabi-0.15.ebuild b/app-i18n/nabi/nabi-0.15.ebuild
new file mode 100644
index 000000000000..a2aa40588e58
--- /dev/null
+++ b/app-i18n/nabi/nabi-0.15.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils autotools
+
+DESCRIPTION="Simple Hanguk X Input Method"
+HOMEPAGE="https://code.google.com/p/nabi/"
+SRC_URI="http://download.kldp.net/nabi/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+KEYWORDS="~amd64 ppc x86"
+
+RDEPEND=">=x11-libs/gtk+-2.2:2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.15-asneeded.patch
+ eautoreconf
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS ChangeLog README NEWS
+}
+
+pkg_postinst() {
+ elog "You MUST add environment variable..."
+ elog
+ elog "export XMODIFIERS=\"@im=nabi\""
+ elog
+}
diff --git a/app-i18n/nabi/nabi-0.17.ebuild b/app-i18n/nabi/nabi-0.17.ebuild
new file mode 100644
index 000000000000..8a44d3322a1f
--- /dev/null
+++ b/app-i18n/nabi/nabi-0.17.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils autotools
+
+DESCRIPTION="Simple Hanguk X Input Method"
+HOMEPAGE="https://code.google.com/p/nabi/"
+SRC_URI="http://kldp.net/frs/download.php/3742/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND=">=x11-libs/gtk+-2.2:2
+ >=app-i18n/libhangul-0.0.4"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.99.3-asneeded.patch
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}
+
+pkg_postinst() {
+ elog "You MUST add environment variable..."
+ elog
+ elog "export XMODIFIERS=\"@im=nabi\""
+ elog
+}
diff --git a/app-i18n/nabi/nabi-0.99.10.ebuild b/app-i18n/nabi/nabi-0.99.10.ebuild
new file mode 100644
index 000000000000..f90a55e52ec0
--- /dev/null
+++ b/app-i18n/nabi/nabi-0.99.10.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+DESCRIPTION="Simple Hanguk X Input Method"
+HOMEPAGE="https://code.google.com/p/nabi/"
+SRC_URI="http://kldp.net/frs/download.php/6003/${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"
+
+src_configure() {
+ local myconf=
+
+ # Broken configure: --disable-debug also enables debug
+ use debug && \
+ myconf="${myconf} --enable-debug"
+
+ econf ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ sed -e "s:@EPREFIX@:${EPREFIX}:g" "${FILESDIR}/xinput-${PN}" > "${T}/${PN}.conf" || die
+ insinto /etc/X11/xinit/xinput.d
+ doins "${T}/${PN}.conf" || die
+
+ dodoc AUTHORS ChangeLog* NEWS README TODO || die
+}
+
+pkg_postinst() {
+ elog "You MUST add environment variable..."
+ elog
+ elog "export XMODIFIERS=\"@im=nabi\""
+ elog
+}
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..e8aafd1999c9
--- /dev/null
+++ b/app-i18n/nabi/nabi-0.99.11.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Simple Hanguk X Input Method"
+HOMEPAGE="https://code.google.com/p/nabi/"
+SRC_URI="http://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-0.99.3.ebuild b/app-i18n/nabi/nabi-0.99.3.ebuild
new file mode 100644
index 000000000000..d5d764e592c9
--- /dev/null
+++ b/app-i18n/nabi/nabi-0.99.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils autotools
+
+DESCRIPTION="Simple Hanguk X Input Method"
+HOMEPAGE="https://code.google.com/p/nabi/"
+SRC_URI="http://kldp.net/frs/download.php/4929/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND=">=app-i18n/libhangul-0.0.8
+ 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"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-asneeded.patch
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=
+
+ # Broken configure: --disable-debug also enables debug
+ use debug && \
+ myconf="${myconf} --enable-debug"
+
+ econf ${myconf}
+}
+
+pkg_postinst() {
+ elog "You MUST add environment variable..."
+ elog
+ elog "export XMODIFIERS=\"@im=nabi\""
+ elog
+}
diff --git a/app-i18n/nabi/nabi-0.99.8.ebuild b/app-i18n/nabi/nabi-0.99.8.ebuild
new file mode 100644
index 000000000000..a166b2e91689
--- /dev/null
+++ b/app-i18n/nabi/nabi-0.99.8.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+DESCRIPTION="Simple Hanguk X Input Method"
+HOMEPAGE="https://code.google.com/p/nabi/"
+SRC_URI="http://kldp.net/frs/download.php/5865/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug nls"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND=">=app-i18n/libhangul-0.0.12
+ 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"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_configure() {
+ local myconf=
+
+ # Broken configure: --disable-debug also enables debug
+ use debug && \
+ myconf="${myconf} --enable-debug"
+
+ econf ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ sed -e "s:@EPREFIX@:${EPREFIX}:g" "${FILESDIR}/xinput-${PN}" > "${T}/${PN}.conf" || die
+ insinto /etc/X11/xinit/xinput.d
+ doins "${T}/${PN}.conf" || die
+
+ dodoc AUTHORS ChangeLog* NEWS README TODO || die
+}
+
+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..b367969b2ed1
--- /dev/null
+++ b/app-i18n/nkf/Manifest
@@ -0,0 +1,3 @@
+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
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..22082c33e432
--- /dev/null
+++ b/app-i18n/nkf/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge-jp">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..347fc7d8a9ab
--- /dev/null
+++ b/app-i18n/nkf/nkf-2.1.3-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+inherit eutils 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
+ linguas_ja? ( http://dev.gentoo.org/~naota/files/nkf.1j )
+ python? ( http://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 linguas_ja"
+
+src_prepare() {
+ sed -i \
+ -e '/^CFLAGS/{s|-g -O2||;s|=|+=|;}' \
+ -e '/-o nkf/s:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' \
+ Makefile || die
+
+ if use linguas_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 linguas_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..a8ae0d33151c
--- /dev/null
+++ b/app-i18n/nkf/nkf-2.1.3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+inherit eutils 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? ( http://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 linguas_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 linguas_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..d427f14a1277
--- /dev/null
+++ b/app-i18n/opencc/Manifest
@@ -0,0 +1,3 @@
+DIST opencc-0.2.0.tar.gz 496313 SHA256 fc4b3203482c7e5ad5c887dc08f83cd1d0e0c1fd1bdd9ec48672ca89bfe2a424 SHA512 46c03a1605b8c464d8836bfa6e69fef1d1978102aa6a75ab75c9546635da91223bb26412639869a1f7fc3f8db1f4ebd12645c53d07cb1375605dbb42c7e4524a WHIRLPOOL 98675c15579e573633f68e9c73a83164a3bd0ebb82b7b92dd31dfddda4a6cd3c81dd4cbd5fd775021b29e7c543952bf2206c2c00257fdc11f91754f56a969e9b
+DIST opencc-0.3.0_pre20120819.tar.xz 363528 SHA256 3ed46594547b86f1326b07c3ea910148b1c58b74c9d21c8d4e11ec30e2254fae SHA512 0ca231b5fd7b314111a76bfaa8e288fc2d43e02dbbb2a7c7e9312c1f1f0aed1a0d3b67b04b0cc3634d1b48b8fe6983e6219db053f3a2114abadec1af00b9f8d5 WHIRLPOOL 268d331479bffefdc6e1f58600422a36a32abb7d4dd873eeb216977daca05f4a4775ca547bb301bc16ea8fc702ef04cfd5d8f88c90d10e224a585575129e67c6
+DIST opencc-0.4.3.tar.gz 535151 SHA256 7bdcf9e38ac05a16750d5276494d810db107c8a8b5f8b87e2357ee167a13a587 SHA512 ac31c3c018467cf047e077d399903560feb0f8c214accd1ef45d0b1477d011af8e9bf2dbde4497c133daef61b6508460e9b2b04c0b5f336c2d67fc840a1d07e6 WHIRLPOOL 316857e7720e962c9fde27c04327c0c6b5137ca7290b170cc1ead86dcd0c6f14202ac2386f6e565ad12ebca99c939a511447902054792203edeabed88e149a2e
diff --git a/app-i18n/opencc/files/opencc-0.3.0_pre20120819-cmake-libdir.patch b/app-i18n/opencc/files/opencc-0.3.0_pre20120819-cmake-libdir.patch
new file mode 100644
index 000000000000..76dc4330c440
--- /dev/null
+++ b/app-i18n/opencc/files/opencc-0.3.0_pre20120819-cmake-libdir.patch
@@ -0,0 +1,17 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -70,11 +70,11 @@ set (DIR_SHARE ${DIR_PREFIX}/share)
+ set (DIR_BIN ${DIR_PREFIX}/bin)
+ set (DIR_ETC ${DIR_PREFIX}/etc)
+
+ if (DEFINED CMAKE_INSTALL_LIBDIR)
+- set (DIR_LIBRARY ${CMAKE_INSTALL_LIBDIR})
+- set (DIR_LIBRARY_STATIC ${CMAKE_INSTALL_LIBDIR})
++ set (DIR_LIBRARY ${DIR_PREFIX}/${CMAKE_INSTALL_LIBDIR})
++ set (DIR_LIBRARY_STATIC ${DIR_PREFIX}/${CMAKE_INSTALL_LIBDIR})
+ endif (DEFINED CMAKE_INSTALL_LIBDIR)
+
+ if (DEFINED SHARE_INSTALL_PREFIX)
+ set (DIR_SHARE ${SHARE_INSTALL_PREFIX})
+ endif (DEFINED SHARE_INSTALL_PREFIX)
diff --git a/app-i18n/opencc/metadata.xml b/app-i18n/opencc/metadata.xml
new file mode 100644
index 000000000000..e60b8b7f6efa
--- /dev/null
+++ b/app-i18n/opencc/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="en">OpenCC is a library for converting characters and phrases between
+Traditional Chinese and Simplified Chinese.</longdescription>
+ <upstream>
+ <remote-id type="google-code">open-chinese-convert</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/opencc/opencc-0.2.0.ebuild b/app-i18n/opencc/opencc-0.2.0.ebuild
new file mode 100644
index 000000000000..a219a653a146
--- /dev/null
+++ b/app-i18n/opencc/opencc-0.2.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit cmake-utils multilib
+
+DESCRIPTION="Libraries for Simplified-Traditional Chinese Conversion"
+HOMEPAGE="http://code.google.com/p/open-chinese-convert/"
+SRC_URI="http://open-chinese-convert.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE="nls static-libs"
+
+DEPEND="nls? ( sys-devel/gettext )"
+RDEPEND="nls? ( virtual/libintl )"
+
+DOCS="AUTHORS ChangeLog README"
+
+src_prepare() {
+ sed -i \
+ -e "s:\${CMAKE_\(SHARED\|STATIC\)_LIBRARY_PREFIX}:\"$(get_libdir)\":" \
+ CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ "$(cmake-utils_use_enable nls GETTEXT)"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ use static-libs || find "${ED}" -name '*.la' -o -name '*.a' -exec rm {} +
+}
diff --git a/app-i18n/opencc/opencc-0.3.0_pre20120819-r1.ebuild b/app-i18n/opencc/opencc-0.3.0_pre20120819-r1.ebuild
new file mode 100644
index 000000000000..5b8ebe6b609c
--- /dev/null
+++ b/app-i18n/opencc/opencc-0.3.0_pre20120819-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit cmake-utils multilib eutils
+
+DESCRIPTION="Libraries for Simplified-Traditional Chinese Conversion"
+HOMEPAGE="http://code.google.com/p/open-chinese-convert/"
+SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.xz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc ppc64 x86"
+IUSE="+nls static-libs"
+
+DEPEND="nls? ( sys-devel/gettext )"
+RDEPEND="nls? ( virtual/libintl )"
+
+DOCS="AUTHORS README"
+
+src_prepare() {
+ sed -i \
+ -e "s:\${CMAKE_\(SHARED\|STATIC\)_LIBRARY_PREFIX}:\"$(get_libdir)\":" \
+ CMakeLists.txt || die
+ epatch "${FILESDIR}"/${P}-cmake-libdir.patch
+}
+
+src_configure() {
+ local mycmakeargs=(
+ "$(cmake-utils_use_enable nls GETTEXT)"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ use static-libs || find "${ED}" -name '*.la' -o -name '*.a' -exec rm {} +
+}
diff --git a/app-i18n/opencc/opencc-0.3.0_pre20120819.ebuild b/app-i18n/opencc/opencc-0.3.0_pre20120819.ebuild
new file mode 100644
index 000000000000..bcea0163b1a7
--- /dev/null
+++ b/app-i18n/opencc/opencc-0.3.0_pre20120819.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit cmake-utils multilib
+
+DESCRIPTION="Libraries for Simplified-Traditional Chinese Conversion"
+HOMEPAGE="http://code.google.com/p/open-chinese-convert/"
+SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.xz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE="+nls static-libs"
+
+DEPEND="nls? ( sys-devel/gettext )"
+RDEPEND="nls? ( virtual/libintl )"
+
+DOCS="AUTHORS README"
+
+src_prepare() {
+ sed -i \
+ -e "s:\${CMAKE_\(SHARED\|STATIC\)_LIBRARY_PREFIX}:\"$(get_libdir)\":" \
+ CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ "$(cmake-utils_use_enable nls GETTEXT)"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ use static-libs || find "${ED}" -name '*.la' -o -name '*.a' -exec rm {} +
+}
diff --git a/app-i18n/opencc/opencc-0.4.3.ebuild b/app-i18n/opencc/opencc-0.4.3.ebuild
new file mode 100644
index 000000000000..26fb8a347a0a
--- /dev/null
+++ b/app-i18n/opencc/opencc-0.4.3.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils multilib eutils
+
+DESCRIPTION="Libraries for conversion between Traditional and Simplified Chinese"
+HOMEPAGE="http://code.google.com/p/opencc/"
+SRC_URI="https://opencc.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="+nls static-libs"
+
+DEPEND="nls? ( sys-devel/gettext )"
+RDEPEND="nls? ( virtual/libintl )"
+
+DOCS="AUTHORS NEWS.md README.md"
+
+src_configure() {
+ local mycmakeargs=(
+ "$(cmake-utils_use_enable nls GETTEXT)"
+ -DCMAKE_INSTALL_LIBDIR="${EPREFIX}"/usr/$(get_libdir)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ use static-libs || find "${ED}" -name '*.la' -o -name '*.a' -exec rm {} +
+}
diff --git a/app-i18n/poedit/Manifest b/app-i18n/poedit/Manifest
new file mode 100644
index 000000000000..94b4eeeff530
--- /dev/null
+++ b/app-i18n/poedit/Manifest
@@ -0,0 +1,2 @@
+DIST poedit-1.5.5.tar.gz 2594758 SHA256 3c94c9825c11a2d1ce10e083ad246e8625469f358da4a5a2f6210170b970f949 SHA512 a3524e27681dbf97babef7bf3ec56d6b7cd736370f8ed86b53c717a5a2eb36245f9ed89fcd28b57bd4d6f5ff5fb98d6c1615baae0bf10be720dcfdafa57ad4f4 WHIRLPOOL 893795acc85183cede0313b9220179cafa17a92033e8472e48454475f4ecdf51a014dc7123e9396a38a98217c43666919e7a1dadf68ab2f401b920071cec3d23
+DIST poedit-1.8.3.tar.gz 2319253 SHA256 2a73c659506c31eac142ad5b070a2370a797f3e81813c915bdd75fac2dd21ec1 SHA512 c09faf18c9e58b2f4547e47d22a2237589eb4663985d0d3411e6f83691c34d075bff188fc14a9e245efe89d976377956d604c7f09d0329ddcd70383243f0f6b0 WHIRLPOOL 31b324c4c5b731836865c7bd464003b38406bf114f39354e9c6cb2bcfb65d5a3dead3e05ba780d2f0e13d504368d40e365f6372b6c9d5493814e063dd77a0bdf
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..3d00b413e81e
--- /dev/null
+++ b/app-i18n/poedit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>wxwidgets</herd>
+ <upstream>
+ <remote-id type="github">vslavik/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..44438611fd6e
--- /dev/null
+++ b/app-i18n/poedit/poedit-1.5.5.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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.3.ebuild b/app-i18n/poedit/poedit-1.8.3.ebuild
new file mode 100644
index 000000000000..a66639042358
--- /dev/null
+++ b/app-i18n/poedit/poedit-1.8.3.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 id is it ja 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 ~ppc64 ~x86"
+IUSE=""
+
+# db/expat req for legacytm - remove in later version
+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]
+ )
+ 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/pology/Manifest b/app-i18n/pology/Manifest
new file mode 100644
index 000000000000..816efb91ec0c
--- /dev/null
+++ b/app-i18n/pology/Manifest
@@ -0,0 +1,2 @@
+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
diff --git a/app-i18n/pology/metadata.xml b/app-i18n/pology/metadata.xml
new file mode 100644
index 000000000000..a23f444b67d6
--- /dev/null
+++ b/app-i18n/pology/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>kde</herd>
+</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..e3d5d2c0f902
--- /dev/null
+++ b/app-i18n/pology/pology-0.11-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..f78ef42b91ee
--- /dev/null
+++ b/app-i18n/pology/pology-0.12.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..f78ef42b91ee
--- /dev/null
+++ b/app-i18n/pology/pology-9999.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..cd1fa6d00548
--- /dev/null
+++ b/app-i18n/pyzy/Manifest
@@ -0,0 +1,2 @@
+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
diff --git a/app-i18n/pyzy/files/pyzy-dont-download-dictionary-file.patch b/app-i18n/pyzy/files/pyzy-dont-download-dictionary-file.patch
new file mode 100644
index 000000000000..1b6dca68d695
--- /dev/null
+++ b/app-i18n/pyzy/files/pyzy-dont-download-dictionary-file.patch
@@ -0,0 +1,15 @@
+Don't download database file on make phrase.
+The database file will be downloaded by ebuild script instead.
+diff -urN pyzy-0.1.0.orig/data/db/open-phrase/Makefile.am pyzy-0.1.0/data/db/open-phrase/Makefile.am
+--- pyzy-0.1.0.orig/data/db/open-phrase/Makefile.am 2012-09-05 13:23:24.151736716 +0900
++++ pyzy-0.1.0/data/db/open-phrase/Makefile.am 2012-09-05 14:18:57.144553548 +0900
+@@ -30,9 +30,6 @@
+ DBTAR = pyzy-database-$(DBVER).tar.bz2
+
+ $(DBTAR):
+- $(AM_V_GEN) \
+- wget http://pyzy.googlecode.com/files/$(DBTAR) || \
+- ( $(RM) $@; exit 1)
+
+ stamp-db: $(DBTAR)
+ $(AM_V_GEN) \
diff --git a/app-i18n/pyzy/metadata.xml b/app-i18n/pyzy/metadata.xml
new file mode 100644
index 000000000000..977e6e010cd0
--- /dev/null
+++ b/app-i18n/pyzy/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <use>
+ <flag name="boost">Enable support for <pkg>dev-libs/boost</pkg></flag>
+ <flag name="doc">Enable support for documents</flag>
+ <flag name="opencc">Use <pkg>app-i18n/opencc</pkg> for input</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">pyzy/pyzy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/pyzy/pyzy-0.1.0-r1.ebuild b/app-i18n/pyzy/pyzy-0.1.0-r1.ebuild
new file mode 100644
index 000000000000..20d04d2ea06a
--- /dev/null
+++ b/app-i18n/pyzy/pyzy-0.1.0-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-any-r1 autotools
+
+PY_DATABASE=${PN}-database-1.0.0
+DESCRIPTION="The Chinese PinYin and Bopomofo conversion library"
+HOMEPAGE="https://github.com/pyzy/pyzy"
+SRC_URI="https://pyzy.googlecode.com/files/${P}.tar.gz
+ https://pyzy.googlecode.com/files/${PY_DATABASE}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boost doc opencc test"
+
+RDEPEND="dev-libs/glib:2
+ dev-db/sqlite:3
+ sys-apps/util-linux
+ boost? ( dev-libs/boost )
+ opencc? ( app-i18n/opencc )"
+
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ doc? ( app-doc/doxygen )"
+
+# Currently it fails to build test code
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-dont-download-dictionary-file.patch
+ mv ../db ./data/db/open-phrase/ || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-db-open-phrase \
+ --enable-db-android \
+ $(use_enable boost) \
+ $(use_enable opencc) \
+ $(use_enable test tests)
+}
+
+src_install() {
+ default
+ use doc && dohtml -r docs/html/*
+}
diff --git a/app-i18n/pyzy/pyzy-0.1.0.ebuild b/app-i18n/pyzy/pyzy-0.1.0.ebuild
new file mode 100644
index 000000000000..daf9fdca3a06
--- /dev/null
+++ b/app-i18n/pyzy/pyzy-0.1.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils python autotools
+
+PY_DATABASE=${PN}-database-1.0.0
+DESCRIPTION="The Chinese PinYin and Bopomofo conversion library"
+HOMEPAGE="https://github.com/pyzy/pyzy"
+SRC_URI="https://pyzy.googlecode.com/files/${P}.tar.gz
+ https://pyzy.googlecode.com/files/${PY_DATABASE}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="boost doc opencc test"
+
+RDEPEND="dev-libs/glib:2
+ dev-db/sqlite:3
+ sys-apps/util-linux
+ boost? ( dev-libs/boost )
+ opencc? ( app-i18n/opencc )"
+
+DEPEND="${RDEPEND}
+ doc? ( app-doc/doxygen )"
+
+# Currently it fails to build test code
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-dont-download-dictionary-file.patch
+ mv ../db ./data/db/open-phrase/ || die
+ python_convert_shebangs 2 "${S}"/data/db/android/create_db.py
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-db-open-phrase \
+ --enable-db-android \
+ $(use_enable boost) \
+ $(use_enable opencc) \
+ $(use_enable test tests)
+}
+
+src_install() {
+ default
+ use doc && dohtml -r docs/html/*
+}
diff --git a/app-i18n/qimhangul/Manifest b/app-i18n/qimhangul/Manifest
new file mode 100644
index 000000000000..b01662c38f04
--- /dev/null
+++ b/app-i18n/qimhangul/Manifest
@@ -0,0 +1 @@
+DIST qimhangul-0.2.0.tar.gz 336566 SHA256 50149a80f97456d7b316e1a168fd19dece01da5e1055855d7779941cf76c4006 SHA512 0871dddf48211841be36facde39cd215c247a5b89c1167baadd33b839eff084b7c39185804e1e62a7acc001178b56751d4f0301e327e1e0709b4340b7a003d0e WHIRLPOOL 97496aed656a0d0a7cd6558374c5971af8057ff9bfb0508a5676a6ba390468e47777b0dfd1def35c367d56bcb0a82dc598ef8be5280c2c46d939d1a47f7814da
diff --git a/app-i18n/qimhangul/metadata.xml b/app-i18n/qimhangul/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/qimhangul/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/qimhangul/qimhangul-0.2.0.ebuild b/app-i18n/qimhangul/qimhangul-0.2.0.ebuild
new file mode 100644
index 000000000000..b5b0eee8ac2c
--- /dev/null
+++ b/app-i18n/qimhangul/qimhangul-0.2.0.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..e899c0831f6a
--- /dev/null
+++ b/app-i18n/qkc/Manifest
@@ -0,0 +1 @@
+DIST qkcc100.zip 36308 SHA256 46eb09712dbc3cf9063a8f5eac1cbdbba73040a73b9a7ed048ad4a6f8a9ff69e SHA512 a03f12625c1205d1220c70e2c3bd8f4ef281a3f0f6317ad7a0221624ba6461a7f9fbbb1da68048fc2bb3b071895dfb13aaa630e780fd49eddb0b6c528ce2e4a0 WHIRLPOOL 18158ba7677143bc76ccf63ab883ad8e5051c4c2d29333dc8fc2370ffbb640b5bafa682ca086de6fcbbe5ff2016e431b9f519f382aa2148462bc9b761aa910de
diff --git a/app-i18n/qkc/metadata.xml b/app-i18n/qkc/metadata.xml
new file mode 100644
index 000000000000..cb36a2fd8c76
--- /dev/null
+++ b/app-i18n/qkc/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/qkc/qkc-1.00.ebuild b/app-i18n/qkc/qkc-1.00.ebuild
new file mode 100644
index 000000000000..93e0d9b76644
--- /dev/null
+++ b/app-i18n/qkc/qkc-1.00.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit 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..cf4ecf1ae25e
--- /dev/null
+++ b/app-i18n/rime-data/Manifest
@@ -0,0 +1,3 @@
+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
diff --git a/app-i18n/rime-data/metadata.xml b/app-i18n/rime-data/metadata.xml
new file mode 100644
index 000000000000..0a8c950f3291
--- /dev/null
+++ b/app-i18n/rime-data/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>chen.sst@gmail.com</email>
+ <name>Gong Chen</name>
+ </maintainer>
+ <bugs-to>http://code.google.com/p/rimeime/issues/list</bugs-to>
+ <remote-id type="google-code">rimeime</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/rime-data/rime-data-0.22.ebuild b/app-i18n/rime-data/rime-data-0.22.ebuild
new file mode 100644
index 000000000000..11cc5a58028f
--- /dev/null
+++ b/app-i18n/rime-data/rime-data-0.22.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit vcs-snapshot
+MY_P=brise-${PV}
+DESCRIPTION="Data resources for Rime Input Method Engine"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+SRC_URI="http://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..a3f2aeee8557
--- /dev/null
+++ b/app-i18n/rime-data/rime-data-0.32.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit vcs-snapshot
+MY_P=brise-${PV}
+DESCRIPTION="Data resources for Rime Input Method Engine"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+SRC_URI="http://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..9260d6bb2683
--- /dev/null
+++ b/app-i18n/rime-data/rime-data-0.35.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit vcs-snapshot
+MY_P=brise-${PV}
+DESCRIPTION="Data resources for Rime Input Method Engine"
+HOMEPAGE="http://code.google.com/p/rimeime/"
+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..a6a31b41df31
--- /dev/null
+++ b/app-i18n/scim-anthy/Manifest
@@ -0,0 +1,3 @@
+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
+DIST scim-anthy-1.3.1.tar.gz 775479 SHA256 a1fe2f5bef0107ea2c04c69c28b1660156edd667ba8c15bf72ab703220977e80 SHA512 c72cbb6a008bc28fb31fa1ab0c1707bd738a0ab724bf5a284a5b7f71432361729486457fa46addf7cb213faa3c4a6c371b0ea3be6bc6930a2541c1df148e995a WHIRLPOOL 5d1fcabab5483d8d16aac2660e01bd81d4e76943915c647425dc962b92b360e42e61e327fc0ff54c29bfcdeb2dd5d58a002e6c11b817d6df1f572e8f9bdf2645
diff --git a/app-i18n/scim-anthy/metadata.xml b/app-i18n/scim-anthy/metadata.xml
new file mode 100644
index 000000000000..bd133e7d6277
--- /dev/null
+++ b/app-i18n/scim-anthy/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <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..f3b1af363524
--- /dev/null
+++ b/app-i18n/scim-anthy/scim-anthy-1.2.7-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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? ( http://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-anthy/scim-anthy-1.3.1.ebuild b/app-i18n/scim-anthy/scim-anthy-1.3.1.ebuild
new file mode 100644
index 000000000000..d33053d64058
--- /dev/null
+++ b/app-i18n/scim-anthy/scim-anthy-1.3.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit libtool
+
+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/29660/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
+IUSE="gtk nls"
+
+DEPEND=">=app-i18n/scim-1.2[-gtk3]
+ || ( >=app-i18n/anthy-7500 >=app-i18n/anthy-ss-7500 )
+ nls? ( virtual/libintl )
+ gtk? ( >=x11-libs/gtk+-2.8:2 )"
+RDEPEND="${DEPEND}
+ gtk? ( app-dicts/kasumi )"
+DEPEND="${DEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig"
+
+src_prepare() {
+ elibtoolize
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ --disable-static \
+ --disable-dependency-tracking || die
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog NEWS README
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM, you should use the following in your user startup scripts"
+ elog "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
+}
diff --git a/app-i18n/scim-bridge/Manifest b/app-i18n/scim-bridge/Manifest
new file mode 100644
index 000000000000..234eb1e2eb8a
--- /dev/null
+++ b/app-i18n/scim-bridge/Manifest
@@ -0,0 +1 @@
+DIST scim-bridge-0.4.16.tar.gz 508870 SHA256 50d9da4a2842ab31cd3b27b1baacb14c458614bdb35855c6ecd09ab855ac702c SHA512 8d40a931738f6130ab2fdc4e8dec70143874c53d5720a0403603b57c9f80d7c0a4802609e0446684fa5cba1758e78e5f333d01787527934ed7a19c9727fd66a6 WHIRLPOOL 5edfd01b5143fe3a900947ea7b0e848b318cf25b14295c319c1593d0235cefd68dc128a46fde01631223eef14a16a9d82ecc289475527f52dbb80376a0c36116
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..ee6543c7dd6a
--- /dev/null
+++ b/app-i18n/scim-bridge/files/scim-bridge-0.4.16-configure.ac.patch
@@ -0,0 +1,164 @@
+--- configure.ac.orig 2009-11-27 21:07:46.000000000 +0800
++++ 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..24424e8cb6de
--- /dev/null
+++ b/app-i18n/scim-bridge/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge">scim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-bridge/scim-bridge-0.4.16-r2.ebuild b/app-i18n/scim-bridge/scim-bridge-0.4.16-r2.ebuild
new file mode 100644
index 000000000000..0bd7fc3e3a89
--- /dev/null
+++ b/app-i18n/scim-bridge/scim-bridge-0.4.16-r2.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit autotools eutils gnome2-utils multilib
+
+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 )"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-0.4.15.2-qt4.patch"
+ epatch "${FILESDIR}/${PN}-0.4.15.2-gcc43.patch"
+ epatch "${FILESDIR}/${P}+gcc-4.4.patch"
+ epatch "${FILESDIR}/${P}+gcc-4.7.patch"
+ # bug #280887
+ epatch "${FILESDIR}/${P}-configure.ac.patch"
+
+ # bug #241954
+ intltoolize --force
+ eautoreconf
+}
+
+src_configure() {
+ local myconf="$(use_enable doc documents)"
+ # '--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 ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README || die
+}
+
+pkg_postinst() {
+ elog
+ elog "If you would like to use ${PN} as default instead of scim, set"
+ elog " $ export GTK_IM_MODULE=scim-bridge"
+ elog " $ export QT_IM_MODULE=scim-bridge"
+ elog
+ use gtk && gnome2_query_immodules_gtk2
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/scim-canna/Manifest b/app-i18n/scim-canna/Manifest
new file mode 100644
index 000000000000..781beca14db7
--- /dev/null
+++ b/app-i18n/scim-canna/Manifest
@@ -0,0 +1 @@
+DIST scim-canna-1.0.1.tar.gz 516186 SHA256 f26f99d04c06465cbdf3540db762eb919b22ac1b338e9b30a35712287c4851c9 SHA512 711b67211c9d1f4cb8ca09b88d455718607aa2d99e47a753fa8d71d2e1f0df8c649b64d08149785eeaa98d1399b9ca92e3df7e1be8f150ce99f28f82491b8bc1 WHIRLPOOL 27094098763df0427637acb7751dad1e36f658e7b97d25c1346d341501eb2f22bbb016951924870b9d0bf330c7db7945ff13b88a4c3691c7b7fd2b06cf7319d8
diff --git a/app-i18n/scim-canna/metadata.xml b/app-i18n/scim-canna/metadata.xml
new file mode 100644
index 000000000000..8c34088ee307
--- /dev/null
+++ b/app-i18n/scim-canna/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge-jp">scim-imengine</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-canna/scim-canna-1.0.1.ebuild b/app-i18n/scim-canna/scim-canna-1.0.1.ebuild
new file mode 100644
index 000000000000..0d8af91e191e
--- /dev/null
+++ b/app-i18n/scim-canna/scim-canna-1.0.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Japanese input method Canna IMEngine for SCIM"
+HOMEPAGE="http://scim-imengine.sourceforge.jp/index.cgi?cmd=view;name=SCIMCanna"
+SRC_URI="mirror://sourceforge.jp/scim-imengine/29155/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND=">=app-i18n/scim-1.0
+ >=app-i18n/canna-3.7"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+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 GTK_IM_MODULE=scim"
+ elog "export QT_IM_MODULE=scim"
+ elog "export XMODIFIERS=@im=SCIM"
+ elog
+}
diff --git a/app-i18n/scim-hangul/Manifest b/app-i18n/scim-hangul/Manifest
new file mode 100644
index 000000000000..3909950f78b4
--- /dev/null
+++ b/app-i18n/scim-hangul/Manifest
@@ -0,0 +1,2 @@
+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
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..24424e8cb6de
--- /dev/null
+++ b/app-i18n/scim-hangul/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge">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..132353f6d189
--- /dev/null
+++ b/app-i18n/scim-hangul/scim-hangul-0.3.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..1e03bc091181
--- /dev/null
+++ b/app-i18n/scim-hangul/scim-hangul-0.4.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..ea5a8bf7fed7
--- /dev/null
+++ b/app-i18n/scim-input-pad/Manifest
@@ -0,0 +1,3 @@
+DIST scim-input-pad-0.1.1.tar.gz 562010 SHA256 f59cea4b42e7e95956415fdb53ae1874244b9b892b7939237654748e48a1669c SHA512 da9b26fb01392b1727f1b192c4f849ca89f92a7b214a4ff5c44a8cd57c3b9d01a04a5ff590144c16cd8b14c9cbff493d78fd76b23b866974770cab20e862a5e0 WHIRLPOOL 09f7851b077da99ca0065450814d7f903fe20b819a66ef9cf82a2d0e40c32ce3fdf0f3e4a93590a5939ea169de09efebdad3e5adf825546bebf3ba3d72919eec
+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
diff --git a/app-i18n/scim-input-pad/metadata.xml b/app-i18n/scim-input-pad/metadata.xml
new file mode 100644
index 000000000000..ac9a0e51e32a
--- /dev/null
+++ b/app-i18n/scim-input-pad/metadata.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription lang="EN">
+ The 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.1.ebuild b/app-i18n/scim-input-pad/scim-input-pad-0.1.1.ebuild
new file mode 100644
index 000000000000..301cd2eb5d3d
--- /dev/null
+++ b/app-i18n/scim-input-pad/scim-input-pad-0.1.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="1"
+
+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="x86"
+IUSE="nls"
+
+RDEPEND=">=app-i18n/scim-1.2.0
+ >=x11-libs/gtk+-2.6.0:2"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_compile() {
+ econf $(use_enable nls) || die "Error: econf failed!"
+ emake || die "Error: emake failed!"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Error: install failed!"
+ dodoc ChangeLog README TODO
+}
+
+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.1.ebuild b/app-i18n/scim-input-pad/scim-input-pad-0.1.3.1.ebuild
new file mode 100644
index 000000000000..346fa72c48df
--- /dev/null
+++ b/app-i18n/scim-input-pad/scim-input-pad-0.1.3.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..f4a68a1ed303
--- /dev/null
+++ b/app-i18n/scim-input-pad/scim-input-pad-0.1.3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..de4f2fd1352a
--- /dev/null
+++ b/app-i18n/scim-m17n/Manifest
@@ -0,0 +1,2 @@
+DIST scim-m17n-0.2.2.tar.gz 343103 SHA256 cc88ece9460c25960c092c8cc088162a56c52a9d211c929ecadc15c8aca986ce SHA512 ed29cd191fcf8b56ede3e02034a5cfde0506985648364fed89798aa98d83a2110d1caa32c3b3517008f931a0b3f6dd4f1e9603695ff64230d9e2c1c0d84c4db4 WHIRLPOOL 3231d84b04137d6850c6c7e3ec01c5a6b960ee09d221d0b853e6da7e582bf07238263801b7c9c3d4d2fff6015c3c5b5eb9268d1ca105b079e5cc208821605f14
+DIST scim-m17n-0.2.3.tar.gz 355801 SHA256 852548310b8fecfd97fcfa4a4aca9d6952e299adc785170cb3a827a8abec512d SHA512 c54be4c8c331d5621dcfa6c0c6f302231071dbbaf3ef7aee4117fe2c2616d58e184d3bae720dce27d5cb6567064add6979630090c72f9350391ca9c3e9c404f3 WHIRLPOOL 5d66046ce3ead52a9c7ca6357de33f435d4df56b2686563fe6368a45421916030442a3d8fb1e7eb1cf229e4897f8c0b60e468b6b5a4ea884dbfb3e1b5eca6107
diff --git a/app-i18n/scim-m17n/files/scim-m17n-0.2.2-gcc43.patch b/app-i18n/scim-m17n/files/scim-m17n-0.2.2-gcc43.patch
new file mode 100644
index 000000000000..0ff01f0395e6
--- /dev/null
+++ b/app-i18n/scim-m17n/files/scim-m17n-0.2.2-gcc43.patch
@@ -0,0 +1,10 @@
+--- src/scim_m17n_imengine.cpp.orig 2008-06-27 13:57:31.000000000 +0200
++++ src/scim_m17n_imengine.cpp 2008-06-27 13:59:02.000000000 +0200
+@@ -33,6 +33,7 @@
+ #include <config.h>
+ #endif
+
++#include <cstring>
+ #include <scim.h>
+ #include "scim_m17n_imengine.h"
+
diff --git a/app-i18n/scim-m17n/metadata.xml b/app-i18n/scim-m17n/metadata.xml
new file mode 100644
index 000000000000..24424e8cb6de
--- /dev/null
+++ b/app-i18n/scim-m17n/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge">scim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-m17n/scim-m17n-0.2.2.ebuild b/app-i18n/scim-m17n/scim-m17n-0.2.2.ebuild
new file mode 100644
index 000000000000..d165d5f73705
--- /dev/null
+++ b/app-i18n/scim-m17n/scim-m17n-0.2.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="scim-m17n is 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=""
+
+DEPEND="|| ( >=app-i18n/scim-1.4 >=app-i18n/scim-cvs-1.4 )
+ >=dev-libs/m17n-lib-1.2.0"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+}
+
+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-m17n/scim-m17n-0.2.3.ebuild b/app-i18n/scim-m17n/scim-m17n-0.2.3.ebuild
new file mode 100644
index 000000000000..ecbf16ba91ee
--- /dev/null
+++ b/app-i18n/scim-m17n/scim-m17n-0.2.3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="scim-m17n is 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..fe57882f61b1
--- /dev/null
+++ b/app-i18n/scim-pinyin/Manifest
@@ -0,0 +1,2 @@
+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
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..24424e8cb6de
--- /dev/null
+++ b/app-i18n/scim-pinyin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge">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..24e8142ba611
--- /dev/null
+++ b/app-i18n/scim-pinyin/scim-pinyin-0.5.91-r3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..9603e3926d71
--- /dev/null
+++ b/app-i18n/scim-pinyin/scim-pinyin-0.5.92.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..d6e9b3c54529
--- /dev/null
+++ b/app-i18n/scim-sayura/Manifest
@@ -0,0 +1 @@
+DIST scim-sayura-0.3.3.tar.gz 380147 SHA256 a6557fdfea8d2f475d4ef32478ace5b5ad0ba3b89eea7b1d8802ee1a1f80f788 SHA512 bf97b8d82e0e193a94698dfe7d3c9b1256e928a2082dc0ca6be328ed56409a05d38ba04254617b3800116514c1c8fdbfca869f2aa3f2f005505a4e873d2b90bb WHIRLPOOL 0e2e25f56ecbbcb3aafea8bd272186987951e28a3cb18ca90d21a8d6d7d87e6137d18ae426709e7caca7df1d5444dfd921c9e0ed5add5fe3df2a7091ffd0c6ec
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..f2b3ceabbb8d
--- /dev/null
+++ b/app-i18n/scim-sayura/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+<longdescription lang="en">
+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..6b387a4ed34a
--- /dev/null
+++ b/app-i18n/scim-sayura/scim-sayura-0.3.3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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-skk/Manifest b/app-i18n/scim-skk/Manifest
new file mode 100644
index 000000000000..e7748bad6605
--- /dev/null
+++ b/app-i18n/scim-skk/Manifest
@@ -0,0 +1 @@
+DIST scim-skk-0.5.2.tar.gz 534157 SHA256 17e755db22cd135a47381eae6f924f68f2c8d2991cec1a4b635ad294653d7b2d SHA512 7fdcfeb3442fff58d483e6fe028ea7e1dc203a670f2cdf6d9dbcda70df06d39839132f8358df4527a9c0b27f5e1b42d71985f0ce69a78b91ee6819e2571409e7 WHIRLPOOL cfd894d4989323d44acbec51130c297672b4beb8d013cd7f617a94b7e2f10e7241ba7f4728f36d23f90ba918b57b0193017a61f502020771d89a83f7d1e33ec1
diff --git a/app-i18n/scim-skk/files/scim-skk-0.5.2-gcc43.patch b/app-i18n/scim-skk/files/scim-skk-0.5.2-gcc43.patch
new file mode 100644
index 000000000000..8223eb3502ce
--- /dev/null
+++ b/app-i18n/scim-skk/files/scim-skk-0.5.2-gcc43.patch
@@ -0,0 +1,11 @@
+--- a/src/scim_skk_imengine_setup.cpp
++++ b/src/scim_skk_imengine_setup.cpp
+@@ -39,6 +39,8 @@
+ #include "scim_skk_intl.h"
+ #include "scim_skk_setup_dictionaries.h"
+
++#include <cstring>
++
+ using namespace scim;
+
+ namespace scim_skk {
diff --git a/app-i18n/scim-skk/metadata.xml b/app-i18n/scim-skk/metadata.xml
new file mode 100644
index 000000000000..8c34088ee307
--- /dev/null
+++ b/app-i18n/scim-skk/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge-jp">scim-imengine</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-skk/scim-skk-0.5.2-r1.ebuild b/app-i18n/scim-skk/scim-skk-0.5.2-r1.ebuild
new file mode 100644
index 000000000000..0799cd660ad9
--- /dev/null
+++ b/app-i18n/scim-skk/scim-skk-0.5.2-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="Japanese input method SKK IMEngine for SCIM"
+HOMEPAGE="http://scim-imengine.sourceforge.jp/index.cgi?cmd=view;name=SCIMSKK"
+SRC_URI="mirror://sourceforge.jp/scim-imengine/18121/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+DEPEND="|| ( >=app-i18n/scim-1.2 >=app-i18n/scim-cvs-1.2 )"
+RDEPEND="${DEPEND}
+ || ( app-i18n/skk-jisyo virtual/skkserv )
+ nls? ( virtual/libintl )"
+DEPEND="${DEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+}
+
+src_compile() {
+ econf \
+ $(use_enable nls) \
+ --disable-dependency-tracking \
+ --disable-static || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README* TODO
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM, you should use the following in your user startup scripts"
+ elog "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
+}
diff --git a/app-i18n/scim-sunpinyin/Manifest b/app-i18n/scim-sunpinyin/Manifest
new file mode 100644
index 000000000000..3bf2a663a064
--- /dev/null
+++ b/app-i18n/scim-sunpinyin/Manifest
@@ -0,0 +1 @@
+DIST scim-sunpinyin-2.0.3.tar.gz 33072 SHA256 139feca7ccb79240b5c7eac3d41fb7015baad21b08986af1bec33b7aeb3a4e83 SHA512 f983d40972c5792a4a27fdf699cffc7f6882c84060cfe3e260cdc3f587743b0f71339ccdb7067b393f88a69b74d999fba70c4d9bc8016b9b217b3c11667a2986 WHIRLPOOL 678e4d7d71658f0dab038c8e4c911144042ebe4bb20f3746bbae3dc307926bff95365355d67422febcaabe08cc175a81a2ac611fb92ed2ddc0c31984d02a03e4
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..d83314f5cabe
--- /dev/null
+++ b/app-i18n/scim-sunpinyin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">sunpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/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..5a513f65e9fc
--- /dev/null
+++ b/app-i18n/scim-sunpinyin/scim-sunpinyin-2.0.3-r2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils scons-utils
+
+DESCRIPTION="The SunPinyin IMEngine for Smart Common Input Method (SCIM)"
+HOMEPAGE="http://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..2648a335528a
--- /dev/null
+++ b/app-i18n/scim-tables/Manifest
@@ -0,0 +1 @@
+DIST scim-tables-0.5.13.tar.gz 6716275 SHA256 4ee7577f2efb4ec01c2c1bf1433a459293653caf281d712284200a4fb828b599 SHA512 400aa99acef83b82e6422398f41bf65e51b7e703adc3e87cdef03793d84983e600f9e6201fda6f9c54e97f35c44da72a657ce15caef09ef490c44ad19c3a9e33 WHIRLPOOL 1ad84ab62824057946366ef4019574fc3f5401c7785f9104a49371937b92375945bb1fd659d37004cf333aba9a7ea2958ccc9c399d7a1266381151dbb337f5b3
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..24424e8cb6de
--- /dev/null
+++ b/app-i18n/scim-tables/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge">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..d9bf1eb9741c
--- /dev/null
+++ b/app-i18n/scim-tables/scim-tables-0.5.13.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..9258abca7696
--- /dev/null
+++ b/app-i18n/scim-tomoe/Manifest
@@ -0,0 +1 @@
+DIST scim-tomoe-0.6.0.tar.gz 385126 SHA256 4f053944285ed50e7916ebdb38298025e60eb430b64715fdad9375483456dc06 SHA512 d70a8838f8c82c76a8e3592ad712997189873cbc4ec7ebeba5d43d6583e24acf318299433c9342ee004c4ae4741cca7e0b88e4642cf46c43f967a47ec5ac9d4f WHIRLPOOL 4d34f4618efa12802fce12da42276d5b2a92dcc0ad591c337f6f8a28b5441c2db5639b07ec9aae6262a0b0ed74f460b9530748b229bcf529f30a1e2a038cb685
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..0444bb2e6dd9
--- /dev/null
+++ b/app-i18n/scim-tomoe/files/scim-tomoe-0.6.0-gucharmap2.patch
@@ -0,0 +1,21 @@
+---
+ Update libtomoe-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..084e6cd5c686
--- /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>
+ <herd>cjk</herd>
+ <use>
+ <flag name="gucharmap">Enable gucharmap dictionary plugin</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">tomoe</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-tomoe/scim-tomoe-0.6.0-r1.ebuild b/app-i18n/scim-tomoe/scim-tomoe-0.6.0-r1.ebuild
new file mode 100644
index 000000000000..013a4fbbdc54
--- /dev/null
+++ b/app-i18n/scim-tomoe/scim-tomoe-0.6.0-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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/libtomoe-gtk-0.6.0"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}
diff --git a/app-i18n/scim-tomoe/scim-tomoe-0.6.0-r2.ebuild b/app-i18n/scim-tomoe/scim-tomoe-0.6.0-r2.ebuild
new file mode 100644
index 000000000000..2831d2c6e201
--- /dev/null
+++ b/app-i18n/scim-tomoe/scim-tomoe-0.6.0-r2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+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="+gucharmap"
+
+RDEPEND=">=app-i18n/scim-1.2.0
+ >=app-i18n/libtomoe-gtk-0.6.0[gucharmap=]
+ gucharmap? ( >=gnome-extra/gucharmap-1.4 )
+ >=x11-libs/gtk+-2.4:2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=dev-util/intltool-0.35.0"
+
+src_prepare() {
+ # Fix build with gcc-4.3, bug #
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+
+ # Fix build with gucharmap-2.24, bug #243160
+ epatch "${FILESDIR}/${P}-gucharmap2.patch"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}
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..5f032b80eb06
--- /dev/null
+++ b/app-i18n/scim-tomoe/scim-tomoe-0.6.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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/libtomoe-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..9065a0ca3a76
--- /dev/null
+++ b/app-i18n/scim-uim/Manifest
@@ -0,0 +1 @@
+DIST scim-uim-0.2.0.tar.gz 344389 SHA256 457eb89f40dda70f813c0b401aaec8b397e7daa340d53136aba3b97407533e13 SHA512 18df8de8ebc02289e21bf54c921b5425f67ef3c379b3c3e4392431dc3b1d9d7f12a25bcbcaaddd264913bacf61ba2be9339845700f541c22f73981e99824c6e9 WHIRLPOOL e56af280a1e367a4ec9d86de5dacf56245ed35eee8e59affd96ee7d23d5ade6819a84797318a1b7350526b0a93bb7b0941398f6393d0370b934cc41d3688c53c
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..24424e8cb6de
--- /dev/null
+++ b/app-i18n/scim-uim/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge">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..c93356a632de
--- /dev/null
+++ b/app-i18n/scim-uim/scim-uim-0.2.0-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+inherit eutils
+
+DESCRIPTION="scim-uim is 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..b62cc25bc2db
--- /dev/null
+++ b/app-i18n/scim-wijesekera/Manifest
@@ -0,0 +1 @@
+DIST scim-wijesekera-0.3.3.tar.gz 193023 SHA256 2f759889801645eadc15aacb0e7e0219823859e3166e48bb929b39fb6c43bc5b SHA512 98bfbb7a3cf499c7980c06504083744f46ce352b27e8e80362190359e8bfa88472a5510568f3753503c7d409d1730e7d1ae1162e3d43a5475e466c334b0a91fc WHIRLPOOL 70a14570b736588c9f9349a2ac5600c2bd5810d2cbb9795e60d41e5557b5831323581a7de6842e838eaeed81f3c028d07777756da34a0e7e1cf69d2aa9941ef3
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..51689f0cbcb5
--- /dev/null
+++ b/app-i18n/scim-wijesekera/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
+
diff --git a/app-i18n/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..5548aa8092b3
--- /dev/null
+++ b/app-i18n/scim-wijesekera/scim-wijesekera-0.3.3-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..72cbad4fe4b9
--- /dev/null
+++ b/app-i18n/scim-wnn/Manifest
@@ -0,0 +1,2 @@
+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
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..2d5852c16c60
--- /dev/null
+++ b/app-i18n/scim-wnn/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/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..12e0f2559c98
--- /dev/null
+++ b/app-i18n/scim-wnn/scim-wnn-0.2.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..e989b40502a0
--- /dev/null
+++ b/app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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-wnn/scim-wnn-1.0.0.ebuild b/app-i18n/scim-wnn/scim-wnn-1.0.0.ebuild
new file mode 100644
index 000000000000..5c59861cb1b0
--- /dev/null
+++ b/app-i18n/scim-wnn/scim-wnn-1.0.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+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.0[-gtk3] >=app-i18n/scim-cvs-1.0 )
+ dev-libs/wnn7sdk
+ freewnn? ( app-i18n/freewnn )"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+src_prepare() {
+ sed -i -e 's:$LDFLAGS conftest.$ac_ext $LIBS:conftest.$ac_ext $LIBS $LDFLAGS:g' \
+ configure || die "ldflags sed failed"
+ 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/Manifest b/app-i18n/scim/Manifest
new file mode 100644
index 000000000000..0b805e4d4396
--- /dev/null
+++ b/app-i18n/scim/Manifest
@@ -0,0 +1 @@
+DIST scim-1.4.14.tar.gz 1519287 SHA256 e91e4cfed92f3e19d229f702eda03038b3f9a0ce6c4e625b0be51134c19b7678 SHA512 00fe7a1b40b69aae123c0a1e67eb3744ad1e6b1e66726bb011a7426bd28012c52b346c62f08c7ecf0977ac3e88ee416337c9fa89b39142d5eea338d99641f5df WHIRLPOOL cb32326b30ff17ca4815267898de715e50893e77c28a48c55cf708f818fff4aea9e2114f982302c0fd6fd4e1fc45f2ca8490603db0de49ed4159914e1edd516d
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..ac9610b941e2
--- /dev/null
+++ b/app-i18n/scim/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <use>
+ <flag name="gtk3">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..ef5f757465dc
--- /dev/null
+++ b/app-i18n/scim/scim-1.4.14.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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/skk-jisyo/Manifest b/app-i18n/skk-jisyo/Manifest
new file mode 100644
index 000000000000..90b1c1c65799
--- /dev/null
+++ b/app-i18n/skk-jisyo/Manifest
@@ -0,0 +1 @@
+DIST skk-jisyo-201101.tar.bz2 7880875 SHA256 a57d9a39b705d13f8c90caf9ce8cf3f729852020a6e5b43bcc9e1d7383b252b4 SHA512 bbdaa6916bda9b545b4afc665fd9c7023797a2f1d2568c019b8f06515eca24f707cdcee8d85f3b0ea2793df4836a233eb131e78572229676cca909591f3e3648 WHIRLPOOL 11b4d880fb41f5fb3c704cc18c664ef0f043f6d232f34be6ba1c3737c7d9ccb0aec2361234ceea933e4ec4dbacc344de58af5d975c74412b847044df4aff89d9
diff --git a/app-i18n/skk-jisyo/files/unannotation.awk b/app-i18n/skk-jisyo/files/unannotation.awk
new file mode 100644
index 000000000000..88d9eb254344
--- /dev/null
+++ b/app-i18n/skk-jisyo/files/unannotation.awk
@@ -0,0 +1,75 @@
+# unannotation.awk: filter to remove annotations in dictionaries.
+#
+# Copyright (C) 2001, 2002 SKK Development Team <skk@ring.gr.jp>
+#
+# Maintainer: SKK Development Team <skk@ring.gr.jp>
+# Version: $Id: unannotation.awk,v 1.3 2006/01/04 10:35:06 skk-cvs Exp $
+# Last Modified: $Date: 2006/01/04 10:35:06 $
+#
+# This file is part of Daredevil SKK.
+#
+# Daredevil SKK is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or
+# (at your option) any later version.
+#
+# Daredevil SKK is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Daredevil SKK, see the file COPYING. If not, write to
+# the Free Software Foundation Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301, USA.
+
+BEGIN{
+ print ";; -*- text -*-";
+ ctime = myctime(0);
+ this = ARGV[1];
+ if (match(this, /\.annotated$/) != 0){
+ this = substr(this, 1, RSTART - 1);
+ } else
+ this = this ".unannotated";
+ printf(";; %s was generated automatically by unannotation.awk at %s\n",
+ this, ctime);
+ #getline modeindicator
+ #if (match(modeindicator, /;; -*- text -*-/) != 0){
+ # print modeindicator;
+ #}
+}
+#$0 !~ /"^;; -\*- text -\*-\n"/{
+{
+ if (match($0, /^;/) == 0) {
+ gsub(";[^/]*/", "/");
+ if (DEQUOTE && $0 ~ /\\073/) {
+ $0 = dequote($0);
+ }
+ }
+ print;
+}
+function myctime(ts, format) {
+ format = "%a %b %e %H:%M:%S %Y";
+ if (ts == 0)
+ ts = systime(); # use current time as default
+ return strftime(format, ts);
+}
+# convert '\073' to ';' and strip '(concat "...")'.
+# example: 'smile /(concat "^_^\073\073")/:-)/' to 'smile /^_^;;/:-)/'
+# @param s string to convert
+# @return converted string
+function dequote(s) {
+ ret = "";
+ n = split(s, a, "/");
+ for (i = 1; i < n; i++) {
+ if (a[i] ~ /^\(concat ".*\\073.*"\)$/) { # \073 = ';'
+ gsub(/\\073/, ";", a[i]);
+ if (a[i] !~ /\\/) { # no other quote
+ a[i] = gensub(/^\(concat "(.*)"\)$/, "\\1", "g", a[i]);
+ }
+ }
+ ret = ret a[i] "/";
+ }
+ return ret;
+}
+# end of unannotation.awk.
diff --git a/app-i18n/skk-jisyo/metadata.xml b/app-i18n/skk-jisyo/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/skk-jisyo/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/skk-jisyo/skk-jisyo-201101.ebuild b/app-i18n/skk-jisyo/skk-jisyo-201101.ebuild
new file mode 100644
index 000000000000..1e140be400af
--- /dev/null
+++ b/app-i18n/skk-jisyo/skk-jisyo-201101.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+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.bz2"
+
+LICENSE="GPL-2 public-domain freedist"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
+IUSE="cdb"
+
+COMMON_DEPEND="cdb? ( dev-db/cdb )"
+DEPEND="${COMMON_DEPEND}
+ sys-apps/gawk"
+RDEPEND="${COMMON_DEPEND}
+ !app-i18n/skk-jisyo-extra
+ !app-i18n/skk-jisyo-cdb"
+
+src_prepare() {
+ rm SKK-JISYO.wrong.annotated SKK-JISYO.china_taiwan.header
+ rm SKK-JISYO.noregist SKK-JISYO.not_wrong SKK-JISYO.hukugougo
+ rm SKK-JISYO.notes SKK-JISYO.requested SKK-JISYO.pubdic+
+}
+
+src_compile() {
+ # bug 184457
+ unset LANG LC_ALL LC_CTYPE
+
+ for f in SKK-JISYO.* zipcode/SKK-JISYO.* ; do
+ mv ${f} ${f}.annotated
+ gawk -f "${FILESDIR}"/unannotation.awk ${f}.annotated > $(basename ${f}) || die
+ if use cdb ; then
+ gawk '
+ /^[^;]/ {
+ s = substr($0, index($0, " ") + 1)
+ print "+" length($1) "," length(s) ":" $1 "->" s
+ }
+ END {
+ print ""
+ }
+ ' $(basename ${f}) | cdbmake $(basename ${f}).cdb "${T}"/$(basename ${f}) || die
+ fi
+ rm ${f}.annotated
+ done
+}
+
+src_install() {
+ # install dictionaries
+ insinto /usr/share/skk
+ doins SKK-JISYO.* || die
+
+ dodoc ChangeLog* READMEs/committers.txt edict_doc.txt || die
+}
diff --git a/app-i18n/skk-jisyo/skk-jisyo-9999.ebuild b/app-i18n/skk-jisyo/skk-jisyo-9999.ebuild
new file mode 100644
index 000000000000..43b6f4d8a2ab
--- /dev/null
+++ b/app-i18n/skk-jisyo/skk-jisyo-9999.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+ECVS_SERVER="openlab.jp:/circus/cvsroot"
+ECVS_USER="guest"
+ECVS_PASS="guest"
+ECVS_MODULE="skk/dic"
+inherit cvs
+
+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.bz2"
+SRC_URI=""
+
+LICENSE="GPL-2 public-domain freedist"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="cdb"
+
+COMMON_DEPEND="cdb? ( dev-db/cdb )"
+DEPEND="${COMMON_DEPEND}
+ sys-apps/gawk"
+RDEPEND="${COMMON_DEPEND}
+ !app-i18n/skk-jisyo-extra
+ !app-i18n/skk-jisyo-cdb"
+
+S="${WORKDIR}/${ECVS_MODULE}"
+
+src_unpack() {
+ cvs_src_unpack
+
+ cd "${S}"
+ rm SKK-JISYO.wrong.annotated SKK-JISYO.china_taiwan.header
+ rm SKK-JISYO.noregist SKK-JISYO.not_wrong SKK-JISYO.hukugougo
+ rm SKK-JISYO.notes SKK-JISYO.requested SKK-JISYO.pubdic+
+}
+
+src_compile() {
+ # bug 184457
+ unset LANG LC_ALL LC_CTYPE
+
+ for f in SKK-JISYO.* zipcode/SKK-JISYO.* ; do
+ mv ${f} ${f}.annotated
+ gawk -f "${FILESDIR}"/unannotation.awk ${f}.annotated > $(basename ${f}) || die
+ if use cdb ; then
+ gawk '
+ /^[^;]/ {
+ s = substr($0, index($0, " ") + 1)
+ print "+" length($1) "," length(s) ":" $1 "->" s
+ }
+ END {
+ print ""
+ }
+ ' $(basename ${f}) | cdbmake $(basename ${f}).cdb "${T}"/$(basename ${f}) || die
+ fi
+ rm ${f}.annotated
+ done
+}
+
+src_install() {
+ # install dictionaries
+ insinto /usr/share/skk
+ doins SKK-JISYO.* || die
+
+ dodoc ChangeLog* READMEs/committers.txt edict_doc.txt
+}
diff --git a/app-i18n/skkfep/Manifest b/app-i18n/skkfep/Manifest
new file mode 100644
index 000000000000..7a44a556c05a
--- /dev/null
+++ b/app-i18n/skkfep/Manifest
@@ -0,0 +1 @@
+DIST skkfep-0.87.tar.gz 45711 SHA256 f5eb6a23a7bf9b8a5493e8104c346ac053c2545bab1a3b82054cd1a09cef0e61 SHA512 3dc842559640b56b967679042c31bfa889e66cd6b7d0347ec17ddc606b85f2a4bb49dc995b3b38c30e71f500031714e2083bfc028ad4ff76ac4f07476a3f2469 WHIRLPOOL 32e985317e55b546e1d8822f0c2a5cf2322623282f89c73e9a7fc098c710f7b88121cf20223904e115bf7d61ec9e5fedab0053f36ff5e3789e84ae7ff1adf090
diff --git a/app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch b/app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch
new file mode 100644
index 000000000000..6532d000770e
--- /dev/null
+++ b/app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch
@@ -0,0 +1,21 @@
+http://bugs.gentoo.org/334653
+
+--- protoMakefile
++++ protoMakefile
+@@ -13,13 +13,13 @@
+ ./jc -`./jc -c romkan-org.c`P romkan-org.c > romkan.c
+
+ jc: jc.o
+- $(CC) $(CFLAGS) -o jc jc.o
++ $(CC) $(LDFLAGS) $(CFLAGS) -o jc jc.o
+
+ $(SKKFEP): $(OBJS) $(SKKOBJS)
+- $(CC) $(CFLAGS) -o $(SKKFEP) $(OBJS) $(SKKOBJS) $(LIBS)
++ $(CC) $(LDFLAGS) $(CFLAGS) -o $(SKKFEP) $(OBJS) $(SKKOBJS) $(LIBS)
+
+ simpledic: $(SDICOBJS) $(SKKOBJS)
+- $(CC) $(CFLAGS) -o simpledic $(SDICOBJS) $(SKKOBJS) $(LIBS)
++ $(CC) $(LDFLAGS) $(CFLAGS) -o simpledic $(SDICOBJS) $(SKKOBJS) $(LIBS)
+
+ clean:
+ -rm -rf $(OBJS) $(SKKOBJS) $(SDICOBJS) romkan.c
diff --git a/app-i18n/skkfep/files/skkfep-0.87-gentoo.patch b/app-i18n/skkfep/files/skkfep-0.87-gentoo.patch
new file mode 100644
index 000000000000..bd1b507580bc
--- /dev/null
+++ b/app-i18n/skkfep/files/skkfep-0.87-gentoo.patch
@@ -0,0 +1,131 @@
+diff -Naur skkfep-0.87.orig/config.h skkfep-0.87/config.h
+--- skkfep-0.87.orig/config.h 2003-09-03 08:50:18.000000000 +0900
++++ skkfep-0.87/config.h 2008-11-01 09:53:22.000000000 +0900
+@@ -24,8 +24,8 @@
+ /* SKK server */
+
+ #define USER_DIC_NAME ".skk-jisyo"
+-/* #define SYSTEM_DIC_NAME "/usr/local/emacs/etc/SKK-JISYO.L" */
++#define SYSTEM_DIC_NAME "/usr/share/skk/SKK-JISYO.L"
+
+ #define NATIVECODE euc /* EUC Kanji code */
+
+-#define SKK_SERVER_HOST "ei5nazha" /* SKK server host */
++#define SKK_SERVER_HOST "localhost" /* SKK server host */
+diff -Naur skkfep-0.87.orig/connserv.c skkfep-0.87/connserv.c
+--- skkfep-0.87.orig/connserv.c 2003-09-03 08:49:30.000000000 +0900
++++ skkfep-0.87/connserv.c 2008-11-01 09:59:19.000000000 +0900
+@@ -5,6 +5,7 @@
+ */
+ #include "config.h"
+ #include <stdio.h>
++#include <string.h>
+ #include <sys/types.h>
+ #include "skklib.h"
+
+diff -Naur skkfep-0.87.orig/connsh.c skkfep-0.87/connsh.c
+--- skkfep-0.87.orig/connsh.c 2003-09-03 08:49:30.000000000 +0900
++++ skkfep-0.87/connsh.c 2008-11-01 10:03:01.000000000 +0900
+@@ -1,5 +1,8 @@
+ #include "config.h"
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
++#include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/file.h>
+ #include <fcntl.h>
+diff -Naur skkfep-0.87.orig/fep.c skkfep-0.87/fep.c
+--- skkfep-0.87.orig/fep.c 2003-09-03 08:49:31.000000000 +0900
++++ skkfep-0.87/fep.c 2008-11-01 09:55:15.000000000 +0900
+@@ -1,6 +1,7 @@
+ #include "config.h"
+ #include "fep.h"
+ #include <stdlib.h>
++#include <string.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include "kanjicode.h"
+diff -Naur skkfep-0.87.orig/jc.c skkfep-0.87/jc.c
+--- skkfep-0.87.orig/jc.c 2003-09-03 08:49:31.000000000 +0900
++++ skkfep-0.87/jc.c 2008-11-01 09:54:57.000000000 +0900
+@@ -33,6 +33,8 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+ #include <ctype.h>
+
+ #include "config.h"
+diff -Naur skkfep-0.87.orig/kkconv.c skkfep-0.87/kkconv.c
+--- skkfep-0.87.orig/kkconv.c 2003-09-03 08:49:31.000000000 +0900
++++ skkfep-0.87/kkconv.c 2008-11-01 09:58:26.000000000 +0900
+@@ -1,6 +1,7 @@
+ #include "config.h"
+ #include "fep.h"
+ #include "functions.h"
++#include <string.h>
+ #include <ctype.h>
+
+ #ifdef USE_SERVER
+diff -Naur skkfep-0.87.orig/protoMakefile skkfep-0.87/protoMakefile
+--- skkfep-0.87.orig/protoMakefile 2003-09-03 08:49:31.000000000 +0900
++++ skkfep-0.87/protoMakefile 2008-11-01 09:51:59.000000000 +0900
+@@ -1,5 +1,5 @@
+ CFLAGS=$(SYSINCLUDE) $(SYSDEFINE) $(DEFINE) $(OPTIMIZE)
+-LIBS =$(SYSLIBS) $(EXTRALIBS) -ltermcap
++LIBS =$(SYSLIBS) $(EXTRALIBS) -lncurses
+
+ OBJS=fep.o connsh.o readwrite.o terms.o stty.o keybind.o romkan.o etc.o\
+ kkconv.o keymap.o version.o
+diff -Naur skkfep-0.87.orig/readwrite.c skkfep-0.87/readwrite.c
+--- skkfep-0.87.orig/readwrite.c 2003-09-03 08:49:31.000000000 +0900
++++ skkfep-0.87/readwrite.c 2008-11-01 09:56:19.000000000 +0900
+@@ -1,5 +1,6 @@
+ #include "config.h"
+ #include "fep.h"
++#include <string.h>
+ #include <ctype.h>
+ #include "kanjicode.h"
+ #include "ctrlcode.h"
+diff -Naur skkfep-0.87.orig/romkan-org.c skkfep-0.87/romkan-org.c
+--- skkfep-0.87.orig/romkan-org.c 2003-09-03 08:49:32.000000000 +0900
++++ skkfep-0.87/romkan-org.c 2008-11-01 09:58:10.000000000 +0900
+@@ -1,5 +1,6 @@
+ #include "config.h"
+ #include "fep.h"
++#include <string.h>
+ #include <ctype.h>
+ #include "functions.h"
+
+diff -Naur skkfep-0.87.orig/skklib.c skkfep-0.87/skklib.c
+--- skkfep-0.87.orig/skklib.c 2003-09-03 08:49:32.000000000 +0900
++++ skkfep-0.87/skklib.c 2008-11-01 09:58:48.000000000 +0900
+@@ -6,6 +6,7 @@
+
+ #include "config.h"
+ #include <stdio.h>
++#include <string.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include "skklib.h"
+diff -Naur skkfep-0.87.orig/stty.c skkfep-0.87/stty.c
+--- skkfep-0.87.orig/stty.c 2003-09-03 08:49:32.000000000 +0900
++++ skkfep-0.87/stty.c 2008-11-01 09:57:30.000000000 +0900
+@@ -1,5 +1,6 @@
+ #include "config.h"
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <signal.h>
+ #include <fcntl.h>
+ #include "fep.h"
+diff -Naur skkfep-0.87.orig/terms.c skkfep-0.87/terms.c
+--- skkfep-0.87.orig/terms.c 2003-09-03 08:49:32.000000000 +0900
++++ skkfep-0.87/terms.c 2008-11-01 09:56:59.000000000 +0900
+@@ -1,4 +1,5 @@
+ #include "config.h"
++#include <string.h>
+ #include "fep.h"
+
+ /*#define SHOW_ESCSEQ /* show escape sequences for debugging */
diff --git a/app-i18n/skkfep/metadata.xml b/app-i18n/skkfep/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/skkfep/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/skkfep/skkfep-0.87-r1.ebuild b/app-i18n/skkfep/skkfep-0.87-r1.ebuild
new file mode 100644
index 000000000000..86af3f3d2a88
--- /dev/null
+++ b/app-i18n/skkfep/skkfep-0.87-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A SKK-like Japanese input method for console"
+HOMEPAGE="http://homepage2.nifty.com/aito/soft.html"
+SRC_URI="http://homepage2.nifty.com/aito/skkfep/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE=""
+
+RDEPEND=">=sys-libs/ncurses-5.7-r7"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4
+ virtual/awk"
+RDEPEND="${RDEPEND}
+ app-i18n/skk-jisyo"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gentoo.patch \
+ "${FILESDIR}"/${P}-LDFLAGS.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" OPTIMIZE="${CFLAGS}"
+}
+
+src_install() {
+ dobin skkfep escmode
+ doman skkfep.1
+ dodoc README HISTORY TODO
+}
diff --git a/app-i18n/skkserv/Manifest b/app-i18n/skkserv/Manifest
new file mode 100644
index 000000000000..a436a6366cb2
--- /dev/null
+++ b/app-i18n/skkserv/Manifest
@@ -0,0 +1 @@
+DIST skk9.6mu.tar.gz 744381 SHA256 3b118ce33ad5f3bf45bea8e74875a0a35764c49c7ddc83ba93b9193fe37e5a28 SHA512 971982ce51142d92b62497da209fb69a8a1c028307f62ec6e81ea45894b597d6bb17b8966032a508531520868a0e3d89e515540d3f8030fe049a7750157b7a33 WHIRLPOOL 5deb23905e4fff4a8bade29278513e9eccff9ae4f2b48704371c0074e44d6b1c81b8ecce371ad84b6e5198e655d0293087cc64c346601f3f0c4d966517684968
diff --git a/app-i18n/skkserv/files/skkserv-9.6-inet_ntoa-gentoo.patch b/app-i18n/skkserv/files/skkserv-9.6-inet_ntoa-gentoo.patch
new file mode 100644
index 000000000000..971a52f11e42
--- /dev/null
+++ b/app-i18n/skkserv/files/skkserv-9.6-inet_ntoa-gentoo.patch
@@ -0,0 +1,11 @@
+diff -Naur skkserv.orig/skkserv.h skkserv/skkserv.h
+--- skkserv.orig/skkserv.h 2004-07-02 01:23:43.165659480 +0900
++++ skkserv/skkserv.h 2004-07-02 01:24:19.123640760 +0900
+@@ -44,6 +44,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-9.6-segfault-gentoo.patch b/app-i18n/skkserv/files/skkserv-9.6-segfault-gentoo.patch
new file mode 100644
index 000000000000..e40bfa942c1f
--- /dev/null
+++ b/app-i18n/skkserv/files/skkserv-9.6-segfault-gentoo.patch
@@ -0,0 +1,15 @@
+--- skkserv.c.orig Tue Jan 21 04:16:36 1997
++++ skkserv.c Thu Mar 25 19:45:50 1999
+@@ -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.initd b/app-i18n/skkserv/files/skkserv.initd
new file mode 100644
index 000000000000..c2caa8e0b498
--- /dev/null
+++ b/app-i18n/skkserv/files/skkserv.initd
@@ -0,0 +1,16 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+start() {
+ ebegin "Starting skkserv"
+ start-stop-daemon --start --quiet --exec /usr/sbin/skkserv
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping skkserv"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/skkserv
+ eend $?
+}
diff --git a/app-i18n/skkserv/metadata.xml b/app-i18n/skkserv/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/skkserv/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/skkserv/skkserv-9.6-r3.ebuild b/app-i18n/skkserv/skkserv-9.6-r3.ebuild
new file mode 100644
index 000000000000..065c74c4ea0f
--- /dev/null
+++ b/app-i18n/skkserv/skkserv-9.6-r3.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+inherit eutils
+
+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-200210"
+
+S="${WORKDIR}/skk-${PV}mu"
+
+src_prepare() {
+ cd "${S}"/skkserv
+ epatch "${FILESDIR}"/${P}-segfault-gentoo.patch
+ epatch "${FILESDIR}"/${P}-inet_ntoa-gentoo.patch
+}
+
+src_configure() {
+ econf --libexecdir="${EPREFIX}"/usr/sbin
+}
+
+src_compile() {
+ cd skkserv
+ emake || die
+}
+
+src_install() {
+ cd skkserv
+ dosbin skkserv || die
+
+ newinitd "${FILESDIR}"/skkserv.initd skkserv
+}
diff --git a/app-i18n/sunpinyin-data/Manifest b/app-i18n/sunpinyin-data/Manifest
new file mode 100644
index 000000000000..557d57333cc8
--- /dev/null
+++ b/app-i18n/sunpinyin-data/Manifest
@@ -0,0 +1,3 @@
+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
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..adc59fd218e2
--- /dev/null
+++ b/app-i18n/sunpinyin-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>
+ <herd>cjk</herd>
+ <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..bd057a01578e
--- /dev/null
+++ b/app-i18n/sunpinyin-data/sunpinyin-data-20121025.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DICT_VERSION="20120830"
+LM_VERSION="${PV}"
+
+DESCRIPTION="Data sets for Sunpinyin"
+HOMEPAGE="https://open-gram.googlecode.com/"
+SRC_URI="http://open-gram.googlecode.com/files/dict.utf8-${DICT_VERSION}.tar.bz2
+ http://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..b871d180e66b
--- /dev/null
+++ b/app-i18n/sunpinyin-data/sunpinyin-data-20130220.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DICT_VERSION="${PV}"
+LM_VERSION="20121025"
+
+DESCRIPTION="Data sets for Sunpinyin"
+HOMEPAGE="https://open-gram.googlecode.com/"
+SRC_URI="http://open-gram.googlecode.com/files/dict.utf8-${DICT_VERSION}.tar.bz2
+ http://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..8ea93a2261f5
--- /dev/null
+++ b/app-i18n/sunpinyin/Manifest
@@ -0,0 +1,4 @@
+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
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/metadata.xml b/app-i18n/sunpinyin/metadata.xml
new file mode 100644
index 000000000000..adc59fd218e2
--- /dev/null
+++ b/app-i18n/sunpinyin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">sunpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/sunpinyin/sunpinyin-2.0.3-r1.ebuild b/app-i18n/sunpinyin/sunpinyin-2.0.3-r1.ebuild
new file mode 100644
index 000000000000..6ccaa4809a4f
--- /dev/null
+++ b/app-i18n/sunpinyin/sunpinyin-2.0.3-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils multilib scons-utils toolchain-funcs
+
+DESCRIPTION="SunPinyin is a SLM (Statistical Language Model) based IME"
+HOMEPAGE="http://sunpinyin.googlecode.com"
+SRC_URI="${HOMEPAGE}/files/${P}.tar.gz
+ http://open-gram.googlecode.com/files/dict.utf8.tar.bz2
+ http://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.ebuild b/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild
new file mode 100644
index 000000000000..b69de43b0569
--- /dev/null
+++ b/app-i18n/sunpinyin/sunpinyin-2.0.4_pre20130108.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils multilib python-any-r1 scons-utils toolchain-funcs
+
+DESCRIPTION="A Statistical Language Model based Chinese input method library"
+HOMEPAGE="https://sunpinyin.googlecode.com/"
+SRC_URI="http://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_user
+}
+
+src_configure() {
+ tc-export CXX
+ myesconsargs=(
+ --prefix="${EPREFIX}"/usr
+ --libdir="${EPREFIX}"/usr/$(get_libdir)
+ )
+}
+
+src_compile() {
+ escons
+}
+
+src_install() {
+ escons --install-sandbox="${ED}" 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..e45b76fb5de1
--- /dev/null
+++ b/app-i18n/tagainijisho/Manifest
@@ -0,0 +1,2 @@
+DIST tagainijisho-1.0.2.tar.gz 24583552 SHA256 144a516a69d440014269dd2a11e10760fd9543726affd9af152b28e1e1d57c3f SHA512 78621af0f998c39acb1e1d1deb4f021e2fa8a1c7454955c0f5f18c49c456831cb3dc76ea9e53f70a23d3d43a93285da44537e72f690d94ba79b4814d512db02a WHIRLPOOL 0e9e97a79ea8d5f02045deac132e16a467b6d472c9c68ecc81207a0442ccc05e7abf67304737ea8d9450459265f9a208b3ac5e17c73e644820a2d53212481005
+DIST tagainijisho-1.0.3.tar.gz 24816175 SHA256 6fe3c579ec1cea6c41393ac9a82dd12d0e240032d2bb7837a90e470f480aaf4e SHA512 3afd75cc27e8701d93df54a2244b83090770cc80ac20ab8fb843d2ab925ab575f73d731a2ce736179fb7361af68e94694ec91f813d186c87e730368c41535c53 WHIRLPOOL aa4f26506f12f9502b4c9e3a31f0f970e5e6a9ee2892cae9f9edd53e683ff44cd6bb09cd18891ded199dd2835c97be1531c0043121ad161a6dc356bb960251cc
diff --git a/app-i18n/tagainijisho/metadata.xml b/app-i18n/tagainijisho/metadata.xml
new file mode 100644
index 000000000000..2116c353ffef
--- /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>
+ <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.2.ebuild b/app-i18n/tagainijisho/tagainijisho-1.0.2.ebuild
new file mode 100644
index 000000000000..a9684f78cab5
--- /dev/null
+++ b/app-i18n/tagainijisho/tagainijisho-1.0.2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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"
+RDEPEND="${DEPEND}"
+
+pkg_linguas=( ar cs de es fi_FI fr it nb nl pt ru sv th tr vi )
+IUSE+=" ${pkg_linguas[@]/#/linguas_}"
+
+src_configure() {
+ # GUI linguas
+ # en is not optional, and build fails if none other then en is set, so adding ja as non-optional too
+ # linguas 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 linguas
+ # en is not optional here either, but nothing special needs to be done
+ # here too, linguas 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/tagainijisho/tagainijisho-1.0.3.ebuild b/app-i18n/tagainijisho/tagainijisho-1.0.3.ebuild
new file mode 100644
index 000000000000..6d175d1fbdcb
--- /dev/null
+++ b/app-i18n/tagainijisho/tagainijisho-1.0.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils gnome2-utils
+
+DESCRIPTION="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"
+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_}"
+
+src_configure() {
+ # GUI linguas
+ # en is not optional, and build fails if none other then en is set, so adding ja as non-optional too
+ # linguas 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
+echo "i18n: ${lingua}"
+ if ! use linguas_${lingua}; then
+ rm i18n/tagainijisho_${lingua}.ts || die
+ fi
+ done
+
+ # Dictionary linguas
+ # en is not optional here either, but nothing special needs to be done
+ # here too, linguas 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
+echo "dict: ${lingua}"
+ 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..a75f1b7f411d
--- /dev/null
+++ b/app-i18n/tegaki-zinnia-japanese/Manifest
@@ -0,0 +1 @@
+DIST tegaki-zinnia-japanese-0.3.zip 18134281 SHA256 07861bbb5440d74e705864721f12a5ce1c7f21a869f9c95ff21433d8994aafda SHA512 fd11f94c8b5446ca22e1119ead20da9ebc01e8033beef664d94c0affc8cef6e315344c4d5e61288358bf7ff4f7c49135dcf5743c4070573f7d8e45e70abba113 WHIRLPOOL 51d283e6e81025f5e1fccc89cba2574fcd0003fea2e2c207996e779e73681d71b8461587201a1140bd21b7e9ea2a884b9838c1683f1110ab4f3d301a44a22bd1
diff --git a/app-i18n/tegaki-zinnia-japanese/metadata.xml b/app-i18n/tegaki-zinnia-japanese/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-i18n/tegaki-zinnia-japanese/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/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..57cd739028e0
--- /dev/null
+++ b/app-i18n/tegaki-zinnia-japanese/tegaki-zinnia-japanese-0.3.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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/Manifest b/app-i18n/tomoe/Manifest
new file mode 100644
index 000000000000..7c7f067d37b4
--- /dev/null
+++ b/app-i18n/tomoe/Manifest
@@ -0,0 +1 @@
+DIST tomoe-0.6.0.tar.gz 4918949 SHA256 ee600f97fa434c13f6c41a1db9e03eccd551151ed48ece9c56cd9e828228ea1e SHA512 eab618d7b28fc9613c175fab6f80fc7d6acc34af3a47f20c11b42a32acd87143ae10caca67fa1a5e2e75441d431799a5725a5d507604f8bd7447bbc1826f0bb8 WHIRLPOOL f3cfb9bf09ab7228913a001348a73ea32d8f4cb25c941c5dd4829c237d0043f92293e2f914257902c1a5faf93d61fa82dfbea269d6b6d60cad49638cc6ca0141
diff --git a/app-i18n/tomoe/files/tomoe-0.6.0-export-symbols.patch b/app-i18n/tomoe/files/tomoe-0.6.0-export-symbols.patch
new file mode 100644
index 000000000000..2b2d98b6ddd7
--- /dev/null
+++ b/app-i18n/tomoe/files/tomoe-0.6.0-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-0.6.0-glib232.patch b/app-i18n/tomoe/files/tomoe-0.6.0-glib232.patch
new file mode 100644
index 000000000000..cf073d4d2cfa
--- /dev/null
+++ b/app-i18n/tomoe/files/tomoe-0.6.0-glib232.patch
@@ -0,0 +1,39 @@
+diff --git a/lib/glib-compat-key-file.h b/lib/glib-compat-key-file.h
+index 6cae16b..1fb1490 100644
+--- 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
+
+diff --git a/lib/glib-utils.h b/lib/glib-utils.h
+index 275c96c..7afca67 100644
+--- 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"
+diff --git a/lib/tomoe.c b/lib/tomoe.c
+index 8578c27..4534017 100644
+--- 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-0.6.0-ldflags.patch b/app-i18n/tomoe/files/tomoe-0.6.0-ldflags.patch
new file mode 100644
index 000000000000..97ddc88f6ad3
--- /dev/null
+++ b/app-i18n/tomoe/files/tomoe-0.6.0-ldflags.patch
@@ -0,0 +1,24 @@
+diff -Naur tomoe-0.6.0.orig/module/dict/Makefile.am tomoe-0.6.0/module/dict/Makefile.am
+--- tomoe-0.6.0.orig/module/dict/Makefile.am 2007-06-18 10:35:40.000000000 +0900
++++ tomoe-0.6.0/module/dict/Makefile.am 2011-05-26 08:47:24.279701286 +0900
+@@ -34,7 +34,7 @@
+
+ LIBADD = $(TOMOE_LIBS) \
+ $(top_builddir)/lib/libtomoe.la
+-LDFLAGS = \
++LDFLAGS += \
+ -rpath $(dict_moduledir) -avoid-version -module \
+ -export-dynamic $(no_undefined) $(LIBTOOL_EXPORT_OPTIONS)
+
+diff -Naur tomoe-0.6.0.orig/module/recognizer/Makefile.am tomoe-0.6.0/module/recognizer/Makefile.am
+--- tomoe-0.6.0.orig/module/recognizer/Makefile.am 2007-04-10 16:24:20.000000000 +0900
++++ tomoe-0.6.0/module/recognizer/Makefile.am 2011-05-26 08:47:36.502740712 +0900
+@@ -23,7 +23,7 @@
+ AM_CPPFLAGS =
+ INCLUDES = $(TOMOE_CFLAGS)
+
+-LDFLAGS = \
++LDFLAGS += \
+ -rpath $(recognizer_moduledir) -avoid-version -module \
+ -export-dynamic $(no_undefined) $(LIBTOOL_EXPORT_OPTIONS)
+
diff --git a/app-i18n/tomoe/metadata.xml b/app-i18n/tomoe/metadata.xml
new file mode 100644
index 000000000000..1434dab816b8
--- /dev/null
+++ b/app-i18n/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>
+ <herd>cjk</herd>
+ <use>
+ <flag name="hyperestraier">Enable support for
+ <pkg>app-text/hyperestraier</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">tomoe</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/tomoe/tomoe-0.6.0-r1.ebuild b/app-i18n/tomoe/tomoe-0.6.0-r1.ebuild
new file mode 100644
index 000000000000..b2c5cbcf265b
--- /dev/null
+++ b/app-i18n/tomoe/tomoe-0.6.0-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="python? 2"
+inherit autotools eutils multilib python
+
+DESCRIPTION="Japanese handwriting recognition engine"
+HOMEPAGE="http://tomoe.sourceforge.jp/"
+SRC_URI="mirror://sourceforge/tomoe/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc hyperestraier mysql ruby python static-libs subversion"
+
+RDEPEND=">=dev-libs/glib-2.4
+ ruby? ( dev-ruby/ruby-glib2 )
+ hyperestraier? ( app-text/hyperestraier )
+ subversion? (
+ >=dev-libs/apr-1
+ dev-vcs/subversion
+ )
+ mysql? ( dev-db/mysql )
+ python? (
+ dev-python/pygobject:2
+ dev-python/pygtk:2
+ )"
+# test? ( app-dicts/uconv )
+
+DEPEND="${DEPEND}
+ dev-util/gtk-doc-am
+ dev-util/intltool
+ virtual/pkgconfig
+ doc? ( dev-util/gtk-doc )"
+
+RESTRICT="test"
+
+pkg_setup() {
+ if use python ; then
+ python_set_active_version 2
+ fi
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${P}-export-symbols.patch" \
+ "${FILESDIR}/${P}-ldflags.patch" \
+ "${FILESDIR}/${P}-glib232.patch"
+
+ if ! use hyperestraier ; then
+ sed -i -e "s/use_est=yes/use_est=no/" configure.ac || die
+ fi
+ if ! use mysql ; then
+ sed -i -e "s/use_mysql=yes/use_mysql=no/" configure.ac || die
+ fi
+ if ! use subversion ; then
+ sed -i -e "s/use_svn=yes/use_svn=no/" macros/svn.m4 || die
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ # --with-python b0rked
+ use python || myconf="${myconf} --without-python"
+
+ econf \
+ $(use_enable doc gtk-doc) \
+ $(use_with ruby) \
+ $(use_enable static-libs static) \
+ $(use_enable ruby dict-ruby) \
+ ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ find "${ED}/usr/$(get_libdir)/tomoe" \( -name '*.la' -o -name '*.a' \) -type f -delete || die
+ if ! use static-libs ; then
+ find "${ED}" -name '*.la' -type f -delete || die
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS TODO || die
+}
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..e2b5eabf082f
--- /dev/null
+++ b/app-i18n/tomoe/tomoe-0.6.0-r2.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit autotools eutils multilib python-single-r1
+
+DESCRIPTION="Japanese handwriting recognition engine"
+HOMEPAGE="http://tomoe.sourceforge.jp/"
+SRC_URI="mirror://sourceforge/tomoe/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc hyperestraier mysql ruby python static-libs subversion"
+
+RDEPEND=">=dev-libs/glib-2.4
+ ruby? ( dev-ruby/ruby-glib2 )
+ hyperestraier? ( app-text/hyperestraier )
+ subversion? (
+ >=dev-libs/apr-1
+ dev-vcs/subversion
+ )
+ mysql? ( dev-db/mysql )
+ python? (
+ ${PYTHON_DEPS}
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ )"
+# test? ( app-dicts/uconv )
+
+DEPEND="${DEPEND}
+ dev-util/gtk-doc-am
+ dev-util/intltool
+ virtual/pkgconfig
+ doc? ( dev-util/gtk-doc )"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+RESTRICT="test"
+
+pkg_setup() {
+ if use python ; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${P}-export-symbols.patch" \
+ "${FILESDIR}/${P}-ldflags.patch" \
+ "${FILESDIR}/${P}-glib232.patch"
+
+ if ! use hyperestraier ; then
+ sed -i -e "s/use_est=yes/use_est=no/" configure.ac || die
+ fi
+ if ! use mysql ; then
+ sed -i -e "s/use_mysql=yes/use_mysql=no/" configure.ac || die
+ fi
+ if ! use subversion ; then
+ sed -i -e "s/use_svn=yes/use_svn=no/" macros/svn.m4 || die
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ # --with-python b0rked hard
+ unset PYTHON
+ use python || myconf="${myconf} --without-python"
+
+ econf \
+ $(use_enable doc gtk-doc) \
+ $(use_with ruby) \
+ $(use_enable static-libs static) \
+ $(use_enable ruby dict-ruby) \
+ ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ find "${ED}/usr/$(get_libdir)/tomoe" \( -name '*.la' -o -name '*.a' \) -type f -delete || die
+ if ! use static-libs ; then
+ find "${ED}" -name '*.la' -type f -delete || die
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS TODO || die
+}
diff --git a/app-i18n/transifex-client/Manifest b/app-i18n/transifex-client/Manifest
new file mode 100644
index 000000000000..29f4c616d81f
--- /dev/null
+++ b/app-i18n/transifex-client/Manifest
@@ -0,0 +1,2 @@
+DIST transifex-client-0.10.tar.gz 71817 SHA256 fb2ecba162a8ea6c52d57022c14c4016a2b6f048c9f626c1bd27c30e8ee29f1a SHA512 c8134f3fc04953d468c2e6ceb0ef90e8335709bde778c5d7d532b3ea390e71abdf8856b8eaa5acf6507c4e6fd2f918e6b0989b3913ee603cc5987b1a9d6b3964 WHIRLPOOL 34248f0b1d685024b485aa5e324f2450d6e71b72deb4c176419fe6ce768ff3ea486cc48432df569d6141371709bf2e2f853316bf6790974ab03f0ffe6277594e
+DIST transifex-client-0.11.1.beta.tar.gz 210515 SHA256 5e91632d39d257295b9c15d9f8b149452d0553d984112865e9b81ad5b91e9f48 SHA512 209bd88af0b6297f3c2d5945f98f955240addd5587679838be456c1e9a0b8b55a482d7ead395839f69500b2b41ad48b19060e2b9e12f1996d0d14780721f0f0e WHIRLPOOL 035c9759c057a6f3d0b69433e0ad84e985a610bd7182701c82df9b4a9e4186ef96e6eb22b72262978943eb4aeeab229eab72482264c9abd5eb6f5e534e1c8957
diff --git a/app-i18n/transifex-client/files/transifex-client-0.8.0-tests.patch b/app-i18n/transifex-client/files/transifex-client-0.8.0-tests.patch
new file mode 100644
index 000000000000..b1784dc24012
--- /dev/null
+++ b/app-i18n/transifex-client/files/transifex-client-0.8.0-tests.patch
@@ -0,0 +1,26 @@
+From b37da095c8e8b70d8d4300b32e787b6da88e28c0 Mon Sep 17 00:00:00 2001
+From: Apostolos Bessas <mpessas@transifex.com>
+Date: Wed, 11 Jul 2012 11:44:07 +0300
+Subject: [PATCH] Do not install the tests.
+
+Exclude the tests from the installed packages.
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index b3fa910..05bb2b4 100755
+--- a/setup.py
++++ b/setup.py
+@@ -49,7 +49,7 @@
+ ],
+ test_suite="tests",
+ zip_safe=False,
+- packages=find_packages(),
++ packages=['txclib', ],
+ include_package_data=True,
+ package_data = package_data,
+ keywords = ('translation', 'localization', 'internationalization',),
+--
+1.7.10
+
diff --git a/app-i18n/transifex-client/metadata.xml b/app-i18n/transifex-client/metadata.xml
new file mode 100644
index 000000000000..16bf12b3ef86
--- /dev/null
+++ b/app-i18n/transifex-client/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>
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">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..3da7ebcc8926
--- /dev/null
+++ b/app-i18n/transifex-client/transifex-client-0.10.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="A command line interface for Transifex"
+HOMEPAGE="http://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.11.1_beta.ebuild b/app-i18n/transifex-client/transifex-client-0.11.1_beta.ebuild
new file mode 100644
index 000000000000..bd615b3d948c
--- /dev/null
+++ b/app-i18n/transifex-client/transifex-client-0.11.1_beta.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+MY_PV=${PV/_/.}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="A command line interface for Transifex"
+HOMEPAGE="http://pypi.python.org/pypi/transifex-client http://www.transifex.net/"
+SRC_URI="mirror://pypi/t/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
diff --git a/app-i18n/uim-tomoe-gtk/Manifest b/app-i18n/uim-tomoe-gtk/Manifest
new file mode 100644
index 000000000000..89b7f067aaa6
--- /dev/null
+++ b/app-i18n/uim-tomoe-gtk/Manifest
@@ -0,0 +1 @@
+DIST uim-tomoe-gtk-0.6.0.tar.gz 372357 SHA256 a419a061cbb91aa4d68a0d31528e5967039ef4914c4e99848b0086f5b5e6e589 SHA512 201c6a755feaef22b11f88a27b0d004d22ab13e806684ad839f7491ca17626eaf0f866a026c3fcf3b981c41c9c6a880d7f9f7a5156d3dad70d8edb78568b1d5d WHIRLPOOL c369be81623bf56dbd6e8cf14a367eff755a62f146330c2ee83c4744dda72064754e74b1c3c81b3ad7dff2b9e21a1ec15906b1a188bdd6e85caf3da2c26fc325
diff --git a/app-i18n/uim-tomoe-gtk/metadata.xml b/app-i18n/uim-tomoe-gtk/metadata.xml
new file mode 100644
index 000000000000..3c3e3b94bf2a
--- /dev/null
+++ b/app-i18n/uim-tomoe-gtk/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge">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..c3bc27ac6ba5
--- /dev/null
+++ b/app-i18n/uim-tomoe-gtk/uim-tomoe-gtk-0.6.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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/libtomoe-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..fa864158810b
--- /dev/null
+++ b/app-i18n/uim/Manifest
@@ -0,0 +1 @@
+DIST uim-1.8.6.tar.bz2 6500739 SHA256 7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f SHA512 26a95d3b51ef7a99108234b9af30ee7b74141cb3af13d092d4cdbf0749f630934cfd67f74b09dacc3adcdce4a390104489d68a4e2419ec07418645a9b4e5715b WHIRLPOOL 77362b5ac6bea217b4373184eb19d79c0b19a8c3f9c27945abccfd414d0409a33438a3cd1d1d2370b6b2f7154a6c35688ae4b2e57f50dc29524bf71938a38a28
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/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..dcb569955398
--- /dev/null
+++ b/app-i18n/uim/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+<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>
+</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..101af4b3e009
--- /dev/null
+++ b/app-i18n/uim/uim-1.8.6-r1.ebuild
@@ -0,0 +1,232 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit autotools eutils multilib elisp-common gnome2-utils
+
+DESCRIPTION="Simple, secure and flexible input method library"
+HOMEPAGE="http://code.google.com/p/uim/"
+SRC_URI="http://uim.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="BSD GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 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 linguas_zh_CN linguas_zh_TW linguas_ja linguas_ko"
+
+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-base/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 )
+ nls? ( virtual/libintl )
+ qt4? ( dev-qt/qtgui:4[qt3support] )
+ skk? ( app-i18n/skk-jisyo )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( dev-libs/openssl )
+ !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
+ linguas_zh_CN? (
+ || ( media-fonts/font-isas-misc media-fonts/intlfonts )
+ )
+ linguas_zh_TW? (
+ media-fonts/intlfonts
+ )
+ linguas_ja? (
+ || ( media-fonts/font-jis-misc media-fonts/intlfonts )
+ )
+ linguas_ko? (
+ || ( media-fonts/font-daewoo-misc 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/unicode-data/Manifest b/app-i18n/unicode-data/Manifest
new file mode 100644
index 000000000000..594cc85b7c18
--- /dev/null
+++ b/app-i18n/unicode-data/Manifest
@@ -0,0 +1,2 @@
+DIST unicode-data_6.0.0.orig.tar.gz 8339514 SHA256 7622f16577a4b49a991195eac4421a7195650f3b40f971c6a6b98890b10c1d6d SHA512 a0847b67e5014678b4be87ca5e6e84d915d1d27d9286feed30f8d314c122c455f059b1764db1badbad989965e40c5203978e6e7c57e47b6d86889d1a29aa68cd WHIRLPOOL 0d733e7bd931f33e5075aebf55f054ab2774eb27ee7a052c56e34289414e0ed016d4926e9027bee49907d30982acf5309a2e81e8ba246f9f14870846df65d53a
+DIST unicode-data_6.1.0.orig.tar.gz 8549251 SHA256 e8c6f6ce45c6ab563173813b5817f66865c0c4c2aa577612ba68080e54a092e6 SHA512 8df65c837c686eff1c236d4325fb276928952c570f05224299f52528a4b80354da6e4e3db40acebd0247f328a511363fda62e3e357cdd3119947a495f437cff5 WHIRLPOOL a29824047f1c037948978ec9837f652ab010d08238e0c11564864d8125cfc3abde2526b1af7697b9f26deff9fee44050410a722d63adc3f4d8966cc6ed5ac0f9
diff --git a/app-i18n/unicode-data/metadata.xml b/app-i18n/unicode-data/metadata.xml
new file mode 100644
index 000000000000..64cc0b687d48
--- /dev/null
+++ b/app-i18n/unicode-data/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>fonts</herd>
+</pkgmetadata>
diff --git a/app-i18n/unicode-data/unicode-data-6.0.0.ebuild b/app-i18n/unicode-data/unicode-data-6.0.0.ebuild
new file mode 100644
index 000000000000..e4042703e242
--- /dev/null
+++ b/app-i18n/unicode-data/unicode-data-6.0.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Unicode data from unicode.org"
+HOMEPAGE="http://unicode.org/"
+SRC_URI="mirror://debian/pool/main/u/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="unicode"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ unpack ./*
+}
+
+src_compile() {
+ rm *.zip
+}
+
+src_install() {
+ cd "${WORKDIR}"
+ dodir /usr/share/
+ mv "${S}" "${D}/usr/share/${PN}" || die "mv failed"
+}
diff --git a/app-i18n/unicode-data/unicode-data-6.1.0.ebuild b/app-i18n/unicode-data/unicode-data-6.1.0.ebuild
new file mode 100644
index 000000000000..c2eff97d144b
--- /dev/null
+++ b/app-i18n/unicode-data/unicode-data-6.1.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Unicode data from unicode.org"
+HOMEPAGE="http://unicode.org/"
+SRC_URI="mirror://debian/pool/main/u/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="unicode"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ unpack ./*
+ rm *.zip
+}
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins -r "${S}"/*
+}
diff --git a/app-i18n/x-unikey/Manifest b/app-i18n/x-unikey/Manifest
new file mode 100644
index 000000000000..be3c40cefd41
--- /dev/null
+++ b/app-i18n/x-unikey/Manifest
@@ -0,0 +1 @@
+DIST x-unikey-1.0.4.tar.bz2 561391 SHA256 aa7dd444853538bcba0f24c4c19692c34d4553a1df213a260c2628a7116b2dd9 SHA512 47abe4087957c4926550a0121d5cdc7b760f39691fae91c8e0562fc0f4577c22a04192667d362c9838b87fd97d2111afef1260fc88d8234bc5656bab248b5b06 WHIRLPOOL 144788e4a43e55c5a30fbb11eba6953d147823d3229550cbec370d583fd1a74e97f68c3e14b1988074788561f4e0adb836829f06ab88b1f725051dd3840256d9
diff --git a/app-i18n/x-unikey/files/01x-unikey b/app-i18n/x-unikey/files/01x-unikey
new file mode 100644
index 000000000000..595b6a183b55
--- /dev/null
+++ b/app-i18n/x-unikey/files/01x-unikey
@@ -0,0 +1,9 @@
+# x-unikey works only with *.UTF-8 locales
+#LANG=en_US.UTF-8
+
+# Uncomment this if you use XIM.
+#GTK_IM_MODULE="xim"
+#XMODIFIERS="@im=unikey"
+
+# If you use unikey-gtk only, then comment this
+#GTK_IM_MODULE="unikey"
diff --git a/app-i18n/x-unikey/files/x-unikey-1.0.4-gcc43.patch b/app-i18n/x-unikey/files/x-unikey-1.0.4-gcc43.patch
new file mode 100644
index 000000000000..c7e46ff686b8
--- /dev/null
+++ b/app-i18n/x-unikey/files/x-unikey-1.0.4-gcc43.patch
@@ -0,0 +1,12 @@
+diff -Naur x-unikey-1.0.4.orig/src/ukengine/usrkeymap.cpp x-unikey-1.0.4/src/ukengine/usrkeymap.cpp
+--- x-unikey-1.0.4.orig/src/ukengine/usrkeymap.cpp 2008-12-18 00:39:38.000000000 +0900
++++ x-unikey-1.0.4/src/ukengine/usrkeymap.cpp 2008-12-18 00:38:56.000000000 +0900
+@@ -23,6 +23,8 @@
+
+ #include "stdafx.h"
+ #include <iostream>
++#include <cstring>
++
+ using namespace std;
+
+ #include <ctype.h>
diff --git a/app-i18n/x-unikey/files/x-unikey-1.0.4-gcc44.patch b/app-i18n/x-unikey/files/x-unikey-1.0.4-gcc44.patch
new file mode 100644
index 000000000000..5e59ca131b70
--- /dev/null
+++ b/app-i18n/x-unikey/files/x-unikey-1.0.4-gcc44.patch
@@ -0,0 +1,31 @@
+diff -ur x-unikey-1.0.4.orig/src/ukengine/mactab.cpp x-unikey-1.0.4/src/ukengine/mactab.cpp
+--- x-unikey-1.0.4.orig/src/ukengine/mactab.cpp 2006-04-09 14:46:02.000000000 +0300
++++ x-unikey-1.0.4/src/ukengine/mactab.cpp 2009-08-10 14:50:50.000000000 +0300
+@@ -287,7 +287,7 @@
+ char key[MAX_MACRO_KEY_LEN];
+
+ // Parse the input item
+- char * pos = strchr(item, ':');
++ const char * pos = strchr(item, ':');
+ if (pos == NULL)
+ return -1;
+ int keyLen = (int)(pos - item);
+diff -ur x-unikey-1.0.4.orig/src/ukengine/usrkeymap.cpp x-unikey-1.0.4/src/ukengine/usrkeymap.cpp
+--- x-unikey-1.0.4.orig/src/ukengine/usrkeymap.cpp 2006-04-09 02:31:40.000000000 +0300
++++ x-unikey-1.0.4/src/ukengine/usrkeymap.cpp 2009-08-10 14:48:44.000000000 +0300
+@@ -21,6 +21,8 @@
+ * Boston, MA 02111-1307, USA.
+ */
+
++#include <stdio.h>
++
+ #include "stdafx.h"
+ #include <iostream>
+ using namespace std;
+@@ -262,4 +264,4 @@
+ return i;
+ }
+ return -1;
+-}
+\ No newline at end of file
++}
diff --git a/app-i18n/x-unikey/files/x-unikey-1.0.4-gentoo.patch b/app-i18n/x-unikey/files/x-unikey-1.0.4-gentoo.patch
new file mode 100644
index 000000000000..e3bef43b98b2
--- /dev/null
+++ b/app-i18n/x-unikey/files/x-unikey-1.0.4-gentoo.patch
@@ -0,0 +1,20 @@
+--- x-unikey-1.0.4.orig/src/unikey-gtk/Makefile.am 2005-10-16 12:39:15.000000000 +0900
++++ x-unikey-1.0.4/src/unikey-gtk/Makefile.am 2008-12-18 00:48:37.000000000 +0900
+@@ -34,7 +34,7 @@
+
+ install-data-hook:
+ gtk-query-immodules-2.0 \
+- > @gtk_sysconfdir@/gtk.immodules
++ > $(DESTDIR)@gtk_sysconfdir@/gtk.immodules
+
+ ## $(moduledir)/im-vn.la \
+ ## @GTK_PREFIX@/lib/gtk-2.0/@GTK_VERSION@/immodules/*.la \
+@@ -42,7 +42,7 @@
+
+ uninstall-hook:
+ gtk-query-immodules-2.0 > \
+- @gtk_sysconfdir@/gtk.immodules
++ $(DESTDIR)@gtk_sysconfdir@/gtk.immodules
+ ## @GTK_PREFIX@/lib/gtk-2.0/@GTK_VERSION@/immodules/*.la \
+
+
diff --git a/app-i18n/x-unikey/metadata.xml b/app-i18n/x-unikey/metadata.xml
new file mode 100644
index 000000000000..c225088eb91e
--- /dev/null
+++ b/app-i18n/x-unikey/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge">unikey</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/x-unikey/x-unikey-1.0.4-r2.ebuild b/app-i18n/x-unikey/x-unikey-1.0.4-r2.ebuild
new file mode 100644
index 000000000000..d37faa49d463
--- /dev/null
+++ b/app-i18n/x-unikey/x-unikey-1.0.4-r2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils multilib gnome2-utils
+
+DESCRIPTION="Vietnamese X Input Method"
+HOMEPAGE="http://www.unikey.org/"
+SRC_URI="mirror://sourceforge/unikey/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE="nls gtk"
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libSM
+ x11-libs/libICE
+ gtk? ( >=x11-libs/gtk+-2.2:2 )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-libs/glib
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+pkg_setup() {
+ # An arch specific config directory is used on multilib systems
+ has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
+ GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0/}
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-gcc44.patch \
+ "${FILESDIR}"/${P}-gentoo.patch
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ # --with-gtk-sysconfdir to prevent sandbox violation only
+ use gtk && myconf="--with-unikey-gtk --with-gtk-sysconfdir=${GTK2_CONFDIR}"
+ econf ${myconf}
+}
+
+src_install() {
+ if use gtk;then
+ dodir "${GTK2_CONFDIR}"
+# emake DESTDIR="${D}" install -C src/unikey-gtk || die
+ fi
+# dobin src/xim/ukxim src/gui/unikey
+ emake DESTDIR="${D}" install
+ doenvd "${FILESDIR}/01x-unikey"
+
+ dodoc AUTHORS CREDITS ChangeLog NEWS README TODO
+ cd doc
+ dodoc README1ST keymap-syntax manual options ukmacro \
+ unikey-manual-0.9.pdf unikey.png unikeyrc
+}
+
+pkg_postinst() {
+ elog
+ elog "Go to /etc/env.d/01x-unikey and uncomment appropriate lines"
+ elog "to enable x-unikey"
+ elog
+ if use gtk; then
+ gnome2_query_immodules_gtk2
+ elog "If you want to use x-unikey as the default gtk+ input method,"
+ elog "change GTK_IM_MODULE in /etc/env.d/01x-unikey to \"unikey\""
+ elog
+ fi
+}
+
+pkg_postrm() {
+ use gtk && gnome2_query_immodules_gtk2
+}
diff --git a/app-i18n/xcin/Manifest b/app-i18n/xcin/Manifest
new file mode 100644
index 000000000000..0a321496a878
--- /dev/null
+++ b/app-i18n/xcin/Manifest
@@ -0,0 +1,2 @@
+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
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, ѶǦ^ FalseC
+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..2d5852c16c60
--- /dev/null
+++ b/app-i18n/xcin/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/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..7317081da861
--- /dev/null
+++ b/app-i18n/xcin/xcin-2.5.3_pre3-r2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 )
+ dev-libs/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..4e25b42065eb
--- /dev/null
+++ b/app-i18n/xcin/xcin-2.5.3_pre3-r3.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 )
+ dev-libs/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/xsim/Manifest b/app-i18n/xsim/Manifest
new file mode 100644
index 000000000000..65de86a14572
--- /dev/null
+++ b/app-i18n/xsim/Manifest
@@ -0,0 +1 @@
+DIST xsim-0.3.9.4.tar.gz 1025640 SHA256 048f23527543b21c4d52dc98967ec7253c34eb704056767364c6dc5007971b2c SHA512 07955cf68cc060724db5fdf04f2f55a93dfe29064b63170bb3c090443aa617de5d76ddd5cda971b16833fd2e090aa78a3bbc0c85e9eb2b4716dfa90c994fc8d3 WHIRLPOOL 9de70a58279849d8e370d96f97459d866ca213feeeed16f00ddcd48d003f994999da26e635c718ffd9da8291c8c97bfe043df851ef809ee6e888492f7bcda8e7
diff --git a/app-i18n/xsim/files/xsim-0.3.9.4-64bit.patch b/app-i18n/xsim/files/xsim-0.3.9.4-64bit.patch
new file mode 100644
index 000000000000..3b6f0f5d06a5
--- /dev/null
+++ b/app-i18n/xsim/files/xsim-0.3.9.4-64bit.patch
@@ -0,0 +1,57 @@
+diff -Naur xsim-0.3.9.4.orig/plugins/IMs/jianpin/simpleimc.h xsim-0.3.9.4/plugins/IMs/jianpin/simpleimc.h
+--- xsim-0.3.9.4.orig/plugins/IMs/jianpin/simpleimc.h 2002-10-22 18:01:04.000000000 +0900
++++ xsim-0.3.9.4/plugins/IMs/jianpin/simpleimc.h 2007-08-20 23:15:06.000000000 +0900
+@@ -45,7 +45,7 @@
+ uint16_t access_count;
+ wchar_t w[MAX_WORD_LEN + 1];
+
+- size_t ac_size() { return (uint32_t) w - (uint32_t)&access_count; }
++ size_t ac_size() { return (size_t) w - (size_t)&access_count; }
+ size_t size(){ return ac_size() + wcslen(w) * sizeof(wchar_t); }
+ void copy(struct Word_Rec_tag * val) { memcpy(this, val, sizeof(Word_Rec_tag));}
+ }Word_Rec;
+diff -Naur xsim-0.3.9.4.orig/plugins/IMs/table/tableimc.h xsim-0.3.9.4/plugins/IMs/table/tableimc.h
+--- xsim-0.3.9.4.orig/plugins/IMs/table/tableimc.h 2002-09-13 20:34:03.000000000 +0900
++++ xsim-0.3.9.4/plugins/IMs/table/tableimc.h 2007-08-20 23:15:47.000000000 +0900
+@@ -23,7 +23,7 @@
+ uint8_t sort_index;
+ wchar_t w[MAX_WORD_LEN + 1];
+
+- size_t si_size() { return (uint32_t) w - (uint32_t)&sort_index; }
++ size_t si_size() { return (size_t) w - (size_t)&sort_index; }
+ size_t size(){ return si_size() + (wcslen(w) + 1) * sizeof(wchar_t); }
+ void copy(struct Word_Rec_tag * val) { memcpy(this, val, sizeof(Word_Rec_tag));}
+ }Word_Rec;
+diff -Naur xsim-0.3.9.4.orig/xsim/ic.cpp xsim-0.3.9.4/xsim/ic.cpp
+--- xsim-0.3.9.4.orig/xsim/ic.cpp 2002-10-01 14:41:23.000000000 +0900
++++ xsim-0.3.9.4/xsim/ic.cpp 2007-08-20 23:16:11.000000000 +0900
+@@ -101,7 +101,7 @@
+ on_stat = 0;
+ }
+
+-int TIC::alive()
++long TIC::alive()
+ {
+- return (int)im;
++ return (long)im;
+ }
+diff -Naur xsim-0.3.9.4.orig/xsim/ic.h xsim-0.3.9.4/xsim/ic.h
+--- xsim-0.3.9.4.orig/xsim/ic.h 2002-07-15 00:14:24.000000000 +0900
++++ xsim-0.3.9.4/xsim/ic.h 2007-08-20 23:16:52.000000000 +0900
+@@ -76,14 +76,14 @@
+ void set_im(TIM * val);
+
+ TIMC * get_imc();
+- int has_imc() { return (int)imc; }
++ long has_imc() { return (long)imc; }
+
+ void init(int init_mode, TIM * val);
+
+ static TIC * get_focus_ic() { return focused_ic; }
+ IC * get_IC() { return &ic_; };
+
+- int alive();
++ long alive();
+ Window get_client_win() { return ic_.client_win; }
+
+ int has_focus() { return (focused_ic == this); }
diff --git a/app-i18n/xsim/files/xsim-0.3.9.4-compile-fix.patch b/app-i18n/xsim/files/xsim-0.3.9.4-compile-fix.patch
new file mode 100644
index 000000000000..0a53e3431261
--- /dev/null
+++ b/app-i18n/xsim/files/xsim-0.3.9.4-compile-fix.patch
@@ -0,0 +1,77 @@
+diff -uNr xsim-0.3.9.4.orig/configure xsim-0.3.9.4/configure
+--- xsim-0.3.9.4.orig/configure 2002-10-24 20:53:57.000000000 +0200
++++ xsim-0.3.9.4/configure 2005-01-27 16:21:18.553956144 +0100
+@@ -5067,13 +5067,13 @@
+
+
+ if test "x$enable_debug" = "x1" ; then
+- CFLAGS="-g -Wall -O2 -DDEBUG -I$x_includes"
++ CFLAGS="-g -Wall -O2 -DDEBUG"
+ CXXFLAGS=$CFLAGS
+- LDFLAGS="-g -L$x_libraries"
++ LDFLAGS="-g"
+ else
+- CFLAGS="-Wall -O2 -I$x_includes"
++ CFLAGS="-Wall -O2"
+ CXXFLAGS=$CFLAGS
+- LDFLAGS="-L$x_libraries"
++ LDFLAGS=""
+ fi
+
+ if test "x$enable_mdk_patch" = "x1" ; then
+@@ -5085,6 +5085,7 @@
+
+ if test "$bdbinc" = "NONE"; then
+ bdb_include_dirs="\
++ /usr/include/db4.1 \
+ /usr/include/db4 \
+ /usr/include/db3 \
+ /usr/local/include \
+diff -uNr xsim-0.3.9.4.orig/plugins/IMs/jianpin/pyphraser.cpp xsim-0.3.9.4/plugins/IMs/jianpin/pyphraser.cpp
+--- xsim-0.3.9.4.orig/plugins/IMs/jianpin/pyphraser.cpp 2002-09-29 05:03:29.000000000 +0200
++++ xsim-0.3.9.4/plugins/IMs/jianpin/pyphraser.cpp 2005-01-27 15:42:06.553514560 +0100
+@@ -16,6 +16,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++#include <cassert>
++
+ #include "wstring.h"
+ #include "pyphraser.h"
+ #include "simpleimc.h"
+diff -uNr xsim-0.3.9.4.orig/plugins/IMs/jianpin/simpleim.cpp xsim-0.3.9.4/plugins/IMs/jianpin/simpleim.cpp
+--- xsim-0.3.9.4.orig/plugins/IMs/jianpin/simpleim.cpp 2002-10-22 11:42:51.000000000 +0200
++++ xsim-0.3.9.4/plugins/IMs/jianpin/simpleim.cpp 2005-01-27 15:38:13.771902744 +0100
+@@ -15,6 +15,8 @@
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
++#include <cassert>
++
+ #include <X11/keysym.h>
+
+ #include "simpleim.h"
+diff -uNr xsim-0.3.9.4.orig/plugins/IMs/wubi/wubiim.cpp xsim-0.3.9.4/plugins/IMs/wubi/wubiim.cpp
+--- xsim-0.3.9.4.orig/plugins/IMs/wubi/wubiim.cpp 2002-10-22 11:22:13.000000000 +0200
++++ xsim-0.3.9.4/plugins/IMs/wubi/wubiim.cpp 2005-01-27 16:06:29.427123968 +0100
+@@ -16,6 +16,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++#include <cassert>
++
+ #include <X11/keysym.h>
+
+ #include "wubiim.h"
+diff -uNr xsim-0.3.9.4.orig/xsim/im.cpp xsim-0.3.9.4/xsim/im.cpp
+--- xsim-0.3.9.4.orig/xsim/im.cpp 2002-09-17 09:55:26.000000000 +0200
++++ xsim-0.3.9.4/xsim/im.cpp 2005-01-27 16:07:52.252532592 +0100
+@@ -16,6 +16,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++#include <cassert>
++
+ #include <dlfcn.h>
+
+ #include "im.h"
diff --git a/app-i18n/xsim/files/xsim-0.3.9.4-eof.patch b/app-i18n/xsim/files/xsim-0.3.9.4-eof.patch
new file mode 100644
index 000000000000..3982bf2703c9
--- /dev/null
+++ b/app-i18n/xsim/files/xsim-0.3.9.4-eof.patch
@@ -0,0 +1,92 @@
+diff --git a/plugins/IMs/jianpin/dict/char2db.cpp b/plugins/IMs/jianpin/dict/char2db.cpp
+index f36dda9..fb17c6e 100644
+--- a/plugins/IMs/jianpin/dict/char2db.cpp
++++ b/plugins/IMs/jianpin/dict/char2db.cpp
+@@ -166,6 +166,8 @@ int main(int argc, char * argv[])
+ int i = 0;
+ for (;;){
+ in >> mark;
++ if (in.eof())
++ break;
+ in.unget();
+ if (mark == '%'){ //for comments
+ in.getline(dummy, 255);
+@@ -175,9 +177,6 @@ int main(int argc, char * argv[])
+ }
+ in >> ckey.py >> c;
+
+- if (in.eof())
+- break;
+-
+ if (strlen(c) != 2){
+ cout << "error on line: " << i << endl;
+ exit(1);
+diff --git a/plugins/IMs/jianpin/dict/word2db.cpp b/plugins/IMs/jianpin/dict/word2db.cpp
+index 6b6b8e0..f9a6d0b 100644
+--- a/plugins/IMs/jianpin/dict/word2db.cpp
++++ b/plugins/IMs/jianpin/dict/word2db.cpp
+@@ -103,6 +103,8 @@ int main(int argc, char * argv[])
+ rec.access_count = MAX_ACCESS_COUNT;
+ for (;;){
+ in >> mark;
++ if (in.eof())
++ break;
+ in.unget();
+ if (mark == '%'){ //for comments
+ in.getline(wk.py, sizeof(wk.py));
+@@ -113,9 +115,6 @@ int main(int argc, char * argv[])
+
+ in >> w >> wk.py;
+
+- if (in.eof())
+- break;
+-
+ if ((wk.py[0] < 'a') || (wk.py[0] > 'z')){
+ cerr << " error on line:" << i << endl;
+ db.close(0);
+diff --git a/plugins/IMs/table/dict/word2db.cpp b/plugins/IMs/table/dict/word2db.cpp
+index aa19a60..f0368ce 100644
+--- a/plugins/IMs/table/dict/word2db.cpp
++++ b/plugins/IMs/table/dict/word2db.cpp
+@@ -112,6 +112,8 @@ int main(int argc, char * argv[])
+ for (;;){
+ j++;
+ in >> mark;
++ if (in.eof())
++ break;
+ in.unget();
+ if ((mark == '%') || (mark == '#')){ //for comments
+ in.getline((char *)wbuf, 1000);
+@@ -123,9 +125,6 @@ int main(int argc, char * argv[])
+
+ in >> wk.key >> w;
+
+- if (in.eof())
+- break;
+-
+ if ((wk.key[0] < 'a') || (wk.key[0] > 'z')){
+ //cerr << " error on line:" << j << endl;
+ errcnt ++;
+diff --git a/plugins/IMs/wubi/dict/word2db.cpp b/plugins/IMs/wubi/dict/word2db.cpp
+index a1df52b..3fe1e3e 100644
+--- a/plugins/IMs/wubi/dict/word2db.cpp
++++ b/plugins/IMs/wubi/dict/word2db.cpp
+@@ -103,6 +103,8 @@ int main(int argc, char * argv[])
+ for (;;){
+ j++;
+ in >> mark;
++ if (in.eof())
++ break;
+ in.unget();
+ if (mark == '%'){ //for comments
+ in.getline(wk.key, sizeof(wk.key));
+@@ -114,9 +116,6 @@ int main(int argc, char * argv[])
+
+ in >> wk.key >> w;
+
+- if (in.eof())
+- break;
+-
+ if ((wk.key[0] < 'a') || (wk.key[0] > 'z')){
+ //cerr << " error on line:" << j << endl;
+ errcnt ++;
diff --git a/app-i18n/xsim/files/xsim-0.3.9.4-gcc-3.4.patch b/app-i18n/xsim/files/xsim-0.3.9.4-gcc-3.4.patch
new file mode 100644
index 000000000000..0464d47dad08
--- /dev/null
+++ b/app-i18n/xsim/files/xsim-0.3.9.4-gcc-3.4.patch
@@ -0,0 +1,116 @@
+diff --git a/plugins/IMs/jianpin/dict/char2db.cpp b/plugins/IMs/jianpin/dict/char2db.cpp
+index d881f20..e4ddbab 100644
+--- a/plugins/IMs/jianpin/dict/char2db.cpp
++++ b/plugins/IMs/jianpin/dict/char2db.cpp
+@@ -74,11 +74,7 @@ void build_freq_tab(char * filename)
+ {
+ filebuf f;
+
+-#ifdef _CPP_BITS_IOSBASE_H
+ f.open(filename, ios_base::in);
+-#else
+- f.open(filename, "r");
+-#endif
+ istream in(&f);
+
+ char cbuf[10];
+@@ -154,11 +150,7 @@ int main(int argc, char * argv[])
+
+ filebuf f;
+
+-#ifdef _CPP_BITS_IOSBASE_H
+ f.open(argv[1], ios_base::in);
+-#else
+- f.open(argv[1], "r");
+-#endif
+ istream in(&f);
+
+ char mark;
+diff --git a/plugins/IMs/jianpin/dict/word2db.cpp b/plugins/IMs/jianpin/dict/word2db.cpp
+index 806f6c4..5baa630 100644
+--- a/plugins/IMs/jianpin/dict/word2db.cpp
++++ b/plugins/IMs/jianpin/dict/word2db.cpp
+@@ -83,11 +83,7 @@ int main(int argc, char * argv[])
+
+ filebuf f;
+
+-#ifdef _CPP_BITS_IOSBASE_H
+ f.open(argv[1], ios_base::in);
+-#else
+- f.open(argv[1], "r");
+-#endif
+ istream in(&f);
+
+ char mark;
+diff --git a/plugins/IMs/table/dict/word2db.cpp b/plugins/IMs/table/dict/word2db.cpp
+index 17d0dcf..275ee61 100644
+--- a/plugins/IMs/table/dict/word2db.cpp
++++ b/plugins/IMs/table/dict/word2db.cpp
+@@ -90,11 +90,7 @@ int main(int argc, char * argv[])
+
+ filebuf f;
+
+-#ifdef _CPP_BITS_IOSBASE_H
+ f.open(argv[1], ios_base::in);
+-#else
+- f.open(argv[1], "r");
+-#endif
+ istream in(&f);
+
+ char mark;
+diff --git a/plugins/IMs/wubi/dict/word2db.cpp b/plugins/IMs/wubi/dict/word2db.cpp
+index 0dbc7e4..e191aa8 100644
+--- a/plugins/IMs/wubi/dict/word2db.cpp
++++ b/plugins/IMs/wubi/dict/word2db.cpp
+@@ -81,11 +81,7 @@ int main(int argc, char * argv[])
+
+ filebuf f;
+
+-#ifdef _CPP_BITS_IOSBASE_H
+ f.open(argv[1], ios_base::in);
+-#else
+- f.open(argv[1], "r");
+-#endif
+ istream in(&f);
+
+ char mark;
+diff --git a/xsim/conf.cpp b/xsim/conf.cpp
+index a073bb2..a2bffb0 100644
+--- a/xsim/conf.cpp
++++ b/xsim/conf.cpp
+@@ -133,11 +133,7 @@ int TConf::init()
+ filebuf f;
+
+ char dummy[MAX_PATH_LEN + 1];
+-#ifdef _CPP_BITS_IOSBASE_H
+ if (!f.open(config_path.tombs(dummy, MAX_PATH_LEN), ios_base::in)){
+-#else
+- if (!f.open(config_path.tombs(dummy, MAX_PATH_LEN), "r")){
+-#endif
+ cerr << "XSIM: failed opening config file" << endl;
+ return 1;
+ }
+@@ -340,11 +336,7 @@ void TConf::save_config(const wchar_t * configname, vector<TWstring> & name, vec
+
+ filebuf f;
+
+-#ifdef _CPP_BITS_IOSBASE_H
+ if (f.open(path.tombs(dummy, MAX_PATH_LEN), ios_base::out)){
+-#else
+- if (f.open(path.tombs(dummy, MAX_PATH_LEN), "w")){
+-#endif
+ ostream out(&f);
+ for (size_t i = 0; i < name.size(); i++){
+ out << name[i].tombs(dummy, MAX_PATH_LEN) << '\t';
+@@ -372,11 +364,7 @@ int TConf::load_config(const wchar_t * configname, vector<TWstring> & name, vect
+
+ filebuf f;
+
+-#ifdef _CPP_BITS_IOSBASE_H
+ if (f.open(path.tombs(dummy, MAX_PATH_LEN), ios_base::in)){
+-#else
+- if (f.open(path.tombs(dummy, MAX_PATH_LEN), "r")){
+-#endif
+ istream in(&f);
+ char n[MAX_PATH_LEN + 1];
+ char v[MAX_PATH_LEN + 1];
diff --git a/app-i18n/xsim/files/xsim-0.3.9.4-gcc-4.3.patch b/app-i18n/xsim/files/xsim-0.3.9.4-gcc-4.3.patch
new file mode 100644
index 000000000000..f6df247b03ef
--- /dev/null
+++ b/app-i18n/xsim/files/xsim-0.3.9.4-gcc-4.3.patch
@@ -0,0 +1,44 @@
+diff -Naur xsim-0.3.9.4.orig/plugins/IMs/jianpin/dict/char2db.cpp xsim-0.3.9.4/plugins/IMs/jianpin/dict/char2db.cpp
+--- xsim-0.3.9.4.orig/plugins/IMs/jianpin/dict/char2db.cpp 2002-09-23 13:22:39.000000000 +0900
++++ xsim-0.3.9.4/plugins/IMs/jianpin/dict/char2db.cpp 2008-09-09 18:56:56.000000000 +0900
+@@ -21,6 +21,7 @@
+ #include <clocale>
+ #include <vector>
+ #include <fstream>
++#include <cstdlib>
+
+ #include <db_cxx.h>
+
+diff -Naur xsim-0.3.9.4.orig/plugins/IMs/jianpin/dict/word2db.cpp xsim-0.3.9.4/plugins/IMs/jianpin/dict/word2db.cpp
+--- xsim-0.3.9.4.orig/plugins/IMs/jianpin/dict/word2db.cpp 2002-09-23 13:24:17.000000000 +0900
++++ xsim-0.3.9.4/plugins/IMs/jianpin/dict/word2db.cpp 2008-09-09 18:59:33.000000000 +0900
+@@ -21,6 +21,7 @@
+ #include <string>
+ #include <db_cxx.h>
+ #include <locale.h>
++#include <cstdlib>
+
+ #include "../simpleimc.h"
+
+diff -Naur xsim-0.3.9.4.orig/plugins/IMs/table/dict/word2db.cpp xsim-0.3.9.4/plugins/IMs/table/dict/word2db.cpp
+--- xsim-0.3.9.4.orig/plugins/IMs/table/dict/word2db.cpp 2002-09-23 13:34:06.000000000 +0900
++++ xsim-0.3.9.4/plugins/IMs/table/dict/word2db.cpp 2008-09-09 23:52:31.000000000 +0900
+@@ -21,6 +21,7 @@
+ #include <string>
+ #include <db_cxx.h>
+ #include <clocale>
++#include <cstdlib>
+
+ #include "../tableimc.h"
+
+diff -Naur xsim-0.3.9.4.orig/plugins/IMs/wubi/dict/word2db.cpp xsim-0.3.9.4/plugins/IMs/wubi/dict/word2db.cpp
+--- xsim-0.3.9.4.orig/plugins/IMs/wubi/dict/word2db.cpp 2002-09-23 13:28:45.000000000 +0900
++++ xsim-0.3.9.4/plugins/IMs/wubi/dict/word2db.cpp 2008-09-09 23:19:27.000000000 +0900
+@@ -21,6 +21,7 @@
+ #include <string>
+ #include <db_cxx.h>
+ #include <locale.h>
++#include <cstdlib>
+
+ #include "../wubiimc.h"
+
diff --git a/app-i18n/xsim/files/xsim-0.3.9.4-makefile.patch b/app-i18n/xsim/files/xsim-0.3.9.4-makefile.patch
new file mode 100644
index 000000000000..8488d1bf135b
--- /dev/null
+++ b/app-i18n/xsim/files/xsim-0.3.9.4-makefile.patch
@@ -0,0 +1,153 @@
+diff --git a/Makefile.in b/Makefile.in
+index 6a7a195..6d2b4e6 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -36,7 +36,7 @@ distclean: clean
+ done && test -z "$$fail"
+
+ install-data:
+- cd plugins/IMs;make install-data
++ cd plugins/IMs;$(MAKE) install-data
+
+ uninstall:
+ @for dir in ${subdirs}; do \
+diff --git a/plugins/IMs/jianpin/Makefile.in b/plugins/IMs/jianpin/Makefile.in
+index cbbac33..50d7ef0 100644
+--- a/plugins/IMs/jianpin/Makefile.in
++++ b/plugins/IMs/jianpin/Makefile.in
+@@ -25,7 +25,7 @@ OBJS=simpleim.o simpleimc.o pyphraser.o
+ TARGET=jianpin.so
+
+ all:$(TARGET)
+- cd dict; make
++ cd dict; $(MAKE)
+
+ jianpin.so:$(OBJS)
+ $(LD_SHAREEXE) -shared -o $(TARGET) $(OBJS) $(LDFLAGS) -L$(bdblibs) $(LIBS) -l$(bdblib) $(gcclib)
+@@ -41,20 +41,20 @@ pyphraser.o:pyphraser.cpp pyphraser.h simpleimc.h $(include_path)wstring.h
+
+ clean:
+ rm -f *.o $(TARGET) core *~ *.bak
+- cd dict; make clean
++ cd dict; $(MAKE) clean
+
+ distclean:clean
+ rm -rf Makefile
+- cd dict; make distclean
++ cd dict; $(MAKE) distclean
+
+ install:all
+ $(topdir)/mkinstalldirs $(xsim_libp)
+ cp -f $(TARGET) $(xsim_libp)
+- cd dict; make install
++ cd dict; $(MAKE) install
+
+ install-data:
+- cd dict;make install-data
++ cd dict;$(MAKE) install-data
+
+ uninstall:
+ cd $(xsim_libp); rm -f $(TARGET)
+- cd dict;make uninstall
++ cd dict;$(MAKE) uninstall
+diff --git a/plugins/IMs/table/Makefile.in b/plugins/IMs/table/Makefile.in
+index a747560..cbc67bc 100644
+--- a/plugins/IMs/table/Makefile.in
++++ b/plugins/IMs/table/Makefile.in
+@@ -25,7 +25,7 @@ OBJS=tableim.o tableimc.o
+ TARGET=table.so
+
+ all:$(TARGET)
+- cd dict; make
++ cd dict; $(MAKE)
+
+ $(TARGET):$(OBJS)
+ $(LD_SHAREEXE) -shared -o $(TARGET) $(OBJS) $(LDFLAGS) -L$(bdblibs) $(LIBS) -l$(bdblib) $(gcclib)
+@@ -38,20 +38,20 @@ tableimc.o:tableimc.h tableimc.cpp $(include_path)wstring.h $(include_path)imc.h
+
+ clean:
+ rm -f *.o $(TARGET) core *~ *.bak
+- cd dict; make clean
++ cd dict; $(MAKE) clean
+
+ distclean:clean
+ rm -rf Makefile
+- cd dict; make distclean
++ cd dict; $(MAKE) distclean
+
+ install:all
+ $(topdir)/mkinstalldirs $(xsim_libp)
+ cp -f $(TARGET) $(xsim_libp)
+- cd dict; make install
++ cd dict; $(MAKE) install
+
+ install-data:
+- cd dict;make install-data
++ cd dict;$(MAKE) install-data
+
+ uninstall:
+ cd $(xsim_libp); rm -f $(TARGET)
+- cd dict; make uninstall
++ cd dict; $(MAKE) uninstall
+diff --git a/plugins/IMs/wubi/Makefile.in b/plugins/IMs/wubi/Makefile.in
+index 031f1a7..c3d0f88 100644
+--- a/plugins/IMs/wubi/Makefile.in
++++ b/plugins/IMs/wubi/Makefile.in
+@@ -25,7 +25,7 @@ OBJS=wubiim.o wubiimc.o
+ TARGET=wubi.so
+
+ all:$(TARGET)
+- cd dict; make
++ cd dict; $(MAKE)
+
+ $(TARGET):$(OBJS)
+ $(LD_SHAREEXE) -shared -o $(TARGET) $(OBJS) $(LDFLAGS) -L$(bdblibs) $(LIBS) -l$(bdblib) $(gcclib)
+@@ -38,20 +38,20 @@ wubiimc.o:wubiimc.h wubiimc.cpp $(include_path)wstring.h $(include_path)imc.h
+
+ clean:
+ rm -f *.o $(TARGET) core *~ *.bak
+- cd dict; make clean
++ cd dict; $(MAKE) clean
+
+ distclean:clean
+ rm -rf Makefile
+- cd dict; make distclean
++ cd dict; $(MAKE) distclean
+
+ install:all
+ $(topdir)/mkinstalldirs $(xsim_libp)
+ cp -f $(TARGET) $(xsim_libp)
+- cd dict; make install
++ cd dict; $(MAKE) install
+
+ install-data:
+- cd dict;make install-data
++ cd dict;$(MAKE) install-data
+
+ uninstall:
+ cd $(xsim_libp); rm -f $(TARGET)
+- cd dict; make uninstall
++ cd dict; $(MAKE) uninstall
+diff --git a/xsim/Makefile.in b/xsim/Makefile.in
+index d618a2c..bbe1599 100644
+--- a/xsim/Makefile.in
++++ b/xsim/Makefile.in
+@@ -58,15 +58,15 @@ wstring.o:wstring.h wstring.cpp
+ $(CXX) -c wstring.cpp $(CXXFLAGS) -I./IMdkit
+
+ IMdkit/libXimd.a:
+- cd IMdkit;make
++ cd IMdkit;$(MAKE)
+
+ clean:
+ rm -f *.o xsim core *~ *.bak
+- cd IMdkit; make clean
++ cd IMdkit; $(MAKE) clean
+
+ distclean:clean
+ rm -rf Makefile tags
+- cd IMdkit; make distclean
++ cd IMdkit; $(MAKE) distclean
+
+ install:all
+ $(topdir)/mkinstalldirs $(xsim_binp)
diff --git a/app-i18n/xsim/metadata.xml b/app-i18n/xsim/metadata.xml
new file mode 100644
index 000000000000..cb36a2fd8c76
--- /dev/null
+++ b/app-i18n/xsim/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/xsim/xsim-0.3.9.4-r5.ebuild b/app-i18n/xsim/xsim-0.3.9.4-r5.ebuild
new file mode 100644
index 000000000000..bcb48b6d9279
--- /dev/null
+++ b/app-i18n/xsim/xsim-0.3.9.4-r5.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit db-use eutils flag-o-matic multilib
+
+DESCRIPTION="A simple and fast GB and BIG5 Chinese XIM server"
+HOMEPAGE="http://developer.berlios.de/projects/xsim/"
+SRC_URI="mirror://berlios/xsim/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug"
+
+RDEPEND=">=sys-libs/db-4.1
+ x11-libs/libX11
+ x11-libs/libXt"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+src_prepare() {
+ local dbver
+
+ epatch "${FILESDIR}"/${P}-compile-fix.patch
+ epatch "${FILESDIR}"/${P}-gcc-3.4.patch
+ epatch "${FILESDIR}"/${P}-64bit.patch
+ # bug 227117
+ epatch "${FILESDIR}"/${P}-gcc-4.3.patch
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ epatch "${FILESDIR}"/${P}-eof.patch
+
+ append-cppflags -DPIC
+ append-flags -fPIC -fno-strict-aliasing
+
+ dbver="$(db_findver sys-libs/db)"
+ sed -i -e "s/\(CFLAGS.*\)-O2/\1${CFLAGS}/" \
+ -e "s/LDFLAGS=\"/LDFLAGS=\"${LDFLAGS} /" \
+ -e "s/libdb_cxx.so/libdb_cxx-${dbver}.so/" \
+ -e "s/bdblib=\"db_cxx\"/bdblib=\"db_cxx-${dbver}\"/" configure* || die
+
+ find . -name '*.in' | xargs sed -i \
+ -e "s#\(@prefix@/\)\(dat\|plugins\)#\1$(get_libdir)/xsim/\2#" \
+ -e "s#@prefix@/etc#/etc#" || die
+}
+
+src_configure() {
+ local myconf=""
+
+ use debug && myconf="--enable-debug"
+
+ econf \
+ --with-bdb-includes=$(db_includedir) \
+ --without-qt3 \
+ --without-kde3 \
+ ${myconf}
+}
+
+src_install() {
+ emake \
+ xsim_datp="${D}"/usr/$(get_libdir)/xsim/dat \
+ xsim_libp="${D}"usr/$(get_libdir)/xsim/plugins \
+ xsim_binp="${D}"/usr/bin \
+ xsim_etcp="${D}"/etc \
+ install install-data
+
+ dodoc ChangeLog KNOWNBUG README* TODO
+}
+
+pkg_postinst() {
+ elog "XSIM needs write access to /usr/$(get_libdir)/xsim/dat/chardb, so if you"
+ elog "not running it as root, you need to do the following:"
+ elog
+ elog " cp -r /usr/$(get_libdir)/xsim/dat \${HOME}/.xsim"
+ elog " sed -i \"s#DICT_LOCAL.*#DICT_LOCAL \${HOME}/.xsim#\" > \${HOME}/.xsim/xsimrc"
+ echo
+}
diff --git a/app-i18n/xsunpinyin/Manifest b/app-i18n/xsunpinyin/Manifest
new file mode 100644
index 000000000000..8fb86d75f4a8
--- /dev/null
+++ b/app-i18n/xsunpinyin/Manifest
@@ -0,0 +1,2 @@
+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
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..adc59fd218e2
--- /dev/null
+++ b/app-i18n/xsunpinyin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="google-code">sunpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/xsunpinyin/xsunpinyin-2.0.3-r3.ebuild b/app-i18n/xsunpinyin/xsunpinyin-2.0.3-r3.ebuild
new file mode 100644
index 000000000000..0f636b4cf17f
--- /dev/null
+++ b/app-i18n/xsunpinyin/xsunpinyin-2.0.3-r3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils scons-utils
+
+DESCRIPTION="The SunPinyin IMEngine Wrapper for XIM Framework"
+HOMEPAGE="http://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..ff2bafe63343
--- /dev/null
+++ b/app-i18n/xsunpinyin/xsunpinyin-2.0.4_pre20130108.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit readme.gentoo scons-utils toolchain-funcs
+
+DESCRIPTION="The SunPinyin IMEngine Wrapper for XIM Framework"
+HOMEPAGE="https://sunpinyin.googlecode.com/"
+SRC_URI="http://dev.gentoo.org/~yngwin/distfiles/sunpinyin-${PV}.tar.xz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+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..db8766c8a54e
--- /dev/null
+++ b/app-i18n/xvnkb/Manifest
@@ -0,0 +1,2 @@
+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
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..cb36a2fd8c76
--- /dev/null
+++ b/app-i18n/xvnkb/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-i18n/xvnkb/xvnkb-0.2.8a-r1.ebuild b/app-i18n/xvnkb/xvnkb-0.2.8a-r1.ebuild
new file mode 100644
index 000000000000..a2224e57cd8e
--- /dev/null
+++ b/app-i18n/xvnkb/xvnkb-0.2.8a-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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=${DESTTREE}/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..e7489aff925f
--- /dev/null
+++ b/app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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=${DESTTREE}/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/zhcon/Manifest b/app-i18n/zhcon/Manifest
new file mode 100644
index 000000000000..71b65debd15c
--- /dev/null
+++ b/app-i18n/zhcon/Manifest
@@ -0,0 +1,2 @@
+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
diff --git a/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch b/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch
new file mode 100644
index 000000000000..b0485b97e9e7
--- /dev/null
+++ b/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch
@@ -0,0 +1,67 @@
+diff -Nur zhcon-0.2.5.orig/doc/Makefile.am zhcon-0.2.5/doc/Makefile.am
+--- zhcon-0.2.5.orig/doc/Makefile.am 2006-06-21 18:02:23.000000000 +0800
++++ zhcon-0.2.5/doc/Makefile.am 2006-06-21 18:13:59.000000000 +0800
+@@ -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 -Nur zhcon-0.2.5.orig/font/Makefile.am zhcon-0.2.5/font/Makefile.am
+--- zhcon-0.2.5.orig/font/Makefile.am 2006-06-21 18:02:23.000000000 +0800
++++ zhcon-0.2.5/font/Makefile.am 2006-06-21 18:14:30.000000000 +0800
+@@ -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 -Nur zhcon-0.2.5.orig/input/Makefile.am zhcon-0.2.5/input/Makefile.am
+--- zhcon-0.2.5.orig/input/Makefile.am 2006-06-21 18:02:23.000000000 +0800
++++ zhcon-0.2.5/input/Makefile.am 2006-06-21 18:15:35.000000000 +0800
+@@ -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 -Nur zhcon-0.2.5.orig/src/Makefile.am zhcon-0.2.5/src/Makefile.am
+--- zhcon-0.2.5.orig/src/Makefile.am 2006-06-21 18:02:23.000000000 +0800
++++ zhcon-0.2.5/src/Makefile.am 2006-06-22 08:35:42.000000000 +0800
+@@ -8,14 +8,14 @@
+ SUBDIRS = display
+
+ install-exec-local:
+- chmod 4755 $(bindir)/zhcon
++ chmod 4755 $(DESTDIR)$(bindir)/zhcon
+
+ install-data-local:
+- $(mkinstalldirs) $(prefix)/etc
+- $(INSTALL_DATA) $(srcdir)/zhcon.conf $(prefix)/etc/zhcon.conf
++ $(mkinstalldirs) $(DESTDIR)/etc
++ $(INSTALL_DATA) $(srcdir)/zhcon.conf $(DESTDIR)/etc/zhcon.conf
+
+ uninstall-local:
+- -rm -f $(prefix)/etc/zhcon.conf
++ -rm -f $(DESTDIR)/etc/zhcon.conf
+
+ # set the include path found by configure
+ INCLUDES= $(all_includes)
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..5f8bf1908043
--- /dev/null
+++ b/app-i18n/zhcon/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <longdescription>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..839474564094
--- /dev/null
+++ b/app-i18n/zhcon/zhcon-0.2.6-r2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..8d85231126a6
--- /dev/null
+++ b/app-i18n/zinnia-tomoe/Manifest
@@ -0,0 +1 @@
+DIST zinnia-tomoe-0.6.0-20080911.tar.bz2 30666390 SHA256 fd1a264b8aeea0ebec59e8c8765864a9543a75fb2dba349745bb3a3587790927 SHA512 5c5cf06de46b8feebebca38d8ee4908af1d58f921e30bbbf92b9e5b79acb37e9c78466a1771dc01ddabe4740a0f03f41c50dce55fc38a414b582a1b4708886f5 WHIRLPOOL 578e92f1b6d52af65d6f9ecac71d714c8c50ded42b8e4f47ffecd9045cdac538544028baf18f360304e58049dcc81ae5a2b025f553b0de71ff1de89048f29070
diff --git a/app-i18n/zinnia-tomoe/metadata.xml b/app-i18n/zinnia-tomoe/metadata.xml
new file mode 100644
index 000000000000..500ba13f450c
--- /dev/null
+++ b/app-i18n/zinnia-tomoe/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge">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..58d8fbcce71c
--- /dev/null
+++ b/app-i18n/zinnia-tomoe/zinnia-tomoe-0.6.0_p20080911.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+AUTOTOOLS_AUTORECONF=1
+
+inherit autotools-utils multilib
+
+MY_P=${P/_p/-}
+
+DESCRIPTION="Handwriting model files trained with Tomoe data"
+HOMEPAGE="http://zinnia.sourceforge.net/index.html"
+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}
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+src_prepare() {
+ sed -i -e "/^modeldir/s/lib/$(get_libdir)/" Makefile.am || die
+ autotools-utils_src_prepare
+}
diff --git a/app-i18n/zinnia/Manifest b/app-i18n/zinnia/Manifest
new file mode 100644
index 000000000000..9a0e78ebae5f
--- /dev/null
+++ b/app-i18n/zinnia/Manifest
@@ -0,0 +1 @@
+DIST zinnia-0.06.tar.gz 457415 SHA256 ece3af93f937282971634fd81d3e997f848e8cfa958220e26a4564ca064ac20b SHA512 b9a44dc3664302269c4d8481225964a3188c1921f5af7f136fdccdc452917f6ff934884e266436a0f1e0a32af19d3bea5f5e4416e694a653983039a513277b53 WHIRLPOOL 3d0822a5dfaa46ad5dab144888e10f2a0d473e12dcb0f3754e8d55d93cfed19b5ded44c9ca2f2b16451450e05c8b6e5819bf5789d546eb0955f91b37179fe413
diff --git a/app-i18n/zinnia/files/zinnia-0.06-perl.patch b/app-i18n/zinnia/files/zinnia-0.06-perl.patch
new file mode 100644
index 000000000000..3688a91ad9ca
--- /dev/null
+++ b/app-i18n/zinnia/files/zinnia-0.06-perl.patch
@@ -0,0 +1,13 @@
+Index: zinnia-0.06/perl/Makefile.PL
+===================================================================
+--- zinnia-0.06.orig/perl/Makefile.PL
++++ zinnia-0.06/perl/Makefile.PL
+@@ -4,7 +4,7 @@ WriteMakefile(
+ 'CC' => 'c++',
+ 'LD' => 'c++',
+ 'INC' => '',
+- 'LIBS' => '-lzinnia',
++ 'LIBS' => '-L../.libs -lzinnia',
+ # 'VERSION' => '0.1',
+ 'OBJECT' => 'zinnia_wrap.o'
+ );
diff --git a/app-i18n/zinnia/files/zinnia-0.06-ricedown.patch b/app-i18n/zinnia/files/zinnia-0.06-ricedown.patch
new file mode 100644
index 000000000000..397d0b0688ad
--- /dev/null
+++ b/app-i18n/zinnia/files/zinnia-0.06-ricedown.patch
@@ -0,0 +1,20 @@
+Index: zinnia-0.06/configure.in
+===================================================================
+--- zinnia-0.06.orig/configure.in
++++ zinnia-0.06/configure.in
+@@ -59,15 +59,6 @@ AC_ARG_WITH(pkgconfigdir,
+ 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/metadata.xml b/app-i18n/zinnia/metadata.xml
new file mode 100644
index 000000000000..500ba13f450c
--- /dev/null
+++ b/app-i18n/zinnia/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <upstream>
+ <remote-id type="sourceforge">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..4517a348ce40
--- /dev/null
+++ b/app-i18n/zinnia/zinnia-0.06-r3.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PERL_EXPORT_PHASE_FUNCTIONS=no
+inherit perl-module eutils flag-o-matic toolchain-funcs autotools-utils
+
+DESCRIPTION="Online hand recognition system with machine learning"
+HOMEPAGE="http://zinnia.sourceforge.net/"
+SRC_URI="mirror://sourceforge/zinnia/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+# Package warrants IUSE doc
+IUSE="perl static-libs"
+DOCS=( AUTHORS ChangeLog NEWS README )
+PATCHES=(
+ "${FILESDIR}/${P}-ricedown.patch"
+ "${FILESDIR}/${P}-perl.patch"
+)
+AUTOTOOLS_AUTORECONF=yes
+
+src_prepare() {
+ autotools-utils_src_prepare
+ if use perl ; then
+ pushd "${S}/perl" >/dev/null
+ PATCHES=()
+ perl-module_src_prepare
+ popd >/dev/null
+ fi
+}
+
+src_compile() {
+ autotools-utils_src_compile
+ if use perl ; then
+ pushd "${S}"/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 \
+ LDDLFLAGS="-shared" \
+ OTHERLDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCXX)" LD="$(tc-getCXX)" \
+ OPTIMIZE="${CPPFLAGS} ${CXXFLAGS}"
+ popd >/dev/null
+ fi
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ if use perl ; then
+ pushd "${S}/perl" >/dev/null
+ perl-module_src_install
+ popd >/dev/null
+ fi
+
+ # Curiously ChangeLog & NEWS are left uncompressed
+ dohtml doc/*.html doc/*.css
+}