git: f35325a5056e - main - devel/py-traitlets: Fix version in metadata

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 14 Oct 2022 17:51:37 UTC
The branch main has been updated by yuri:

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

commit f35325a5056ee09d897624692e57fa04765aadc2
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-10-14 15:12:51 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-10-14 17:51:35 +0000

    devel/py-traitlets: Fix version in metadata
---
 devel/py-traitlets/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/devel/py-traitlets/Makefile b/devel/py-traitlets/Makefile
index f3d2c7f3854b..4973b8fa49eb 100644
--- a/devel/py-traitlets/Makefile
+++ b/devel/py-traitlets/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	traitlets
 DISTVERSION=	5.4.0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -23,4 +24,7 @@ NO_ARCH=	yes
 post-patch:
 	@${ECHO_CMD} 'import setuptools; setuptools.setup()' > ${WRKSRC}/setup.py
 
+post-install:
+	@${REINPLACE_CMD} -i '' -e 's|Version: .*|Version: ${DISTVERSION}|' ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/traitlets-*/PKG-INFO
+
 .include <bsd.port.mk>