devel/py-pylint-venv: Correct version in python metadata

This commit is contained in:
Yuri Victorovich 2022-11-06 11:09:22 -08:00
parent 1b0f24287d
commit c56303179f

View File

@ -1,5 +1,6 @@
PORTNAME= pylint-venv
PORTVERSION= 2.3.0
DISTVERSION= 2.3.0
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -18,8 +19,20 @@ USE_PYTHON= distutils autoplist
NO_ARCH= yes
POST_PLIST+= fix-plist
# upstream stopped providing setup.py
post-patch:
@${ECHO_CMD} 'import setuptools; setuptools.setup()' > ${WRKSRC}/setup.py
post-install:
@cd ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} && \
${REINPLACE_CMD} \
-e 's|^Version:.*|Version: ${DISTVERSION}|' \
pylint_venv-0.0.0-py${PYTHON_VER}.egg-info/PKG-INFO && \
${MV} pylint_venv-0.0.0-py${PYTHON_VER}.egg-info pylint_venv-${DISTVERSION}-py${PYTHON_VER}.egg-info
fix-plist:
${REINPLACE_CMD} -e 's|0\.0\.0|${DISTVERSION}|' ${TMPPLIST}
.include <bsd.port.mk>