sthen d7f0752227 bump all the py3 things, _SYSTEM_VERSION didn't quite work out how
we expected and it's easier|safer to do it this way than fiddle with
pkg_add now. thanks aja for update tests with a quick bulk.
2019-04-28 20:51:26 +00:00

63 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.25 2019/04/28 20:51:39 sthen Exp $
COMMENT-main= lint-like code checker for Python code
COMMENT-gui= GUI for pylint
MODPY_EGG_VERSION= 1.6.5
DISTNAME= pylint-${MODPY_EGG_VERSION}
PKGNAME-main= pylint-${MODPY_EGG_VERSION}
PKGNAME-gui= pylint-gui-${MODPY_EGG_VERSION}
CATEGORIES= devel
HOMEPAGE= http://www.pylint.org/
MAINTAINER = Alexandr Shadchin <shadchin@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
MULTI_PACKAGES= -main -gui
MODULES= lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
RUN_DEPENDS= devel/py-astroid${MODPY_FLAVOR} \
devel/py-isort${MODPY_FLAVOR} \
devel/py-mccabe${MODPY_FLAVOR} \
devel/py-six${MODPY_FLAVOR}
RUN_DEPENDS-gui= ${MODPY_TKINTER_DEPENDS} \
devel/pylint${MODPY_FLAVOR}=${MODPY_EGG_VERSION}
TEST_DEPENDS= ${RUN_DEPENDS} \
devel/py-logilab-common${MODPY_FLAVOR}>=1.3.0
FLAVORS = python3
FLAVOR ?=
.if ${FLAVOR:Mpython3}
FULLPKGNAME-main= ${PKGNAME-main:S/pylint/pylint3/}
FULLPKGPATH-main= devel/pylint,-main${MODPY_FLAVOR}
FULLPKGNAME-gui= ${PKGNAME-gui:S/pylint/pylint3/}
FULLPKGPATH-gui= devel/pylint,-gui${MODPY_FLAVOR}
.else
RUN_DEPENDS+= devel/py-backports-functools-lru-cache \
devel/py-configparser
.endif
REVISION-gui= 0
REVISION-main= 0
do-test: fake
cd ${WRKINST}${MODPY_SITEPKG} && env \
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
PYLINTHOME=${WRKINST} \
${MODPY_BIN} -m logilab.common.pytest
post-install:
rm ${WRKINST}${MODPY_SITEPKG}/pylint/test/unittest_lint.py.orig
.for i in epylint pylint pylint-gui pyreverse symilar
mv ${PREFIX}/bin/$i{,${MODPY_BIN_SUFFIX}}
.endfor
.include <bsd.port.mk>