pkgsrc/devel/py-pylint/Makefile
adam 2a3f852e53 py-pylint: updated to 2.3.1
What's New in Pylint 2.3.1?
* Properly pass quote=False to html.escape in the JSON reporter
2019-03-02 14:12:28 +00:00

40 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.35 2019/03/02 14:12:28 adam Exp $
DISTNAME= pylint-2.3.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pylint/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.pylint.org/
COMMENT= Python source code analyzer
LICENSE= gnu-gpl-v2
DEPENDS+= ${PYPKGPREFIX}-astroid>=2.2.0:../../devel/py-astroid
DEPENDS+= ${PYPKGPREFIX}-isort>=4.2.5:../../devel/py-isort
DEPENDS+= ${PYPKGPREFIX}-mccabe-[0-9]*:../../devel/py-mccabe
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
USE_LANGUAGES= # none
PYTHON_VERSIONS_INCOMPATIBLE= 27
INSTALLATION_DIRS= ${PKGMANDIR}/man1
REPLACE_PYTHON+= pylint/test/data/ascript
post-install:
.for file in epylint pylint pyreverse symilar
cd ${DESTDIR}${PREFIX}/bin && \
${MV} ${file} ${file}-${PYVERSSUFFIX} || ${TRUE}
${INSTALL_DATA} ${WRKSRC}/man/${file}.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${file}-${PYVERSSUFFIX}.1
.endfor
do-test:
cd ${WRKSRC} && pytest-${PYVERSSUFFIX}
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"