git: 7d8958ed6f93 - main - devel/meson: Extend make(test) case to WITH_TESTING

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sat, 16 Mar 2024 01:21:24 UTC
The branch main has been updated by arrowd:

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

commit 7d8958ed6f935167ba0ae5247b507cde402c1ad2
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-03-16 01:19:01 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-03-16 01:20:08 +0000

    devel/meson: Extend make(test) case to WITH_TESTING
---
 devel/meson/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/devel/meson/Makefile b/devel/meson/Makefile
index fe0639e07548..bcc20bc7b235 100644
--- a/devel/meson/Makefile
+++ b/devel/meson/Makefile
@@ -24,7 +24,7 @@ NO_ARCH=	yes
 TEST_ENV=	${MAKE_ENV:NCC=*:NCXX=*}
 
 # Hide from regular build to avoid accidental dependency on symlinks
-.if make(test)
+.if make(test) || ("${WITH_TESTING}" == yes && make(package))
 # helper_create_binary_wrapper, test_python_module, test cases/*.py
 BINARY_ALIAS+=	python3=${PYTHON_CMD:T} python=${PYTHON_CMD:T}
 do-test: create-binary-alias # force if run late