git: c5b66329ca65 - main - devel/meson: fix paths for polkit policy file

From: Charlie Li <vishwin_at_FreeBSD.org>
Date: Wed, 17 Jun 2026 17:15:48 UTC
The branch main has been updated by vishwin:

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

commit c5b66329ca65b86edb38057ae8a7a2e72a14e700
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-06-17 17:10:18 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-06-17 17:15:30 +0000

    devel/meson: fix paths for polkit policy file
    
    Reported by: makc
    Event: FreeBSD Developer Summit June 2026
    Event: BSDCan 2026
---
 devel/meson/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/devel/meson/Makefile b/devel/meson/Makefile
index c504a7137990..0fd2ecc310e7 100644
--- a/devel/meson/Makefile
+++ b/devel/meson/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	meson
 PORTVERSION=	1.10.2
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	devel python
 MASTER_SITES=	https://github.com/mesonbuild/${PORTNAME}/releases/download/${PORTVERSION}/
@@ -49,6 +50,9 @@ PYTEST_BROKEN_TESTS=	test_pkgconfig_formatting \
 			test_static_link
 
 post-patch:
+	@${REINPLACE_CMD} -e 's|/usr/bin/python3|${PYTHON_CMD}|' \
+		-e 's|/usr/bin/meson|${LOCALBASE}/bin/meson|' \
+		${WRKSRC}/data/com.mesonbuild.install.policy
 	@${REINPLACE_CMD} -e 's|lib/pkgconfig|libdata/pkgconfig|g' \
 		-e "s|'lib', 'pkgconfig'|'libdata', 'pkgconfig'|g" \
 		-e "s|self.libdir, 'pkgconfig'|'libdata', 'pkgconfig'|g" \