pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-case py-case: only depend on py-unittest2 whe...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1efb6b7d2bb1
branches: trunk
changeset: 372583:1efb6b7d2bb1
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Jan 27 11:39:38 2022 +0000
description:
py-case: only depend on py-unittest2 when building for python 2.x
diffstat:
devel/py-case/Makefile | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r e0d55f31a872 -r 1efb6b7d2bb1 devel/py-case/Makefile
--- a/devel/py-case/Makefile Thu Jan 27 11:35:02 2022 +0000
+++ b/devel/py-case/Makefile Thu Jan 27 11:39:38 2022 +0000
@@ -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 @@
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