pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-mccabe Fix build with python3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7a332d2cd54e
branches:  trunk
changeset: 352140:7a332d2cd54e
user:      wen <wen%pkgsrc.org@localhost>
date:      Thu Sep 08 01:01:15 2016 +0000

description:
Fix build with python3

Reported by:    joerg@

diffstat:

 devel/py-mccabe/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 227de53fc5b7 -r 7a332d2cd54e devel/py-mccabe/Makefile
--- a/devel/py-mccabe/Makefile  Wed Sep 07 23:31:40 2016 +0000
+++ b/devel/py-mccabe/Makefile  Thu Sep 08 01:01:15 2016 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index