Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/ibus/
Date: Mon, 01 Feb 2016 21:15:35
Message-Id: 1454361304.ffb9b3758e66b578c6015cff756c7356f3361f1d.dilfridge@gentoo
1 commit: ffb9b3758e66b578c6015cff756c7356f3361f1d
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 1 21:14:12 2016 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 21:15:04 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffb9b375
7
8 Revert "app-i18n/ibus: cleanup old versions"; this broke the deptree
9
10 This reverts commit 97a6aec8268998c24e7485281fd4ddf59c7d4da3.
11
12 app-i18n/ibus/Manifest | 4 +
13 app-i18n/ibus/ibus-1.5.5.ebuild | 175 +++++++++++++++++++++++++++++++++
14 app-i18n/ibus/ibus-1.5.8-r1.ebuild | 175 +++++++++++++++++++++++++++++++++
15 app-i18n/ibus/ibus-1.5.9-r1.ebuild | 191 +++++++++++++++++++++++++++++++++++++
16 4 files changed, 545 insertions(+)
17
18 diff --git a/app-i18n/ibus/Manifest b/app-i18n/ibus/Manifest
19 index 63f546c..91e92c8 100644
20 --- a/app-i18n/ibus/Manifest
21 +++ b/app-i18n/ibus/Manifest
22 @@ -1,3 +1,7 @@
23 DIST ibus-1.5.10.tar.gz 2169299 SHA256 1d01b7806602875a1f3004f32e1000a39be01f59731d6baf36446498e26f5594 SHA512 2f7f07c20cac5f934f24c3bc99b29efe30aa5ced501ac442a9da16454cb889d946fa262b3495c1778f200c8f62a1fd8d67f47f43ae6ee214d3d392feb6e413c9 WHIRLPOOL 575d5bba84ed8afb608030260b5fbbd47bdfc4ff1368590e0c34b2fed1cf2878e71bdb7b6da286d0b0d5a27f7fcc9e2a02675a86bbc9417c1d060246b7a6acbd
24 DIST ibus-1.5.11.tar.gz 2177026 SHA256 49995a298a39a137e65c6ee77811b030850ff344b875f29d4ed088f623a546bc SHA512 7745a06a4dc9502a957bdfa7faba3e6ff857ee102f34acfbc5d1c8ca5935eaf5660ebe6d837ee7bae584818c08a1769cf8a9daa012f87d43a1f10917c04615c2 WHIRLPOOL ae724b6609323e22f6fdff767484ec1259a6e3e4465b1a539cdfaa9178920d23d062d4eb6627fd3b45416d7fa9170a5bf467d6cddd4b1e80ae568a31e851be24
25 DIST ibus-1.5.12.tar.gz 2190284 SHA256 e24da95995f4aca5b96359eaba709487dc5ad4c732e9b01b9bcf9fb34be2442c SHA512 a443bf0d1b71a52c18e7d13a0c69f38c48f6924cfb1669912880b87be1bf41bcb7d8d6252aafd6799e43d41c081fd94cf334fd836a0505c93a4e5c5b68241c81 WHIRLPOOL 82354fc5006a0abe4cb431dda90a67dc1b775f0bac521b481eaeb7acd167ba6179cad14045c5141c57618845589094613bc489357ee8bf550f131ecfb1bf8293
26 +DIST ibus-1.5.5.tar.gz 2063794 SHA256 02ab36af6048399fedbe8d85074b161219b89df5020932df33cf8829764f8aec SHA512 8249d6ee4918b0e0fe030af736eed2260e1376b2fdaf0d819f289e0bd880a5e3874f1fb3d097fc74b9f359822ce16f4dae52a263aa28c2e2ce7bdf671cb2fea9 WHIRLPOOL 33ba90e5cdd54ecd7a03af8c5d2c1d2e8cfc88bfc53b65e5240eb4c60d6138007b754a60e8b1e79c98ce92e299d14f1a0cce445ad40b04e862adf3919401d77d
27 +DIST ibus-1.5.8.tar.gz 2120220 SHA256 cfc562ae73de753dc8cb9ae30fe117286ddd94cd109002108f2eeb47e8101a29 SHA512 428e40be7ebea57832295e76b5c4350351c6d40c5178c57c61c8d6f31e524a315184c3d533ad88592e53ae7c6cb4beed67796ad61910f99f260fc9c243b2fc98 WHIRLPOOL 2fc0059a75b3f4b253770303a8c9c8ae02947153eaf7b9c220e2e10657275293a556b068ba4cad0d27f315b7374ffaedb53b20cd13f8408a3729cfaaea869d78
28 +DIST ibus-1.5.9-upstream-patches-0.tar.xz 30380 SHA256 9efe631008cfad1d59db01a83ae093149b2c827d480705836f0bf8a29706f1e0 SHA512 98c323de9793938d8c0bd646071d0ea7860212e3ae826e97ed0e0a092ec715084529b3a3cee3def63958dd3d56357b2e33e4e3d3946cca90bec3409469cf14d4 WHIRLPOOL 0aaf7aaba36de96525f0339a16df2c435e2f2c5cc6168c9b2da25bd7003af88f6d55ca53ae692c9c611b563ddfcb48a0e19e915f8361ba51a4aac813edc45f41
29 +DIST ibus-1.5.9.tar.gz 2128459 SHA256 ad41014aa3cb961854ee0aa392a5abd7452fab2c6b77d8ff2d736b7405b48ac6 SHA512 8a21303abceb38f1e5903342590c229a243db1497503fa08d547e1029bc25b90a2031f0386e57ddfcb897a14819d202289fcac1e3c8bad059698b04501a7ede9 WHIRLPOOL 88135818669cb3c189ce02a7caba3ec262bd95ffa6d139e8f76113ca91fc778f5f7703cfbfb1f5d5dd3cbb6948ba14d9c326f318b0286381caec45db3b453221
30
31 diff --git a/app-i18n/ibus/ibus-1.5.5.ebuild b/app-i18n/ibus/ibus-1.5.5.ebuild
32 new file mode 100644
33 index 0000000..3fed965
34 --- /dev/null
35 +++ b/app-i18n/ibus/ibus-1.5.5.ebuild
36 @@ -0,0 +1,175 @@
37 +# Copyright 1999-2015 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI=5
42 +PYTHON_COMPAT=( python2_7 )
43 +VALA_MIN_API_VERSION="0.20"
44 +VALA_USE_DEPEND="vapigen"
45 +# Vapigen is needed for the vala binding
46 +# Valac is needed when building from git for the engine
47 +
48 +inherit bash-completion-r1 eutils gnome2-utils multilib python-single-r1 readme.gentoo vala virtualx
49 +
50 +DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
51 +HOMEPAGE="https://github.com/ibus/ibus/wiki"
52 +SRC_URI="https://ibus.googlecode.com/files/${P}.tar.gz"
53 +
54 +LICENSE="LGPL-2.1"
55 +SLOT="0"
56 +KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~x86-fbsd"
57 +IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test vala wayland +X"
58 +REQUIRED_USE="|| ( gtk gtk3 X )
59 + deprecated? ( python )
60 + python? (
61 + ${PYTHON_REQUIRED_USE}
62 + || ( deprecated ( gtk3 introspection ) ) )" #342903
63 +
64 +COMMON_DEPEND="
65 + >=dev-libs/glib-2.26:2
66 + gnome-base/librsvg:2
67 + sys-apps/dbus[X?]
68 + app-text/iso-codes
69 + >=gnome-base/dconf-0.13.4
70 + x11-libs/libnotify
71 +
72 + gconf? ( >=gnome-base/gconf-2.12:2 )
73 + gtk? ( x11-libs/gtk+:2 )
74 + gtk3? ( x11-libs/gtk+:3 )
75 + python? ( ${PYTHON_DEPS} )
76 + X? (
77 + x11-libs/libX11
78 + x11-libs/gtk+:2 )
79 + introspection? ( >=dev-libs/gobject-introspection-0.6.8 )
80 + nls? ( virtual/libintl )
81 + wayland? ( dev-libs/wayland )"
82 +RDEPEND="${COMMON_DEPEND}
83 + x11-apps/setxkbmap
84 + python? (
85 + dev-python/pyxdg
86 + deprecated? (
87 + >=dev-python/dbus-python-0.83
88 + dev-python/pygobject:2
89 + dev-python/pygtk:2 )
90 + gtk3? (
91 + dev-python/pygobject:3
92 + x11-libs/gdk-pixbuf:2[introspection]
93 + x11-libs/pango[introspection]
94 + x11-libs/gtk+:3[introspection] )
95 + )"
96 +DEPEND="${COMMON_DEPEND}
97 + >=dev-lang/perl-5.8.1
98 + dev-util/gtk-doc-am
99 + dev-util/intltool
100 + virtual/pkgconfig
101 + nls? ( >=sys-devel/gettext-0.16.1 )
102 + vala? ( $(vala_depend) )
103 + gnome-base/gconf"
104 +
105 +# stress test in bus/ fails
106 +# IBUS-CRITICAL **: bus_test_client_init: assertion `ibus_bus_is_connected (_bus)' failed
107 +RESTRICT="test"
108 +
109 +DOCS="AUTHORS ChangeLog NEWS README"
110 +
111 +DISABLE_AUTOFORMATTING="yes"
112 +DOC_CONTENTS="To use ibus, you should:
113 +1. Get input engines from sunrise overlay.
114 +Run \"emerge -s ibus-\" in your favorite terminal
115 +for a list of packages we already have.
116 +
117 +2. Setup ibus:
118 +$ ibus-setup
119 +
120 +3. Set the following in your user startup scripts
121 +such as .xinitrc, .xsession or .xprofile:
122 +
123 +export XMODIFIERS=\"@im=ibus\"
124 +export GTK_IM_MODULE=\"ibus\"
125 +export QT_IM_MODULE=\"xim\"
126 +ibus-daemon -d -x
127 +"
128 +
129 +pkg_setup() {
130 + use python && python-single-r1_pkg_setup
131 +}
132 +
133 +src_prepare() {
134 + # We run "dconf update" in pkg_postinst/postrm to avoid sandbox violations
135 + sed -e 's/dconf update/$(NULL)/' \
136 + -i data/dconf/Makefile.{am,in} || die
137 + use vala && vala_src_prepare
138 + cp "${S}"/client/gtk2/ibusimcontext.c "${S}"/client/gtk3/ibusimcontext.c || die
139 +}
140 +
141 +src_configure() {
142 + local python_conf
143 + if use python; then
144 + python_conf="PYTHON=${PYTHON}
145 + $(use_enable deprecated python-library)
146 + $(use_enable gtk3 setup)"
147 + else
148 + python_conf="--disable-python-library --disable-setup"
149 + fi
150 + econf \
151 + --enable-dconf \
152 + $(use_enable introspection) \
153 + $(use_enable gconf) \
154 + $(use_enable gtk gtk2) \
155 + $(use_enable gtk xim) \
156 + $(use_enable gtk3) \
157 + $(use_enable gtk3 ui) \
158 + $(use_enable nls) \
159 + $(use_enable test tests) \
160 + $(use_enable X xim) \
161 + $(use_enable vala) \
162 + $(use_enable wayland) \
163 + ${python_conf}
164 +}
165 +
166 +src_test() {
167 + unset DBUS_SESSION_BUS_ADDRESS
168 + Xemake check || die
169 +}
170 +
171 +src_install() {
172 + default
173 +
174 + prune_libtool_files --all
175 +
176 + mv "${ED}"/usr/share/bash-completion/completions/ibus.bash "${T}"
177 + rm -rf "${ED}"/usr/share/bash-completion || die
178 + newbashcomp "${T}"/ibus.bash ${PN}
179 + insinto /etc/X11/xinit/xinput.d
180 + newins xinput-ibus ibus.conf
181 +
182 + keepdir /usr/share/ibus/{engine,icons} #289547
183 +
184 + use deprecated && python_optimize
185 + use python && use gtk3 && python_optimize
186 +
187 + readme.gentoo_create_doc
188 +}
189 +
190 +pkg_preinst() {
191 + use gconf && gnome2_gconf_savelist
192 + gnome2_schemas_savelist
193 + gnome2_icon_savelist
194 +}
195 +
196 +pkg_postinst() {
197 + use gconf && gnome2_gconf_install
198 + use gtk && gnome2_query_immodules_gtk2
199 + use gtk3 && gnome2_query_immodules_gtk3
200 + gnome2_schemas_update
201 + gnome2_icon_cache_update
202 + readme.gentoo_print_elog
203 +}
204 +
205 +pkg_postrm() {
206 + use gtk && gnome2_query_immodules_gtk2
207 + use gtk3 && gnome2_query_immodules_gtk3
208 + use gconf && gnome2_schemas_update
209 + gnome2_schemas_savelist
210 + gnome2_icon_cache_update
211 +}
212
213 diff --git a/app-i18n/ibus/ibus-1.5.8-r1.ebuild b/app-i18n/ibus/ibus-1.5.8-r1.ebuild
214 new file mode 100644
215 index 0000000..57b1cf5
216 --- /dev/null
217 +++ b/app-i18n/ibus/ibus-1.5.8-r1.ebuild
218 @@ -0,0 +1,175 @@
219 +# Copyright 1999-2014 Gentoo Foundation
220 +# Distributed under the terms of the GNU General Public License v2
221 +# $Id$
222 +
223 +EAPI=5
224 +
225 +PYTHON_COMPAT=( python2_7 )
226 +VALA_MIN_API_VERSION="0.20"
227 +VALA_USE_DEPEND="vapigen"
228 +# Vapigen is needed for the vala binding
229 +# Valac is needed when building from git for the engine
230 +
231 +inherit bash-completion-r1 eutils gnome2-utils multilib python-single-r1 readme.gentoo vala virtualx
232 +
233 +DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
234 +HOMEPAGE="https://github.com/ibus/ibus/wiki"
235 +SRC_URI="https://github.com/ibus/ibus/releases/download/${PV}/${P}.tar.gz"
236 +
237 +LICENSE="LGPL-2.1"
238 +SLOT="0"
239 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
240 +IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test vala wayland +X"
241 +REQUIRED_USE="|| ( gtk gtk3 X )
242 + deprecated? ( python )
243 + python? (
244 + ${PYTHON_REQUIRED_USE}
245 + || ( deprecated ( gtk3 introspection ) ) )" #342903
246 +
247 +COMMON_DEPEND="
248 + >=dev-libs/glib-2.26:2
249 + gnome-base/librsvg:2
250 + sys-apps/dbus[X?]
251 + app-text/iso-codes
252 + >=gnome-base/dconf-0.13.4
253 + x11-libs/libnotify
254 +
255 + gconf? ( >=gnome-base/gconf-2.12:2 )
256 + gtk? ( x11-libs/gtk+:2 )
257 + gtk3? ( x11-libs/gtk+:3 )
258 + python? ( ${PYTHON_DEPS} )
259 + X? (
260 + x11-libs/libX11
261 + x11-libs/gtk+:2 )
262 + introspection? ( >=dev-libs/gobject-introspection-0.6.8 )
263 + nls? ( virtual/libintl )
264 + wayland? ( dev-libs/wayland )"
265 +RDEPEND="${COMMON_DEPEND}
266 + x11-apps/setxkbmap
267 + python? (
268 + dev-python/pyxdg
269 + deprecated? (
270 + >=dev-python/dbus-python-0.83
271 + dev-python/pygobject:2
272 + dev-python/pygtk:2 )
273 + gtk3? (
274 + dev-python/pygobject:3
275 + x11-libs/gdk-pixbuf:2[introspection]
276 + x11-libs/pango[introspection]
277 + x11-libs/gtk+:3[introspection] )
278 + )"
279 +DEPEND="${COMMON_DEPEND}
280 + >=dev-lang/perl-5.8.1
281 + dev-util/gtk-doc-am
282 + dev-util/intltool
283 + virtual/pkgconfig
284 + nls? ( >=sys-devel/gettext-0.16.1 )
285 + vala? ( $(vala_depend) )
286 + gnome-base/gconf"
287 +
288 +# stress test in bus/ fails
289 +# IBUS-CRITICAL **: bus_test_client_init: assertion `ibus_bus_is_connected (_bus)' failed
290 +RESTRICT="test"
291 +
292 +DOCS="AUTHORS ChangeLog NEWS README"
293 +
294 +DISABLE_AUTOFORMATTING="yes"
295 +DOC_CONTENTS="To use ibus, you should:
296 +1. Get input engines from sunrise overlay.
297 +Run \"emerge -s ibus-\" in your favorite terminal
298 +for a list of packages we already have.
299 +
300 +2. Setup ibus:
301 +$ ibus-setup
302 +
303 +3. Set the following in your user startup scripts
304 +such as .xinitrc, .xsession or .xprofile:
305 +
306 +export XMODIFIERS=\"@im=ibus\"
307 +export GTK_IM_MODULE=\"ibus\"
308 +export QT_IM_MODULE=\"xim\"
309 +ibus-daemon -d -x
310 +"
311 +
312 +pkg_setup() {
313 + use python && python-single-r1_pkg_setup
314 +}
315 +
316 +src_prepare() {
317 + # We run "dconf update" in pkg_postinst/postrm to avoid sandbox violations
318 + sed -e 's/dconf update/:/' \
319 + -i data/dconf/Makefile.{am,in} || die
320 + use vala && vala_src_prepare
321 +}
322 +
323 +src_configure() {
324 + local python_conf
325 + if use python; then
326 + python_conf="PYTHON=${PYTHON}
327 + $(use_enable deprecated python-library)
328 + $(use_enable gtk3 setup)"
329 + else
330 + python_conf="--disable-python-library --disable-setup"
331 + fi
332 + econf \
333 + --enable-dconf \
334 + $(use_enable introspection) \
335 + $(use_enable gconf) \
336 + $(use_enable gtk gtk2) \
337 + $(use_enable gtk xim) \
338 + $(use_enable gtk3) \
339 + $(use_enable gtk3 ui) \
340 + $(use_enable nls) \
341 + $(use_enable test tests) \
342 + $(use_enable X xim) \
343 + $(use_enable vala) \
344 + $(use_enable wayland) \
345 + ${python_conf}
346 +}
347 +
348 +src_test() {
349 + unset DBUS_SESSION_BUS_ADDRESS
350 + Xemake check || die
351 +}
352 +
353 +src_install() {
354 + default
355 +
356 + prune_libtool_files --all
357 +
358 + mv "${ED}"/usr/share/bash-completion/completions/ibus.bash "${T}"
359 + rm -rf "${ED}"/usr/share/bash-completion || die
360 + newbashcomp "${T}"/ibus.bash ${PN}
361 + insinto /etc/X11/xinit/xinput.d
362 + newins xinput-ibus ibus.conf
363 +
364 + keepdir /usr/share/ibus/{engine,icons} #289547
365 +
366 + use deprecated && python_optimize
367 + use python && use gtk3 && python_optimize
368 +
369 + readme.gentoo_create_doc
370 +}
371 +
372 +pkg_preinst() {
373 + use gconf && gnome2_gconf_savelist
374 + gnome2_schemas_savelist
375 + gnome2_icon_savelist
376 +}
377 +
378 +pkg_postinst() {
379 + use gconf && gnome2_gconf_install
380 + use gtk && gnome2_query_immodules_gtk2
381 + use gtk3 && gnome2_query_immodules_gtk3
382 + gnome2_schemas_update
383 + gnome2_icon_cache_update
384 + readme.gentoo_print_elog
385 +}
386 +
387 +pkg_postrm() {
388 + use gtk && gnome2_query_immodules_gtk2
389 + use gtk3 && gnome2_query_immodules_gtk3
390 + use gconf && gnome2_schemas_update
391 + gnome2_schemas_savelist
392 + gnome2_icon_cache_update
393 +}
394
395 diff --git a/app-i18n/ibus/ibus-1.5.9-r1.ebuild b/app-i18n/ibus/ibus-1.5.9-r1.ebuild
396 new file mode 100644
397 index 0000000..725ef8f
398 --- /dev/null
399 +++ b/app-i18n/ibus/ibus-1.5.9-r1.ebuild
400 @@ -0,0 +1,191 @@
401 +# Copyright 1999-2015 Gentoo Foundation
402 +# Distributed under the terms of the GNU General Public License v2
403 +# $Id$
404 +
405 +EAPI=5
406 +
407 +PYTHON_COMPAT=( python2_7 )
408 +VALA_MIN_API_VERSION="0.20"
409 +VALA_USE_DEPEND="vapigen"
410 +# Vapigen is needed for the vala binding
411 +# Valac is needed when building from git for the engine
412 +UPSTREAM_VER=0
413 +
414 +inherit autotools bash-completion-r1 eutils gnome2-utils multilib python-single-r1 readme.gentoo vala virtualx
415 +
416 +DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
417 +HOMEPAGE="https://github.com/ibus/ibus/wiki"
418 +
419 +LICENSE="LGPL-2.1"
420 +SLOT="0"
421 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
422 +IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test +vala wayland +X"
423 +REQUIRED_USE="
424 + || ( gtk gtk3 X )
425 + deprecated? ( python )
426 + vala? ( introspection )
427 + python? (
428 + ${PYTHON_REQUIRED_USE}
429 + || ( deprecated ( gtk3 introspection ) ) )" #342903
430 +
431 +[[ -n ${UPSTREAM_VER} ]] && \
432 + UPSTRAM_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz"
433 +
434 +SRC_URI="https://github.com/ibus/ibus/releases/download/${PV}/${P}.tar.gz
435 + ${UPSTRAM_PATCHSET_URI}"
436 +
437 +COMMON_DEPEND="
438 + >=dev-libs/glib-2.26:2
439 + gnome-base/librsvg:2
440 + sys-apps/dbus[X?]
441 + app-text/iso-codes
442 + >=gnome-base/dconf-0.13.4
443 + x11-libs/libnotify
444 + gconf? ( >=gnome-base/gconf-2.12:2 )
445 + gtk? ( x11-libs/gtk+:2 )
446 + gtk3? ( x11-libs/gtk+:3 )
447 + python? ( ${PYTHON_DEPS} )
448 + X? (
449 + x11-libs/libX11
450 + x11-libs/gtk+:2 )
451 + introspection? ( >=dev-libs/gobject-introspection-0.6.8 )
452 + nls? ( virtual/libintl )
453 + wayland? ( dev-libs/wayland )"
454 +RDEPEND="${COMMON_DEPEND}
455 + x11-apps/setxkbmap
456 + python? (
457 + dev-python/pyxdg
458 + deprecated? (
459 + >=dev-python/dbus-python-0.83
460 + dev-python/pygobject:2
461 + dev-python/pygtk:2 )
462 + gtk3? (
463 + dev-python/pygobject:3
464 + x11-libs/gdk-pixbuf:2[introspection]
465 + x11-libs/pango[introspection]
466 + x11-libs/gtk+:3[introspection] )
467 + )"
468 +DEPEND="${COMMON_DEPEND}
469 + >=dev-lang/perl-5.8.1
470 + dev-util/gtk-doc-am
471 + dev-util/intltool
472 + virtual/pkgconfig
473 + nls? ( >=sys-devel/gettext-0.16.1 )
474 + vala? ( $(vala_depend) )"
475 +
476 +# stress test in bus/ fails
477 +# IBUS-CRITICAL **: bus_test_client_init: assertion `ibus_bus_is_connected (_bus)' failed
478 +RESTRICT="test"
479 +
480 +DOCS="AUTHORS ChangeLog NEWS README"
481 +
482 +DISABLE_AUTOFORMATTING="yes"
483 +DOC_CONTENTS="To use ibus, you should:
484 +1. Get input engines from sunrise overlay.
485 +Run \"emerge -s ibus-\" in your favorite terminal
486 +for a list of packages we already have.
487 +
488 +2. Setup ibus:
489 +$ ibus-setup
490 +
491 +3. Set the following in your user startup scripts
492 +such as .xinitrc, .xsession or .xprofile:
493 +
494 +export XMODIFIERS=\"@im=ibus\"
495 +export GTK_IM_MODULE=\"ibus\"
496 +export QT_IM_MODULE=\"xim\"
497 +ibus-daemon -d -x
498 +"
499 +
500 +pkg_setup() {
501 + use python && python-single-r1_pkg_setup
502 +}
503 +
504 +src_prepare() {
505 + # Upstream's patchset
506 + if [[ -n ${UPSTREAM_VER} ]]; then
507 + EPATCH_SUFFIX="patch" \
508 + EPATCH_FORCE="yes" \
509 + EPATCH_OPTS="-p1" \
510 + epatch "${WORKDIR}"/patches-upstream
511 + fi
512 +
513 + # We run "dconf update" in pkg_postinst/postrm to avoid sandbox violations
514 + sed -e 's/dconf update/:/' \
515 + -i data/dconf/Makefile.{am,in} || die
516 + use vala && vala_src_prepare
517 +
518 + eautoreconf
519 +}
520 +
521 +src_configure() {
522 + local python_conf
523 + if use python; then
524 + python_conf="PYTHON=${PYTHON}
525 + $(use_enable deprecated python-library)
526 + $(use_enable gtk3 setup)"
527 + else
528 + python_conf="--disable-python-library --disable-setup"
529 + fi
530 + econf \
531 + --enable-dconf \
532 + $(use_enable introspection) \
533 + $(use_enable gconf) \
534 + $(use_enable gtk gtk2) \
535 + $(use_enable gtk xim) \
536 + $(use_enable gtk3) \
537 + $(use_enable gtk3 ui) \
538 + $(use_enable nls) \
539 + $(use_enable test tests) \
540 + $(use_enable X xim) \
541 + $(use_enable vala) \
542 + $(use_enable wayland) \
543 + ${python_conf}
544 +}
545 +
546 +src_test() {
547 + unset DBUS_SESSION_BUS_ADDRESS
548 + Xemake check || die
549 +}
550 +
551 +src_install() {
552 + default
553 +
554 + prune_libtool_files --all
555 +
556 + mv "${ED}"/usr/share/bash-completion/completions/ibus.bash "${T}"
557 + rm -rf "${ED}"/usr/share/bash-completion || die
558 + newbashcomp "${T}"/ibus.bash ${PN}
559 + insinto /etc/X11/xinit/xinput.d
560 + newins xinput-ibus ibus.conf
561 +
562 + keepdir /usr/share/ibus/{engine,icons} #289547
563 +
564 + use deprecated && python_optimize
565 + use python && use gtk3 && python_optimize
566 +
567 + readme.gentoo_create_doc
568 +}
569 +
570 +pkg_preinst() {
571 + use gconf && gnome2_gconf_savelist
572 + gnome2_schemas_savelist
573 + gnome2_icon_savelist
574 +}
575 +
576 +pkg_postinst() {
577 + use gconf && gnome2_gconf_install
578 + use gtk && gnome2_query_immodules_gtk2
579 + use gtk3 && gnome2_query_immodules_gtk3
580 + gnome2_schemas_update
581 + gnome2_icon_cache_update
582 + readme.gentoo_print_elog
583 +}
584 +
585 +pkg_postrm() {
586 + use gtk && gnome2_query_immodules_gtk2
587 + use gtk3 && gnome2_query_immodules_gtk3
588 + use gconf && gnome2_schemas_update
589 + gnome2_schemas_savelist
590 + gnome2_icon_cache_update
591 +}