From d4bd6695641f6d2ec7ff8681913d304e995902f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 29 May 2018 03:22:09 +0100 Subject: gentoo resync : 29.05.2018 --- app-i18n/Manifest.gz | Bin 21649 -> 21641 bytes app-i18n/ibus-anthy/Manifest | 4 +- app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild | 62 ------ app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild | 2 +- app-i18n/ibus-typing-booster/Manifest | 4 +- .../ibus-typing-booster-1.5.32.ebuild | 32 --- .../ibus-typing-booster-1.5.38.ebuild | 32 +++ app-i18n/poedit/Manifest | 4 +- app-i18n/poedit/poedit-1.8.5.ebuild | 72 ------- app-i18n/poedit/poedit-2.0.7.ebuild | 56 +++++ app-i18n/scim-wnn/Manifest | 2 +- app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild | 24 +-- app-i18n/uim/Manifest | 17 +- app-i18n/uim/files/50uim-gentoo.el | 2 - app-i18n/uim/files/uim-1.5.4-zhTW.patch | 12 -- app-i18n/uim/files/uim-1.6.0-gentoo.patch | 11 - app-i18n/uim/files/uim-1.8.6-gentoo.patch | 28 +++ app-i18n/uim/files/uim-1.8.6-tinfo.patch | 65 ++++++ app-i18n/uim/files/uim-gentoo.patch | 28 +++ app-i18n/uim/files/uim-tinfo.patch | 38 ++++ app-i18n/uim/files/uim-zh-TW.patch | 11 + app-i18n/uim/metadata.xml | 17 +- app-i18n/uim/uim-1.8.6-r1.ebuild | 238 ++++++++++---------- app-i18n/uim/uim-1.8.6-r2.ebuild | 240 ++++++++++----------- app-i18n/uim/uim-1.8.8.ebuild | 226 +++++++++++++++++++ 25 files changed, 750 insertions(+), 477 deletions(-) delete mode 100644 app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild delete mode 100644 app-i18n/ibus-typing-booster/ibus-typing-booster-1.5.32.ebuild create mode 100644 app-i18n/ibus-typing-booster/ibus-typing-booster-1.5.38.ebuild delete mode 100644 app-i18n/poedit/poedit-1.8.5.ebuild create mode 100644 app-i18n/poedit/poedit-2.0.7.ebuild delete mode 100644 app-i18n/uim/files/uim-1.5.4-zhTW.patch delete mode 100644 app-i18n/uim/files/uim-1.6.0-gentoo.patch create mode 100644 app-i18n/uim/files/uim-1.8.6-gentoo.patch create mode 100644 app-i18n/uim/files/uim-1.8.6-tinfo.patch create mode 100644 app-i18n/uim/files/uim-gentoo.patch create mode 100644 app-i18n/uim/files/uim-tinfo.patch create mode 100644 app-i18n/uim/files/uim-zh-TW.patch create mode 100644 app-i18n/uim/uim-1.8.8.ebuild (limited to 'app-i18n') diff --git a/app-i18n/Manifest.gz b/app-i18n/Manifest.gz index 4c8d7528d4ae..95bc5dab4545 100644 Binary files a/app-i18n/Manifest.gz and b/app-i18n/Manifest.gz differ diff --git a/app-i18n/ibus-anthy/Manifest b/app-i18n/ibus-anthy/Manifest index df4bc3dde66e..ada310e0f54c 100644 --- a/app-i18n/ibus-anthy/Manifest +++ b/app-i18n/ibus-anthy/Manifest @@ -1,7 +1,5 @@ DIST ibus-anthy-1.5.10.tar.gz 758528 BLAKE2B 39496f5c3a5f2038f3f81e09504e472a32da85f27701741cbe77b576afcd8685c4f2209aaf24ef84420cbeec1614b251d2903c1ea4e7175a1014f92615399847 SHA512 963b1dfba18259aad2296c10de35f9f321b0169d6f85afa058ed57b6894fe4e1d44514ffadeee3c3108aac77f54aa645096ddf4bdb353fafaedb83d27d8c5d47 -DIST ibus-anthy-1.5.4.tar.gz 592595 BLAKE2B d483079c72ee8a500f79dfa6a1fe28b6dc13b8a7671c4ef6aba8df5994d6f2e3cddc9c8ebafe173a9f4799f1073745c8b23ea2aa7438e93d8e84c4b2c1ec129c SHA512 8478e9ea14472d0153cc7a35feae4edea791476dc98cfc266b598f915376d267bd5db48ea0a676209d7a6fa680628116a30fec59afaf696477cfaa14082aad8d DIST ibus-anthy-1.5.9.tar.gz 765672 BLAKE2B 88a2b935bfe1007bdcbd70af358509da77533a67df4b6d0be218b5f9d5e1c0ca093e62618765f1e2d7c06c2127458319bbf482ce8598398b9562ecec8a258301 SHA512 2f57db784ddbd4ea57afba245dc532fe4ee8c9fea5fc7df9b3ca26600816ef4c0626b4ebdbbd976826c391890216af587863707caa26c3926a6278cc6b720ef6 EBUILD ibus-anthy-1.5.10.ebuild 1246 BLAKE2B a74e0ad08aea1155f397ad8461c738526dfd03b2482d2739b222895c60d660047cf6b77ff37441fa41659b20bc244c594e4485e23a3d32613d5a8e4b2dee71c8 SHA512 6e1998200bcdf487b3d0a0db99e30e96a28e7d1451279eab89290b38731ad78d2129901b2e2cff1cdb2109a1427e522a2ffa5a8a390a31df61db510809392c4e -EBUILD ibus-anthy-1.5.4.ebuild 1182 BLAKE2B 1282343549e7beee51401eb18b6b8487129ebcb74bbe117afbda6784004d68769686eb0a7d8ce3e5550b581999870d64bd6325d3c9fe4c98d5ffa6cf7b04d434 SHA512 c54533d4824c72a91aa0f69b79d6111765bf34503f4152ec55bd04cc64f19e56577d8c105b4030c8a4a64989b2ec7aec600058f2f1ca71a1af2fca83e879d449 -EBUILD ibus-anthy-1.5.9.ebuild 1227 BLAKE2B 85d321b5a17b322148ee72631a8d36ca360b3ff85a8422d3cf302b6935f92bf00d1139e19c2bfa690c4dfe5f37888bfd285b75ef7ced41819754ffe328bf52ea SHA512 02fbb1df813442121190cd495c2019d29d8119ca3b2852e22b81acfe3f6ac1890b1bf0a736b18f092430df3ddc4fa689ed38b3fafc013131a8f10ccdf2e51043 +EBUILD ibus-anthy-1.5.9.ebuild 1225 BLAKE2B 60341a7f797697006025b7f5d1488c6bf839042e30c5dc2c07f1b73c7e99d639d0d4d90017c6153675d958166cc37883931bcb86b3314c68f282fe39461f859e SHA512 55f267f26a55942fcfd96f3d5772188785e2dff48be09f8f898f16597a93e402e5ed364a3d031aef95c7c0345073a395b290475ef8521991bbdff15715e30609 MISC metadata.xml 476 BLAKE2B 33f4115e9bafa5d3f491ea05b8395123c9cb6b844959df2ee8b2cc9609b8fd20d25cc870adc117c9e96e17f215c806d82ff138b01c2b02e2e63eb99d568ea626 SHA512 024c387b5eb01279f8803df81b1d7dc2b86969ffee5986bef75987c066cce48f7d1fe8ea35790be4fafbff2281850f2b03904f41e06bc37fc9d40537eca96c07 diff --git a/app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild b/app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild deleted file mode 100644 index ab9be57eaba5..000000000000 --- a/app-i18n/ibus-anthy/ibus-anthy-1.5.4.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" -PYTHON_COMPAT=( python2_7 ) - -inherit gnome2-utils python-single-r1 - -DESCRIPTION="Japanese Anthy engine for IBus" -HOMEPAGE="https://github.com/ibus/ibus/wiki" -SRC_URI="https://github.com/ibus/${PN}/releases/download/${PV}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~ppc x86" -IUSE="nls" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -RDEPEND="${PYTHON_DEPS} - app-i18n/anthy - app-i18n/ibus[python(+),${PYTHON_USEDEP}] - dev-python/pygobject:3[${PYTHON_USEDEP}] - nls? ( virtual/libintl )" -DEPEND="${RDEPEND} - dev-util/intltool - virtual/pkgconfig - nls? ( sys-devel/gettext )" - -src_prepare() { - default - gnome2_environment_reset -} - -src_configure() { - econf \ - $(use_enable nls) \ - --enable-private-png \ - --with-layout=default -} - -src_install() { - default - find "${ED}" -name '*.la' -delete || die - - python_optimize -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - - if ! has_version app-dicts/kasumi; then - elog "app-dicts/kasumi is not required but probably useful for you." - fi -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild b/app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild index c644c89b3c7b..d87865637334 100644 --- a/app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild +++ b/app-i18n/ibus-anthy/ibus-anthy-1.5.9.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://github.com/ibus/${PN}/releases/download/${PV}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" +KEYWORDS="amd64 ~ppc x86" IUSE="nls" REQUIRED_USE="${PYTHON_REQUIRED_USE}" diff --git a/app-i18n/ibus-typing-booster/Manifest b/app-i18n/ibus-typing-booster/Manifest index 0c1bbafdea0c..9777607f15f8 100644 --- a/app-i18n/ibus-typing-booster/Manifest +++ b/app-i18n/ibus-typing-booster/Manifest @@ -1,5 +1,5 @@ -DIST ibus-typing-booster-1.5.32.tar.gz 5114796 BLAKE2B bc9d95b9f2da1cbb7eeb6fa07a528e29eae55a2283248bb0b94c09136571f9f29e4ad0af724f3fc621e2357c28efe97005b9d77365d6a349fbf5c17d6ee75a55 SHA512 0027d5b569577e3508a2af98c45929f63fea95369e6d502a42b3e3f61d28fb2c575ac42f5ae69c388d13a5740d35cbcda78ef01144679dc201bcbf384639290e DIST ibus-typing-booster-1.5.36.tar.gz 6413145 BLAKE2B e0948e81cc7002ee4eae8cb94da765dfba701e6b0872db85c5f847895be640292f78840ef19b9daf452c73a0b7d5c8385d6095f244d060d2cd0b8e1a7edd796a SHA512 f9aa7b226b31732e1bdb78172a60ac8de3b86a86669a6aea017469001cb509bc8c1c3799764ed265befdc058f920bf7022c70d431503ad4ef27cc20eb9fa0537 -EBUILD ibus-typing-booster-1.5.32.ebuild 860 BLAKE2B 7b813a51e80a378e694d3b9d6c3268e7d32d497d9fd62fa78f5239dbe1025dc79ccbfa958d2fdfc7e73be9dbe8bbb75efa29e4a12e41ec679b2efafd94a8e065 SHA512 fa03b6fb55e7505dd13e4aaf830444ea8f25c19089901528c4646611193f8002a0e860f09ba0bc5ca44c5e5cacbde1c3002220ee7e323239ca7c580c5216be2e +DIST ibus-typing-booster-1.5.38.tar.gz 6408096 BLAKE2B a4559044a4cd06c5dcf69d77d5ec3d8163d564702ff88d3ed11b8c073f5272e2cfab446de548a29887b74767f4318db98fb898dc4d15488fd4c9963cea151009 SHA512 67b81a47501ae4e885d2a79b122799b78dcdd044ad8e36a140d4c6587a23072d08e3e025f755c191cee82c3ab81ea1a974a5a0f6438e7203ba2d63d7e1cd4eff EBUILD ibus-typing-booster-1.5.36.ebuild 860 BLAKE2B 7b813a51e80a378e694d3b9d6c3268e7d32d497d9fd62fa78f5239dbe1025dc79ccbfa958d2fdfc7e73be9dbe8bbb75efa29e4a12e41ec679b2efafd94a8e065 SHA512 fa03b6fb55e7505dd13e4aaf830444ea8f25c19089901528c4646611193f8002a0e860f09ba0bc5ca44c5e5cacbde1c3002220ee7e323239ca7c580c5216be2e +EBUILD ibus-typing-booster-1.5.38.ebuild 860 BLAKE2B 7b813a51e80a378e694d3b9d6c3268e7d32d497d9fd62fa78f5239dbe1025dc79ccbfa958d2fdfc7e73be9dbe8bbb75efa29e4a12e41ec679b2efafd94a8e065 SHA512 fa03b6fb55e7505dd13e4aaf830444ea8f25c19089901528c4646611193f8002a0e860f09ba0bc5ca44c5e5cacbde1c3002220ee7e323239ca7c580c5216be2e MISC metadata.xml 331 BLAKE2B 85b93b548e9cbef93b09e59ebf23c10b1cb4c392bcb6aeeab697cdaa775afa06874b5a6965ab09ffd8c937a0842699cdb27ad70c6146d5c37b516d82a92c80b2 SHA512 e0524c2ebad138f51a5d79d639e809196029a83f46dc331c2bd21d94417d5adf8d059f15694b484f4fcb107dff2aba7d3ad4c87a19accaccf75429bfa2c92b63 diff --git a/app-i18n/ibus-typing-booster/ibus-typing-booster-1.5.32.ebuild b/app-i18n/ibus-typing-booster/ibus-typing-booster-1.5.32.ebuild deleted file mode 100644 index b4bb8048b30d..000000000000 --- a/app-i18n/ibus-typing-booster/ibus-typing-booster-1.5.32.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" -PYTHON_COMPAT=( python{3_4,3_5,3_6} ) -PYTHON_REQ_USE="sqlite(+)" - -inherit python-single-r1 - -DESCRIPTION="Completion input method for IBus" -HOMEPAGE="https://mike-fabian.github.io/ibus-typing-booster" -SRC_URI="https://github.com/mike-fabian/${PN}/releases/download/${PV}/${P}.tar.gz" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -RESTRICT="test" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -CDEPEND="${PYTHON_DEPS} - app-i18n/ibus[python(+),${PYTHON_USEDEP}] - dev-libs/m17n-lib - dev-python/dbus-python[${PYTHON_USEDEP}] - dev-python/pyenchant[${PYTHON_USEDEP}] - dev-python/pygobject:3[${PYTHON_USEDEP}] - dev-python/pyxdg[${PYTHON_USEDEP}]" -RDEPEND="${CDEPEND} - >=dev-db/m17n-db-1.7" -DEPEND="${RDEPEND} - sys-devel/gettext - virtual/pkgconfig" diff --git a/app-i18n/ibus-typing-booster/ibus-typing-booster-1.5.38.ebuild b/app-i18n/ibus-typing-booster/ibus-typing-booster-1.5.38.ebuild new file mode 100644 index 000000000000..b4bb8048b30d --- /dev/null +++ b/app-i18n/ibus-typing-booster/ibus-typing-booster-1.5.38.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +PYTHON_COMPAT=( python{3_4,3_5,3_6} ) +PYTHON_REQ_USE="sqlite(+)" + +inherit python-single-r1 + +DESCRIPTION="Completion input method for IBus" +HOMEPAGE="https://mike-fabian.github.io/ibus-typing-booster" +SRC_URI="https://github.com/mike-fabian/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +CDEPEND="${PYTHON_DEPS} + app-i18n/ibus[python(+),${PYTHON_USEDEP}] + dev-libs/m17n-lib + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pyenchant[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/pyxdg[${PYTHON_USEDEP}]" +RDEPEND="${CDEPEND} + >=dev-db/m17n-db-1.7" +DEPEND="${RDEPEND} + sys-devel/gettext + virtual/pkgconfig" diff --git a/app-i18n/poedit/Manifest b/app-i18n/poedit/Manifest index d3c16c2e58e5..7fed2b472343 100644 --- a/app-i18n/poedit/Manifest +++ b/app-i18n/poedit/Manifest @@ -1,5 +1,5 @@ -DIST poedit-1.8.5.tar.gz 2404829 BLAKE2B f39a7e2e14dab9c0ed0b761a3feb271c8eb0e3b1fdc09c77c6a3dfaaa499e3419881e0959f5a53b07754810adc1518efd4c56a1bb4fd490c1e2a405a7d44ef1c SHA512 87eae2bcedc07eefb097edf263db10b3947956cfa504eddb259e3c3cfed6215ad0da4517fe5132b61041c39a7fbabd298ca42582570295bacbbd62d5ffc6f6a7 DIST poedit-2.0.6.tar.gz 2511777 BLAKE2B f28e8940310e80ee15fc70f10492e061097f88b62938f8a85194170fd107100c739dbfd1c1cf12516e6fe3d2a9b282986a4368615cf8fcb2ac889075fe64cc6b SHA512 e7beceeb4cd9e4e0269666d634e48622f175a7788219288ba6349a5b15f8360a929018480372e3eecb664d7d2e3093d6788640651696323d6dda0f0780aa5cd2 -EBUILD poedit-1.8.5.ebuild 1732 BLAKE2B 98d5b0b8664ea95cc643f4c730a9a463b120f025f96d89d5b7f70a60008535805563f9a5354abb73169e507bd9dd4989b8c77312b4d6433e1619d31eea170115 SHA512 e2faeb9fbfa6a61171119d3b5adbfcc1df218c5d982ee4f930d48811a2c1810a641205937c0d882c627ffaf1b71d81fc029c9f77ee0ab5d8547caa747ee67497 +DIST poedit-2.0.7.tar.gz 2558220 BLAKE2B e4a958e516a5c4b56331b6f9f37d9fa627072a4a161f17b9e809df86af7ab86130c704b9f41d081a86dbc2dc3b24acf62615e843b73f78874c42730bd46f9b55 SHA512 7b8b41b5f55252b1845c452edbdad56dc841c507c4fb7a24267bd2af8490610f5f3eb72f31ed4d062fdaef939ef4ecd9c30ddc85a5dad3a792ac5857567dac71 EBUILD poedit-2.0.6.ebuild 1273 BLAKE2B 9f2a627317290fb4ac7acb8b80f29297ec20c2a8c31b8f38bf995f461e7518bc767d49fed66c5953d2dbe4ffbe5dd1c981189601aaed8516ce7059aa372f9f7c SHA512 97cbb993e0b2583277d2ba88accf36e4bcf4b113d95b87140d80b3c07b705a0f38eb85721b81e1aced2b27e24ec6905308a916d3caa6b2ab7ad494957adcc0a5 +EBUILD poedit-2.0.7.ebuild 1278 BLAKE2B 345e579a3447a333c4633cee6f1742f64082549aeef84dcbcb32407e219a7edd68aeef53d883ae6269a464b6e6a41cd124d6403fce8645c7f95c44a55da34ada SHA512 c1b7cddd4c5051e142bf1e663cf4df22543f16168ab4413fcba9a56ec9c1ef5ec507d462dd46e773bd92d89e1a9c51ebe0d9ed536cc4b111cfd6314f67993e84 MISC metadata.xml 391 BLAKE2B 9ad2108cfd16183f871c18a04008364439226a905d824253b50e0f4d91ea437a915d2d83164bfcd6a7a2733fbd5db1291b9ef59f86736e5716509ea8b3575c02 SHA512 703b2a9a442d99d59f033561093bc9027cd52c0a98eb1e0cc253c3fcfbcf1987fac8c244061edfe87ea84dde192fe098ed02c6b1cdc3bb6754f42a72ac2ddd3f diff --git a/app-i18n/poedit/poedit-1.8.5.ebuild b/app-i18n/poedit/poedit-1.8.5.ebuild deleted file mode 100644 index 7cce16eeb1cc..000000000000 --- a/app-i18n/poedit/poedit-1.8.5.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -WX_GTK_VER=3.0 - -PLOCALES="af am an ar ast az be@latin be bg bn br bs ca ca@valencia ckb co cs da de el en_GB eo es et eu fa fi fr fur fy_NL ga gl he hi hr hu hy id is it ja kab ka kk ko ku ky lt lv mk mn mr ms nb ne nl nn oc pa pl pt_BR pt_PT ro ru sk sl sq sr sv ta tg th tr tt ug uk ur uz vi wa zh_CN zh_TW" - -inherit eutils flag-o-matic gnome2-utils l10n wxwidgets xdg-utils - -DESCRIPTION="GUI editor for gettext translations files" -HOMEPAGE="https://poedit.net" -SRC_URI="https://github.com/vslavik/${PN}/releases/download/v${PV}-oss/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 hppa ppc ppc64 sparc x86" -IUSE="" - -# db/expat req for legacytm (backwards support for pre 1.6) -# we currently have 1.5.5 in stable so this is enabled -RDEPEND=" - app-text/gtkspell:2 - dev-cpp/lucene++ - dev-libs/boost:=[nls] - dev-libs/expat - dev-libs/icu:= - || ( - =sys-libs/db-5*:*[cxx] - =sys-libs/db-4*:*[cxx] - ) - Cjk - 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. - + 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. + - Enable support for app-i18n/anthy input method - + Enable support for app-i18n/anthy Enable support for dev-libs/eb - Enable support for x11-libs/gtk+:3 + Enable support for x11-libs/gtk+:2 Enable support for app-i18n/skk-jisyo diff --git a/app-i18n/uim/uim-1.8.6-r1.ebuild b/app-i18n/uim/uim-1.8.6-r1.ebuild index f72b7d26bba5..84c5fa527ebd 100644 --- a/app-i18n/uim/uim-1.8.6-r1.ebuild +++ b/app-i18n/uim/uim-1.8.6-r1.ebuild @@ -1,150 +1,150 @@ # Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI="5" -inherit autotools eutils multilib elisp-common gnome2-utils +EAPI="6" -DESCRIPTION="Simple, secure and flexible input method library" -HOMEPAGE="https://github.com/uim/uim/" -SRC_URI="https://uim.googlecode.com/files/${P}.tar.bz2" +inherit autotools elisp-common gnome2-utils + +DESCRIPTION="A multilingual input method framework" +HOMEPAGE="https://github.com/uim/uim" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.bz2" LICENSE="BSD GPL-2 LGPL-2.1" SLOT="0" KEYWORDS="amd64 ~arm hppa ppc ppc64 x86" -IUSE="+anthy canna curl eb emacs expat libffi gtk gtk3 libedit libnotify m17n-lib ncurses nls qt4 skk sqlite ssl static-libs test unicode X xft l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW" - +IUSE="X +anthy canna curl eb emacs expat libffi gtk gtk2 l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW libedit libnotify m17n-lib ncurses nls qt4 skk sqlite ssl static-libs xft" RESTRICT="test" +REQUIRED_USE="gtk? ( X ) + gtk2? ( X ) + qt4? ( X ) + xft? ( X )" -REQUIRED_USE="gtk? ( X ) qt4? ( X )" - -RDEPEND="X? ( - x11-libs/libX11 - x11-libs/libXft - x11-libs/libXt +CDEPEND="!dev-scheme/sigscheme + X? ( x11-libs/libICE x11-libs/libSM + x11-libs/libX11 x11-libs/libXext + x11-libs/libXft x11-libs/libXrender + x11-libs/libXt ) - anthy? ( - unicode? ( >=app-i18n/anthy-8622 ) - !unicode? ( app-i18n/anthy ) - ) + anthy? ( app-i18n/anthy ) canna? ( app-i18n/canna ) - curl? ( >=net-misc/curl-7.16.4 ) + curl? ( net-misc/curl ) 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 ) + gtk? ( x11-libs/gtk+:3 ) + gtk2? ( x11-libs/gtk+:2 ) libedit? ( dev-libs/libedit ) - libnotify? ( >=x11-libs/libnotify-0.4 ) - m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 ) + libnotify? ( x11-libs/libnotify ) + m17n-lib? ( dev-libs/m17n-lib ) ncurses? ( sys-libs/ncurses:0= ) nls? ( virtual/libintl ) qt4? ( dev-qt/qtgui:4[qt3support] ) skk? ( app-i18n/skk-jisyo ) sqlite? ( dev-db/sqlite:3 ) - ssl? ( dev-libs/openssl:0 ) - !dev-scheme/sigscheme" -# scim? ( >=app-i18n/scim-1.3.0 ) # broken -# wnn? ( app-i18n/wnn ) - -DEPEND="${RDEPEND} + ssl? ( dev-libs/openssl:0 )" +DEPEND="${CDEPEND} dev-util/intltool + sys-devel/gettext virtual/pkgconfig - >=sys-devel/gettext-0.15 X? ( x11-base/xorg-proto )" - -RDEPEND="${RDEPEND} +RDEPEND="${CDEPEND} X? ( media-fonts/font-sony-misc - l10n_ja? ( || ( media-fonts/font-jis-misc media-fonts/intlfonts ) ) - l10n_ko? ( || ( media-fonts/font-daewoo-misc media-fonts/intlfonts ) ) - l10n_zh-CN? ( || ( media-fonts/font-isas-misc media-fonts/intlfonts ) ) + l10n_ja? ( + || ( + media-fonts/font-jis-misc + media-fonts/intlfonts + ) + ) + l10n_ko? ( + || ( + media-fonts/font-daewoo-misc + media-fonts/intlfonts + ) + ) + l10n_zh-CN? ( + || ( + media-fonts/font-isas-misc + media-fonts/intlfonts + ) + ) l10n_zh-TW? ( media-fonts/intlfonts ) )" -# test? ( dev-scheme/gauche ) -SITEFILE=50${PN}-gentoo.el +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-tinfo.patch + "${FILESDIR}"/${PN}-zh-TW.patch +) +DOCS=( AUTHORS NEWS README RELNOTE ) -pkg_setup() { - strip-linguas fr ja ko - if [[ -z "${LINGUAS}" ]]; then - # no linguas set, using the default one - LINGUAS=" " - fi -} +AT_NO_RECURSIVE="yes" +SITEFILE="50${PN}-gentoo.el" 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!" + default + sed -i "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac - AT_NO_RECURSIVE=1 eautoreconf + eautoreconf } src_configure() { - local myconf + local myconf=( + $(use_with X x) + $(use_with anthy anthy-utf8) + $(use_with canna) + $(use_with curl) + $(use_with eb) + $(use_enable emacs) + $(use_with emacs lispdir "${SITELISP}") + $(use_with expat) + $(use_with libedit) + $(use_with libffi ffi) + $(use_with gtk gtk3) + $(use_with gtk2) + $(use_with m17n-lib m17nlib) + $(use_enable ncurses fep) + $(use_enable nls) + $(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) + --without-anthy + --enable-default-toolkit=$(usex gtk gtk3 $(usex gtk2 gtk $(usex qt4 qt4))) + --disable-gnome-applet + --disable-gnome3-applet + --disable-kde-applet + --disable-kde4-applet + --without-mana + --without-prime + ) - if (use gtk || use gtk3) && (use anthy || use canna) ; then - myconf="${myconf} --enable-dict" + if (use gtk || use gtk2) && (use anthy || use canna); then + myconf+=( --enable-dict ) else - myconf="${myconf} --disable-dict" + myconf+=( --disable-dict ) fi - if use gtk || use gtk3 || use qt4 ; then - myconf="${myconf} --enable-pref" - else - myconf="${myconf} --disable-pref" + if use libnotify; then + myconf+=( --enable-notify=libnotify ) fi - if use anthy ; then - if use unicode ; then - myconf="${myconf} --with-anthy-utf8" - else - myconf="${myconf} --with-anthy" - fi + if use gtk || use gtk2 || use qt4; then + myconf+=( --enable-pref ) else - myconf="${myconf} --without-anthy" + myconf+=( --disable-pref ) 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 \ - --disable-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} + econf "${myconf[@]}" } src_compile() { @@ -152,36 +152,31 @@ src_compile() { if use emacs; then cd emacs - elisp-compile *.el || die "elisp-compile failed!" + elisp-compile *.el || die 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 + # bug #222677 + emake -j1 DESTDIR="${D}" install + einstalldocs - find "${ED}/usr/$(get_libdir)/uim" -name '*.la' -exec rm {} + - use static-libs || find "${ED}" -name '*.la' -exec rm {} + + find "${ED}"/usr/$(get_libdir)/${PN} -name '*.la' -delete || die + use static-libs || find "${ED}" -name '*.la' -delete || die - sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-uim" > "${T}/uim.conf" || die "sed failed!" insinto /etc/X11/xinit/xinput.d - doins "${T}/uim.conf" + sed \ + -e "s:@EPREFIX@:${EPREFIX}:g" \ + "${FILESDIR}"/xinput-${PN} > "${T}"/${PN}.conf + doins "${T}"/${PN}.conf - # collision with dev-scheme/sigscheme, bug #330975 - # find "${ED}" -name '*gcroots*' -delete || die - - #rmdir "${ED}"/usr/share/doc/sigscheme || die + if use emacs; then + elisp-install ${PN}-el emacs/*.el{,c} + elisp-site-file-install "${FILESDIR}"/${SITEFILE} ${PN}-el + fi } 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" @@ -194,12 +189,7 @@ pkg_postinst() { 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 @@ -209,10 +199,12 @@ pkg_postinst() { elog "Integration with LEIM is not done with this ebuild, please have" elog "a look at the documentation how to achieve this." fi + use gtk && gnome2_query_immodules_gtk3 + use gtk2 && gnome2_query_immodules_gtk2 } pkg_postrm() { - use gtk && gnome2_query_immodules_gtk2 - use gtk3 && gnome2_query_immodules_gtk3 use emacs && elisp-site-regen + use gtk && gnome2_query_immodules_gtk3 + use gtk2 && gnome2_query_immodules_gtk2 } diff --git a/app-i18n/uim/uim-1.8.6-r2.ebuild b/app-i18n/uim/uim-1.8.6-r2.ebuild index cac96b004b75..ccec49f28693 100644 --- a/app-i18n/uim/uim-1.8.6-r2.ebuild +++ b/app-i18n/uim/uim-1.8.6-r2.ebuild @@ -1,46 +1,46 @@ # Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI="5" -inherit autotools eutils multilib elisp-common gnome2-utils +EAPI="6" -DESCRIPTION="Simple, secure and flexible input method library" -HOMEPAGE="https://github.com/uim/uim/" -SRC_URI="https://uim.googlecode.com/files/${P}.tar.bz2" +inherit autotools elisp-common gnome2-utils + +DESCRIPTION="A multilingual input method framework" +HOMEPAGE="https://github.com/uim/uim" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.bz2" LICENSE="BSD GPL-2 LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" -IUSE="+anthy canna curl eb emacs expat libffi gtk gtk3 libedit libnotify libressl m17n-lib ncurses nls qt4 skk sqlite ssl static-libs test unicode X xft l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW" - +IUSE="X +anthy canna curl eb emacs expat libffi gtk gtk2 l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW libedit libnotify libressl m17n-lib ncurses nls qt4 skk sqlite ssl static-libs xft" RESTRICT="test" +REQUIRED_USE="gtk? ( X ) + gtk2? ( X ) + qt4? ( X ) + xft? ( X )" -REQUIRED_USE="gtk? ( X ) qt4? ( X )" - -RDEPEND="X? ( - x11-libs/libX11 - x11-libs/libXft - x11-libs/libXt +CDEPEND="!dev-scheme/sigscheme + X? ( x11-libs/libICE x11-libs/libSM + x11-libs/libX11 x11-libs/libXext + x11-libs/libXft x11-libs/libXrender + x11-libs/libXt ) - anthy? ( - unicode? ( >=app-i18n/anthy-8622 ) - !unicode? ( app-i18n/anthy ) - ) + anthy? ( app-i18n/anthy ) canna? ( app-i18n/canna ) - curl? ( >=net-misc/curl-7.16.4 ) + curl? ( net-misc/curl ) 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 ) + gtk? ( x11-libs/gtk+:3 ) + gtk2? ( x11-libs/gtk+:2 ) libedit? ( dev-libs/libedit ) - libnotify? ( >=x11-libs/libnotify-0.4 ) - m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 ) + libnotify? ( x11-libs/libnotify ) + m17n-lib? ( dev-libs/m17n-lib ) ncurses? ( sys-libs/ncurses:0= ) nls? ( virtual/libintl ) qt4? ( dev-qt/qtgui:4[qt3support] ) @@ -49,106 +49,106 @@ RDEPEND="X? ( ssl? ( !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:0= ) - ) - !dev-scheme/sigscheme" -# scim? ( >=app-i18n/scim-1.3.0 ) # broken -# wnn? ( app-i18n/wnn ) - -DEPEND="${RDEPEND} + )" +DEPEND="${CDEPEND} dev-util/intltool + sys-devel/gettext virtual/pkgconfig - >=sys-devel/gettext-0.15 X? ( x11-base/xorg-proto )" - -RDEPEND="${RDEPEND} +RDEPEND="${CDEPEND} X? ( media-fonts/font-sony-misc - l10n_ja? ( || ( media-fonts/font-jis-misc media-fonts/intlfonts ) ) - l10n_ko? ( || ( media-fonts/font-daewoo-misc media-fonts/intlfonts ) ) - l10n_zh-CN? ( || ( media-fonts/font-isas-misc media-fonts/intlfonts ) ) + l10n_ja? ( + || ( + media-fonts/font-jis-misc + media-fonts/intlfonts + ) + ) + l10n_ko? ( + || ( + media-fonts/font-daewoo-misc + media-fonts/intlfonts + ) + ) + l10n_zh-CN? ( + || ( + media-fonts/font-isas-misc + media-fonts/intlfonts + ) + ) l10n_zh-TW? ( media-fonts/intlfonts ) )" -# test? ( dev-scheme/gauche ) -SITEFILE=50${PN}-gentoo.el +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-libressl.patch + "${FILESDIR}"/${P}-tinfo.patch + "${FILESDIR}"/${PN}-zh-TW.patch +) +DOCS=( AUTHORS NEWS README RELNOTE ) -pkg_setup() { - strip-linguas fr ja ko - if [[ -z "${LINGUAS}" ]]; then - # no linguas set, using the default one - LINGUAS=" " - fi -} +AT_NO_RECURSIVE="yes" +SITEFILE="50${PN}-gentoo.el" src_prepare() { - epatch \ - "${FILESDIR}"/${PN}-1.6.0-gentoo.patch \ - "${FILESDIR}"/${PN}-1.5.4-zhTW.patch \ - "${FILESDIR}"/${P}-libressl.patch - - # bug 275420 - sed -i -e "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac || die "sed failed!" + default + sed -i "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac - AT_NO_RECURSIVE=1 eautoreconf + eautoreconf } src_configure() { - local myconf + local myconf=( + $(use_with X x) + $(use_with anthy anthy-utf8) + $(use_with canna) + $(use_with curl) + $(use_with eb) + $(use_enable emacs) + $(use_with emacs lispdir "${SITELISP}") + $(use_with expat) + $(use_with libedit) + $(use_with libffi ffi) + $(use_with gtk gtk3) + $(use_with gtk2) + $(use_with m17n-lib m17nlib) + $(use_enable ncurses fep) + $(use_enable nls) + $(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) + --without-anthy + --enable-default-toolkit=$(usex gtk gtk3 $(usex gtk2 gtk $(usex qt4 qt4))) + --disable-gnome-applet + --disable-gnome3-applet + --disable-kde-applet + --disable-kde4-applet + --without-mana + --without-prime + ) - if (use gtk || use gtk3) && (use anthy || use canna) ; then - myconf="${myconf} --enable-dict" + if (use gtk || use gtk2) && (use anthy || use canna); then + myconf+=( --enable-dict ) else - myconf="${myconf} --disable-dict" + myconf+=( --disable-dict ) fi - if use gtk || use gtk3 || use qt4 ; then - myconf="${myconf} --enable-pref" - else - myconf="${myconf} --disable-pref" + if use libnotify; then + myconf+=( --enable-notify=libnotify ) fi - if use anthy ; then - if use unicode ; then - myconf="${myconf} --with-anthy-utf8" - else - myconf="${myconf} --with-anthy" - fi + if use gtk || use gtk2 || use qt4; then + myconf+=( --enable-pref ) else - myconf="${myconf} --without-anthy" - fi - - if use libnotify ; then - myconf="${myconf} --enable-notify=libnotify" + myconf+=( --disable-pref ) 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 \ - --disable-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} + econf "${myconf[@]}" } src_compile() { @@ -156,36 +156,31 @@ src_compile() { if use emacs; then cd emacs - elisp-compile *.el || die "elisp-compile failed!" + elisp-compile *.el || die fi } src_install() { - # parallel make install b0rked, bug #222677 - emake -j1 INSTALL_ROOT="${D}" DESTDIR="${D}" install + # bug #222677 + emake -j1 DESTDIR="${D}" install + einstalldocs - 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 {} + + find "${ED}"/usr/$(get_libdir)/${PN} -name '*.la' -delete || die + use static-libs || find "${ED}" -name '*.la' -delete || die - sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-uim" > "${T}/uim.conf" || die "sed failed!" insinto /etc/X11/xinit/xinput.d - doins "${T}/uim.conf" + sed \ + -e "s:@EPREFIX@:${EPREFIX}:g" \ + "${FILESDIR}"/xinput-${PN} > "${T}"/${PN}.conf + doins "${T}"/${PN}.conf - # collision with dev-scheme/sigscheme, bug #330975 - # find "${ED}" -name '*gcroots*' -delete || die - - #rmdir "${ED}"/usr/share/doc/sigscheme || die + if use emacs; then + elisp-install ${PN}-el emacs/*.el{,c} + elisp-site-file-install "${FILESDIR}"/${SITEFILE} ${PN}-el + fi } 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" @@ -198,12 +193,7 @@ pkg_postinst() { 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 @@ -213,10 +203,12 @@ pkg_postinst() { elog "Integration with LEIM is not done with this ebuild, please have" elog "a look at the documentation how to achieve this." fi + use gtk && gnome2_query_immodules_gtk3 + use gtk2 && gnome2_query_immodules_gtk2 } pkg_postrm() { - use gtk && gnome2_query_immodules_gtk2 - use gtk3 && gnome2_query_immodules_gtk3 use emacs && elisp-site-regen + use gtk && gnome2_query_immodules_gtk3 + use gtk2 && gnome2_query_immodules_gtk2 } diff --git a/app-i18n/uim/uim-1.8.8.ebuild b/app-i18n/uim/uim-1.8.8.ebuild new file mode 100644 index 000000000000..b77ac271174f --- /dev/null +++ b/app-i18n/uim/uim-1.8.8.ebuild @@ -0,0 +1,226 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools elisp-common gnome2-utils + +DESCRIPTION="A multilingual input method framework" +HOMEPAGE="https://github.com/uim/uim" +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.bz2" + +LICENSE="BSD GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86" +IUSE="X +anthy canna curl eb emacs expat libffi gtk gtk2 l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW libedit libnotify libressl m17n-lib ncurses nls qt5 skk sqlite ssl static-libs xft" +RESTRICT="test" +REQUIRED_USE="gtk? ( X ) + gtk2? ( X ) + qt5? ( X ) + xft? ( X )" + +CDEPEND="!dev-scheme/sigscheme + X? ( + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXft + x11-libs/libXrender + x11-libs/libXt + ) + anthy? ( app-i18n/anthy ) + canna? ( app-i18n/canna ) + curl? ( net-misc/curl ) + eb? ( dev-libs/eb ) + emacs? ( virtual/emacs ) + expat? ( dev-libs/expat ) + libffi? ( virtual/libffi ) + gtk? ( x11-libs/gtk+:3 ) + gtk2? ( x11-libs/gtk+:2 ) + libedit? ( dev-libs/libedit ) + libnotify? ( x11-libs/libnotify ) + m17n-lib? ( dev-libs/m17n-lib ) + ncurses? ( sys-libs/ncurses:0= ) + nls? ( virtual/libintl ) + qt5? ( dev-qt/qtx11extras:5 ) + skk? ( app-i18n/skk-jisyo ) + sqlite? ( dev-db/sqlite:3 ) + ssl? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + )" +DEPEND="${CDEPEND} + dev-util/intltool + sys-devel/gettext + virtual/pkgconfig + X? ( x11-base/xorg-proto )" +RDEPEND="${CDEPEND} + X? ( + media-fonts/font-sony-misc + l10n_ja? ( + || ( + media-fonts/font-jis-misc + media-fonts/intlfonts + ) + ) + l10n_ko? ( + || ( + media-fonts/font-daewoo-misc + media-fonts/intlfonts + ) + ) + l10n_zh-CN? ( + || ( + media-fonts/font-isas-misc + media-fonts/intlfonts + ) + ) + l10n_zh-TW? ( media-fonts/intlfonts ) + )" + +PATCHES=( + "${FILESDIR}"/${PN}-gentoo.patch + "${FILESDIR}"/${PN}-tinfo.patch + "${FILESDIR}"/${PN}-zh-TW.patch +) +DOCS=( AUTHORS NEWS README RELNOTE doc ) + +AT_NO_RECURSIVE="yes" +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + default + sed -i "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac + + eautoreconf +} + +src_configure() { + local myconf=( + $(use_with X x) + $(use_with anthy anthy-utf8) + $(use_with canna) + $(use_with curl) + $(use_with eb) + $(use_enable emacs) + $(use_with emacs lispdir "${SITELISP}") + $(use_with expat) + $(use_with libedit) + $(use_with libffi ffi) + $(use_with gtk gtk3) + $(use_with gtk2) + $(use_with m17n-lib m17nlib) + $(use_enable ncurses fep) + $(use_enable nls) + $(use_with qt5) + $(use_with qt5 qt5-immodule) + $(use_with skk) + $(use_with sqlite sqlite3) + $(use_enable ssl openssl) + $(use_enable static-libs static) + $(use_with xft) + --without-anthy + --enable-default-toolkit=$(usex gtk gtk3 $(usex gtk2 gtk $(usex qt5 qt5))) + --disable-gnome-applet + --disable-gnome3-applet + --disable-kde-applet + --disable-kde4-applet + --without-mana + --without-prime + --disable-qt4-qt3support + ) + + if (use gtk || use gtk2) && (use anthy || use canna); then + myconf+=( --enable-dict ) + else + myconf+=( --disable-dict ) + fi + + if use libnotify; then + myconf+=( --enable-notify=libnotify ) + fi + + if use gtk || use gtk2 || use qt5; then + myconf+=( --enable-pref ) + else + myconf+=( --disable-pref ) + fi + + econf "${myconf[@]}" +} + +src_compile() { + default + + if use emacs; then + cd emacs + elisp-compile *.el || die + fi +} + +src_install() { + # bug #222677 + emake -j1 DESTDIR="${D}" install + rm -f doc/Makefile* + einstalldocs + + find "${ED}"/usr/$(get_libdir)/${PN} -name '*.la' -delete || die + use static-libs || find "${ED}" -name '*.la' -delete || die + + insinto /etc/X11/xinit/xinput.d + sed \ + -e "s:@EPREFIX@:${EPREFIX}:g" \ + "${FILESDIR}"/xinput-${PN} > "${T}"/${PN}.conf + doins "${T}"/${PN}.conf + + if use X; then + docinto xim + dodoc xim/README* + fi + + if use emacs; then + elisp-install ${PN}-el emacs/*.el{,c} + elisp-site-file-install "${FILESDIR}"/${SITEFILE} ${PN}-el + docinto emacs + dodoc emacs/README* + fi + + if use ncurses; then + docinto fep + dodoc fep/README* + fi +} + +pkg_postinst() { + 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-qt5." + + 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 + use gtk && gnome2_query_immodules_gtk3 + use gtk2 && gnome2_query_immodules_gtk2 +} + +pkg_postrm() { + use emacs && elisp-site-regen + use gtk && gnome2_query_immodules_gtk3 + use gtk2 && gnome2_query_immodules_gtk2 +} -- cgit v1.2.3