commit:     f50617f4ab7753f911b0644ff1d955597adeb38f
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Sun Mar 30 19:51:38 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 31 21:30:38 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f50617f4

media-gfx/cellwriter: update EAPI 7 -> 8

Closes: https://bugs.gentoo.org/944485
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/41390
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-gfx/cellwriter/cellwriter-1.3.6-r1.ebuild    | 34 ++++++++++++++++++++++
 .../cellwriter/files/cellwriter-1.3.6-gcc15.patch  | 13 +++++++++
 2 files changed, 47 insertions(+)

diff --git a/media-gfx/cellwriter/cellwriter-1.3.6-r1.ebuild 
b/media-gfx/cellwriter/cellwriter-1.3.6-r1.ebuild
new file mode 100644
index 000000000000..a7316ea343d5
--- /dev/null
+++ b/media-gfx/cellwriter/cellwriter-1.3.6-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit xdg
+
+DESCRIPTION="Grid-entry natural handwriting input panel"
+HOMEPAGE="http://risujin.org/cellwriter/";
+SRC_URI="https://github.com/risujin/cellwriter/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="x11-libs/gtk+:2
+       x11-libs/libX11
+       x11-libs/libXtst"
+DEPEND="${RDEPEND}
+       x11-base/xorg-proto"
+BDEPEND="virtual/pkgconfig"
+
+DOCS="AUTHORS ChangeLog README TODO" # NEWS is no-op
+
+PATCHES=(
+       "${FILESDIR}/${PN}-1.3.6-fno-common.patch"
+       "${FILESDIR}/${PN}-1.3.6-gcc15.patch"
+)
+
+src_prepare() {
+       default
+
+       sed -i -e '/Encoding/d' ${PN}.desktop || die
+}

diff --git a/media-gfx/cellwriter/files/cellwriter-1.3.6-gcc15.patch 
b/media-gfx/cellwriter/files/cellwriter-1.3.6-gcc15.patch
new file mode 100644
index 000000000000..017650c5f952
--- /dev/null
+++ b/media-gfx/cellwriter/files/cellwriter-1.3.6-gcc15.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/944485
+
+--- a/src/window.c
++++ b/src/window.c
+@@ -571,7 +571,7 @@ static void print_window_xid(GtkWidget *widget)
+         g_print("%d\n", (unsigned int)GDK_WINDOW_XID(widget->window));
+ }
+ 
+-static gint status_icon_embedded_check() {
++static gint status_icon_embedded_check(void* a) {
+         if (!status_icon_embedded()) {
+                 g_debug("Status icon failed to embed, showing window.");
+                 window_shown = TRUE;

Reply via email to