Changeset View
Changeset View
Standalone View
Standalone View
www/py-cherrypy/Makefile
Show All 39 Lines | post-install: | ||||
${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) | ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) | ||||
(cd ${STAGEDIR}${PREFIX} && \ | (cd ${STAGEDIR}${PREFIX} && \ | ||||
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ | ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ | ||||
-d ${EXAMPLESDIR} ${EXAMPLESDIR:S,${PREFIX}/,,}) | -d ${EXAMPLESDIR} ${EXAMPLESDIR:S,${PREFIX}/,,}) | ||||
.endif | .endif | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${PYTHON_REL} >= 300 # devel/py-cheetah doesn't yet build with Python 3 | .if ${PYTHON_REL} >= 3000 # devel/py-cheetah doesn't yet build with Python 3 | ||||
.undef EXAMPLES_RUN_DEPENDS | .undef EXAMPLES_RUN_DEPENDS | ||||
.endif | .endif | ||||
# The package cherrypy.wsgiserver includes both Python 2 and Python 3 modules, | # The package cherrypy.wsgiserver includes both Python 2 and Python 3 modules, | ||||
# so it breaks PYDISTUTILS_AUTOPLIST. | # so it breaks PYDISTUTILS_AUTOPLIST. | ||||
# Instead of defining a cherrypy_build_py.get_outputs() method in setup.py | # Instead of defining a cherrypy_build_py.get_outputs() method in setup.py | ||||
# we simply remove unwanted modules (see cherrypy_build_py() in setup.py) | # we simply remove unwanted modules (see cherrypy_build_py() in setup.py) | ||||
post-extract: | post-extract: | ||||
.if ${PYTHON_REL} >= 300 | .if ${PYTHON_REL} >= 3000 | ||||
@(cd ${WRKSRC}/cherrypy && ${RM} _cpcompat_subprocess.py && \ | @(cd ${WRKSRC}/cherrypy && ${RM} _cpcompat_subprocess.py && \ | ||||
cd wsgiserver && ${RM} ssl_pyopenssl.py wsgiserver2.py) | cd wsgiserver && ${RM} ssl_pyopenssl.py wsgiserver2.py) | ||||
.else | .else | ||||
@${RM} ${WRKSRC}/cherrypy/wsgiserver/wsgiserver3.py | @${RM} ${WRKSRC}/cherrypy/wsgiserver/wsgiserver3.py | ||||
.endif | .endif | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |