51 lines
1 KiB
Makefile
51 lines
1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= virtualenv
|
|
PORTVERSION= 1.8.2
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= nivit@FreeBSD.org
|
|
COMMENT= Virtual Python Environment builder
|
|
|
|
LICENSE= MIT
|
|
|
|
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
PLIST_SUB= PYVER=${PYTHON_VER} PIPVER=${PIPVER} DISTRIBUTEVER=${DISTRIBUTEVER} \
|
|
PY2X=${PY2X}
|
|
|
|
# Python3 ready
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= easy_install
|
|
|
|
PIPVER= 1.2.1
|
|
DISTRIBUTEVER= 0.6.28
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
BUILD_DEPENDS+= ${PKGNAMEPREFIX}sphinx>=1.1.3:${PORTSDIR}/textproc/py-sphinx
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
PYDISTUTILS_BUILD_TARGET+= build_sphinx
|
|
|
|
post-install:
|
|
@${MKDIR} ${DOCSDIR}
|
|
@cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${DOCSDIR}
|
|
.endif
|
|
|
|
.if ${PYTHON_REL} >= 310
|
|
PY2X= "@comment "
|
|
.else
|
|
PY2X= ""
|
|
.endif
|
|
|
|
.if ${PYTHON_REL} >= 320
|
|
.include "${FILESDIR}/py3k-fix-pkg-plist.inc"
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|