git: 249b255236f7 - main - misc/far2l: the port had been updated to first beta version, 2.4.0

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Wed, 12 Jan 2022 11:29:44 UTC
The branch main has been updated by danfe:

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

commit 249b255236f79d49467eda4cba1a4f045ac3998c
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2022-01-12 11:29:14 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2022-01-12 11:29:14 +0000

    misc/far2l: the port had been updated to first beta version, 2.4.0
    
    From now on (hopefully) releases will be properly tagged, so we can
    use real version numbers instead of dates.
    
    Reported on:    https://www.opennet.ru/opennews/art.shtml?num=56492
---
 misc/far2l/Makefile | 9 ++-------
 misc/far2l/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/misc/far2l/Makefile b/misc/far2l/Makefile
index e0afdae77c5c..f5e4f72d9556 100644
--- a/misc/far2l/Makefile
+++ b/misc/far2l/Makefile
@@ -1,10 +1,8 @@
 # Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
 
 PORTNAME=	far2l
-# Upstream tags (pre-)releases very rarely and irregularly, so keep using
-# the g${DATE} format even for tagged releases to avoid bumping PORTEPOCH
-# in case we'd have to use raw commit hashes again in the future.
-PORTVERSION=	g20211204 # don't forget to update unknown -> git hash below
+PORTVERSION=	2.4.0
+DISTVERSIONPREFIX=	v_
 CATEGORIES=	misc
 
 MAINTAINER=	danfe@FreeBSD.org
@@ -22,7 +20,6 @@ RUN_DEPENDS=	bash:shells/bash
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	elfmz
-GH_TAGNAME=	v2021-12-04_alpha
 
 USES=		cmake compiler:c++11-lang libarchive pkgconfig shebangfix ssl
 SHEBANG_FILES=	far2l/bootstrap/view.sh
@@ -50,8 +47,6 @@ X11_USES=	xorg
 X11_USE=	XORG=ice,sm,x11,xext
 
 post-patch:
-	@${REINPLACE_CMD} -e 's,-unknown,-git-48654cc,' \
-		${WRKSRC}/far2l/bootstrap/scripts/vbuild.sh
 	@${GREP} -Rl --null --include=\*.cpp /bin/bash ${WRKSRC} | ${XARGS} \
 		-0 ${REINPLACE_CMD} -e 's,/bin/bash,${LOCALBASE}&,'
 
diff --git a/misc/far2l/distinfo b/misc/far2l/distinfo
index 6e4d4f1b5024..6e12a901869f 100644
--- a/misc/far2l/distinfo
+++ b/misc/far2l/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1638615268
-SHA256 (elfmz-far2l-g20211204-v2021-12-04_alpha_GH0.tar.gz) = 9d3500e563db261332147be0cde9f2284ec21519ed045f12e27948400d361eea
-SIZE (elfmz-far2l-g20211204-v2021-12-04_alpha_GH0.tar.gz) = 5471538
+TIMESTAMP = 1641943318
+SHA256 (elfmz-far2l-v_2.4.0_GH0.tar.gz) = a595f7f2b48aaf6cfd61c1539bb52207f8f985576ee928915f54b675666e9f88
+SIZE (elfmz-far2l-v_2.4.0_GH0.tar.gz) = 6223889