Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/ibus/
Date: Thu, 02 Sep 2021 07:10:04
Message-Id: 1630566267.fe2411ab19e1a300efcf1e4b7157da77939a7673.dlan@gentoo
1 commit: fe2411ab19e1a300efcf1e4b7157da77939a7673
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 2 07:03:48 2021 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 2 07:04:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe2411ab
7
8 app-i18n/ibus: version bump, 1.5.25
9
10 Closes: https://bugs.gentoo.org/810331
11 Package-Manager: Portage-3.0.22, Repoman-3.0.3
12 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>
13
14 app-i18n/ibus/Manifest | 1 +
15 app-i18n/ibus/ibus-1.5.25.ebuild | 191 +++++++++++++++++++++++++++++++++++++++
16 2 files changed, 192 insertions(+)
17
18 diff --git a/app-i18n/ibus/Manifest b/app-i18n/ibus/Manifest
19 index d855d77a1a0..f7c93136993 100644
20 --- a/app-i18n/ibus/Manifest
21 +++ b/app-i18n/ibus/Manifest
22 @@ -2,3 +2,4 @@ DIST ibus-1.5.22.tar.gz 3578251 BLAKE2B 08ad72bd455d2841700b11a4ade88e2b9768433f
23 DIST ibus-1.5.23-gentoo-patches-1.tar.xz 1596 BLAKE2B 5a2c084cb25cb35d16eba8e6953c1ffc249875ab11485a675497f04a4366ea3fe216bab3407f390a0330f4f17cf5a70a43547160cc9c29a6b14890fcb7867456 SHA512 a1c2a77dbc4185c3658c36b998c9d925fff2bbeb9bc5fde5c74c62081056f134875d557ba0b4af7b06d56f004975889f453adea623541d3bfff2c391912efa05
24 DIST ibus-1.5.23.tar.gz 3557661 BLAKE2B 4cfb3287c80d46e55090d4f361dd977f4be5988a8b7ffc24755954090dc25021ea6cbb6798769494e6cd70267aac6daa238fdc7cf4156296d93f79f325a18ac4 SHA512 4ea66d0a7203d665fb5c90e59ddf294614feeafc4f06b10e35989671a9bf39d5977e9061b9be224cd5a9439ac2f697a4326ff221ae868f5ebed46cbb09e9a205
25 DIST ibus-1.5.24.tar.gz 3614372 BLAKE2B 4b851ed9dc8283bf58957adfd5dd4bf7da8b019f95055dbbf7fa157502b3dcc11d561881ff6afa5db0b83b4e7d82f3bd228cd0e21ff77cb81b1eaca246deb135 SHA512 25f34a51a5c85352e61699ca36bf7ddb9b486b28d71e15ce3a52b78bc9db2f8cb558049e0652fdc5431215a5f826fcb5a7d5e44f0de9a2ff746aaf60672e2f22
26 +DIST ibus-1.5.25.tar.gz 3669787 BLAKE2B 0a568c77d29dfbe0c2c8cdbe8c8ae86b69c7a1a5fa692cf05e9ce13894fcee200c41de91ec0ad88ae9e745e3061b9c92b7fd18641bd297f5bf4a9bc308ace983 SHA512 4b8955a20a1e5a0daf61213817a9697874439866e235e6a7905f5994b145cd5a143e6cfc41f17204a828756baeb8edab70698596731ecebf7f1eea7cc5f36aa6
27
28 diff --git a/app-i18n/ibus/ibus-1.5.25.ebuild b/app-i18n/ibus/ibus-1.5.25.ebuild
29 new file mode 100644
30 index 00000000000..9dc461da301
31 --- /dev/null
32 +++ b/app-i18n/ibus/ibus-1.5.25.ebuild
33 @@ -0,0 +1,191 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +PYTHON_COMPAT=( python{3_7,3_8,3_9} )
39 +VALA_MIN_API_VERSION="0.34"
40 +VALA_MAX_API_VERSION="0.50"
41 +VALA_USE_DEPEND="vapigen"
42 +
43 +inherit autotools bash-completion-r1 gnome2-utils python-r1 vala virtualx xdg-utils
44 +
45 +GENTOO_VER=
46 +DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
47 +HOMEPAGE="https://github.com/ibus/ibus/wiki"
48 +
49 +[[ -n ${GENTOO_VER} ]] && \
50 + GENTOO_PATCHSET_URI="https://dev.gentoo.org/~dlan/distfiles/${P}-gentoo-patches-${GENTOO_VER}.tar.xz"
51 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz
52 + ${GENTOO_PATCHSET_URI}"
53 +
54 +LICENSE="LGPL-2.1"
55 +SLOT="0"
56 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
57 +IUSE="+X +emoji +gtk +gtk2 +introspection kde nls +python test +unicode vala wayland"
58 +RESTRICT="!test? ( test )"
59 +REQUIRED_USE="emoji? ( gtk )
60 + gtk2? ( gtk )
61 + kde? ( gtk )
62 + python? (
63 + ${PYTHON_REQUIRED_USE}
64 + introspection
65 + )
66 + test? ( gtk )
67 + vala? ( introspection )"
68 +
69 +CDEPEND="app-text/iso-codes
70 + dev-libs/glib:2
71 + gnome-base/dconf
72 + gnome-base/librsvg:2
73 + sys-apps/dbus[X?]
74 + X? (
75 + x11-libs/libX11
76 + >=x11-libs/libXfixes-6.0.0
77 + !gtk? ( x11-libs/gtk+:2 )
78 + )
79 + gtk? (
80 + x11-libs/gtk+:3
81 + x11-libs/libX11
82 + x11-libs/libXi
83 + gtk2? ( x11-libs/gtk+:2 )
84 + )
85 + introspection? ( dev-libs/gobject-introspection )
86 + kde? ( dev-qt/qtgui:5 )
87 + nls? ( virtual/libintl )
88 + python? (
89 + ${PYTHON_DEPS}
90 + dev-python/pygobject:3[${PYTHON_USEDEP}]
91 + )
92 + wayland? (
93 + dev-libs/wayland
94 + x11-libs/libxkbcommon
95 + )"
96 +RDEPEND="${CDEPEND}
97 + python? (
98 + gtk? (
99 + x11-libs/gtk+:3[introspection]
100 + )
101 + )"
102 +DEPEND="${CDEPEND}
103 + $(vala_depend)
104 + dev-util/glib-utils
105 + virtual/pkgconfig
106 + x11-misc/xkeyboard-config
107 + emoji? (
108 + app-i18n/unicode-cldr
109 + app-i18n/unicode-emoji
110 + )
111 + nls? ( sys-devel/gettext )
112 + unicode? ( app-i18n/unicode-data )"
113 +
114 +src_prepare() {
115 + vala_src_prepare --ignore-use
116 + sed -i "/UCD_DIR=/s/\$with_emoji_annotation_dir/\$with_ucd_dir/" configure.ac
117 + if ! has_version 'x11-libs/gtk+:3[wayland]'; then
118 + touch ui/gtk3/panelbinding.vala
119 + fi
120 + if ! use emoji; then
121 + touch \
122 + tools/main.vala \
123 + ui/gtk3/panel.vala
124 + fi
125 + if ! use kde; then
126 + touch ui/gtk3/panel.vala
127 + fi
128 + if [[ -n ${GENTOO_VER} ]]; then
129 + einfo "Try to apply Gentoo specific patch set"
130 + eapply "${WORKDIR}"/patches-gentoo/*.patch
131 + fi
132 +
133 + # for multiple Python implementations
134 + sed -i "s/^\(PYGOBJECT_DIR =\).*/\1/" bindings/Makefile.am
135 + # fix for parallel install
136 + sed -i "/^if ENABLE_PYTHON2/,/^endif/d" bindings/pygobject/Makefile.am
137 + # require user interaction
138 + sed -i "/^TESTS += ibus-\(compose\|keypress\)/d" src/tests/Makefile.am
139 +
140 + sed -i "/^bash_completion/d" tools/Makefile.am
141 +
142 + default
143 + eautoreconf
144 + xdg_environment_reset
145 +}
146 +
147 +src_configure() {
148 + local unicodedir="${EPREFIX}"/usr/share/unicode
149 + local python_conf=()
150 + if use python; then
151 + python_setup
152 + python_conf+=(
153 + $(use_enable gtk setup)
154 + --with-python=${EPYTHON}
155 + )
156 + else
157 + python_conf+=( --disable-setup )
158 + fi
159 +
160 + econf \
161 + $(use_enable X xim) \
162 + $(use_enable emoji emoji-dict) \
163 + $(use_with emoji unicode-emoji-dir "${unicodedir}"/emoji) \
164 + $(use_with emoji emoji-annotation-dir "${unicodedir}"/cldr/common/annotations) \
165 + $(use_enable gtk gtk3) \
166 + $(use_enable gtk ui) \
167 + $(use_enable gtk2) \
168 + $(use_enable introspection) \
169 + $(use_enable kde appindicator) \
170 + $(use_enable nls) \
171 + $(use_enable test tests) \
172 + $(use_enable unicode unicode-dict) \
173 + $(use_with unicode ucd-dir "${EPREFIX}/usr/share/unicode-data") \
174 + $(use_enable vala) \
175 + $(use_enable wayland) \
176 + "${python_conf[@]}"
177 +}
178 +
179 +src_test() {
180 + unset DBUS_SESSION_BUS_ADDRESS
181 + virtx emake -j1 check
182 +}
183 +
184 +src_install() {
185 + default
186 + find "${ED}" -name '*.la' -delete || die
187 +
188 + if use python; then
189 + python_install() {
190 + emake -C bindings/pygobject \
191 + pyoverridesdir="$(${EPYTHON} -c 'import gi; print(gi._overridesdir)')" \
192 + DESTDIR="${D}" \
193 + install
194 +
195 + python_optimize
196 + }
197 + python_foreach_impl python_install
198 + fi
199 +
200 + keepdir /usr/share/ibus/engine
201 +
202 + newbashcomp tools/${PN}.bash ${PN}
203 +
204 + insinto /etc/X11/xinit/xinput.d
205 + newins xinput-${PN} ${PN}.conf
206 +
207 + # Undo compression of man page
208 + find "${ED}"/usr/share/man -type f -name '*.gz' -exec gzip -d {} \; || die
209 +}
210 +
211 +pkg_postinst() {
212 + use gtk && gnome2_query_immodules_gtk3
213 + use gtk2 && gnome2_query_immodules_gtk2
214 + xdg_icon_cache_update
215 + gnome2_schemas_update
216 + dconf update
217 +}
218 +
219 +pkg_postrm() {
220 + use gtk && gnome2_query_immodules_gtk3
221 + use gtk2 && gnome2_query_immodules_gtk2
222 + xdg_icon_cache_update
223 + gnome2_schemas_update
224 +}