pkgsrc/devel/py-pylint/Makefile

40 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.39 2020/03/22 22:50:52 rillig Exp $
DISTNAME= pylint-2.4.4
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.6:../../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+= tests/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"