Gentoo Archives: gentoo-commits

From: "Yixun Lan (dlan)" <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-i18n/ibus: ibus-1.5.5.ebuild ChangeLog
Date: Wed, 22 Jan 2014 04:39:36
Message-Id: 20140122043933.5F8542004C@flycatcher.gentoo.org
1 dlan 14/01/22 04:39:33
2
3 Modified: ChangeLog
4 Added: ibus-1.5.5.ebuild
5 Log:
6 version bump to 1.5.5
7
8 (Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)
9
10 Revision Changes Path
11 1.139 app-i18n/ibus/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ChangeLog?rev=1.139&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ChangeLog?rev=1.139&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ChangeLog?r1=1.138&r2=1.139
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-i18n/ibus/ChangeLog,v
20 retrieving revision 1.138
21 retrieving revision 1.139
22 diff -u -r1.138 -r1.139
23 --- ChangeLog 6 Jan 2014 04:19:03 -0000 1.138
24 +++ ChangeLog 22 Jan 2014 04:39:33 -0000 1.139
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-i18n/ibus
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ChangeLog,v 1.138 2014/01/06 04:19:03 naota Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus/ChangeLog,v 1.139 2014/01/22 04:39:33 dlan Exp $
30 +
31 +*ibus-1.5.5 (22 Jan 2014)
32 +
33 + 22 Jan 2014; Yixun Lan <dlan@g.o> +ibus-1.5.5.ebuild:
34 + version bump to 1.5.5
35
36 06 Jan 2014; Naohiro Aota <naota@g.o> ibus-1.5.2.ebuild,
37 ibus-1.5.3.ebuild, ibus-1.5.4-r1.ebuild:
38
39
40
41 1.1 app-i18n/ibus/ibus-1.5.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ibus-1.5.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/ibus/ibus-1.5.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ibus-1.5.5.ebuild
47 ===================================================================
48 # Copyright 1999-2014 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.5.5.ebuild,v 1.1 2014/01/22 04:39:33 dlan Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python{2_6,2_7} )
54 VALA_MIN_API_VERSION="0.18"
55 VALA_USE_DEPEND="vapigen"
56 # Vapigen is needed for the vala binding
57 # Valac is needed when building from git for the engine
58
59 inherit bash-completion-r1 eutils gnome2-utils multilib python-single-r1 vala virtualx
60
61 DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
62 HOMEPAGE="http://code.google.com/p/ibus/"
63 SRC_URI="http://ibus.googlecode.com/files/${P}.tar.gz"
64
65 LICENSE="LGPL-2.1"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
68 IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test vala wayland +X"
69 REQUIRED_USE="|| ( gtk gtk3 X )
70 deprecated? ( python )
71 python? (
72 ${PYTHON_REQUIRED_USE}
73 || ( deprecated ( gtk3 introspection ) ) )" #342903
74
75 COMMON_DEPEND="
76 >=dev-libs/glib-2.26:2
77 gnome-base/librsvg:2
78 sys-apps/dbus[X?]
79 app-text/iso-codes
80 >=gnome-base/dconf-0.13.4
81 x11-libs/libnotify
82
83 gconf? ( >=gnome-base/gconf-2.12:2 )
84 gtk? ( x11-libs/gtk+:2 )
85 gtk3? ( x11-libs/gtk+:3 )
86 python? ( ${PYTHON_DEPS} )
87 X? (
88 x11-libs/libX11
89 x11-libs/gtk+:2 )
90 introspection? ( >=dev-libs/gobject-introspection-0.6.8 )
91 nls? ( virtual/libintl )
92 wayland? ( dev-libs/wayland )"
93 RDEPEND="${COMMON_DEPEND}
94 x11-apps/setxkbmap
95 python? (
96 dev-python/pyxdg
97 deprecated? (
98 >=dev-python/dbus-python-0.83
99 dev-python/pygobject:2
100 dev-python/pygtk:2 )
101 gtk3? (
102 dev-python/pygobject:3
103 x11-libs/gdk-pixbuf:2[introspection]
104 x11-libs/pango[introspection]
105 x11-libs/gtk+:3[introspection] )
106 )"
107 DEPEND="${COMMON_DEPEND}
108 >=dev-lang/perl-5.8.1
109 dev-util/gtk-doc-am
110 dev-util/intltool
111 virtual/pkgconfig
112 nls? ( >=sys-devel/gettext-0.16.1 )
113 vala? ( $(vala_depend) )
114 gnome-base/gconf"
115
116 # stress test in bus/ fails
117 # IBUS-CRITICAL **: bus_test_client_init: assertion `ibus_bus_is_connected (_bus)' failed
118 RESTRICT="test"
119
120 DOCS="AUTHORS ChangeLog NEWS README"
121
122 pkg_setup() {
123 use python && python-single-r1_pkg_setup
124 }
125
126 src_prepare() {
127 # We run "dconf update" in pkg_postinst/postrm to avoid sandbox violations
128 sed -e 's/dconf update/$(NULL)/' \
129 -i data/dconf/Makefile.{am,in} || die
130 use vala && vala_src_prepare
131 cp "${S}"/client/gtk2/ibusimcontext.c "${S}"/client/gtk3/ibusimcontext.c || die
132 }
133
134 src_configure() {
135 local python_conf
136 if use python; then
137 python_conf="PYTHON=${PYTHON}
138 $(use_enable deprecated python-library)
139 $(use_enable gtk3 setup)"
140 else
141 python_conf="--disable-python-library --disable-setup"
142 fi
143 econf \
144 --enable-dconf \
145 $(use_enable introspection) \
146 $(use_enable gconf) \
147 $(use_enable gtk gtk2) \
148 $(use_enable gtk xim) \
149 $(use_enable gtk3) \
150 $(use_enable gtk3 ui) \
151 $(use_enable nls) \
152 $(use_enable test tests) \
153 $(use_enable X xim) \
154 $(use_enable vala) \
155 $(use_enable wayland) \
156 ${python_conf}
157 }
158
159 src_test() {
160 unset DBUS_SESSION_BUS_ADDRESS
161 Xemake check || die
162 }
163
164 src_install() {
165 default
166
167 prune_libtool_files --all
168
169 mv "${ED}"/usr/share/bash-completion/completions/ibus.bash "${T}"
170 rm -rf "${ED}"/usr/share/bash-completion || die
171 newbashcomp "${T}"/ibus.bash ${PN}
172 insinto /etc/X11/xinit/xinput.d
173 newins xinput-ibus ibus.conf
174
175 keepdir /usr/share/ibus/{engine,icons} #289547
176
177 use deprecated && python_optimize
178 use python && use gtk3 && python_optimize
179 }
180
181 pkg_preinst() {
182 use gconf && gnome2_gconf_savelist
183 gnome2_schemas_savelist
184 gnome2_icon_savelist
185 }
186
187 pkg_postinst() {
188 use gconf && gnome2_gconf_install
189 use gtk && gnome2_query_immodules_gtk2
190 use gtk3 && gnome2_query_immodules_gtk3
191 gnome2_schemas_update
192 gnome2_icon_cache_update
193
194 elog "To use ibus, you should:"
195 elog "1. Get input engines from sunrise overlay."
196 elog " Run \"emerge -s ibus-\" in your favorite terminal"
197 elog " for a list of packages we already have."
198 elog
199 elog "2. Setup ibus:"
200 elog
201 elog " $ ibus-setup"
202 elog
203 elog "3. Set the following in your user startup scripts"
204 elog " such as .xinitrc, .xsession or .xprofile:"
205 elog
206 elog " export XMODIFIERS=\"@im=ibus\""
207 elog " export GTK_IM_MODULE=\"ibus\""
208 elog " export QT_IM_MODULE=\"xim\""
209 elog " ibus-daemon -d -x"
210 }
211
212 pkg_postrm() {
213 use gtk && gnome2_query_immodules_gtk2
214 use gtk3 && gnome2_query_immodules_gtk3
215 use gconf && gnome2_schemas_update
216 gnome2_schemas_savelist
217 gnome2_icon_cache_update
218 }