Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-i18n/ibus: ChangeLog ibus-1.1.0.20090423.ebuild
Date: Thu, 23 Apr 2009 14:02:14
Message-Id: E1LwzVE-00043a-At@stork.gentoo.org
1 matsuu 09/04/23 14:02:12
2
3 Modified: ChangeLog
4 Added: ibus-1.1.0.20090423.ebuild
5 Log:
6 Version bumped.
7 (Portage version: 2.1.6.11/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.28 app-i18n/ibus/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/ibus/ChangeLog?rev=1.28&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/ibus/ChangeLog?rev=1.28&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/ibus/ChangeLog?r1=1.27&r2=1.28
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-i18n/ibus/ChangeLog,v
19 retrieving revision 1.27
20 retrieving revision 1.28
21 diff -u -r1.27 -r1.28
22 --- ChangeLog 13 Apr 2009 15:40:03 -0000 1.27
23 +++ ChangeLog 23 Apr 2009 14:02:12 -0000 1.28
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-i18n/ibus
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ChangeLog,v 1.27 2009/04/13 15:40:03 matsuu Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ChangeLog,v 1.28 2009/04/23 14:02:12 matsuu Exp $
29 +
30 +*ibus-1.1.0.20090423 (23 Apr 2009)
31 +
32 + 23 Apr 2009; MATSUU Takuto <matsuu@g.o>
33 + +ibus-1.1.0.20090423.ebuild:
34 + Version bumped.
35
36 *ibus-1.1.0.20090413 (13 Apr 2009)
37
38
39
40
41 1.1 app-i18n/ibus/ibus-1.1.0.20090423.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/ibus/ibus-1.1.0.20090423.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/ibus/ibus-1.1.0.20090423.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ibus-1.1.0.20090423.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ibus-1.1.0.20090423.ebuild,v 1.1 2009/04/23 14:02:12 matsuu Exp $
51
52 EAPI="1"
53 inherit autotools eutils multilib python
54
55 DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
56 HOMEPAGE="http://code.google.com/p/ibus/"
57 SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
58
59 LICENSE="LGPL-2.1"
60 SLOT="0"
61 KEYWORDS="~amd64 ~x86"
62 #IUSE="doc nls qt4"
63 IUSE="doc nls"
64
65 RDEPEND=">=dev-libs/glib-2.18
66 >=x11-libs/gtk+-2
67 >=gnome-base/gconf-2.12
68 >=gnome-base/librsvg-2
69 sys-apps/dbus
70 app-text/iso-codes
71 x11-libs/libX11
72 >=dev-lang/python-2.5
73 >=dev-python/pygobject-2.14
74 nls? ( virtual/libintl )"
75 DEPEND="${RDEPEND}
76 dev-util/pkgconfig
77 doc? ( >=dev-util/gtk-doc-1.9 )
78 nls? ( >=sys-devel/gettext-0.16.1 )"
79 RDEPEND="${RDEPEND}
80 dev-python/pygtk
81 >=dev-python/dbus-python-0.83
82 dev-python/pyxdg
83 x11-misc/notification-daemon"
84 # qt4? (
85 # >=x11-libs/qt-core-4.4:4
86 # >=x11-libs/qt-dbus-4.4:4
87 # )
88
89 pkg_setup() {
90 # An arch specific config directory is used on multilib systems
91 has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}"
92 GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0/}
93 }
94
95 src_unpack() {
96 unpack ${A}
97 cd "${S}"
98 mv py-compile py-compile.orig || die
99 ln -s "$(type -P true)" py-compile || die
100 sed -i -e '/QMAKE/s/$/ "CONFIG+=nostrip"/' client/qt4/Makefile.am || die
101 eautoreconf
102 }
103
104 src_compile() {
105 # qt4-immodule won't work
106 # http://code.google.com/p/ibus/issues/detail?id=341
107 econf \
108 $(use_enable doc gtk-doc) \
109 $(use_enable nls) || die
110 # $(use_enable qt4 qt4-immodule)
111 emake || die
112 }
113
114 src_install() {
115 emake DESTDIR="${D}" install || die
116
117 dodoc AUTHORS ChangeLog NEWS README
118 }
119
120 pkg_postinst() {
121 local qt_im_module="xim"
122 # use qt4 && qt_im_module="ibus"
123
124 elog "To use ibus, you should:"
125 elog "1. Get input engines from sunrise overlay."
126 elog " Run \"emerge -s ibus-\" in your favorite terminal"
127 elog " for a list of packages we already have."
128 elog
129 elog "2. Setup ibus:"
130 elog
131 elog " $ ibus-setup"
132 elog
133 elog "3. Set the following in your user startup scripts"
134 elog " such as .xinitrc, .xsession or .xprofile:"
135 elog
136 elog " export XMODIFIERS=\"@im=ibus\""
137 elog " export GTK_IM_MODULE=\"ibus\""
138 elog " export QT_IM_MODULE=\"${qt_im_module}\""
139 elog " ibus-daemon -d -x"
140
141 [ "${ROOT}" = "/" -a -x /usr/bin/gtk-query-immodules-2.0 ] && \
142 gtk-query-immodules-2.0 > "${ROOT}/${GTK2_CONFDIR}/gtk.immodules"
143
144 python_mod_optimize /usr/share/${PN}
145 }
146
147 pkg_postrm() {
148 [ "${ROOT}" = "/" -a -x /usr/bin/gtk-query-immodules-2.0 ] && \
149 gtk-query-immodules-2.0 > "${ROOT}/${GTK2_CONFDIR}/gtk.immodules"
150
151 python_mod_cleanup /usr/share/${PN}
152 }