diff options
author | wen <wen@pkgsrc.org> | 2016-09-08 01:01:15 +0000 |
---|---|---|
committer | wen <wen@pkgsrc.org> | 2016-09-08 01:01:15 +0000 |
commit | 954a42703fcd500576b2afb55f2c9be89518ce6a (patch) | |
tree | 5c4d20753074328258c7f16851c8a7ee11b7beed | |
parent | acb12b41c525e2ab57bac074ab10f11352167205 (diff) | |
download | pkgsrc-954a42703fcd500576b2afb55f2c9be89518ce6a.tar.gz |
Fix build with python3
Reported by: joerg@
-rw-r--r-- | devel/py-mccabe/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/devel/py-mccabe/Makefile b/devel/py-mccabe/Makefile index 3b5afd9dfec..3963a41bf31 100644 --- a/devel/py-mccabe/Makefile +++ b/devel/py-mccabe/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2016/08/13 00:07:44 wen Exp $ +# $NetBSD: Makefile,v 1.5 2016/09/08 01:01:15 wen Exp $ DISTNAME= mccabe-0.5.2 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} @@ -10,5 +10,10 @@ HOMEPAGE= https://pypi.python.org/pypi/mccabe/ COMMENT= Mccabe plugin for the Python program checker flake8 LICENSE= mit +.include "../../lang/python/pyversion.mk" +.if ${_PYTHON_VERSION} > 30 +BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner>=0:../../devel/py-test-runner +.endif + .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" |