diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2022-10-14 15:12:51 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2022-10-14 17:51:53 +0000 |
commit | 2bf82a9017103cdfd7943627eb7805612591b116 (patch) | |
tree | 774be04d8a476a3411ef6e98f7c1e0ee157ca994 | |
parent | 60af2cda950db97b70638baf2206821eb02f385c (diff) | |
download | ports-2bf82a9017103cdfd7943627eb7805612591b116.tar.gz ports-2bf82a9017103cdfd7943627eb7805612591b116.zip |
devel/py-traitlets: Fix version in metadata
(cherry picked from commit f35325a5056ee09d897624692e57fa04765aadc2)
-rw-r--r-- | devel/py-traitlets/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
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> |