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: Fri, 09 Jul 2021 13:50:58
Message-Id: 1625838608.956f0e49aa96845c0a6259f9c5f191aacfd8fe5e.dlan@gentoo
1 commit: 956f0e49aa96845c0a6259f9c5f191aacfd8fe5e
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 9 13:49:15 2021 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 9 13:50:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=956f0e49
7
8 app-i18n/ibus: version bump 1.5.24
9
10 Closes: https://bugs.gentoo.org/793698
11 Package-Manager: Portage-3.0.19, 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.24.ebuild | 190 +++++++++++++++++++++++++++++++++++++++
16 2 files changed, 191 insertions(+)
17
18 diff --git a/app-i18n/ibus/Manifest b/app-i18n/ibus/Manifest
19 index 95bd66e5e01..d855d77a1a0 100644
20 --- a/app-i18n/ibus/Manifest
21 +++ b/app-i18n/ibus/Manifest
22 @@ -1,3 +1,4 @@
23 DIST ibus-1.5.22.tar.gz 3578251 BLAKE2B 08ad72bd455d2841700b11a4ade88e2b9768433f86bac4baf20db882580b10a4705f545a845a03d3b4196a75c43d33c51ffd31a3516d71030f891ce48dce69c2 SHA512 0abe89acc6da8cea484a6b9f807c08e94869072f374f9e8f4541a426636f818f1c3cb8b9237f97245771f9e4bf19184983d8ac924177dc4824ca6e8b5304425d
24 DIST ibus-1.5.23-gentoo-patches-1.tar.xz 1596 BLAKE2B 5a2c084cb25cb35d16eba8e6953c1ffc249875ab11485a675497f04a4366ea3fe216bab3407f390a0330f4f17cf5a70a43547160cc9c29a6b14890fcb7867456 SHA512 a1c2a77dbc4185c3658c36b998c9d925fff2bbeb9bc5fde5c74c62081056f134875d557ba0b4af7b06d56f004975889f453adea623541d3bfff2c391912efa05
25 DIST ibus-1.5.23.tar.gz 3557661 BLAKE2B 4cfb3287c80d46e55090d4f361dd977f4be5988a8b7ffc24755954090dc25021ea6cbb6798769494e6cd70267aac6daa238fdc7cf4156296d93f79f325a18ac4 SHA512 4ea66d0a7203d665fb5c90e59ddf294614feeafc4f06b10e35989671a9bf39d5977e9061b9be224cd5a9439ac2f697a4326ff221ae868f5ebed46cbb09e9a205
26 +DIST ibus-1.5.24.tar.gz 3614372 BLAKE2B 4b851ed9dc8283bf58957adfd5dd4bf7da8b019f95055dbbf7fa157502b3dcc11d561881ff6afa5db0b83b4e7d82f3bd228cd0e21ff77cb81b1eaca246deb135 SHA512 25f34a51a5c85352e61699ca36bf7ddb9b486b28d71e15ce3a52b78bc9db2f8cb558049e0652fdc5431215a5f826fcb5a7d5e44f0de9a2ff746aaf60672e2f22
27
28 diff --git a/app-i18n/ibus/ibus-1.5.24.ebuild b/app-i18n/ibus/ibus-1.5.24.ebuild
29 new file mode 100644
30 index 00000000000..6d3e001df23
31 --- /dev/null
32 +++ b/app-i18n/ibus/ibus-1.5.24.ebuild
33 @@ -0,0 +1,190 @@
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 ~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 + !gtk? ( x11-libs/gtk+:2 )
77 + )
78 + gtk? (
79 + x11-libs/gtk+:3
80 + x11-libs/libX11
81 + x11-libs/libXi
82 + gtk2? ( x11-libs/gtk+:2 )
83 + )
84 + introspection? ( dev-libs/gobject-introspection )
85 + kde? ( dev-qt/qtgui:5 )
86 + nls? ( virtual/libintl )
87 + python? (
88 + ${PYTHON_DEPS}
89 + dev-python/pygobject:3[${PYTHON_USEDEP}]
90 + )
91 + wayland? (
92 + dev-libs/wayland
93 + x11-libs/libxkbcommon
94 + )"
95 +RDEPEND="${CDEPEND}
96 + python? (
97 + gtk? (
98 + x11-libs/gtk+:3[introspection]
99 + )
100 + )"
101 +DEPEND="${CDEPEND}
102 + $(vala_depend)
103 + dev-util/glib-utils
104 + virtual/pkgconfig
105 + x11-misc/xkeyboard-config
106 + emoji? (
107 + app-i18n/unicode-cldr
108 + app-i18n/unicode-emoji
109 + )
110 + nls? ( sys-devel/gettext )
111 + unicode? ( app-i18n/unicode-data )"
112 +
113 +src_prepare() {
114 + vala_src_prepare --ignore-use
115 + sed -i "/UCD_DIR=/s/\$with_emoji_annotation_dir/\$with_ucd_dir/" configure.ac
116 + if ! has_version 'x11-libs/gtk+:3[wayland]'; then
117 + touch ui/gtk3/panelbinding.vala
118 + fi
119 + if ! use emoji; then
120 + touch \
121 + tools/main.vala \
122 + ui/gtk3/panel.vala
123 + fi
124 + if ! use kde; then
125 + touch ui/gtk3/panel.vala
126 + fi
127 + if [[ -n ${GENTOO_VER} ]]; then
128 + einfo "Try to apply Gentoo specific patch set"
129 + eapply "${WORKDIR}"/patches-gentoo/*.patch
130 + fi
131 +
132 + # for multiple Python implementations
133 + sed -i "s/^\(PYGOBJECT_DIR =\).*/\1/" bindings/Makefile.am
134 + # fix for parallel install
135 + sed -i "/^if ENABLE_PYTHON2/,/^endif/d" bindings/pygobject/Makefile.am
136 + # require user interaction
137 + sed -i "/^TESTS += ibus-\(compose\|keypress\)/d" src/tests/Makefile.am
138 +
139 + sed -i "/^bash_completion/d" tools/Makefile.am
140 +
141 + default
142 + eautoreconf
143 + xdg_environment_reset
144 +}
145 +
146 +src_configure() {
147 + local unicodedir="${EPREFIX}"/usr/share/unicode
148 + local python_conf=()
149 + if use python; then
150 + python_setup
151 + python_conf+=(
152 + $(use_enable gtk setup)
153 + --with-python=${EPYTHON}
154 + )
155 + else
156 + python_conf+=( --disable-setup )
157 + fi
158 +
159 + econf \
160 + $(use_enable X xim) \
161 + $(use_enable emoji emoji-dict) \
162 + $(use_with emoji unicode-emoji-dir "${unicodedir}"/emoji) \
163 + $(use_with emoji emoji-annotation-dir "${unicodedir}"/cldr/common/annotations) \
164 + $(use_enable gtk gtk3) \
165 + $(use_enable gtk ui) \
166 + $(use_enable gtk2) \
167 + $(use_enable introspection) \
168 + $(use_enable kde appindicator) \
169 + $(use_enable nls) \
170 + $(use_enable test tests) \
171 + $(use_enable unicode unicode-dict) \
172 + $(use_with unicode ucd-dir "${EPREFIX}/usr/share/unicode-data") \
173 + $(use_enable vala) \
174 + $(use_enable wayland) \
175 + "${python_conf[@]}"
176 +}
177 +
178 +src_test() {
179 + unset DBUS_SESSION_BUS_ADDRESS
180 + virtx emake -j1 check
181 +}
182 +
183 +src_install() {
184 + default
185 + find "${ED}" -name '*.la' -delete || die
186 +
187 + if use python; then
188 + python_install() {
189 + emake -C bindings/pygobject \
190 + pyoverridesdir="$(${EPYTHON} -c 'import gi; print(gi._overridesdir)')" \
191 + DESTDIR="${D}" \
192 + install
193 +
194 + python_optimize
195 + }
196 + python_foreach_impl python_install
197 + fi
198 +
199 + keepdir /usr/share/ibus/engine
200 +
201 + newbashcomp tools/${PN}.bash ${PN}
202 +
203 + insinto /etc/X11/xinit/xinput.d
204 + newins xinput-${PN} ${PN}.conf
205 +
206 + # Undo compression of man page
207 + find "${ED}"/usr/share/man -type f -name '*.gz' -exec gzip -d {} \; || die
208 +}
209 +
210 +pkg_postinst() {
211 + use gtk && gnome2_query_immodules_gtk3
212 + use gtk2 && gnome2_query_immodules_gtk2
213 + xdg_icon_cache_update
214 + gnome2_schemas_update
215 + dconf update
216 +}
217 +
218 +pkg_postrm() {
219 + use gtk && gnome2_query_immodules_gtk3
220 + use gtk2 && gnome2_query_immodules_gtk2
221 + xdg_icon_cache_update
222 + gnome2_schemas_update
223 +}