git: 6cd098a4d581 - 2024Q1 - games/veloren-weekly: update to s20240131

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 01 Feb 2024 00:58:47 UTC
The branch 2024Q1 has been updated by jbeich:

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

commit 6cd098a4d581a71231a8125556fecb6f2549ffd1
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-01-31 15:30:47 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-02-01 00:58:41 +0000

    games/veloren-weekly: update to s20240131
    
    Changes:        https://gitlab.com/veloren/veloren/-/compare/77af5ef09...cbcf1965b
    (cherry picked from commit a0d0fa9e979085fa180b5cbcf654f6d86b6e0b93)
---
 games/veloren-weekly/Makefile         |  4 ++--
 games/veloren-weekly/distinfo         |  6 +++---
 games/veloren-weekly/files/patch-unix | 24 ++++++++++++++++++++++++
 3 files changed, 29 insertions(+), 5 deletions(-)

diff --git a/games/veloren-weekly/Makefile b/games/veloren-weekly/Makefile
index 5f44583ee7cb..e687bb50d45e 100644
--- a/games/veloren-weekly/Makefile
+++ b/games/veloren-weekly/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	veloren
-PORTVERSION=	s20240126
+PORTVERSION=	s20240131
 CATEGORIES=	games wayland
 PKGNAMESUFFIX=	-weekly
 
@@ -23,7 +23,7 @@ RUN_DEPENDS=	${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-pl
 USES=		cargo xorg
 USE_XORG=	xcb
 USE_GITLAB=	yes
-GL_TAGNAME=	v0.15.0-934-g77af5ef09 # git describe --match='v[0-9]*' weekly
+GL_TAGNAME=	v0.15.0-982-gcbcf1965b # git describe --match='v[0-9]*' weekly
 CARGO_ENV=	VELOREN_USERDATA_STRATEGY=system SHADERC_LIB_DIR="${LOCALBASE}/lib"
 PLIST_FILES=	bin/${PORTNAME}-server-cli \
 		bin/${PORTNAME}-voxygen \
diff --git a/games/veloren-weekly/distinfo b/games/veloren-weekly/distinfo
index 06ab356356f1..f3bc57366ae1 100644
--- a/games/veloren-weekly/distinfo
+++ b/games/veloren-weekly/distinfo
@@ -1,4 +1,4 @@
-TIMESTAMP = 1706294081
+TIMESTAMP = 1706744278
 SHA256 (rust/crates/ab_glyph-0.2.21.crate) = 5110f1c78cf582855d895ecd0746b653db010cec6d9f5575293f27934d980a39
 SIZE (rust/crates/ab_glyph-0.2.21.crate) = 17764
 SHA256 (rust/crates/ab_glyph_rasterizer-0.1.8.crate) = c71b1793ee61086797f5c80b6efa2b8ffa6d5dd703f118545808a7f2e27f7046
@@ -1553,5 +1553,5 @@ SHA256 (yoanlcq-vek-84d5cb65841d46599a986c5477341bea4456be26_GH0.tar.gz) = f6fc0
 SIZE (yoanlcq-vek-84d5cb65841d46599a986c5477341bea4456be26_GH0.tar.gz) = 90485
 SHA256 (Imberflur-winit-raw-window-handle-0.4-retro-support-v1_GH0.tar.gz) = 55b7e0bfdf87aca662e4ae0a8abd4cbe0cf5d2d2e9f9a61f8b40f02ab769d04f
 SIZE (Imberflur-winit-raw-window-handle-0.4-retro-support-v1_GH0.tar.gz) = 402612
-SHA256 (veloren-v0.15.0-934-g77af5ef09.tar.bz2) = 6f5ae4d15b6cb9ba68e6e3117a580f87959831a108d3c885bb5fc6303fb8c440
-SIZE (veloren-v0.15.0-934-g77af5ef09.tar.bz2) = 290408888
+SHA256 (veloren-v0.15.0-982-gcbcf1965b.tar.bz2) = 6dc46be2a9eb7e58e632d92281f27ba9b972c35e675c5842d3a0e9f2a7fb0c07
+SIZE (veloren-v0.15.0-982-gcbcf1965b.tar.bz2) = 290589065
diff --git a/games/veloren-weekly/files/patch-unix b/games/veloren-weekly/files/patch-unix
new file mode 100644
index 000000000000..10603bce2e3e
--- /dev/null
+++ b/games/veloren-weekly/files/patch-unix
@@ -0,0 +1,24 @@
+Relax Linux checks for the code works on any non-Windows platform.
+
+--- server-cli/src/main.rs.orig	2024-01-31 15:30:47 UTC
++++ server-cli/src/main.rs
+@@ -57,7 +57,7 @@ fn main() -> io::Result<()> {
+ 
+     let sigusr1_signal = Arc::new(AtomicBool::new(false));
+ 
+-    #[cfg(any(target_os = "linux", target_os = "macos"))]
++    #[cfg(not(target_os = "windows"))]
+     let _ = signal_hook::flag::register(signal_hook::consts::SIGUSR1, Arc::clone(&sigusr1_signal));
+ 
+     let (_guards, _guards2) = if basic {
+--- voxygen/src/main.rs.orig	2024-01-31 15:30:47 UTC
++++ voxygen/src/main.rs
+@@ -51,7 +51,7 @@ fn main() {
+             cli::Commands::ListWgpuBackends => {
+                 #[cfg(target_os = "windows")]
+                 let backends = &["dx11", "dx12", "vulkan"];
+-                #[cfg(target_os = "linux")]
++                #[cfg(not(any(target_os = "windows", target_os = "macos")))]
+                 let backends = &["vulkan"];
+                 #[cfg(target_os = "macos")]
+                 let backends = &["metal"];