public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: x11-plugins/pidgin-hotkeys/, x11-plugins/pidgin-hotkeys/files/
@ 2025-08-20  8:04 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2025-08-20  8:04 UTC (permalink / raw
  To: gentoo-commits

commit:     84f1ceaabbd4e6907356912602509fd407bb6ecf
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Wed Aug 20 05:08:53 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 20 08:04:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84f1ceaa

x11-plugins/pidgin-hotkeys: update deps, fix gcc15

update SRC_URI (redirect)

add RDEP inherited from gtk+

patches :
remove use of bool key
remove debug compiler flag

Closes: https://bugs.gentoo.org/944281
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43502
Closes: https://github.com/gentoo/gentoo/pull/43502
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/pidgin-hotkeys-0.2.4-fix_cflags.patch    | 12 ++++++
 .../files/pidgin-hotkeys-0.2.4-fix_gcc15.patch     | 31 +++++++++++++++
 .../pidgin-hotkeys/pidgin-hotkeys-0.2.4-r3.ebuild  | 46 ++++++++++++++++++++++
 3 files changed, 89 insertions(+)

diff --git a/x11-plugins/pidgin-hotkeys/files/pidgin-hotkeys-0.2.4-fix_cflags.patch b/x11-plugins/pidgin-hotkeys/files/pidgin-hotkeys-0.2.4-fix_cflags.patch
new file mode 100644
index 000000000000..6e97a4f06bfb
--- /dev/null
+++ b/x11-plugins/pidgin-hotkeys/files/pidgin-hotkeys-0.2.4-fix_cflags.patch
@@ -0,0 +1,12 @@
+Remove debug flag
+--- a/configure.ac
++++ b/configure.ac
+@@ -50,7 +50,7 @@ AC_DEFINE_UNQUOTED(VERSION_MINOR, version_minor,
+ )
+ 
+ if test "x$GCC" = "xyes"; then
+-  CFLAGS="$CFLAGS -Wall -g3"
++  CFLAGS="$CFLAGS -Wall"
+ fi
+ AC_SUBST(CFLAGS)
+ 	

diff --git a/x11-plugins/pidgin-hotkeys/files/pidgin-hotkeys-0.2.4-fix_gcc15.patch b/x11-plugins/pidgin-hotkeys/files/pidgin-hotkeys-0.2.4-fix_gcc15.patch
new file mode 100644
index 000000000000..9f03e609a1ac
--- /dev/null
+++ b/x11-plugins/pidgin-hotkeys/files/pidgin-hotkeys-0.2.4-fix_gcc15.patch
@@ -0,0 +1,31 @@
+reported https://sourceforge.net/p/pidgin-hotkeys/patches/8/
+bool is a keyword since c23, use boolean instead
+--- a/src/hotkeys.c
++++ b/src/hotkeys.c
+@@ -216,21 +216,21 @@ free_keys(GtkWidget* widget)
+ static void
+ hotkey_set_bool(GtkWidget *widget, HotkeyEntry* key)
+ {
+-    gboolean bool;
++    gboolean boolean;
+     GdkDisplay* display;
+     GdkWindow* root;
+ 
+-    bool = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
+-    purple_prefs_set_bool(key->use_pref, bool);
++    boolean = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
++    purple_prefs_set_bool(key->use_pref, boolean);
+     
+-    key->enable = bool;
++    key->enable = boolean;
+ 
+     if (key->code)
+     {
+         display = widget ? gtk_widget_get_display(widget) : gdk_display_get_default();
+         root = widget ? gtk_widget_get_root_window(widget) : gdk_get_default_root_window();
+ 
+-        if (bool && grab_key(display, root, key))
++        if (boolean && grab_key(display, root, key))
+ 	    reconfig_blist(key - hotkeys);
+         else
+ 	{

diff --git a/x11-plugins/pidgin-hotkeys/pidgin-hotkeys-0.2.4-r3.ebuild b/x11-plugins/pidgin-hotkeys/pidgin-hotkeys-0.2.4-r3.ebuild
new file mode 100644
index 000000000000..5af27a904c0a
--- /dev/null
+++ b/x11-plugins/pidgin-hotkeys/pidgin-hotkeys-0.2.4-r3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Pidgin plugin to define global hotkeys for various actions"
+HOMEPAGE="https://sourceforge.net/projects/pidgin-hotkeys/"
+SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~riscv ~x86"
+
+RDEPEND="
+	app-accessibility/at-spi2-core:2
+	dev-libs/glib:2
+	media-libs/fontconfig
+	media-libs/freetype
+	media-libs/harfbuzz:=
+	net-im/pidgin:=[gui]
+	x11-libs/cairo
+	x11-libs/gdk-pixbuf:2
+	x11-libs/pango
+	x11-libs/gtk+:2
+"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-fix_gcc15.patch
+	"${FILESDIR}"/${P}-fix_cflags.patch
+)
+
+src_prepare() {
+	default
+	# configure.ac patched
+	eautoconf
+}
+
+src_install() {
+	default
+
+	find "${D}" -type f -name '*.la' -delete || die
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-20  8:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-20  8:04 [gentoo-commits] repo/gentoo:master commit in: x11-plugins/pidgin-hotkeys/, x11-plugins/pidgin-hotkeys/files/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox