git: ea855f9e3c13 - main - games/minetest: update 5.5.0 → 5.5.1, support testing

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Mon, 16 May 2022 15:35:07 UTC
The branch main has been updated by amdmi3:

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

commit ea855f9e3c13b57f3598f4134fddd9587253be0b
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-05-16 14:33:10 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-05-16 15:31:27 +0000

    games/minetest: update 5.5.0 → 5.5.1, support testing
---
 games/minetest/Makefile | 27 ++++++++++++++++++---------
 games/minetest/distinfo | 10 +++++-----
 2 files changed, 23 insertions(+), 14 deletions(-)

diff --git a/games/minetest/Makefile b/games/minetest/Makefile
index b50133367c60..a4a2aae35368 100644
--- a/games/minetest/Makefile
+++ b/games/minetest/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	minetest
-PORTVERSION=	5.5.0
+PORTVERSION=	5.5.1
 CATEGORIES=	games
 
 MAINTAINER=	amdmi3@FreeBSD.org
@@ -12,14 +12,17 @@ LIB_DEPENDS=	libgmp.so:math/gmp \
 		libjsoncpp.so:devel/jsoncpp \
 		libzstd.so:archivers/zstd
 
-USES=		cmake compiler:c11 cpe iconv:wchar_t sqlite
+USES=		cmake compiler:c++11-lang cpe iconv:wchar_t sqlite
 USE_GITHUB=	yes
-GH_TUPLE=	minetest:irrlicht:d3132e0:irrlicht/lib/irrlichtmt
+# check https://github.com/minetest/minetest/releases for applicable irrlichmt version
+GH_TUPLE=	minetest:irrlicht:1.9.0mt5:irrlicht/lib/irrlichtmt
 
 CMAKE_ARGS=	-DCUSTOM_MANDIR="${PREFIX}/man" \
 		-DCUSTOM_EXAMPLE_CONF_DIR="${PREFIX}/etc" \
 		-DENABLE_SYSTEM_JSONCPP=ON
 
+TEST_ENV=	${MAKE_ENV} LC_ALL=C.UTF-8
+
 LDFLAGS_i386=	-Wl,-znotext
 
 PORTSCOUT=	skipv:5.4.2-android
@@ -27,21 +30,19 @@ PORTSCOUT=	skipv:5.4.2-android
 PORTDATA=	*
 PORTDOCS=	*
 
-OPTIONS_DEFINE=	CURL SOUND NCURSES LUAJIT \
+OPTIONS_DEFINE=	CURL SOUND NCURSES LUAJIT TEST \
 		DOCS EXAMPLES NLS
 OPTIONS_MULTI=	COMP
 OPTIONS_GROUP=	DATABASE
-
-COMP_DESC=		Software components
 OPTIONS_MULTI_COMP=	CLIENT SERVER
-
-DATABASE_DESC=		Database support
 OPTIONS_GROUP_DATABASE=	PGSQL LEVELDB REDIS SPATIAL
-
 OPTIONS_DEFAULT=	CLIENT SERVER \
 			CURL SOUND NCURSES LUAJIT
 OPTIONS_SUB=		yes
 
+COMP_DESC=		Software components
+DATABASE_DESC=		Database support
+
 CLIENT_DESC=		Build client
 CLIENT_CMAKE_BOOL=	BUILD_CLIENT
 CLIENT_LIB_DEPENDS=	libpng.so:graphics/png \
@@ -80,6 +81,8 @@ NLS_CMAKE_BOOL=		ENABLE_GETTEXT
 NLS_USES=		gettext
 NLS_LDFLAGS=		-L${LOCALBASE}/lib
 
+TEST_CMAKE_BOOL=	BUILD_UNITTESTS
+
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MCLIENT} && ${PORT_OPTIONS:MSOUND}
@@ -103,4 +106,10 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
 		${WRKSRC}/cmake/Modules/*.cmake
 
+do-test-CLIENT-on:
+	cd ${WRKDIR} && ${SETENV} ${TEST_ENV} ${STAGEDIR}${PREFIX}/bin/minetest --run-unittests
+
+do-test-SERVER-on:
+	cd ${WRKDIR} && ${SETENV} ${TEST_ENV} ${STAGEDIR}${PREFIX}/bin/minetestserver --run-unittests
+
 .include <bsd.port.mk>
diff --git a/games/minetest/distinfo b/games/minetest/distinfo
index 55f381a19a18..27b91ca35f9e 100644
--- a/games/minetest/distinfo
+++ b/games/minetest/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1644232113
-SHA256 (minetest-minetest-5.5.0_GH0.tar.gz) = 8b9bef6054c8895cc3329ae6d05cb355eef9c7830600d82dc9eaa4664f87c8f9
-SIZE (minetest-minetest-5.5.0_GH0.tar.gz) = 9558895
-SHA256 (minetest-irrlicht-d3132e0_GH0.tar.gz) = 0a26c999af70994f6680ae5e589e4d5231cb0a989a73f0b63e6bc924f5cf7721
-SIZE (minetest-irrlicht-d3132e0_GH0.tar.gz) = 4158424
+TIMESTAMP = 1652701471
+SHA256 (minetest-minetest-5.5.1_GH0.tar.gz) = dc0ae5188ef351db85c38b27f38f8549b133ed82aa46daea6deee148aa3454f4
+SIZE (minetest-minetest-5.5.1_GH0.tar.gz) = 9559568
+SHA256 (minetest-irrlicht-1.9.0mt5_GH0.tar.gz) = 6d38dd7f3e3c8d768e1f5776b98dd5359b184c2e6740ddf733f4dc8615191bef
+SIZE (minetest-irrlicht-1.9.0mt5_GH0.tar.gz) = 1008163