freebsd-ports/devel/py-virtualenv/Makefile
2014-05-19 01:24:40 +00:00

42 lines
1,012 B
Makefile

# $FreeBSD$
PORTNAME= virtualenv
PORTVERSION= 1.11.6
PORTREVISION= 0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nivit@FreeBSD.org
COMMENT= Tool for creating isolated Python environments
LICENSE= MIT
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose:${PORTSDIR}/devel/py-nose \
${PYTHON_PKGNAMEPREFIX}mock:${PORTSDIR}/devel/py-mock
OPTIONS_DEFINE= DOCS
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.1.3:${PORTSDIR}/textproc/py-sphinx
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
.include <bsd.port.options.mk>
.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} ${PYSETUP} test
.include <bsd.port.mk>