Changeset View
Changeset View
Standalone View
Standalone View
databases/py-sqlalchemy-devel/Makefile
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb | RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb | ||||
#.else | #.else | ||||
# At the moment databases/py-pymysql does not build with Python3 | # At the moment databases/py-pymysql does not build with Python3 | ||||
# See https://github.com/petehunt/PyMySQL#python-3-0-support | # See https://github.com/petehunt/PyMySQL#python-3-0-support | ||||
#RUN_DEPENDS+= pymysql>=0.5:${PORTSDIR}/databases/py-pymysql | #RUN_DEPENDS+= pymysql>=0.5:${PORTSDIR}/databases/py-pymysql | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if ${PYTHON_REL} < 330 | .if ${PYTHON_REL} < 3300 | ||||
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>=1.0.1:${PORTSDIR}/devel/py-mock | TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>=1.0.1:${PORTSDIR}/devel/py-mock | ||||
.endif | .endif | ||||
.if ${PYTHON_REL} >= 300 | .if ${PYTHON_REL} >= 3000 | ||||
pre-build: | pre-build: | ||||
@${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/lib | @${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/lib | ||||
.endif | .endif | ||||
post-install: | post-install: | ||||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
.if ${PYTHON_REL} >= 300 | .if ${PYTHON_REL} >= 3000 | ||||
${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/doc | ${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/doc | ||||
.endif | .endif | ||||
.for i in ${AL_PORTDOCS} | .for i in ${AL_PORTDOCS} | ||||
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${DOCSDIR} | ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${DOCSDIR} | ||||
.endfor | .endfor | ||||
.for i in ${AL_PORTDOCS_SUBDIR} | .for i in ${AL_PORTDOCS_SUBDIR} | ||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}/${i} | @${MKDIR} ${STAGEDIR}${DOCSDIR}/${i} | ||||
(cd ${WRKSRC}/doc/${i} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/${i}) | (cd ${WRKSRC}/doc/${i} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/${i}) | ||||
.endfor | .endfor | ||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} | @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} | ||||
.if ${PYTHON_REL} >= 300 | .if ${PYTHON_REL} >= 3000 | ||||
${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/examples | ${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/examples | ||||
.endif | .endif | ||||
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) | (cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) | ||||
regression-test: build | regression-test: build | ||||
.if ${PYTHON_REL} >= 300 | .if ${PYTHON_REL} >= 3000 | ||||
${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/test | ${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/test | ||||
.endif | .endif | ||||
@cd ${WRKSRC} && ${PYTHON_CMD} sqla_nose.py | @cd ${WRKSRC} && ${PYTHON_CMD} sqla_nose.py | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |