git: 97cae4abaef2 - main - sysutils/py-filelock: Fix version in installed PKG-INFO files

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 19 Jan 2022 18:10:04 UTC
The branch main has been updated by yuri:

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

commit 97cae4abaef2431eb2d3284249384d11033d687f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-01-19 17:35:17 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-01-19 18:10:00 +0000

    sysutils/py-filelock: Fix version in installed PKG-INFO files
    
    Before this version was set to 0.0.0 which caused tox failure.
---
 sysutils/py-filelock/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sysutils/py-filelock/Makefile b/sysutils/py-filelock/Makefile
index f51c2c7ff2af..9466126450a2 100644
--- a/sysutils/py-filelock/Makefile
+++ b/sysutils/py-filelock/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	filelock
 DISTVERSION=	3.4.2
+PORTREVISION=	1
 CATEGORIES=	sysutils python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,4 +16,7 @@ USE_PYTHON=	autoplist distutils
 
 NO_ARCH=	yes
 
+post-patch: # workaround for https://github.com/tox-dev/py-filelock/issues/133
+	@${REINPLACE_CMD} -e 's|author = Benedikt Schmitt|version = ${PORTVERSION}|' ${WRKSRC}/setup.cfg
+
 .include <bsd.port.mk>