commit:     4c59819c323e362819088ecc686f7dbfec87d1f0
Author:     Cristian Othón Martínez Vera <cfuga <AT> cfuga <DOT> mx>
AuthorDate: Tue Jan 20 02:01:22 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 20 05:02:18 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c59819c

x11-plugins/pidgin-led-notification: fix includes

Closes: https://bugs.gentoo.org/952077
Signed-off-by: Cristian Othón Martínez Vera <cfuga <AT> cfuga.mx>
Part-of: https://github.com/gentoo/gentoo/pull/45451
Closes: https://github.com/gentoo/gentoo/pull/45451
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../pidgin-led-notification-0.1-includes.patch     | 33 ++++++++++++++++
 .../pidgin-led-notification-0.1-r3.ebuild          | 46 ++++++++++++++++++++++
 2 files changed, 79 insertions(+)

diff --git 
a/x11-plugins/pidgin-led-notification/files/pidgin-led-notification-0.1-includes.patch
 
b/x11-plugins/pidgin-led-notification/files/pidgin-led-notification-0.1-includes.patch
new file mode 100644
index 000000000000..6e397d773794
--- /dev/null
+++ 
b/x11-plugins/pidgin-led-notification/files/pidgin-led-notification-0.1-includes.patch
@@ -0,0 +1,33 @@
+Bug: https://bugs.gentoo.org/952077
+
+--- a/led-notification.c
++++ b/led-notification.c
+@@ -29,17 +29,17 @@
+ #include <string.h>
+ #include <stdio.h>
+ 
+-#include "notify.h"
+-#include "plugin.h"
+-#include "version.h"
+-#include "debug.h"
+-#include "cmds.h"
+-#include "gtkconv.h"
+-#include "prefs.h"
+-#include "gtkprefs.h"
+-#include "gtkutils.h"
+-#include "gtkplugin.h"
+-#include "gtkblist.h"
++#include <libpurple/notify.h>
++#include <libpurple/plugin.h>
++#include <libpurple/version.h>
++#include <libpurple/debug.h>
++#include <libpurple/cmds.h>
++#include <pidgin/gtkconv.h>
++#include <libpurple/prefs.h>
++#include <pidgin/gtkprefs.h>
++#include <pidgin/gtkutils.h>
++#include <pidgin/gtkplugin.h>
++#include <pidgin/gtkblist.h>
+ 
+ void led_set(gboolean state) {
+       const char *filename=purple_prefs_get_string(

diff --git 
a/x11-plugins/pidgin-led-notification/pidgin-led-notification-0.1-r3.ebuild 
b/x11-plugins/pidgin-led-notification/pidgin-led-notification-0.1-r3.ebuild
new file mode 100644
index 000000000000..75456681076b
--- /dev/null
+++ b/x11-plugins/pidgin-led-notification/pidgin-led-notification-0.1-r3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MY_PN="${PN/pidgin-/}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Pidgin plugin to notify by writing user defined strings to (led 
control) files"
+HOMEPAGE="https://sites.google.com/site/simohmattila/led-notification";
+SRC_URI="https://sites.google.com/site/simohmattila/${MY_P}.tar.bz2";
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~riscv ~x86"
+
+RDEPEND="
+       net-im/pidgin[gui]
+       x11-libs/gtk+:2"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-hardware.patch
+       "${FILESDIR}"/${P}-includes.patch
+)
+
+src_compile() {
+       $(tc-getCC) \
+               ${CFLAGS} -fPIC \
+               ${CPPFLAGS} \
+               ${LDFLAGS} \
+               $($(tc-getPKG_CONFIG) --cflags gtk+-2.0 pidgin) \
+               -shared ${MY_PN}.c -o ${MY_PN}.so \
+               $($(tc-getPKG_CONFIG) --libs gtk+-2.0 pidgin) || die
+}
+
+src_install() {
+       exeinto /usr/$(get_libdir)/pidgin
+       doexe ${MY_PN}.so
+
+       einstalldocs
+}

Reply via email to