diff options
author | 2012-02-24 01:49:21 +0000 | |
---|---|---|
committer | 2012-02-24 01:49:21 +0000 | |
commit | be5b2c095cc2bdcf6400cd47dc0abfac9001afe5 (patch) | |
tree | 92893f06bb06cb50bb1844f7141f00510c4c5fc5 /app-i18n/fcitx | |
parent | Restricting pypy (diff) | |
download | gentoo-2-be5b2c095cc2bdcf6400cd47dc0abfac9001afe5.tar.gz gentoo-2-be5b2c095cc2bdcf6400cd47dc0abfac9001afe5.tar.bz2 gentoo-2-be5b2c095cc2bdcf6400cd47dc0abfac9001afe5.zip |
Revision bump wrt bug 405459
(Portage version: 2.1.10.48/cvs/Linux x86_64)
Diffstat (limited to 'app-i18n/fcitx')
-rw-r--r-- | app-i18n/fcitx/ChangeLog | 9 | ||||
-rw-r--r-- | app-i18n/fcitx/fcitx-4.1.2-r1.ebuild (renamed from app-i18n/fcitx/fcitx-4.1.2.ebuild) | 34 | ||||
-rw-r--r-- | app-i18n/fcitx/fcitx-4.2.0-r1.ebuild (renamed from app-i18n/fcitx/fcitx-4.2.0.ebuild) | 34 |
3 files changed, 62 insertions, 15 deletions
diff --git a/app-i18n/fcitx/ChangeLog b/app-i18n/fcitx/ChangeLog index 7cb1dc7cd52a..fdca5d832367 100644 --- a/app-i18n/fcitx/ChangeLog +++ b/app-i18n/fcitx/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-i18n/fcitx # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx/ChangeLog,v 1.37 2012/02/20 07:58:31 qiaomuf Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx/ChangeLog,v 1.38 2012/02/24 01:49:21 qiaomuf Exp $ + +*fcitx-4.2.0-r1 (24 Feb 2012) +*fcitx-4.1.2-r1 (24 Feb 2012) + + 24 Feb 2012; Mu Qiao <qiaomuf@gentoo.org> -fcitx-4.1.2.ebuild, + +fcitx-4.1.2-r1.ebuild, -fcitx-4.2.0.ebuild, +fcitx-4.2.0-r1.ebuild: + Revision bump wrt bug 405459 *fcitx-4.2.0 (20 Feb 2012) diff --git a/app-i18n/fcitx/fcitx-4.1.2.ebuild b/app-i18n/fcitx/fcitx-4.1.2-r1.ebuild index c55d8f54e68b..b5decad78fbe 100644 --- a/app-i18n/fcitx/fcitx-4.1.2.ebuild +++ b/app-i18n/fcitx/fcitx-4.1.2-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx/fcitx-4.1.2.ebuild,v 1.2 2012/02/20 02:23:28 qiaomuf Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx/fcitx-4.1.2-r1.ebuild,v 1.1 2012/02/24 01:49:21 qiaomuf Exp $ EAPI="3" @@ -28,6 +28,25 @@ DEPEND="${RDEPEND} x11-proto/xproto dev-util/pkgconfig" +update_gtk_immodules() { + local GTK2_CONFDIR="/etc/gtk-2.0" + # bug #366889 + if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then + GTK2_CONFDIR="${GTK2_CONFDIR}/$(get_abi_CHOST)" + fi + mkdir -p "${EPREFIX}${GTK2_CONFDIR}" + + if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then + "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${EPREFIX}${GTK2_CONFDIR}/gtk.immodules" + fi +} + +update_gtk3_immodules() { + if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" ] ; then + "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" --update-cache + fi +} + src_configure() { local mycmakeargs=" $(cmake-utils_use_enable cairo) @@ -51,16 +70,17 @@ src_install() { } pkg_postinst() { + use gtk && update_gtk_immodules + use gtk3 && update_gtk3_immodules elog elog "You should export the following variables to use fcitx" elog " export XMODIFIERS=\"@im=fcitx\"" elog " export XIM=fcitx" elog " export XIM_PROGRAM=fcitx" elog - elog "If you want to use WuBi ,ErBi or something else." - elog " mkdir -p ~/.fcitx" - elog " cp /usr/share/fcitx/data/wbx.mb ~/.fcitx" - elog " cp /usr/share/fcitx/data/erbi.mb ~/.fcitx" - elog " cp /usr/share/fcitx/data/tables.conf ~/.fcitx" - elog +} + +pkg_postrm() { + use gtk && update_gtk_immodules + use gtk3 && update_gtk3_immodules } diff --git a/app-i18n/fcitx/fcitx-4.2.0.ebuild b/app-i18n/fcitx/fcitx-4.2.0-r1.ebuild index 3175c7b9e284..b54c9996da34 100644 --- a/app-i18n/fcitx/fcitx-4.2.0.ebuild +++ b/app-i18n/fcitx/fcitx-4.2.0-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx/fcitx-4.2.0.ebuild,v 1.1 2012/02/20 07:58:31 qiaomuf Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-i18n/fcitx/fcitx-4.2.0-r1.ebuild,v 1.1 2012/02/24 01:49:21 qiaomuf Exp $ EAPI="3" @@ -28,6 +28,25 @@ DEPEND="${RDEPEND} x11-proto/xproto dev-util/pkgconfig" +update_gtk_immodules() { + local GTK2_CONFDIR="/etc/gtk-2.0" + # bug #366889 + if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then + GTK2_CONFDIR="${GTK2_CONFDIR}/$(get_abi_CHOST)" + fi + mkdir -p "${EPREFIX}${GTK2_CONFDIR}" + + if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then + "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${EPREFIX}${GTK2_CONFDIR}/gtk.immodules" + fi +} + +update_gtk3_immodules() { + if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" ] ; then + "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" --update-cache + fi +} + src_configure() { local mycmakeargs=" $(cmake-utils_use_enable cairo) @@ -51,16 +70,17 @@ src_install() { } pkg_postinst() { + use gtk && update_gtk_immodules + use gtk3 && update_gtk3_immodules elog elog "You should export the following variables to use fcitx" elog " export XMODIFIERS=\"@im=fcitx\"" elog " export XIM=fcitx" elog " export XIM_PROGRAM=fcitx" elog - elog "If you want to use WuBi ,ErBi or something else." - elog " mkdir -p ~/.fcitx" - elog " cp /usr/share/fcitx/data/wbx.mb ~/.fcitx" - elog " cp /usr/share/fcitx/data/erbi.mb ~/.fcitx" - elog " cp /usr/share/fcitx/data/tables.conf ~/.fcitx" - elog +} + +pkg_postrm() { + use gtk && update_gtk_immodules + use gtk3 && update_gtk3_immodules } |