Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/ibus-hangul/files/, app-i18n/ibus-hangul/
Date: Fri, 15 Oct 2021 13:40:47
Message-Id: 1634305223.b1bd9b45d1d5217a547f0d119b6162e0c3280282.hattya@gentoo
1 commit: b1bd9b45d1d5217a547f0d119b6162e0c3280282
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 15 13:40:23 2021 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 15 13:40:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1bd9b45
7
8 app-i18n/ibus-hangul: fix tests
9
10 Closes: https://bugs.gentoo.org/740466
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>
13
14 app-i18n/ibus-hangul/files/ibus-hangul-test.patch | 20 ++++++++++++++++++++
15 app-i18n/ibus-hangul/ibus-hangul-1.5.4.ebuild | 14 ++++++++++++--
16 2 files changed, 32 insertions(+), 2 deletions(-)
17
18 diff --git a/app-i18n/ibus-hangul/files/ibus-hangul-test.patch b/app-i18n/ibus-hangul/files/ibus-hangul-test.patch
19 new file mode 100644
20 index 00000000000..7a6ef479f0e
21 --- /dev/null
22 +++ b/app-i18n/ibus-hangul/files/ibus-hangul-test.patch
23 @@ -0,0 +1,20 @@
24 +--- a/tests/ibus-hangul.c
25 ++++ b/tests/ibus-hangul.c
26 +@@ -261,6 +261,7 @@
27 + G_CALLBACK (window_inserted_text_cb), entry);
28 + gtk_container_add (GTK_CONTAINER (window), entry);
29 + gtk_widget_show_all (window);
30 ++ gtk_window_present (window);
31 + }
32 +
33 + static void
34 +--- a/tests/runtest
35 ++++ b/tests/runtest
36 +@@ -7,7 +7,6 @@
37 + : ${DISABLE_GUI_TESTS:=''}
38 +
39 + ibus-daemon --xim --panel disable --config disable &
40 +-sleep 30
41 +
42 + tst=$1
43 +
44
45 diff --git a/app-i18n/ibus-hangul/ibus-hangul-1.5.4.ebuild b/app-i18n/ibus-hangul/ibus-hangul-1.5.4.ebuild
46 index 4d13e3d9b11..e8b64f68faa 100644
47 --- a/app-i18n/ibus-hangul/ibus-hangul-1.5.4.ebuild
48 +++ b/app-i18n/ibus-hangul/ibus-hangul-1.5.4.ebuild
49 @@ -2,9 +2,9 @@
50 # Distributed under the terms of the GNU General Public License v2
51
52 EAPI="7"
53 +PYTHON_COMPAT=( python3_{8..9} )
54
55 -PYTHON_COMPAT=( python3_{8,9} )
56 -inherit gnome2-utils python-single-r1 xdg
57 +inherit gnome2-utils python-single-r1 xdg virtualx
58
59 DESCRIPTION="Korean Hangul engine for IBus"
60 HOMEPAGE="https://github.com/libhangul/ibus-hangul/wiki"
61 @@ -27,12 +27,22 @@ DEPEND="${RDEPEND}"
62 BDEPEND="sys-devel/gettext
63 virtual/pkgconfig"
64
65 +PATCHES=( "${FILESDIR}"/${PN}-test.patch )
66 +
67 src_configure() {
68 econf \
69 $(use_enable nls) \
70 --with-python=${EPYTHON}
71 }
72
73 +src_test() {
74 + "${BROOT}"${GLIB_COMPILE_SCHEMAS} --allow-any-name "${S}"/data || die
75 +
76 + export GSETTINGS_BACKEND="memory"
77 + export GSETTINGS_SCHEMA_DIR="${S}/data"
78 + virtx default
79 +}
80 +
81 pkg_preinst() {
82 xdg_pkg_preinst
83 gnome2_schemas_savelist