git: 2bf82a901710 - 2022Q4 - devel/py-traitlets: Fix version in metadata
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 14 Oct 2022 17:51:57 UTC
The branch 2022Q4 has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=2bf82a9017103cdfd7943627eb7805612591b116 commit 2bf82a9017103cdfd7943627eb7805612591b116 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:53 +0000 devel/py-traitlets: Fix version in metadata (cherry picked from commit f35325a5056ee09d897624692e57fa04765aadc2) --- 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>