commit:     371515632b662899e0d2a2e28f14740b8fcde311
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Sat Apr 19 15:16:13 2025 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Thu Apr 24 18:54:41 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37151563

x11-plugins/wmnetload: update EAPI 7 -> 8, port to C23

Closes: https://bugs.gentoo.org/919443
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Part-of: https://github.com/gentoo/gentoo/pull/41663
Closes: https://github.com/gentoo/gentoo/pull/41663
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 .../wmnetload/files/wmnetload-1.3-C23.patch        | 23 ++++++++++++++++++
 x11-plugins/wmnetload/wmnetload-1.3-r7.ebuild      | 28 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/x11-plugins/wmnetload/files/wmnetload-1.3-C23.patch 
b/x11-plugins/wmnetload/files/wmnetload-1.3-C23.patch
new file mode 100644
index 000000000000..efa0d776694c
--- /dev/null
+++ b/x11-plugins/wmnetload/files/wmnetload-1.3-C23.patch
@@ -0,0 +1,23 @@
+Correct size of variables that are passed to library and then discarded.
+Also replace sed that corrects path for library.
+https://bugs.gentoo.org/919443
+--- a/src/wmnetload.c
++++ b/src/wmnetload.c
+@@ -37,7 +37,7 @@
+ #include <sys/ioctl.h>
+ #include <sys/time.h>
+ #include <unistd.h>
+-#include <dockapp.h>
++#include <libdockapp/dockapp.h>
+ #ifdef HAVE_SYS_SOCKIO_H
+ #include <sys/sockio.h>
+ #endif
+@@ -1051,7 +1051,7 @@
+ setshape(void)
+ {
+       Pixmap mask, pixmap;
+-      unsigned int h, w;
++      unsigned short int h, w;
+ 
+       if (DAMakePixmapFromData(backlight_off_xpm, &pixmap, &mask, &h, &w)) {
+               DASetShape(mask);

diff --git a/x11-plugins/wmnetload/wmnetload-1.3-r7.ebuild 
b/x11-plugins/wmnetload/wmnetload-1.3-r7.ebuild
new file mode 100644
index 000000000000..6c562e766a21
--- /dev/null
+++ b/x11-plugins/wmnetload/wmnetload-1.3-r7.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Network interface monitor dockapp"
+HOMEPAGE="https://github.com/bbidulock/wmnetload";
+SRC_URI="https://github.com/bbidulock/wmnetload/releases/download/${PV}/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+DEPEND=">=x11-libs/libdockapp-0.7:="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${P}-r4-configure.patch"
+       "${FILESDIR}/${P}-C23.patch"
+)
+
+src_prepare() {
+       default
+
+       eautoreconf
+}

Reply via email to