git: f03dfb7a662f - main - x11-wm/dwl: update to 0.5

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 25 Nov 2023 10:57:08 UTC
The branch main has been updated by jbeich:

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

commit f03dfb7a662fce76e4e9f7addbf80c724a31773d
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-11-25 06:28:11 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-11-25 10:56:33 +0000

    x11-wm/dwl: update to 0.5
    
    Changes:        https://github.com/djpohly/dwl/releases/tag/v0.5
    Reported by:    GitHub (watch releases)
---
 x11-wm/dwl/Makefile          | 13 ++++++++-----
 x11-wm/dwl/distinfo          |  6 +++---
 x11-wm/dwl/files/dwl.desktop |  6 ------
 3 files changed, 11 insertions(+), 14 deletions(-)

diff --git a/x11-wm/dwl/Makefile b/x11-wm/dwl/Makefile
index 3c7cc93e3366..aa457bc4f255 100644
--- a/x11-wm/dwl/Makefile
+++ b/x11-wm/dwl/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	dwl
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.4
-PORTREVISION=	1
+DISTVERSION=	0.5
 CATEGORIES=	x11-wm wayland
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -16,7 +15,7 @@ LICENSE_FILE_MIT=	${WRKSRC}/LICENSE.dwm
 
 BUILD_DEPENDS=	evdev-proto>0:devel/evdev-proto \
 		wayland-protocols>0:graphics/wayland-protocols \
-		wlroots>=0.16.0:x11-toolkits/wlroots
+		wlroots>=0.17.0:x11-toolkits/wlroots
 LIB_DEPENDS=	libwayland-server.so:graphics/wayland \
 		libwlroots.so:x11-toolkits/wlroots \
 		libinput.so:x11/libinput \
@@ -60,14 +59,18 @@ post-extract:
 		${LN} -fs "${${PORTNAME:tu}_CONF}" ${WRKSRC}/config.h; \
 	fi
 
+post-patch:
+# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275328
+	@${REINPLACE_CMD} -e 's/_POSIX_C_SOURCE=200809L/_XOPEN_SOURCE=700/' \
+		${WRKSRC}/Makefile
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
 	${MKDIR} ${STAGEDIR}${PREFIX}/share/wayland-sessions
-	${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.desktop \
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \
 		${STAGEDIR}${PREFIX}/share/wayland-sessions
 	(cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" \
 		${STAGEDIR}${DOCSDIR})
 
-.include "${.CURDIR:H:H}/x11-toolkits/wlroots016/override.mk"
 .include <bsd.port.mk>
diff --git a/x11-wm/dwl/distinfo b/x11-wm/dwl/distinfo
index 1d4c19c3b73f..0f6b5fa2ce5f 100644
--- a/x11-wm/dwl/distinfo
+++ b/x11-wm/dwl/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1672433212
-SHA256 (djpohly-dwl-v0.4_GH0.tar.gz) = f03a260b169019ebdbfd6db1b19a3dc7861ba33609644581c530be019f22274c
-SIZE (djpohly-dwl-v0.4_GH0.tar.gz) = 55527
+TIMESTAMP = 1700893691
+SHA256 (djpohly-dwl-v0.5_GH0.tar.gz) = 4cbf87fb99beb75943523caf485cf74ed94e23b16e75f415952a6b9e6da00c79
+SIZE (djpohly-dwl-v0.5_GH0.tar.gz) = 57859
diff --git a/x11-wm/dwl/files/dwl.desktop b/x11-wm/dwl/files/dwl.desktop
deleted file mode 100644
index f9276fb26069..000000000000
--- a/x11-wm/dwl/files/dwl.desktop
+++ /dev/null
@@ -1,6 +0,0 @@
-[Desktop Entry]
-Name=dwl
-Comment=dwm for Wayland
-Exec=dwl
-Type=Application
-DesktopNames=wlroots