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: ibus-1.3.99.20110419-r2.ebuild ChangeLog ibus-1.3.9-r2.ebuild ibus-1.3.9.ebuild ibus-1.3.99.20110419.ebuild
Date: Sat, 28 May 2011 01:55:59
Message-Id: 20110528015514.D0F7120054@flycatcher.gentoo.org
1 matsuu 11/05/28 01:55:14
2
3 Modified: ChangeLog ibus-1.3.9-r2.ebuild ibus-1.3.9.ebuild
4 Added: ibus-1.3.99.20110419-r2.ebuild
5 Removed: ibus-1.3.99.20110419.ebuild
6 Log:
7 Fixed GTK2_CONFDIR handling, bug #366889. Removed .la files.
8
9 (Portage version: 2.1.9.49/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.87 app-i18n/ibus/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ChangeLog?rev=1.87&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ChangeLog?rev=1.87&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ChangeLog?r1=1.86&r2=1.87
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-i18n/ibus/ChangeLog,v
21 retrieving revision 1.86
22 retrieving revision 1.87
23 diff -u -r1.86 -r1.87
24 --- ChangeLog 20 May 2011 17:30:36 -0000 1.86
25 +++ ChangeLog 28 May 2011 01:55:14 -0000 1.87
26 @@ -1,6 +1,14 @@
27 # ChangeLog for app-i18n/ibus
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ChangeLog,v 1.86 2011/05/20 17:30:36 naota Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ChangeLog,v 1.87 2011/05/28 01:55:14 matsuu Exp $
31 +
32 +*ibus-1.3.99.20110419-r2 (28 May 2011)
33 +
34 + 28 May 2011; MATSUU Takuto <matsuu@g.o> ibus-1.3.9.ebuild,
35 + ibus-1.3.9-r2.ebuild, -ibus-1.3.99.20110419.ebuild,
36 + +ibus-1.3.99.20110419-r2.ebuild:
37 + Fixed GTK2_CONFDIR handling, bug #366889. Removed .la files. Removed old
38 + version.
39
40 20 May 2011; Naohiro Aota <naota@g.o> ibus-1.3.9-r2.ebuild,
41 +files/ibus-1.3.9-remove-unused-build.patch:
42
43
44
45 1.3 app-i18n/ibus/ibus-1.3.9-r2.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ibus-1.3.9-r2.ebuild?rev=1.3&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ibus-1.3.9-r2.ebuild?rev=1.3&content-type=text/plain
49 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ibus-1.3.9-r2.ebuild?r1=1.2&r2=1.3
50
51 Index: ibus-1.3.9-r2.ebuild
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/app-i18n/ibus/ibus-1.3.9-r2.ebuild,v
54 retrieving revision 1.2
55 retrieving revision 1.3
56 diff -u -r1.2 -r1.3
57 --- ibus-1.3.9-r2.ebuild 20 May 2011 17:30:36 -0000 1.2
58 +++ ibus-1.3.9-r2.ebuild 28 May 2011 01:55:14 -0000 1.3
59 @@ -1,6 +1,6 @@
60 # Copyright 1999-2011 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ibus-1.3.9-r2.ebuild,v 1.2 2011/05/20 17:30:36 naota Exp $
63 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ibus-1.3.9-r2.ebuild,v 1.3 2011/05/28 01:55:14 matsuu Exp $
64
65 EAPI="3"
66 PYTHON_DEPEND="python? 2:2.5"
67 @@ -51,8 +51,10 @@
68
69 update_gtk_immodules() {
70 local GTK2_CONFDIR="/etc/gtk-2.0"
71 - # An arch specific config directory is used on multilib systems
72 - has_multilib_profile && GTK2_CONFDIR="${GTK2_CONFDIR}/${CHOST}"
73 + # bug #366889
74 + if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then
75 + GTK2_CONFDIR="${GTK2_CONFDIR}/$(get_abi_CHOST)"
76 + fi
77 mkdir -p "${EPREFIX}${GTK2_CONFDIR}"
78
79 if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then
80 @@ -102,6 +104,8 @@
81 src_install() {
82 emake DESTDIR="${D}" install || die
83
84 + find "${ED}" -name '*.la' -exec rm {} + || die
85 +
86 insinto /etc/X11/xinit/xinput.d
87 newins xinput-ibus ibus.conf || die
88
89
90
91
92 1.11 app-i18n/ibus/ibus-1.3.9.ebuild
93
94 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ibus-1.3.9.ebuild?rev=1.11&view=markup
95 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ibus-1.3.9.ebuild?rev=1.11&content-type=text/plain
96 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ibus-1.3.9.ebuild?r1=1.10&r2=1.11
97
98 Index: ibus-1.3.9.ebuild
99 ===================================================================
100 RCS file: /var/cvsroot/gentoo-x86/app-i18n/ibus/ibus-1.3.9.ebuild,v
101 retrieving revision 1.10
102 retrieving revision 1.11
103 diff -u -r1.10 -r1.11
104 --- ibus-1.3.9.ebuild 16 Apr 2011 22:08:19 -0000 1.10
105 +++ ibus-1.3.9.ebuild 28 May 2011 01:55:14 -0000 1.11
106 @@ -1,6 +1,6 @@
107 # Copyright 1999-2011 Gentoo Foundation
108 # Distributed under the terms of the GNU General Public License v2
109 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ibus-1.3.9.ebuild,v 1.10 2011/04/16 22:08:19 arfrever Exp $
110 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ibus-1.3.9.ebuild,v 1.11 2011/05/28 01:55:14 matsuu Exp $
111
112 EAPI="3"
113 PYTHON_DEPEND="python? 2:2.5"
114 @@ -54,7 +54,9 @@
115 if [ -x /usr/bin/gtk-query-immodules-2.0 ] ; then
116 GTK2_CONFDIR="/etc/gtk-2.0"
117 # An arch specific config directory is used on multilib systems
118 - has_multilib_profile && GTK2_CONFDIR="${GTK2_CONFDIR}/${CHOST}"
119 + if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then
120 + GTK2_CONFDIR="${GTK2_CONFDIR}/${CHOST}"
121 + fi
122 mkdir -p "${ROOT}${GTK2_CONFDIR}"
123 gtk-query-immodules-2.0 > "${ROOT}${GTK2_CONFDIR}/gtk.immodules"
124 fi
125
126
127
128 1.1 app-i18n/ibus/ibus-1.3.99.20110419-r2.ebuild
129
130 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ibus-1.3.99.20110419-r2.ebuild?rev=1.1&view=markup
131 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ibus-1.3.99.20110419-r2.ebuild?rev=1.1&content-type=text/plain
132
133 Index: ibus-1.3.99.20110419-r2.ebuild
134 ===================================================================
135 # Copyright 1999-2011 Gentoo Foundation
136 # Distributed under the terms of the GNU General Public License v2
137 # $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ibus-1.3.99.20110419-r2.ebuild,v 1.1 2011/05/28 01:55:14 matsuu Exp $
138
139 EAPI="3"
140 PYTHON_DEPEND="python? 2:2.5"
141 inherit confutils eutils gnome2-utils multilib python
142
143 DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
144 HOMEPAGE="http://code.google.com/p/ibus/"
145 SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
146
147 LICENSE="LGPL-2.1"
148 SLOT="0"
149 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
150 IUSE="doc +gconf gtk gtk3 introspection nls +python vala X"
151
152 RDEPEND=">=dev-libs/glib-2.26:2
153 gconf? ( >=gnome-base/gconf-2.12:2 )
154 gnome-base/librsvg:2
155 sys-apps/dbus
156 app-text/iso-codes
157 gtk? ( x11-libs/gtk+:2 )
158 gtk3? ( x11-libs/gtk+:3 )
159 X? (
160 x11-libs/libX11
161 x11-libs/gtk+:2
162 )
163 introspection? ( >=dev-libs/gobject-introspection-0.6.8 )
164 python? (
165 dev-python/notify-python
166 >=dev-python/dbus-python-0.83
167 )
168 nls? ( virtual/libintl )"
169 # X? ( x11-libs/libX11 )
170 # gtk? ( x11-libs/gtk+:2 x11-libs/gtk+:3 )
171 # vala? ( dev-lang/vala )
172 DEPEND="${RDEPEND}
173 >=dev-lang/perl-5.8.1
174 dev-perl/XML-Parser
175 dev-util/pkgconfig
176 doc? ( >=dev-util/gtk-doc-1.9 )
177 nls? ( >=sys-devel/gettext-0.16.1 )"
178 RDEPEND="${RDEPEND}
179 python? (
180 dev-python/pygtk
181 dev-python/pyxdg
182 )"
183
184 RESTRICT="test"
185
186 update_gtk_immodules() {
187 local GTK2_CONFDIR="/etc/gtk-2.0"
188 # bug #366889
189 if has_version '>=x11-libs/gtk+-2.22.1-r1:2' || has_multilib_profile ; then
190 GTK2_CONFDIR="${GTK2_CONFDIR}/$(get_abi_CHOST)"
191 fi
192 mkdir -p "${EPREFIX}${GTK2_CONFDIR}"
193
194 if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" ] ; then
195 "${EPREFIX}/usr/bin/gtk-query-immodules-2.0" > "${EPREFIX}${GTK2_CONFDIR}/gtk.immodules"
196 fi
197 }
198
199 update_gtk3_immodules() {
200 if [ -x "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" ] ; then
201 "${EPREFIX}/usr/bin/gtk-query-immodules-3.0" --update-cache
202 fi
203 }
204
205 pkg_setup() {
206 # bug #342903
207 confutils_require_any X gtk gtk3
208 if use python; then
209 python_set_active_version 2
210 python_pkg_setup
211 fi
212 }
213
214 src_prepare() {
215 mv py-compile py-compile.orig || die
216 ln -s "$(type -P true)" py-compile || die
217 echo "ibus/_config.py" >> po/POTFILES.skip || die
218 sed -i -e "s/python/python2/" setup/ibus-setup.in ui/gtk/ibus-ui-gtk.in || die
219 }
220
221 src_configure() {
222 econf \
223 $(use_enable doc gtk-doc) \
224 $(use_enable doc gtk-doc-html) \
225 $(use_enable introspection) \
226 $(use_enable gconf) \
227 $(use_enable gtk gtk2) \
228 $(use_enable gtk xim) \
229 $(use_enable gtk3) \
230 $(use_enable nls) \
231 $(use_enable python) \
232 $(use_enable vala) \
233 $(use_enable X xim) || die
234 }
235
236 src_install() {
237 emake DESTDIR="${D}" install || die
238
239 find "${ED}" -name '*.la' -type f -delete || die
240
241 insinto /etc/X11/xinit/xinput.d
242 newins xinput-ibus ibus.conf || die
243
244 # bug 289547
245 keepdir /usr/share/ibus/{engine,icons} || die
246
247 dodoc AUTHORS ChangeLog NEWS README || die
248 }
249
250 pkg_preinst() {
251 use gconf && gnome2_gconf_savelist
252 gnome2_icon_savelist
253 }
254
255 pkg_postinst() {
256 use gconf && gnome2_gconf_install
257 use gtk && update_gtk_immodules
258 use gtk3 && update_gtk3_immodules
259 use python && python_mod_optimize /usr/share/${PN}
260 gnome2_icon_cache_update
261
262 elog "To use ibus, you should:"
263 elog "1. Get input engines from sunrise overlay."
264 elog " Run \"emerge -s ibus-\" in your favorite terminal"
265 elog " for a list of packages we already have."
266 elog
267 elog "2. Setup ibus:"
268 elog
269 elog " $ ibus-setup"
270 elog
271 elog "3. Set the following in your user startup scripts"
272 elog " such as .xinitrc, .xsession or .xprofile:"
273 elog
274 elog " export XMODIFIERS=\"@im=ibus\""
275 elog " export GTK_IM_MODULE=\"ibus\""
276 elog " export QT_IM_MODULE=\"xim\""
277 elog " ibus-daemon -d -x"
278 }
279
280 pkg_postrm() {
281 use gtk && update_gtk_immodules
282 use gtk3 && update_gtk3_immodules
283 use python && python_mod_cleanup /usr/share/${PN}
284 gnome2_icon_cache_update
285 }