git: 4ddd2f00d3d4 - main - games/openarena: fix version number going backwards

From: Stefan Eßer <se_at_FreeBSD.org>
Date: Mon, 19 Sep 2022 15:01:29 UTC
The branch main has been updated by se:

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

commit 4ddd2f00d3d4c9eea3ced9ea4f61da5d9774fcb0
Author:     Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2022-09-19 14:53:33 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
CommitDate: 2022-09-19 14:53:33 +0000

    games/openarena: fix version number going backwards
    
    This ports needs to always define the PORTREVISION macro to some value
    to prevent it from defaulting to the PORTREVISION set in the ioquake3
    port.
    
    Since the ioquake3 port was at PORTREVISION 17, and this setting had
    leaked into the openarena and openarena-server ports, setting the
    PORTREVISION to 1 in openarena caused the version number to decrease.
    
    Set PORTREVISION to 18 (1 higher than the current value in ioquake3)
    to make its version compare higher than before the recent port update.
    
    This commit fixes the version number in both openarena and
    openarena-server.
---
 games/openarena/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games/openarena/Makefile b/games/openarena/Makefile
index de89ec151de5..e6f622a82cc5 100644
--- a/games/openarena/Makefile
+++ b/games/openarena/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	openarena
 PORTVERSION=	${GAMEVERSION}.s${SVNREVISION}
-PORTREVISION=	1
+PORTREVISION=	18	# keep and reset to 0 on version upgrade
 PORTEPOCH=	2
 MASTER_SITES=	SF/oarena/src \
 		http://files.poulsander.com/~poul19/public_files/oa/dev088/