public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmsystray/, x11-plugins/wmsystray/files/
@ 2018-08-02 20:24 Bernard Cafarelli
  0 siblings, 0 replies; 3+ messages in thread
From: Bernard Cafarelli @ 2018-08-02 20:24 UTC (permalink / raw
  To: gentoo-commits

commit:     ceb61b5e41f5917e79d8cfc940e619e107afdfd7
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Tue Jul 24 18:06:07 2018 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Thu Aug  2 20:21:31 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceb61b5e

x11-plugins/wmsystray: EAPI7, improve ebuild

 .../wmsystray/files/wmsystray-0.1.1-gcc-3.4.patch  |  4 +-
 x11-plugins/wmsystray/wmsystray-0.1.1-r1.ebuild    | 46 ++++++++++++++++++++++
 2 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/x11-plugins/wmsystray/files/wmsystray-0.1.1-gcc-3.4.patch b/x11-plugins/wmsystray/files/wmsystray-0.1.1-gcc-3.4.patch
index 538a7ce0aa6..74f11a5ce73 100644
--- a/x11-plugins/wmsystray/files/wmsystray-0.1.1-gcc-3.4.patch
+++ b/x11-plugins/wmsystray/files/wmsystray-0.1.1-gcc-3.4.patch
@@ -1,5 +1,5 @@
---- wmsystray/ui.c.orig	2004-08-25 11:14:51.265675224 +0000
-+++ wmsystray/ui.c	2004-08-25 11:09:56.676459592 +0000
+--- a/wmsystray/ui.c	2004-08-25 11:14:51.265675224 +0000
++++ b/wmsystray/ui.c	2004-08-25 11:09:56.676459592 +0000
 @@ -28,6 +28,7 @@
  int width, height, pos_x, pos_y;
  Pixmap bg_pixmap;

diff --git a/x11-plugins/wmsystray/wmsystray-0.1.1-r1.ebuild b/x11-plugins/wmsystray/wmsystray-0.1.1-r1.ebuild
new file mode 100644
index 00000000000..d48af6dcae9
--- /dev/null
+++ b/x11-plugins/wmsystray/wmsystray-0.1.1-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop
+
+DESCRIPTION="Window Maker dock app that provides a system tray for GNOME/KDE applications"
+HOMEPAGE="https://github.com/bbidulock/wmsystray"
+SRC_URI="https://github.com/bbidulock/wmsystray/releases/download/${PV}/${P}.tar.bz2"
+
+RDEPEND="x11-libs/libX11
+	x11-libs/libXpm"
+DEPEND="${RDEPEND}"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+# Let's honour Gentoo CFLAGS and use correct install program
+# Fix for #61704, cannot compile with gcc 3.4.1:
+# it's a trivial change and does not affect other compilers...
+PATCHES=( "${FILESDIR}/${P}-Makefile.patch"
+	"${FILESDIR}/${P}-gcc-3.4.patch" )
+
+DOCS=( README HACKING AUTHORS )
+
+src_prepare() {
+	default
+	# Fix parallel compilation
+	sed -ie "s/make EXTRACFLAGS/make \${MAKEOPTS} EXTRACFLAGS/" Makefile || die
+
+	# Honour Gentoo LDFLAGS, see bug #336296
+	sed -ie "s/-o wmsystray/${LDFLAGS} -o wmsystray/" wmsystray/Makefile || die
+}
+
+src_compile() {
+	emake EXTRACFLAGS="${CFLAGS}"
+}
+
+src_install() {
+	dobin ${PN}/${PN}
+	doman doc/${PN}.1
+	domenu "${FILESDIR}/${PN}.desktop"
+	einstalldocs
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmsystray/, x11-plugins/wmsystray/files/
@ 2020-12-03 10:40 Bernard Cafarelli
  0 siblings, 0 replies; 3+ messages in thread
From: Bernard Cafarelli @ 2020-12-03 10:40 UTC (permalink / raw
  To: gentoo-commits

commit:     9b28449fa0c087396229634de43b49224cb5b430
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  3 10:39:50 2020 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Thu Dec  3 10:40:09 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b28449f

x11-plugins/wmsystray: properly set CC

Also fix incorrect return statement

Closes: https://bugs.gentoo.org/743073
Package-Manager: Portage-3.0.11, Repoman-3.0.2
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 .../wmsystray/files/wmsystray-0.1.1-Makefile.patch | 30 ++++++++++++++--------
 .../files/wmsystray-0.1.1-return-type.patch        | 12 +++++++++
 x11-plugins/wmsystray/wmsystray-0.1.1-r1.ebuild    | 16 ++++++------
 3 files changed, 39 insertions(+), 19 deletions(-)

diff --git a/x11-plugins/wmsystray/files/wmsystray-0.1.1-Makefile.patch b/x11-plugins/wmsystray/files/wmsystray-0.1.1-Makefile.patch
index 19afa355b22..ab754703962 100644
--- a/x11-plugins/wmsystray/files/wmsystray-0.1.1-Makefile.patch
+++ b/x11-plugins/wmsystray/files/wmsystray-0.1.1-Makefile.patch
@@ -1,6 +1,6 @@
-diff -ur wmsystray-0.1.1/Makefile wmsystray-0.1.1.new/Makefile
---- wmsystray-0.1.1/Makefile	2004-03-01 05:35:47.000000000 +0100
-+++ wmsystray-0.1.1.new/Makefile	2007-06-30 18:09:59.000000000 +0200
+diff -Naur wmsystray-0.1.1.orig/Makefile wmsystray-0.1.1/Makefile
+--- wmsystray-0.1.1.orig/Makefile	2004-03-01 05:35:47.000000000 +0100
++++ wmsystray-0.1.1/Makefile	2020-12-03 11:22:13.786357942 +0100
 @@ -1,13 +1,14 @@
  prefix=/usr
  bindir = ${prefix}/bin
@@ -19,21 +19,29 @@ diff -ur wmsystray-0.1.1/Makefile wmsystray-0.1.1.new/Makefile
  
  clean:
  	make -C xembed clean
-diff -ur wmsystray-0.1.1/wmsystray/Makefile wmsystray-0.1.1.new/wmsystray/Makefile
---- wmsystray-0.1.1/wmsystray/Makefile	2004-03-01 04:54:44.000000000 +0100
-+++ wmsystray-0.1.1.new/wmsystray/Makefile	2007-06-30 18:09:59.000000000 +0200
-@@ -1,7 +1,7 @@
+diff -Naur wmsystray-0.1.1.orig/wmsystray/Makefile wmsystray-0.1.1/wmsystray/Makefile
+--- wmsystray-0.1.1.orig/wmsystray/Makefile	2004-03-01 04:54:44.000000000 +0100
++++ wmsystray-0.1.1/wmsystray/Makefile	2020-12-03 11:26:57.544595661 +0100
+@@ -1,14 +1,13 @@
  include ../Rules.make
  
- CC = gcc
+-CC = gcc
 -CFLAGS = ${X11CFLAGS} -DTRACE_LEVEL=${TRACE_LEVEL} -I../xembed -Wall -g
 +CFLAGS = ${X11CFLAGS} -DTRACE_LEVEL=${TRACE_LEVEL} -I../xembed -g ${EXTRACFLAGS}
  LDFLAGS = ${X11LDFLAGS} -lXpm
  
  OBJS = main.o ui.o systray.o xpms.o
-diff -ur wmsystray-0.1.1/xembed/Makefile wmsystray-0.1.1.new/xembed/Makefile
---- wmsystray-0.1.1/xembed/Makefile	2004-03-01 04:54:44.000000000 +0100
-+++ wmsystray-0.1.1.new/xembed/Makefile	2007-06-30 18:09:59.000000000 +0200
+ XEMBED_OBJS = ../xembed/xembed.o
+ 
+ wmsystray: ${OBJS} ${XEMBED_OBJS}
+-	gcc ${OBJS} ${XEMBED_OBJS} -o wmsystray ${LDFLAGS}
++	${CC} ${OBJS} ${XEMBED_OBJS} -o wmsystray ${LDFLAGS}
+ 
+ clean:
+ 	rm -f wmsystray ${OBJS}
+diff -Naur wmsystray-0.1.1.orig/xembed/Makefile wmsystray-0.1.1/xembed/Makefile
+--- wmsystray-0.1.1.orig/xembed/Makefile	2004-03-01 04:54:44.000000000 +0100
++++ wmsystray-0.1.1/xembed/Makefile	2020-12-03 11:22:13.786357942 +0100
 @@ -1,6 +1,6 @@
  include ../Rules.make
  

diff --git a/x11-plugins/wmsystray/files/wmsystray-0.1.1-return-type.patch b/x11-plugins/wmsystray/files/wmsystray-0.1.1-return-type.patch
new file mode 100644
index 00000000000..aa2c6539b81
--- /dev/null
+++ b/x11-plugins/wmsystray/files/wmsystray-0.1.1-return-type.patch
@@ -0,0 +1,12 @@
+diff -Naur wmsystray-0.1.1.orig/wmsystray/systray.c wmsystray-0.1.1/wmsystray/systray.c
+--- wmsystray-0.1.1.orig/wmsystray/systray.c	2004-03-01 04:54:50.000000000 +0100
++++ wmsystray-0.1.1/wmsystray/systray.c	2020-12-03 11:30:36.661776579 +0100
+@@ -338,7 +338,7 @@
+ 		XReparentWindow (main_disp, embed_wind,
+ 				DefaultRootWindow(main_disp), 0, 0);
+ 		TRACE((stderr, "REJECTED!\n"));
+-		return;
++		return 1;
+ 	}
+ 
+ 	XSelectInput (main_disp, embed_wind, StructureNotifyMask |

diff --git a/x11-plugins/wmsystray/wmsystray-0.1.1-r1.ebuild b/x11-plugins/wmsystray/wmsystray-0.1.1-r1.ebuild
index 4756f31445f..926644e2d5b 100644
--- a/x11-plugins/wmsystray/wmsystray-0.1.1-r1.ebuild
+++ b/x11-plugins/wmsystray/wmsystray-0.1.1-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit desktop
+inherit desktop toolchain-funcs
 
 DESCRIPTION="Window Maker dock app that provides a system tray for GNOME/KDE applications"
 HOMEPAGE="https://github.com/bbidulock/wmsystray"
@@ -17,11 +17,11 @@ SLOT="0"
 LICENSE="GPL-2"
 KEYWORDS="amd64 ppc ~sparc x86"
 
-# Let's honour Gentoo CFLAGS and use correct install program
-# Fix for #61704, cannot compile with gcc 3.4.1:
-# it's a trivial change and does not affect other compilers...
-PATCHES=( "${FILESDIR}/${P}-Makefile.patch"
-	"${FILESDIR}/${P}-gcc-3.4.patch" )
+PATCHES=(
+	"${FILESDIR}/${P}-Makefile.patch"
+	"${FILESDIR}/${P}-gcc-3.4.patch"
+	"${FILESDIR}/${P}-return-type.patch"
+)
 
 DOCS=( README HACKING AUTHORS )
 
@@ -35,7 +35,7 @@ src_prepare() {
 }
 
 src_compile() {
-	emake EXTRACFLAGS="${CFLAGS}"
+	emake CC="$(tc-getCC)" EXTRACFLAGS="${CFLAGS}"
 }
 
 src_install() {


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmsystray/, x11-plugins/wmsystray/files/
@ 2025-01-05 11:04 Bernard Cafarelli
  0 siblings, 0 replies; 3+ messages in thread
From: Bernard Cafarelli @ 2025-01-05 11:04 UTC (permalink / raw
  To: gentoo-commits

commit:     89b10989e53a5e06c70b6deac0f60664d8d1addd
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Sat Jan  4 20:15:38 2025 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Sun Jan  5 10:56:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89b10989

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

Bug: https://bugs.gentoo.org/876346
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/39978
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 .../files/wmsystray-0.1.1-implicit-function.patch  | 55 ++++++++++++++++++++++
 x11-plugins/wmsystray/wmsystray-0.1.1-r2.ebuild    | 47 ++++++++++++++++++
 2 files changed, 102 insertions(+)

diff --git a/x11-plugins/wmsystray/files/wmsystray-0.1.1-implicit-function.patch b/x11-plugins/wmsystray/files/wmsystray-0.1.1-implicit-function.patch
new file mode 100644
index 000000000000..4496bb47df67
--- /dev/null
+++ b/x11-plugins/wmsystray/files/wmsystray-0.1.1-implicit-function.patch
@@ -0,0 +1,55 @@
+bug https://bugs.gentoo.org/876346
+diff -ru a/wmsystray/systray.h b/wmsystray/systray.h
+--- a/wmsystray/systray.h	2025-01-04 23:45:21.765262521 +0400
++++ b/wmsystray/systray.h	2025-01-04 23:48:21.590340299 +0400
+@@ -36,5 +36,7 @@
+ int event_is_systray_event(XEvent *ev);
+ int handle_systray_event(XEvent *ev);
+ void repaint_systray();
++struct systray_item *find_systray_item (Window id);
++int systray_property_update (struct systray_item *item);
+ 
+ #endif
+diff -ru a/wmsystray/ui.c b/wmsystray/ui.c
+--- a/wmsystray/ui.c	2025-01-04 23:45:21.765262521 +0400
++++ b/wmsystray/ui.c	2025-01-04 23:49:04.894118218 +0400
+@@ -10,6 +10,7 @@
+ 
+ #include <stdlib.h>
+ #include <signal.h>
++#include <unistd.h>
+ 
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
+diff -ru a/wmsystray/ui.h b/wmsystray/ui.h
+--- a/wmsystray/ui.h	2025-01-04 23:45:21.766262516 +0400
++++ b/wmsystray/ui.h	2025-01-04 23:48:51.661186082 +0400
+@@ -24,5 +24,6 @@
+ extern Display *main_disp;
+ extern Window main_wind, icon_wind, sel_wind, draw_wind;
+ extern char * wmsystray_xpm[];
++void draw_ui_elements();
+ 
+ #endif
+--- a/xembed/xembed.c	2025-01-04 23:45:21.766262516 +0400
++++ b/xembed/xembed.c	2025-01-04 23:46:29.884913173 +0400
+@@ -2,6 +2,8 @@
+  xembed.c
+  ****************************************************************************/
+ 
++#include <string.h>
++
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
+ #include "xembed.h"
+diff -ru a/wmsystray/Makefile b/wmsystray/Makefile
+--- a/wmsystray/Makefile	2025-01-05 00:02:39.013943053 +0400
++++ b/wmsystray/Makefile	2025-01-05 00:07:41.053394062 +0400
+@@ -1,6 +1,6 @@
+ include ../Rules.make
+ 
+-CFLAGS = ${X11CFLAGS} -DTRACE_LEVEL=${TRACE_LEVEL} -I../xembed -g ${EXTRACFLAGS}
++CFLAGS = ${X11CFLAGS} -DTRACE_LEVEL=${TRACE_LEVEL} -I../xembed -g -D_POSIX_C_SOURCE=199309L -D_XOPEN_SOURCE=500 ${EXTRACFLAGS}
+ LDFLAGS = ${X11LDFLAGS} -lXpm
+ 
+ OBJS = main.o ui.o systray.o xpms.o

diff --git a/x11-plugins/wmsystray/wmsystray-0.1.1-r2.ebuild b/x11-plugins/wmsystray/wmsystray-0.1.1-r2.ebuild
new file mode 100644
index 000000000000..d6047f1b921c
--- /dev/null
+++ b/x11-plugins/wmsystray/wmsystray-0.1.1-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop toolchain-funcs
+
+DESCRIPTION="Window Maker dock app that provides a system tray for GNOME/KDE applications"
+HOMEPAGE="https://github.com/bbidulock/wmsystray"
+SRC_URI="https://github.com/bbidulock/wmsystray/releases/download/${PV}/${P}.tar.bz2"
+
+RDEPEND="x11-libs/libX11
+	x11-libs/libXpm"
+DEPEND="${RDEPEND}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+PATCHES=(
+	"${FILESDIR}/${P}-Makefile.patch"
+	"${FILESDIR}/${P}-gcc-3.4.patch"
+	"${FILESDIR}/${P}-return-type.patch"
+	"${FILESDIR}/${P}-implicit-function.patch"
+)
+
+DOCS=( README HACKING AUTHORS )
+
+src_prepare() {
+	default
+	# Fix parallel compilation
+	sed -ie "s/make EXTRACFLAGS/make \${MAKEOPTS} EXTRACFLAGS/" Makefile || die
+
+	# Honour Gentoo LDFLAGS, see bug #336296
+	sed -ie "s/-o wmsystray/${LDFLAGS} -o wmsystray/" wmsystray/Makefile || die
+}
+
+src_compile() {
+	emake CC="$(tc-getCC)" EXTRACFLAGS="${CFLAGS}"
+}
+
+src_install() {
+	dobin ${PN}/${PN}
+	doman doc/${PN}.1
+	domenu "${FILESDIR}/${PN}.desktop"
+	einstalldocs
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-05 11:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-05 11:04 [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmsystray/, x11-plugins/wmsystray/files/ Bernard Cafarelli
  -- strict thread matches above, loose matches on Subject: below --
2020-12-03 10:40 Bernard Cafarelli
2018-08-02 20:24 Bernard Cafarelli

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