1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

x11/wmctrl: upstream no longer exists

- submitter provided fork with updates
- MOVED points to new version

PR:		277348
Reviewed:	zirias
This commit is contained in:
Alexey Vyskubov 2024-06-18 21:30:16 +02:00 committed by Kurt Jaeger
parent 3eaa8e5ef4
commit f4eb5cbd9c
7 changed files with 25 additions and 84 deletions

1
MOVED
View File

@ -23,6 +23,7 @@
# This file can be linted with Tools/scripts/MOVEDlint.awk
#
# Port|Moved to|Date|Why
x11/wmctrl|x11/wmctrl-fork|2024-05-18|Forked due to the upstream being no longer available; the port had no maintainer
www/wt3|www/wt|2021-01-03|Has expired: Upstream end of life, switch to www/wt instead
archivers/ecm|archivers/cmdpack|2021-01-04|ECM is now included in cmdpack
math/qhull5|math/qhull|2021-01-04|Has expired: Legacy version of port no longer required by math/octave

21
x11/wmctrl-fork/Makefile Normal file
View File

@ -0,0 +1,21 @@
PORTNAME= wmctrl-fork
DISTVERSION= 1.09.02
CATEGORIES= x11
MASTER_SITES= https://github.com/avysk/wmctrl-fork/releases/download/1.09.02/
MAINTAINER= alexey@pentode.fi
COMMENT= Command line tool to interact with an EWMH/NetWM compatible X managers
WWW= https://github.com/avysk/wmctrl-work
LICENSE= GPLv2
USES= gnome pkgconfig xorg
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
USE_XORG= ice sm x11 xmu xext xt
USE_GNOME= glib20
PLIST_FILES= bin/wmctrl share/man/man1/wmctrl.1.gz
.include <bsd.port.mk>

3
x11/wmctrl-fork/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1716028371
SHA256 (wmctrl-fork-1.09.02.tar.gz) = 5883338fa542bc82f59c8653c867df4b1e8e66fbf3931fcfda25a8ed705bc2f5
SIZE (wmctrl-fork-1.09.02.tar.gz) = 119254

View File

@ -1,21 +0,0 @@
PORTNAME= wmctrl
PORTVERSION= 1.07
PORTREVISION= 8
CATEGORIES= x11
MASTER_SITES= http://sweb.cz/tripie/utils/wmctrl/dist/
MAINTAINER= ports@FreeBSD.org
COMMENT= Command line tool to interact with an EWMH/NetWM compatible X managers
WWW= http://sweb.cz/tripie/utils/wmctrl/
LICENSE= GPLv2
USES= gnome pkgconfig xorg
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
USE_XORG= x11 xmu xext xt
USE_GNOME= glib20
PLIST_FILES= bin/wmctrl share/man/man1/${PORTNAME}.1.gz
.include <bsd.port.mk>

View File

@ -1,2 +0,0 @@
SHA256 (wmctrl-1.07.tar.gz) = d78a1efdb62f18674298ad039c5cbdb1edb6e8e149bb3a8e3a01a4750aa3cca9
SIZE (wmctrl-1.07.tar.gz) = 87820

View File

@ -1,61 +0,0 @@
--- main.c 2005-01-29 03:31:33.000000000 +0000
+++ main.c 2016-07-01 20:14:55.443662000 +0000
@@ -210,14 +210,14 @@
static int close_window (Display *disp, Window win);
static int longest_str (gchar **strv);
static int window_to_desktop (Display *disp, Window win, int desktop);
-static void window_set_title (Display *disp, Window win, char *str, char mode);
+static void window_set_title (Display *disp, Window win, const char *str, char mode);
static gchar *get_window_title (Display *disp, Window win);
static gchar *get_window_class (Display *disp, Window win);
static gchar *get_property (Display *disp, Window win,
Atom xa_prop_type, gchar *prop_name, unsigned long *size);
static void init_charset(void);
-static int window_move_resize (Display *disp, Window win, char *arg);
-static int window_state (Display *disp, Window win, char *arg);
+static int window_move_resize (Display *disp, Window win, const char *arg);
+static int window_state (Display *disp, Window win, const char *arg);
static Window Select_Window(Display *dpy);
static Window get_active_window(Display *dpy);
@@ -629,9 +629,9 @@
}/*}}}*/
static void window_set_title (Display *disp, Window win, /* {{{ */
- char *title, char mode) {
- gchar *title_utf8;
- gchar *title_local;
+ const char *title, char mode) {
+ void *title_utf8;
+ void *title_local;
if (envir_utf8) {
title_utf8 = g_strdup(title);
@@ -734,7 +734,7 @@
0, 0, 0, 0, 0);
}/*}}}*/
-static int window_state (Display *disp, Window win, char *arg) {/*{{{*/
+static int window_state (Display *disp, Window win, const char *arg) {/*{{{*/
unsigned long action;
Atom prop1 = 0;
Atom prop2 = 0;
@@ -827,7 +827,7 @@
return FALSE;
}/*}}}*/
-static int window_move_resize (Display *disp, Window win, char *arg) {/*{{{*/
+static int window_move_resize (Display *disp, Window win, const char *arg) {/*{{{*/
signed long grav, x, y, w, h;
unsigned long grflags;
const char *argerr = "The -e option expects a list of comma separated integers: \"gravity,X,Y,width,height\"\n";
@@ -1441,6 +1441,9 @@
/* null terminate the result to make string handling easier */
tmp_size = (ret_format / 8) * ret_nitems;
+ /* Correct 64 Architecture implementation of 32 bit data */
+ if (ret_format == 32)
+ tmp_size *= sizeof(long)/4;
ret = g_malloc(tmp_size + 1);
memcpy(ret, ret_prop, tmp_size);
ret[tmp_size] = '\0';