aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-05-06 23:31:49 +0000
committerJan Beich <jbeich@FreeBSD.org>2023-05-06 23:48:43 +0000
commit321282b88c76a6d8a1940b13317850cb5122aed0 (patch)
treef60ffed0c0b033a0fe6affae6c5cf03b36e2d358
parent2833268a2d6f1831b5665b1d5f4d42f04142f67e (diff)
downloadports-321282b88c76a6d8a1940b13317850cb5122aed0.tar.gz
ports-321282b88c76a6d8a1940b13317850cb5122aed0.zip
games/veloren-weekly: make GIT_DATE consistent in different timezones
GIT_DATE is advertised by remote servers, mainly for diagnostics. https://gitlab.com/veloren/veloren/-/commit/5b716515bb39 (cherry picked from commit 6054513a40b13b8baaeed468d77f83688a99a432)
-rw-r--r--games/veloren-weekly/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/veloren-weekly/Makefile b/games/veloren-weekly/Makefile
index b02897e7f390..083ac688453e 100644
--- a/games/veloren-weekly/Makefile
+++ b/games/veloren-weekly/Makefile
@@ -53,7 +53,7 @@ post-patch:
${WRKSRC}/common/build.rs
# Extract (snapshot) version from the port instead of empty file
@${REINPLACE_CMD} -e '/GIT_HASH/s/=.*/= "${GL_COMMIT:C/(.{8}).*/\1/}";/' \
- -e "/GIT_DATE.*static/s/=.*/= \"$$(date -r $$(${AWK} '/TIMESTAMP/ { print $$3 }' \
+ -e "/GIT_DATE.*static/s/=.*/= \"$$(TZ=UTC date -r $$(${AWK} '/TIMESTAMP/ { print $$3 }' \
${DISTINFO_FILE}) +'%Y-%m-%d-%H:%M')\";/" \
${WRKSRC}/common/src/util/mod.rs
# Respect PREFIX != /usr/local for system assets