mirror of
https://git.freebsd.org/ports.git
synced 2025-05-24 23:16:33 -04:00
- remove files/py3k-fix-pkg-plist.inc - last consumer of it gone. This functionality is included into bsd.python.mk and works automagically for py3 ports - unmute docs installation command and remove pkg-plist while here Approved by: nivit (maintainer, explicitly for such changes in his ports)
41 lines
953 B
Makefile
41 lines
953 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= virtualenv
|
|
PORTVERSION= 1.11.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
COMMENT= Virtual Python Environment builder
|
|
|
|
LICENSE= MIT
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose:${PORTSDIR}/devel/py-tox \
|
|
${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})
|
|
.endif
|
|
|
|
regression-test: build
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
|
|
|
|
.include <bsd.port.mk>
|