aboutsummaryrefslogtreecommitdiff
path: root/devel/py-mock/Makefile
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2012-12-02 10:39:45 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2012-12-02 10:39:45 +0000
commit83cc3b9f8d6ae981c9d0790040692495bf7adc12 (patch)
treeb6c8572838892e561882bc094cde34378fece701 /devel/py-mock/Makefile
parent3caa05e50cc38d74fdbeac8f9bd7ca323a531742 (diff)
downloadports-83cc3b9f8d6ae981c9d0790040692495bf7adc12.tar.gz
ports-83cc3b9f8d6ae981c9d0790040692495bf7adc12.zip
Notes
Diffstat (limited to 'devel/py-mock/Makefile')
-rw-r--r--devel/py-mock/Makefile22
1 files changed, 17 insertions, 5 deletions
diff --git a/devel/py-mock/Makefile b/devel/py-mock/Makefile
index b6e012335563..a096a09096e9 100644
--- a/devel/py-mock/Makefile
+++ b/devel/py-mock/Makefile
@@ -1,8 +1,8 @@
+# Created by: jessekempf@gmail.com
# $FreeBSD$
PORTNAME= mock
-PORTVERSION= 0.8.0
-PORTREVISION= 1
+PORTVERSION= 1.0.1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,10 +12,22 @@ COMMENT= Mock unit tests for Python
LICENSE= BSD
-PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
+OPTIONS_DEFINE= TESTS
+TESTS_DESC= Install tox for running unit tests
+OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options
# Python3 ready
-USE_PYTHON= yes
+USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MTESTS}
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tox>0:${PORTSDIR}/devel/py-tox
+.endif
+
+.if ${PYTHON_REL} >= 320
+.include "${PORTSDIR}/devel/py-virtualenv/files/py3k-fix-pkg-plist.inc"
+.endif
+
+.include <bsd.port.post.mk>