commit:     123040fa5d7b8c527c02fab1d3128730d0adc7fa
Author:     Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Wed Feb 14 17:44:25 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec 14 16:30:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=123040fa

app-i18n/ibus-hangul: Fix passing argument from incompatible pointer

Closes: https://bugs.gentoo.org/924488
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35324
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/ibus-hangul-1.5.4-gcc14-fix.patch        | 12 +++++
 app-i18n/ibus-hangul/ibus-hangul-1.5.4-r1.ebuild   | 63 ++++++++++++++++++++++
 2 files changed, 75 insertions(+)

diff --git a/app-i18n/ibus-hangul/files/ibus-hangul-1.5.4-gcc14-fix.patch 
b/app-i18n/ibus-hangul/files/ibus-hangul-1.5.4-gcc14-fix.patch
new file mode 100644
index 000000000000..d99a6bce8890
--- /dev/null
+++ b/app-i18n/ibus-hangul/files/ibus-hangul-1.5.4-gcc14-fix.patch
@@ -0,0 +1,12 @@
+Bug: https://bugs.gentoo.org/924488
+--- a/tests/ibus-hangul.c
++++ b/tests/ibus-hangul.c
+@@ -261,7 +261,7 @@ create_window ()
+                       G_CALLBACK (window_inserted_text_cb), entry);
+     gtk_container_add (GTK_CONTAINER (window), entry);
+     gtk_widget_show_all (window);
+-    gtk_window_present (window);
++    gtk_window_present (GTK_WINDOW(window));
+ }
+ 
+ static void

diff --git a/app-i18n/ibus-hangul/ibus-hangul-1.5.4-r1.ebuild 
b/app-i18n/ibus-hangul/ibus-hangul-1.5.4-r1.ebuild
new file mode 100644
index 000000000000..7955eeb8596a
--- /dev/null
+++ b/app-i18n/ibus-hangul/ibus-hangul-1.5.4-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+
+inherit gnome2-utils python-single-r1 xdg virtualx
+
+DESCRIPTION="Korean Hangul engine for IBus"
+HOMEPAGE="https://github.com/libhangul/ibus-hangul/wiki";
+SRC_URI="https://github.com/libhangul/${PN}/releases/download/${PV}/${P}.tar.gz";
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+       $(python_gen_cond_dep '
+               app-i18n/ibus[python(+),${PYTHON_USEDEP}]
+               dev-python/pygobject:3[${PYTHON_USEDEP}]
+       ')
+       >=app-i18n/libhangul-0.1
+       nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}"
+BDEPEND="sys-devel/gettext
+       virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-test.patch
+       "${FILESDIR}"/${PN}-1.5.4-gcc14-fix.patch
+)
+
+src_configure() {
+       econf \
+               $(use_enable nls) \
+               --with-python=${EPYTHON}
+}
+
+src_test() {
+       "${BROOT}"${GLIB_COMPILE_SCHEMAS} --allow-any-name "${S}"/data || die
+
+       export GSETTINGS_BACKEND="memory"
+       export GSETTINGS_SCHEMA_DIR="${S}/data"
+       virtx default
+}
+
+pkg_preinst() {
+       xdg_pkg_preinst
+       gnome2_schemas_savelist
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+       gnome2_schemas_update
+}
+
+pkg_postrm() {
+       xdg_pkg_postrm
+       gnome2_schemas_update
+}

Reply via email to