pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-case



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu Jan 27 11:39:38 UTC 2022

Modified Files:
        pkgsrc/devel/py-case: Makefile

Log Message:
py-case: only depend on py-unittest2 when building for python 2.x


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/py-case/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-case/Makefile
diff -u pkgsrc/devel/py-case/Makefile:1.3 pkgsrc/devel/py-case/Makefile:1.4
--- pkgsrc/devel/py-case/Makefile:1.3   Tue Jan  4 20:52:55 2022
+++ pkgsrc/devel/py-case/Makefile       Thu Jan 27 11:39:38 2022
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2022/01/04 20:52:55 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2022/01/27 11:39:38 wiz Exp $
 
 DISTNAME=      case-1.5.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/case/}
 
@@ -14,10 +14,15 @@ LICENSE=    modified-bsd
 DEPENDS+=      ${PYPKGPREFIX}-nose>=1.3.7:../../devel/py-nose
 DEPENDS+=      ${PYPKGPREFIX}-mock>=2.0:../../devel/py-mock
 DEPENDS+=      ${PYPKGPREFIX}-six>=1.3.7:../../lang/py-six
-DEPENDS+=      ${PYPKGPREFIX}-unittest2>=0.5.1:../../devel/py-unittest2
 TEST_DEPENDS+= ${PYPKGPREFIX}-coverage>=3.0:../../devel/py-coverage
 
 USE_LANGUAGES=         # none
 
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYPKGPREFIX} == "py27"
+DEPENDS+=      ${PYPKGPREFIX}-unittest2>=0.5.1:../../devel/py-unittest2
+.endif
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index