pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-codespell py-codespell: add missing dependenc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0e2041495740
branches:  trunk
changeset: 445657:0e2041495740
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Jan 26 20:27:30 2021 +0000

description:
py-codespell: add missing dependency for python 2.7 package

Add missing test dependency.

diffstat:

 devel/py-codespell/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 49b888e9c7d0 -r 0e2041495740 devel/py-codespell/Makefile
--- a/devel/py-codespell/Makefile       Tue Jan 26 20:18:51 2021 +0000
+++ b/devel/py-codespell/Makefile       Tue Jan 26 20:27:30 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2021/01/25 10:56:05 fcambus Exp $
+# $NetBSD: Makefile,v 1.4 2021/01/26 20:27:30 wiz Exp $
 
 DISTNAME=      codespell-2.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -12,9 +12,17 @@
 
 USE_LANGUAGES= # none
 
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYPKGPREFIX} == "py27"
+DEPENDS+=      ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser
+.endif
+PYTHON_VERSIONED_DEPENDENCIES+=        test:test
+
 post-install:
        ${MV} ${DESTDIR}${PREFIX}/bin/codespell \
                ${DESTDIR}${PREFIX}/bin/codespell-${PYVERSSUFFIX}
 
 .include "../../lang/python/egg.mk"
+.include "../../lang/python/versioned_dependencies.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index