Skip to content

Commit

Permalink
devel/py-pylint-venv: Correct version in python metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed Nov 6, 2022
1 parent 1b0f242 commit c563031
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion devel/py-pylint-venv/Makefile
@@ -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}
Expand All @@ -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>

0 comments on commit c563031

Please sign in to comment.