git: b40fb3c5c6ba - main - x11-wm/fswm: Fullscreen window manager in XCB

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Thu, 07 Sep 2023 09:54:12 UTC
The branch main has been updated by jrm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b40fb3c5c6ba52817cfa984fe8f440d554efff8a

commit b40fb3c5c6ba52817cfa984fe8f440d554efff8a
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2023-08-27 17:34:17 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2023-09-07 09:54:08 +0000

    x11-wm/fswm: Fullscreen window manager in XCB
    
    https://github.com/pbizopoulos/fswm
    
    PR:             273390
    Submitted by:   pyrus@bsdmail.com (original patch)
---
 x11-wm/Makefile       |  1 +
 x11-wm/fswm/Makefile  | 43 +++++++++++++++++++++++++++++++++++++++++++
 x11-wm/fswm/distinfo  |  3 +++
 x11-wm/fswm/pkg-descr |  2 ++
 4 files changed, 49 insertions(+)

diff --git a/x11-wm/Makefile b/x11-wm/Makefile
index 1b2db211bb33..f26097833e09 100644
--- a/x11-wm/Makefile
+++ b/x11-wm/Makefile
@@ -42,6 +42,7 @@
     SUBDIR += fluxbox
     SUBDIR += fluxter
     SUBDIR += flwm
+    SUBDIR += fswm
     SUBDIR += fvwm2
     SUBDIR += fvwm3
     SUBDIR += gamescope
diff --git a/x11-wm/fswm/Makefile b/x11-wm/fswm/Makefile
new file mode 100644
index 000000000000..86f42e2ac868
--- /dev/null
+++ b/x11-wm/fswm/Makefile
@@ -0,0 +1,43 @@
+PORTNAME=	fswm
+DISTVERSION=	g20230808
+CATEGORIES=	x11-wm
+
+MAINTAINER=	pyrus@bsdmail.com
+COMMENT=	Fullscreen window manager in XCB
+WWW=		https://github.com/pbizopoulos/fswm
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libxcb-keysyms.so:x11/xcb-util-keysyms \
+		libxcb-util.so:x11/xcb-util
+
+USES=		localbase xorg
+USE_GITHUB=	yes
+GH_ACCOUNT=	pbizopoulos
+GH_TAGNAME=	ce007a8
+USE_XORG=	xcb
+
+MAKE_ARGS=	CC="cc" \
+		CFLAGS="${CFLAGS}" \
+		LDLIBS="${LDFLAGS} ${LIBS} -lxcb -lxcb-keysyms -lxcb-util" \
+		PREFIX="${PREFIX}"
+PLIST_FILES=	bin/${PORTNAME}
+PORTDOCS=	README
+
+OPTIONS_DEFINE=	DOCS SXHKD THINGYLAUNCH
+
+SXHKD_DESC=		Depend on SXHKD (Simple X hotkey daemon)
+THINGYLAUNCH_DESC=	Depend on the thingylaunch launcher
+
+SXHKD_RUN_DEPENDS=		sxhkd:x11/sxhkd
+THINGYLAUNCH_RUN_DEPENDS=	thingylaunch:x11/thingylaunch
+
+do-install:
+		${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+
+do-install-DOCS-on:
+		${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/fswm
+		${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/x11-wm/fswm/distinfo b/x11-wm/fswm/distinfo
new file mode 100644
index 000000000000..16a955d3c4b4
--- /dev/null
+++ b/x11-wm/fswm/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1692921722
+SHA256 (pbizopoulos-fswm-g20230808-ce007a8_GH0.tar.gz) = 9f793e67ae4c9e56c0bce374f8f7c0185d8edb995e1efc83761eb74de43a3f11
+SIZE (pbizopoulos-fswm-g20230808-ce007a8_GH0.tar.gz) = 3239
diff --git a/x11-wm/fswm/pkg-descr b/x11-wm/fswm/pkg-descr
new file mode 100644
index 000000000000..01a5542494d3
--- /dev/null
+++ b/x11-wm/fswm/pkg-descr
@@ -0,0 +1,2 @@
+Full screen window manager in libxcb. It is lightweight, as it uses about 200
+lines of code.