pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lswt: new package



Module Name:	pkgsrc-wip
Committed By:	kikadf <kikadf.01%gmail.com@localhost>
Pushed By:	kikadf
Date:		Mon Apr 6 11:22:51 2026 +0200
Changeset:	f10d35d593696f492bf8371964190627726a899e

Modified Files:
	Makefile
Added Files:
	lswt/COMMIT_MSG
	lswt/DESCR
	lswt/Makefile
	lswt/PLIST
	lswt/distinfo
	lswt/patches/patch-Makefile
	lswt/patches/patch-lswt.c

Log Message:
lswt: new package

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f10d35d593696f492bf8371964190627726a899e

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                    |  1 +
 lswt/COMMIT_MSG             |  6 ++++++
 lswt/DESCR                  |  4 ++++
 lswt/Makefile               | 26 ++++++++++++++++++++++++++
 lswt/PLIST                  |  4 ++++
 lswt/distinfo               |  7 +++++++
 lswt/patches/patch-Makefile | 17 +++++++++++++++++
 lswt/patches/patch-lswt.c   | 24 ++++++++++++++++++++++++
 8 files changed, 89 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 7b2f6de075..55bd3d2fef 100644
--- a/Makefile
+++ b/Makefile
@@ -2296,6 +2296,7 @@ SUBDIR+=	lpdsrv
 SUBDIR+=	lpjs
 SUBDIR+=	lrslib
 SUBDIR+=	lsw
+SUBDIR+=	lswt
 SUBDIR+=	lsyncd
 SUBDIR+=	ltc-tools
 SUBDIR+=	ltl2ba
diff --git a/lswt/COMMIT_MSG b/lswt/COMMIT_MSG
new file mode 100644
index 0000000000..b1f91c1357
--- /dev/null
+++ b/lswt/COMMIT_MSG
@@ -0,0 +1,6 @@
+Add devel/basu
+
+The sd-bus library, extracted from systemd. Some projects
+rely on the sd-bus library for DBus support. However not
+all systems have systemd or elogind installed. This library
+provides just sd-bus (and the busctl utility).
diff --git a/lswt/DESCR b/lswt/DESCR
new file mode 100644
index 0000000000..d8209b49a0
--- /dev/null
+++ b/lswt/DESCR
@@ -0,0 +1,4 @@
+lswt lists all toplevels ("Windows") advertised by
+a Wayland server. The default output prints the title
+and app-id the toplevels and - if available - their
+state in human readable form.
diff --git a/lswt/Makefile b/lswt/Makefile
new file mode 100644
index 0000000000..9f3497b722
--- /dev/null
+++ b/lswt/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD$
+
+DISTNAME=	lswt-2.0.0
+CATEGORIES=	x11
+MASTER_SITES=	https://git.sr.ht/~leon_plickat/lswt/archive/
+DIST_SUBDIR=	lswt
+DISTFILES=	v${PKGVERSION_NOREV}${EXTRACT_SUFX}
+
+MAINTAINER=	kikadf.01%gmail.com@localhost
+HOMEPAGE=	https://sr.ht/~leon_plickat/lswt/
+COMMENT=	List Wayland toplevels
+LICENSE=	gnu-gpl-v3
+
+USE_TOOLS+=	gmake #pkg-config
+BUILD_TARGET=	lswt
+WRKSRC=		${WRKDIR}/lswt-v${PKGVERSION_NOREV}
+
+SUBST_CLASSES+=		path
+SUBST_STAGE.path=	pre-configure
+SUBST_MESSAGE.path=	Fixing pathes
+SUBST_FILES.path+=	Makefile
+SUBST_VARS.path+=	PREFIX PKGMANDIR
+
+.include "../../devel/wayland/buildlink3.mk"
+.include "../../devel/wayland-protocols/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lswt/PLIST b/lswt/PLIST
new file mode 100644
index 0000000000..9a1d714189
--- /dev/null
+++ b/lswt/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+bin/lswt
+man/man1/lswt.1
+share/bash-completion/completions/lswt
diff --git a/lswt/distinfo b/lswt/distinfo
new file mode 100644
index 0000000000..29f2080c9b
--- /dev/null
+++ b/lswt/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (lswt/v2.0.0.tar.gz) = b3a67bf0e58a57de6f0412e8328aad6a909df9e04c35f9ce893649b2cc67ae1a
+SHA512 (lswt/v2.0.0.tar.gz) = 147c4a0f7f2410230b9a27adb669ce7004f19701bf50d8e3c540fedb79ad37a282ce7968d2f1abdef6991b297f5d2b6b913ffbf4a4ef3ebc4481ff0cc803a01f
+Size (lswt/v2.0.0.tar.gz) = 27758 bytes
+SHA1 (patch-Makefile) = 8fef2cc560d1144d6d8617036e13669c23faaef1
+SHA1 (patch-lswt.c) = 80b45564ea1ea1ad7f50d3d489f2d04171b43d69
diff --git a/lswt/patches/patch-Makefile b/lswt/patches/patch-Makefile
new file mode 100644
index 0000000000..e03ab025ee
--- /dev/null
+++ b/lswt/patches/patch-Makefile
@@ -0,0 +1,17 @@
+$NetBSD$
+
+* Fix pathes
+
+--- Makefile.orig	2024-05-17 12:30:09.000000000 +0000
++++ Makefile
+@@ -1,8 +1,8 @@
+ SCANNER := wayland-scanner
+ 
+-PREFIX=/usr/local
++PREFIX=@PREFIX@
+ BINDIR=$(PREFIX)/bin
+-MANDIR=$(PREFIX)/share/man
++MANDIR=$(PREFIX)/@PKGMANDIR@
+ BASHCOMPDIR=$(PREFIX)/share/bash-completion/completions
+ 
+ CFLAGS+=-Wall -Werror -Wextra -Wpedantic
diff --git a/lswt/patches/patch-lswt.c b/lswt/patches/patch-lswt.c
new file mode 100644
index 0000000000..014e8d5b24
--- /dev/null
+++ b/lswt/patches/patch-lswt.c
@@ -0,0 +1,24 @@
+$NetBSD$
+
+* Fix ctype
+
+--- lswt.c.orig	2026-04-06 08:40:47.751853736 +0000
++++ lswt.c
+@@ -610,7 +610,7 @@ static const struct zwlr_foreign_topleve
+ static bool string_needs_quotes (char *str)
+ {
+ 	for (; *str != '\0'; str++)
+-		if ( isspace(*str) || *str == '"' || *str == '\'' || !isascii(*str) )
++		if ( isspace((unsigned char)*str) || *str == '"' || *str == '\'' || !isascii((unsigned char)*str) )
+ 			return true;
+ 	return false;
+ }
+@@ -766,7 +766,7 @@ static size_t real_strlen (const char *s
+ 				break;
+ 
+ 			default:
+-				if (isspace(*str))
++				if (isspace((unsigned char)*str))
+ 					has_space = true;
+ 				i++;
+ 				break;


Home | Main Index | Thread Index | Old Index