1 |
commit: d9f0d11f796cb6187bb3950d9127173ec99d4264 |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 31 15:31:16 2015 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 31 15:35:57 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9f0d11f |
7 |
|
8 |
app-i18n/ibus: version bump 1.5.11 |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
|
12 |
app-i18n/ibus/Manifest | 1 + |
13 |
app-i18n/ibus/ibus-1.5.11.ebuild | 191 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 192 insertions(+) |
15 |
|
16 |
diff --git a/app-i18n/ibus/Manifest b/app-i18n/ibus/Manifest |
17 |
index a8adb10..2b448d9 100644 |
18 |
--- a/app-i18n/ibus/Manifest |
19 |
+++ b/app-i18n/ibus/Manifest |
20 |
@@ -1,4 +1,5 @@ |
21 |
DIST ibus-1.5.10.tar.gz 2169299 SHA256 1d01b7806602875a1f3004f32e1000a39be01f59731d6baf36446498e26f5594 SHA512 2f7f07c20cac5f934f24c3bc99b29efe30aa5ced501ac442a9da16454cb889d946fa262b3495c1778f200c8f62a1fd8d67f47f43ae6ee214d3d392feb6e413c9 WHIRLPOOL 575d5bba84ed8afb608030260b5fbbd47bdfc4ff1368590e0c34b2fed1cf2878e71bdb7b6da286d0b0d5a27f7fcc9e2a02675a86bbc9417c1d060246b7a6acbd |
22 |
+DIST ibus-1.5.11.tar.gz 2177026 SHA256 49995a298a39a137e65c6ee77811b030850ff344b875f29d4ed088f623a546bc SHA512 7745a06a4dc9502a957bdfa7faba3e6ff857ee102f34acfbc5d1c8ca5935eaf5660ebe6d837ee7bae584818c08a1769cf8a9daa012f87d43a1f10917c04615c2 WHIRLPOOL ae724b6609323e22f6fdff767484ec1259a6e3e4465b1a539cdfaa9178920d23d062d4eb6627fd3b45416d7fa9170a5bf467d6cddd4b1e80ae568a31e851be24 |
23 |
DIST ibus-1.5.5.tar.gz 2063794 SHA256 02ab36af6048399fedbe8d85074b161219b89df5020932df33cf8829764f8aec SHA512 8249d6ee4918b0e0fe030af736eed2260e1376b2fdaf0d819f289e0bd880a5e3874f1fb3d097fc74b9f359822ce16f4dae52a263aa28c2e2ce7bdf671cb2fea9 WHIRLPOOL 33ba90e5cdd54ecd7a03af8c5d2c1d2e8cfc88bfc53b65e5240eb4c60d6138007b754a60e8b1e79c98ce92e299d14f1a0cce445ad40b04e862adf3919401d77d |
24 |
DIST ibus-1.5.8.tar.gz 2120220 SHA256 cfc562ae73de753dc8cb9ae30fe117286ddd94cd109002108f2eeb47e8101a29 SHA512 428e40be7ebea57832295e76b5c4350351c6d40c5178c57c61c8d6f31e524a315184c3d533ad88592e53ae7c6cb4beed67796ad61910f99f260fc9c243b2fc98 WHIRLPOOL 2fc0059a75b3f4b253770303a8c9c8ae02947153eaf7b9c220e2e10657275293a556b068ba4cad0d27f315b7374ffaedb53b20cd13f8408a3729cfaaea869d78 |
25 |
DIST ibus-1.5.9-upstream-patches-0.tar.xz 30380 SHA256 9efe631008cfad1d59db01a83ae093149b2c827d480705836f0bf8a29706f1e0 SHA512 98c323de9793938d8c0bd646071d0ea7860212e3ae826e97ed0e0a092ec715084529b3a3cee3def63958dd3d56357b2e33e4e3d3946cca90bec3409469cf14d4 WHIRLPOOL 0aaf7aaba36de96525f0339a16df2c435e2f2c5cc6168c9b2da25bd7003af88f6d55ca53ae692c9c611b563ddfcb48a0e19e915f8361ba51a4aac813edc45f41 |
26 |
|
27 |
diff --git a/app-i18n/ibus/ibus-1.5.11.ebuild b/app-i18n/ibus/ibus-1.5.11.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..e349271 |
30 |
--- /dev/null |
31 |
+++ b/app-i18n/ibus/ibus-1.5.11.ebuild |
32 |
@@ -0,0 +1,191 @@ |
33 |
+# Copyright 1999-2015 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=5 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 ) |
40 |
+VALA_MIN_API_VERSION="0.20" |
41 |
+VALA_USE_DEPEND="vapigen" |
42 |
+# Vapigen is needed for the vala binding |
43 |
+# Valac is needed when building from git for the engine |
44 |
+UPSTREAM_VER= |
45 |
+ |
46 |
+inherit autotools bash-completion-r1 eutils gnome2-utils multilib python-single-r1 readme.gentoo vala virtualx |
47 |
+ |
48 |
+DESCRIPTION="Intelligent Input Bus for Linux / Unix OS" |
49 |
+HOMEPAGE="http://code.google.com/p/ibus/" |
50 |
+ |
51 |
+LICENSE="LGPL-2.1" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
54 |
+IUSE="deprecated gconf gtk +gtk3 +introspection nls +python test vala wayland +X" |
55 |
+REQUIRED_USE=" |
56 |
+ || ( gtk gtk3 X ) |
57 |
+ deprecated? ( python ) |
58 |
+ vala? ( introspection ) |
59 |
+ python? ( |
60 |
+ ${PYTHON_REQUIRED_USE} |
61 |
+ || ( deprecated ( gtk3 introspection ) ) )" #342903 |
62 |
+ |
63 |
+[[ -n ${UPSTREAM_VER} ]] && \ |
64 |
+ UPSTRAM_PATCHSET_URI="http://dev.gentoo.org/~dlan/distfiles/${P}-upstream-patches-${UPSTREAM_VER}.tar.xz" |
65 |
+ |
66 |
+SRC_URI="https://github.com/ibus/ibus/releases/download/${PV}/${P}.tar.gz |
67 |
+ ${UPSTRAM_PATCHSET_URI}" |
68 |
+ |
69 |
+COMMON_DEPEND=" |
70 |
+ >=dev-libs/glib-2.26:2 |
71 |
+ gnome-base/librsvg:2 |
72 |
+ sys-apps/dbus[X?] |
73 |
+ app-text/iso-codes |
74 |
+ >=gnome-base/dconf-0.13.4 |
75 |
+ x11-libs/libnotify |
76 |
+ gconf? ( >=gnome-base/gconf-2.12:2 ) |
77 |
+ gtk? ( x11-libs/gtk+:2 ) |
78 |
+ gtk3? ( x11-libs/gtk+:3 ) |
79 |
+ python? ( ${PYTHON_DEPS} ) |
80 |
+ X? ( |
81 |
+ x11-libs/libX11 |
82 |
+ x11-libs/gtk+:2 ) |
83 |
+ introspection? ( >=dev-libs/gobject-introspection-0.6.8 ) |
84 |
+ nls? ( virtual/libintl ) |
85 |
+ wayland? ( dev-libs/wayland )" |
86 |
+RDEPEND="${COMMON_DEPEND} |
87 |
+ x11-apps/setxkbmap |
88 |
+ python? ( |
89 |
+ dev-python/pyxdg |
90 |
+ deprecated? ( |
91 |
+ >=dev-python/dbus-python-0.83 |
92 |
+ dev-python/pygobject:2 |
93 |
+ dev-python/pygtk:2 ) |
94 |
+ gtk3? ( |
95 |
+ dev-python/pygobject:3 |
96 |
+ x11-libs/gdk-pixbuf:2[introspection] |
97 |
+ x11-libs/pango[introspection] |
98 |
+ x11-libs/gtk+:3[introspection] ) |
99 |
+ )" |
100 |
+DEPEND="${COMMON_DEPEND} |
101 |
+ >=dev-lang/perl-5.8.1 |
102 |
+ dev-util/gtk-doc-am |
103 |
+ dev-util/intltool |
104 |
+ virtual/pkgconfig |
105 |
+ nls? ( >=sys-devel/gettext-0.16.1 ) |
106 |
+ vala? ( $(vala_depend) )" |
107 |
+ |
108 |
+# stress test in bus/ fails |
109 |
+# IBUS-CRITICAL **: bus_test_client_init: assertion `ibus_bus_is_connected (_bus)' failed |
110 |
+RESTRICT="test" |
111 |
+ |
112 |
+DOCS="AUTHORS ChangeLog NEWS README" |
113 |
+ |
114 |
+DISABLE_AUTOFORMATTING="yes" |
115 |
+DOC_CONTENTS="To use ibus, you should: |
116 |
+1. Get input engines from sunrise overlay. |
117 |
+Run \"emerge -s ibus-\" in your favorite terminal |
118 |
+for a list of packages we already have. |
119 |
+ |
120 |
+2. Setup ibus: |
121 |
+$ ibus-setup |
122 |
+ |
123 |
+3. Set the following in your user startup scripts |
124 |
+such as .xinitrc, .xsession or .xprofile: |
125 |
+ |
126 |
+export XMODIFIERS=\"@im=ibus\" |
127 |
+export GTK_IM_MODULE=\"ibus\" |
128 |
+export QT_IM_MODULE=\"xim\" |
129 |
+ibus-daemon -d -x |
130 |
+" |
131 |
+ |
132 |
+pkg_setup() { |
133 |
+ use python && python-single-r1_pkg_setup |
134 |
+} |
135 |
+ |
136 |
+src_prepare() { |
137 |
+ # Upstream's patchset |
138 |
+ if [[ -n ${UPSTREAM_VER} ]]; then |
139 |
+ EPATCH_SUFFIX="patch" \ |
140 |
+ EPATCH_FORCE="yes" \ |
141 |
+ EPATCH_OPTS="-p1" \ |
142 |
+ epatch "${WORKDIR}"/patches-upstream |
143 |
+ fi |
144 |
+ |
145 |
+ # We run "dconf update" in pkg_postinst/postrm to avoid sandbox violations |
146 |
+ sed -e 's/dconf update/:/' \ |
147 |
+ -i data/dconf/Makefile.{am,in} || die |
148 |
+ use vala && vala_src_prepare |
149 |
+ |
150 |
+ eautoreconf |
151 |
+} |
152 |
+ |
153 |
+src_configure() { |
154 |
+ local python_conf |
155 |
+ if use python; then |
156 |
+ python_conf="PYTHON=${PYTHON} |
157 |
+ $(use_enable deprecated python-library) |
158 |
+ $(use_enable gtk3 setup)" |
159 |
+ else |
160 |
+ python_conf="--disable-python-library --disable-setup" |
161 |
+ fi |
162 |
+ econf \ |
163 |
+ --enable-dconf \ |
164 |
+ $(use_enable introspection) \ |
165 |
+ $(use_enable gconf) \ |
166 |
+ $(use_enable gtk gtk2) \ |
167 |
+ $(use_enable gtk xim) \ |
168 |
+ $(use_enable gtk3) \ |
169 |
+ $(use_enable gtk3 ui) \ |
170 |
+ $(use_enable nls) \ |
171 |
+ $(use_enable test tests) \ |
172 |
+ $(use_enable X xim) \ |
173 |
+ $(use_enable vala) \ |
174 |
+ $(use_enable wayland) \ |
175 |
+ ${python_conf} |
176 |
+} |
177 |
+ |
178 |
+src_test() { |
179 |
+ unset DBUS_SESSION_BUS_ADDRESS |
180 |
+ Xemake check || die |
181 |
+} |
182 |
+ |
183 |
+src_install() { |
184 |
+ default |
185 |
+ |
186 |
+ prune_libtool_files --all |
187 |
+ |
188 |
+ mv "${ED}"/usr/share/bash-completion/completions/ibus.bash "${T}" |
189 |
+ rm -rf "${ED}"/usr/share/bash-completion || die |
190 |
+ newbashcomp "${T}"/ibus.bash ${PN} |
191 |
+ insinto /etc/X11/xinit/xinput.d |
192 |
+ newins xinput-ibus ibus.conf |
193 |
+ |
194 |
+ keepdir /usr/share/ibus/{engine,icons} #289547 |
195 |
+ |
196 |
+ use deprecated && python_optimize |
197 |
+ use python && use gtk3 && python_optimize |
198 |
+ |
199 |
+ readme.gentoo_create_doc |
200 |
+} |
201 |
+ |
202 |
+pkg_preinst() { |
203 |
+ use gconf && gnome2_gconf_savelist |
204 |
+ gnome2_schemas_savelist |
205 |
+ gnome2_icon_savelist |
206 |
+} |
207 |
+ |
208 |
+pkg_postinst() { |
209 |
+ use gconf && gnome2_gconf_install |
210 |
+ use gtk && gnome2_query_immodules_gtk2 |
211 |
+ use gtk3 && gnome2_query_immodules_gtk3 |
212 |
+ gnome2_schemas_update |
213 |
+ gnome2_icon_cache_update |
214 |
+ readme.gentoo_print_elog |
215 |
+} |
216 |
+ |
217 |
+pkg_postrm() { |
218 |
+ use gtk && gnome2_query_immodules_gtk2 |
219 |
+ use gtk3 && gnome2_query_immodules_gtk3 |
220 |
+ use gconf && gnome2_schemas_update |
221 |
+ gnome2_schemas_savelist |
222 |
+ gnome2_icon_cache_update |
223 |
+} |