Hi,

x11/wmctrl homepage is dead and the distfile is not fetchable anymore.
I was looking around if there's a better source.

I found: https://github.com/kfogel/wmctrl

This seems to be a sensible upstream provider. The author writes that he
doesn't intend to actively bring the software forward, but he's accepting
and reviewing patches. This version already contains a set of fixes and
enhancements.

From the readme:
----
The version here contains various enhancements that people around the
Net had added in their own divergent versions.  The two main sources
of these enhancements were https://github.com/dancor/wmctrl and
https://github.com/geekless/wmctrl.  The additions include these
new command-line options/actions:

  -Y: iconify (Vadim Ushakov)
  -S: sort window list in stacking order (Vadim Ushakov)
  -j: list current desktop (Kevin Der)
  -r -y: like -e but reactivate after the move (Chris Piro )
  -E: get-title (Dan Corson)
  -z: lower window (Dan Corson)

Other improvements are a typo fix for the --help output, and some fixes
for build-time compiler warnings.
----

A 64 bit fix is also included, so I dropped the patch.

Comments / OK to switch to this repo?

Best Regards,
Stefan

PS: I could not get DIST_TUPLE to work with the commit hash.

Index: x11/wmctrl/Makefile
===================================================================
RCS file: /cvs/ports/x11/wmctrl/Makefile,v
diff -u -p -u -p -r1.24 Makefile
--- x11/wmctrl/Makefile 27 Sep 2023 20:37:27 -0000      1.24
+++ x11/wmctrl/Makefile 20 Nov 2023 21:25:34 -0000
@@ -1,11 +1,11 @@
 COMMENT=       interact with an EWMH/NetWM window manager
-DISTNAME=      wmctrl-1.07
-REVISION=      9
+DISTNAME=      wmctrl-1.07pl20180910
 
-CATEGORIES=    x11
-SITES=         ${HOMEPAGE}
+GH_ACCOUNT=    kfogel
+GH_PROJECT=    wmctrl
+GH_COMMIT=     c408c9e1c00092fc9aea2bd1ba4bec8e9ef3c40c
 
-HOMEPAGE=      https://sites.google.com/site/tstyblo/wmctrl/
+CATEGORIES=    x11
 
 # GPLv2
 PERMIT_PACKAGE=        Yes
Index: x11/wmctrl/distinfo
===================================================================
RCS file: /cvs/ports/x11/wmctrl/distinfo,v
diff -u -p -u -p -r1.5 distinfo
--- x11/wmctrl/distinfo 18 Jan 2015 03:16:03 -0000      1.5
+++ x11/wmctrl/distinfo 20 Nov 2023 21:25:34 -0000
@@ -1,2 +1,2 @@
-SHA256 (wmctrl-1.07.tar.gz) = 14oe/bYvGGdCmK0DnFy9se226OFJuzqOOgGkdQqjzKk=
-SIZE (wmctrl-1.07.tar.gz) = 87820
+SHA256 (wmctrl-1.07pl20180910-c408c9e1.tar.gz) = 
z1mIqT9ylgrM9rlhBF+WTvvtZi2XNNBYtUiv63RqvIU=
+SIZE (wmctrl-1.07pl20180910-c408c9e1.tar.gz) = 90815
Index: x11/wmctrl/patches/patch-main_c
===================================================================
RCS file: x11/wmctrl/patches/patch-main_c
diff -N x11/wmctrl/patches/patch-main_c
--- x11/wmctrl/patches/patch-main_c     11 Mar 2022 20:17:35 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,17 +0,0 @@
-Index: main.c
---- main.c.orig
-+++ main.c
-@@ -1439,8 +1439,12 @@ static gchar *get_property (Display *disp, Window win,
-         return NULL;
-     }
- 
-+    /* Data returned in 32-bit format is stored as long */
-+    if (ret_format == 32)
-+        tmp_size = sizeof(long) * ret_nitems;
-+    else
-+        tmp_size = (ret_format / 8) * ret_nitems;
-     /* null terminate the result to make string handling easier */
--    tmp_size = (ret_format / 8) * ret_nitems;
-     ret = g_malloc(tmp_size + 1);
-     memcpy(ret, ret_prop, tmp_size);
-     ret[tmp_size] = '\0';

Reply via email to