[gentoo-commits] repo/gentoo:master commit in: x11-wm/aewm++/files/, x11-wm/aewm++/

2023-02-20 Thread David Seifert
commit: f3b128939f93ca09861c6e99171e6d0481895847
Author: David Seifert  gentoo  org>
AuthorDate: Mon Feb 20 20:51:54 2023 +
Commit: David Seifert  gentoo  org>
CommitDate: Mon Feb 20 20:51:54 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3b12893

x11-wm/aewm++: update EAPI 6 -> 8

Signed-off-by: David Seifert  gentoo.org>

 ...wm++-1.1.5-r2.ebuild => aewm++-1.1.5-r3.ebuild} | 13 +++---
 x11-wm/aewm++/files/aewm++-1.1.5-gcc43.patch   | 53 +-
 x11-wm/aewm++/files/aewm++-1.1.5-makefile.patch| 34 --
 3 files changed, 69 insertions(+), 31 deletions(-)

diff --git a/x11-wm/aewm++/aewm++-1.1.5-r2.ebuild 
b/x11-wm/aewm++/aewm++-1.1.5-r3.ebuild
similarity index 78%
rename from x11-wm/aewm++/aewm++-1.1.5-r2.ebuild
rename to x11-wm/aewm++/aewm++-1.1.5-r3.ebuild
index 47ceef425b86..1afc79dbe2dc 100644
--- a/x11-wm/aewm++/aewm++-1.1.5-r2.ebuild
+++ b/x11-wm/aewm++/aewm++-1.1.5-r3.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
+
 inherit toolchain-funcs
 
 DESCRIPTION="A window manager with more modern features than aewm"
@@ -11,9 +12,9 @@ SRC_URI="mirror://gentoo/${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
-IUSE=""
 
-RDEPEND="x11-libs/libX11
+RDEPEND="
+   x11-libs/libX11
x11-libs/libXext"
 DEPEND="${RDEPEND}
x11-base/xorg-proto"
@@ -23,6 +24,6 @@ PATCHES=(
"${FILESDIR}"/${P}-makefile.patch
 )
 
-src_compile() {
-   emake CXX="$(tc-getCXX)"
+src_configure() {
+   tc-export CXX
 }

diff --git a/x11-wm/aewm++/files/aewm++-1.1.5-gcc43.patch 
b/x11-wm/aewm++/files/aewm++-1.1.5-gcc43.patch
index 23cacdc43a2b..1fab782112d2 100644
--- a/x11-wm/aewm++/files/aewm++-1.1.5-gcc43.patch
+++ b/x11-wm/aewm++/files/aewm++-1.1.5-gcc43.patch
@@ -1,6 +1,16 @@
-diff -ur aewm++-1.1.5.orig/client.cc aewm++-1.1.5/client.cc
 aewm++-1.1.5.orig/client.cc2005-05-23 06:06:01.0 +0300
-+++ aewm++-1.1.5/client.cc 2008-05-03 23:50:02.0 +0300
+--- a/aewm.hh
 b/aewm.hh
+@@ -87,7 +87,7 @@
+ #define BW (has_border ? wm->getOptBW() : 0)
+ 
+ // defined in main.cc
+-void forkExec(char *);
++void forkExec(const char *);
+ int handleXError(Display *, XErrorEvent *);
+ 
+ class Client;
+--- a/client.cc
 b/client.cc
 @@ -6,6 +6,8 @@
   */
  #include "aewm.hh"
@@ -10,21 +20,22 @@ diff -ur aewm++-1.1.5.orig/client.cc aewm++-1.1.5/client.cc
  Client::Client(Display *d, Window new_client)
  {
initialize(d);
-diff -ur aewm++-1.1.5.orig/main.cc aewm++-1.1.5/main.cc
 aewm++-1.1.5.orig/main.cc  2005-02-12 05:38:32.0 +0200
-+++ aewm++-1.1.5/main.cc   2008-05-03 23:50:02.0 +0300
-@@ -6,6 +6,8 @@
+--- a/main.cc
 b/main.cc
+@@ -6,8 +6,10 @@
   */
   #include "aewm.hh"
  
 +#include 
 +
  // Dunno where I ripped this from. Kudos to the author whoever he is!
- void forkExec(char *cmd)
+-void forkExec(char *cmd)
++void forkExec(const char *cmd)
  {
-diff -ur aewm++-1.1.5.orig/windowmanager.cc aewm++-1.1.5/windowmanager.cc
 aewm++-1.1.5.orig/windowmanager.cc 2005-05-17 04:41:42.0 +0300
-+++ aewm++-1.1.5/windowmanager.cc  2008-05-03 23:50:02.0 +0300
+ if(! (strlen(cmd)>0)) return;
+ 
+--- a/windowmanager.cc
 b/windowmanager.cc
 @@ -6,6 +6,8 @@
   */
  #include "aewm.hh"
@@ -34,3 +45,23 @@ diff -ur aewm++-1.1.5.orig/windowmanager.cc 
aewm++-1.1.5/windowmanager.cc
  WindowManager* wm;
  
  #define AEWM_KEY_ALT_COUNT 4
+@@ -1020,7 +1022,7 @@
+ {
+   cleanup();
+   
+-  execl("/bin/sh", "sh", "-c", command_line.c_str(), 0);
++  execl("/bin/sh", "sh", "-c", command_line.c_str(), (const char*)NULL);
+ }
+ 
+ void WindowManager::quitNicely()
+--- a/windowmanager.hh
 b/windowmanager.hh
+@@ -46,7 +46,7 @@
+   string  command_line;
+   int max_desktops;
+   int focus_model;
+-  char*opt_display,   
++  const char  *opt_display,
+   *opt_fc, 
+   *opt_fg,
+   *opt_fm, 

diff --git a/x11-wm/aewm++/files/aewm++-1.1.5-makefile.patch 
b/x11-wm/aewm++/files/aewm++-1.1.5-makefile.patch
index 8b84a9963469..3066b0981a1f 100644
--- a/x11-wm/aewm++/files/aewm++-1.1.5-makefile.patch
+++ b/x11-wm/aewm++/files/aewm++-1.1.5-makefile.patch
@@ -1,29 +1,35 @@
-Respect CFLAGS, LDFLAGS, don't strip binaries
+* Respect CXX, CXXFLAGS, LDFLAGS, LIBS
+* Don't strip binaries
+https://bugs.gentoo.org/336099
 
-http://bugs.gentoo.org/show_bug.cgi?id=336099
-
 aewm++-1.1.5/Makefile
-+++ aewm++-1.1.5/Makefile
-@@ -1,9 +1,6 @@
- CC   = g++
+--- a/Makefile
 b/Makefile
+@@ -1,14 +1,9 @@
+-CC   = g++
 -ADDITIONAL_CFLAGS   = -g -O2 -march=i686 -Wall
- 
+-
  prefix   = /usr
 -INCLUDES = -I$/usr/X11R6
 -LDPATH   = -L/usr/X11R6/lib
- LIBS = -lXext -lX11
+-LIBS = -lXext -lX11
++LIBS += -lXext -lX11
  
  # SHAPE = 

[gentoo-commits] repo/gentoo:master commit in: x11-wm/aewm/files/, x11-wm/aewm/

2020-01-31 Thread Jeroen Roovers
commit: 914552b9e04847f6b4c5224953cf0c11b919ae1c
Author: Jeroen Roovers  gentoo  org>
AuthorDate: Fri Jan 31 22:30:43 2020 +
Commit: Jeroen Roovers  gentoo  org>
CommitDate: Fri Jan 31 22:31:29 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=914552b9

x11-wm/aewm: Fix CFLAGS=-fno-common

Package-Manager: Portage-2.3.86, Repoman-2.3.20
Closes: https://bugs.gentoo.org/707680
Signed-off-by: Jeroen Roovers  gentoo.org>

 x11-wm/aewm/aewm-1.3.12-r1.ebuild  |  3 ++-
 x11-wm/aewm/files/aewm-1.3.12-fno-common.patch | 25 +
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/x11-wm/aewm/aewm-1.3.12-r1.ebuild 
b/x11-wm/aewm/aewm-1.3.12-r1.ebuild
index c0d52983ed8..3efbc6c7a7e 100644
--- a/x11-wm/aewm/aewm-1.3.12-r1.ebuild
+++ b/x11-wm/aewm/aewm-1.3.12-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -26,6 +26,7 @@ DEPEND="
 "
 PATCHES=(
"${FILESDIR}"/${P}-r1-gentoo.patch
+   "${FILESDIR}"/${P}-fno-common.patch
 )
 
 src_compile() {

diff --git a/x11-wm/aewm/files/aewm-1.3.12-fno-common.patch 
b/x11-wm/aewm/files/aewm-1.3.12-fno-common.patch
new file mode 100644
index 000..e885161ce88
--- /dev/null
+++ b/x11-wm/aewm/files/aewm-1.3.12-fno-common.patch
@@ -0,0 +1,25 @@
+--- aedesk.c
 b/aedesk.c
+@@ -11,10 +11,6 @@
+ 
+ #define UMOD(x, y) long)(x) % (long)(y)) + (y)) % (y))
+ 
+-Display *dpy;
+-Window root;
+-Atom net_cur_desk, net_num_desks;
+-
+ static unsigned long parse_desk(char *spec);
+ 
+ int main(int argc, char **argv)
+--- aepanel.c
 b/aepanel.c
+@@ -36,9 +36,6 @@
+ void sig_handler(int);
+ void set_strut(Window, strut_t *);
+ 
+-Atom net_wm_strut;
+-Atom net_wm_strut_partial;
+-Atom net_wm_wintype;
+ Atom net_wm_wintype_dock;
+ 
+ #define NAME_SIZE 48