svn commit: r404434 - head/devel/py-mock
Martin Wilke
miwi at FreeBSD.org
Fri Dec 25 16:32:14 UTC 2015
Author: miwi
Date: Fri Dec 25 16:32:13 2015
New Revision: 404434
URL: https://svnweb.freebsd.org/changeset/ports/404434
Log:
- Add missing dependency
- Switch to do-test
- Bump PORTREVISION
Reviewed by: antoine, koobs
Differential Revision: D4707
Modified:
head/devel/py-mock/Makefile
Modified: head/devel/py-mock/Makefile
==============================================================================
--- head/devel/py-mock/Makefile Fri Dec 25 16:28:22 2015 (r404433)
+++ head/devel/py-mock/Makefile Fri Dec 25 16:32:13 2015 (r404434)
@@ -3,6 +3,7 @@
PORTNAME= mock
PORTVERSION= 1.3.0
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,15 +13,22 @@ COMMENT= Mock unit tests for Python
LICENSE= BSD2CLAUSE
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=1.3:${PORTSDIR}/devel/py-pbr
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=1.3:${PORTSDIR}/devel/py-pbr
-
-OPTIONS_DEFINE= TESTS
-TESTS_DESC= Install tox for running unit tests
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=1.3:${PORTSDIR}/devel/py-pbr \
+ ${PYTHON_PKGNAMEPREFIX}setuptools${PYTHON_SUFFIX}>0:${PORTSDIR}/devel/py-setuptools${PYTHON_SUFFIX
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=1.3:${PORTSDIR}/devel/py-pbr \
+ ${PYTHON_PKGNAMEPREFIX}six>=1.4.0:${PORTSDIR}/devel/py-six
+TESTS_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:${PORTSDIR}/devel/py-tox
USES= python
USE_PYTHON= distutils autoplist
-TESTS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:${PORTSDIR}/devel/py-tox
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3300
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}funcsigs>=0:${PORTSDIR}/devel/py-funcsigs
+.endif
+
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list