git: e535f9c9d8d5 - main - games/minetest: update 5.7.0 → 5.8.0

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Wed, 03 Apr 2024 11:42:26 UTC
The branch main has been updated by amdmi3:

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

commit e535f9c9d8d533cf1c86431d43b7d52849621d68
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2024-03-01 20:59:11 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2024-04-03 11:42:19 +0000

    games/minetest: update 5.7.0 → 5.8.0
---
 games/minetest/Makefile                                     |  8 ++++----
 games/minetest/distinfo                                     | 10 +++++-----
 ...patch-lib_irrlichtmt_source_Irrlicht_CIrrDeviceLinux.cpp | 13 +++++++++++++
 games/minetest/pkg-plist                                    |  5 +++++
 4 files changed, 27 insertions(+), 9 deletions(-)

diff --git a/games/minetest/Makefile b/games/minetest/Makefile
index 938eb146efe9..da692c3c99e1 100644
--- a/games/minetest/Makefile
+++ b/games/minetest/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	minetest
-PORTVERSION=	5.7.0
-PORTREVISION=	1
+PORTVERSION=	5.8.0
 CATEGORIES=	games
 
 MAINTAINER=	amdmi3@FreeBSD.org
@@ -14,13 +13,14 @@ LIB_DEPENDS=	libgmp.so:math/gmp \
 		libjsoncpp.so:devel/jsoncpp \
 		libzstd.so:archivers/zstd
 
-USES=		cmake compiler:c++14-lang cpe iconv:wchar_t sqlite
+USES=		cmake compiler:c++17-lang cpe iconv:wchar_t sqlite
 USE_GITHUB=	yes
 # check https://github.com/minetest/minetest/releases for applicable irrlichmt version
-GH_TUPLE=	minetest:irrlicht:1.9.0mt10:irrlicht/lib/irrlichtmt
+GH_TUPLE=	minetest:irrlicht:1.9.0mt13:irrlicht/lib/irrlichtmt
 
 CMAKE_ARGS=	-DCUSTOM_EXAMPLE_CONF_DIR="${PREFIX}/etc" \
 CMAKE_ON=	ENABLE_SYSTEM_JSONCPP
+CMAKE_OFF=	BUILD_DOCUMENTATION
 
 TEST_ENV=	${MAKE_ENV} LC_ALL=C.UTF-8
 
diff --git a/games/minetest/distinfo b/games/minetest/distinfo
index d2e8ddabbaa9..5995527e81f2 100644
--- a/games/minetest/distinfo
+++ b/games/minetest/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1681134407
-SHA256 (minetest-minetest-5.7.0_GH0.tar.gz) = 0cd0fd48a97f76e337a2e1284599a054f8f92906a84a4ef2122ed321e1b75fa7
-SIZE (minetest-minetest-5.7.0_GH0.tar.gz) = 10115973
-SHA256 (minetest-irrlicht-1.9.0mt10_GH0.tar.gz) = 6d00348d8ff513f6a7cee5c930908ef67428ff637e6a9e4d5688409bdb6d547d
-SIZE (minetest-irrlicht-1.9.0mt10_GH0.tar.gz) = 898774
+TIMESTAMP = 1709305325
+SHA256 (minetest-minetest-5.8.0_GH0.tar.gz) = 610c85a24d77acdc3043a69d777bed9e6c00169406ca09df22ad490fe0d68c0c
+SIZE (minetest-minetest-5.8.0_GH0.tar.gz) = 10419348
+SHA256 (minetest-irrlicht-1.9.0mt13_GH0.tar.gz) = 2fde8e27144988210b9c0ff1e202905834d9d25aaa63ce452763fd7171096adc
+SIZE (minetest-irrlicht-1.9.0mt13_GH0.tar.gz) = 754056
diff --git a/games/minetest/files/patch-lib_irrlichtmt_source_Irrlicht_CIrrDeviceLinux.cpp b/games/minetest/files/patch-lib_irrlichtmt_source_Irrlicht_CIrrDeviceLinux.cpp
new file mode 100644
index 000000000000..04adbc660dfb
--- /dev/null
+++ b/games/minetest/files/patch-lib_irrlichtmt_source_Irrlicht_CIrrDeviceLinux.cpp
@@ -0,0 +1,13 @@
+--- lib/irrlichtmt/source/Irrlicht/CIrrDeviceLinux.cpp.orig	2023-10-27 15:48:29 UTC
++++ lib/irrlichtmt/source/Irrlicht/CIrrDeviceLinux.cpp
+@@ -45,6 +45,10 @@
+ #include <X11/Xcursor/Xcursor.h>
+ #endif
+ 
++#ifdef _IRR_COMPILE_WITH_X11_
++#include <unistd.h> // for getpid()
++#endif
++
+ #if defined _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
+ #include <fcntl.h>
+ #include <unistd.h>
diff --git a/games/minetest/pkg-plist b/games/minetest/pkg-plist
index 710aa7258a21..d030f586da88 100644
--- a/games/minetest/pkg-plist
+++ b/games/minetest/pkg-plist
@@ -16,22 +16,27 @@ share/icons/hicolor/scalable/apps/minetest.svg
 %%CLIENT%%%%NLS%%share/locale/es/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/et/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/eu/LC_MESSAGES/minetest.mo
+%%CLIENT%%%%NLS%%share/locale/fa/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/fi/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/fil/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/fr/LC_MESSAGES/minetest.mo
+%%CLIENT%%%%NLS%%share/locale/ga/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/gd/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/gl/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/hu/LC_MESSAGES/minetest.mo
+%%CLIENT%%%%NLS%%share/locale/ia/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/id/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/it/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/ja/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/jbo/LC_MESSAGES/minetest.mo
+%%CLIENT%%%%NLS%%share/locale/jv/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/kk/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/ko/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/ky/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/lt/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/lv/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/lzh/LC_MESSAGES/minetest.mo
+%%CLIENT%%%%NLS%%share/locale/mi/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/mn/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/mr/LC_MESSAGES/minetest.mo
 %%CLIENT%%%%NLS%%share/locale/ms/LC_MESSAGES/minetest.mo