git: 2e2193873d5b - main - x11/swaylock: unbreak snapshot --version after 60507c96737a

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 02 Dec 2023 21:13:48 UTC
The branch main has been updated by jbeich:

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

commit 2e2193873d5b5a4a5ff8d9a0ecbfa29f32068c16
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-12-02 21:11:00 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-12-02 21:13:37 +0000

    x11/swaylock: unbreak snapshot --version after 60507c96737a
    
    https://github.com/swaywm/swaylock/commit/84598b08f21a
---
 x11/swaylock/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x11/swaylock/Makefile b/x11/swaylock/Makefile
index a14765f1b5b9..f77589ae273f 100644
--- a/x11/swaylock/Makefile
+++ b/x11/swaylock/Makefile
@@ -42,7 +42,7 @@ PIXBUF_MESON_ENABLED=	gdk-pixbuf
 post-patch:
 # Extract (snapshot) version from the port instead of meson.build
 	@${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
-		-e '/project_version/s/@0@/${DISTVERSIONFULL}/' \
+		-e "s/meson.project_version()/'${DISTVERSIONFULL}'/" \
 		${WRKSRC}/meson.build
 
 .include <bsd.port.mk>