# $FreeBSD: head/devel/py-virtualenv/Makefile 412346 2016-04-01 14:00:51Z mat $ PORTNAME= virtualenv PORTVERSION= 14.0.0 CATEGORIES= devel python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= nivit@FreeBSD.org COMMENT= Tool for creating isolated Python environments LICENSE= MIT TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest \ ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock OPTIONS_DEFINE= DOCS DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.1.3:textproc/py-sphinx USES= python USE_GITHUB= yes USE_PYTHON= autoplist concurrent distutils GH_ACCOUNT= pypa .include .if ${PORT_OPTIONS:MDOCS} DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} PORTDOCS= * PYDISTUTILS_BUILD_TARGET+= build_sphinx post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/build/sphinx/html && \ ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -or -name objects.inv") .endif regression-test: build @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test .include