83cc3b9f8d
- add OPTIONS for unit test support - patch setup.py to install the egg uncompressed - use a pkg-plist instead of PLIST_FILES - restore creator to Makefile header and use new convention - fix plist for python >= 3.2 PR: 172592 Submitted by: Kubilay Kocak <koobs.freebsd@gmail.com> Approved by: maintainer timeout (1 month+) Feature safe: yes
33 lines
705 B
Makefile
33 lines
705 B
Makefile
# Created by: jessekempf@gmail.com
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mock
|
|
PORTVERSION= 1.0.1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= jessekempf@gmail.com
|
|
COMMENT= Mock unit tests for Python
|
|
|
|
LICENSE= BSD
|
|
|
|
OPTIONS_DEFINE= TESTS
|
|
TESTS_DESC= Install tox for running unit tests
|
|
OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
|
|
# Python3 ready
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= easy_install
|
|
|
|
.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>
|