freebsd-ports/devel/py-virtualenvwrapper/Makefile
Nicola Vitale 9d41dfc3f8 - Update to 3.6
- Add devel/py-stevedore to RUN_DEPENDS
- Use devel/py-sphinx and textproc/py-sphinxcontrib-bitbucket
  to build DOCS
- Remove Author: field and the blank after WWW: from pkg-descr

ReleaseHistory:	http://goo.gl/AYHv8
BuildLog:	http://goo.gl/acOhy
2012-08-21 21:19:56 +00:00

58 lines
1.9 KiB
Makefile

# New ports collection makefile for: py-virtualenvwrapper
# Date created: 2010-05-06
# Whom: Nicola Vitale <nivit@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= virtualenvwrapper
PORTVERSION= 3.6
PORTREVISION= 0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A set of extensions to Virtual Python Environment builder
RUN_DEPENDS= ${PKGNAMEPREFIX}stevedore>=0.3:${PORTSDIR}/devel/py-stevedore \
${PKGNAMEPREFIX}virtualenv>=1.4.8:${PORTSDIR}/devel/py-virtualenv \
${PKGNAMEPREFIX}virtualenv-clone>=0.2.4:${PORTSDIR}/devel/py-virtualenv-clone
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS_DEFINE= DOCS
USE_PYDISTUTILS= easy_install
# Python3 ready
USE_PYTHON= yes
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MDOCS}
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
PYDISTUTILS_BUILD_TARGET+= build_sphinx -a -E
BUILD_DEPENDS+= sphinx-build:${PORTSDIR}/textproc/py-sphinx \
${PKGNAMEPREFIX}sphinxcontrib-bitbucket>=1.0:${PORTSDIR}/textproc/py-sphinxcontrib-bitbucket
post-install:
${MKDIR} ${DOCSDIR}
@cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.if ${PYTHON_REL} >= 320
PYMAGICTAG= ${PYTHON_CMD} -c 'import imp; print(imp.get_tag())'
add-plist-post:
@${AWK} '\
/\.py[co]$$/ && !($$0 ~ "/" pc "/") {id = match($$0, /\/[^\/]+\.py[co]$$/); if (id != 0) {d = substr($$0, 1, RSTART - 1); dirs[d] = 1}; sub(/\.py[co]$$/, "." mt "&"); sub(/[^\/]+\.py[co]$$/, pc "/&"); print; next} \
/^@dirrm / {d = substr($$0, 8); if (d in dirs) {print $$0 "/" pc}; print $$0; next} \
{print} \
END {if (sp in dirs) {print "@dirrm " sp "/" pc}} \
' \
pc="__pycache__" mt="$$(${PYMAGICTAG})" sp="${PYTHON_SITELIBDIR:S,${PYTHONBASE}/,,g}" \
${TMPPLIST} > ${TMPPLIST}.pyc_tmp
@${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST}
.endif
.include <bsd.port.post.mk>