aboutsummaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2015-05-26 16:47:02 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2015-05-26 16:47:02 +0000
commit1b85bc93327fe20e04dacd558e4b68b8e87cab40 (patch)
tree7229e877adf880a70b7dabb3af7fa6c66661b721 /databases
parent95870264a95e112dd40286515a64b619d7529491 (diff)
downloadports-1b85bc93327fe20e04dacd558e4b68b8e87cab40.tar.gz
ports-1b85bc93327fe20e04dacd558e4b68b8e87cab40.zip
Switch PYTHON_REL from a 3 digits number to a 4 digits number to handle
python 2.7.10 Differential Revision: https://reviews.freebsd.org/D2639 Reviewed by: sunpoet, mva
Notes
Notes: svn path=/head/; revision=387491
Diffstat (limited to 'databases')
-rw-r--r--databases/py-bsddb/Makefile2
-rw-r--r--databases/py-gdbm/Makefile2
-rw-r--r--databases/py-sqlalchemy-devel/Makefile10
-rw-r--r--databases/py-sqlalchemy/Makefile10
-rw-r--r--databases/py-sqlalchemy06/Makefile6
-rw-r--r--databases/py-sqlite3/Makefile2
6 files changed, 16 insertions, 16 deletions
diff --git a/databases/py-bsddb/Makefile b/databases/py-bsddb/Makefile
index ad7a61e290b4..8d41cf5864dd 100644
--- a/databases/py-bsddb/Makefile
+++ b/databases/py-bsddb/Makefile
@@ -30,7 +30,7 @@ MAKE_ENV= BSDDB_VERSION=${BDB_LIB_NAME}
.include <bsd.port.pre.mk>
-.if ${PYTHON_REL} >= 300
+.if ${PYTHON_REL} >= 3000
IGNORE= bsddb package was removed from core standard library since 3.0, use databases/py-bsddb3 instead
.endif
diff --git a/databases/py-gdbm/Makefile b/databases/py-gdbm/Makefile
index eeb9e613b960..5b211307eb86 100644
--- a/databases/py-gdbm/Makefile
+++ b/databases/py-gdbm/Makefile
@@ -30,7 +30,7 @@ WRKSRC= ${WRKDIR}/Python-${PORTVERSION}/Modules
.include <bsd.port.pre.mk>
post-extract:
-.if ${PYTHON_REL} < 300
+.if ${PYTHON_REL} < 3000
@${CP} ${FILESDIR}/setup.py ${WRKSRC}
.else
@${CP} ${FILESDIR}/setup3.py ${WRKSRC}/setup.py
diff --git a/databases/py-sqlalchemy-devel/Makefile b/databases/py-sqlalchemy-devel/Makefile
index abb0b9b24b5e..44ac7be2d694 100644
--- a/databases/py-sqlalchemy-devel/Makefile
+++ b/databases/py-sqlalchemy-devel/Makefile
@@ -64,18 +64,18 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MyS
.endif
.endif
-.if ${PYTHON_REL} < 330
+.if ${PYTHON_REL} < 3300
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>=1.0.1:${PORTSDIR}/devel/py-mock
.endif
-.if ${PYTHON_REL} >= 300
+.if ${PYTHON_REL} >= 3000
pre-build:
@${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/lib
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.if ${PYTHON_REL} >= 300
+.if ${PYTHON_REL} >= 3000
${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/doc
.endif
@@ -88,13 +88,13 @@ post-install:
.endfor
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-.if ${PYTHON_REL} >= 300
+.if ${PYTHON_REL} >= 3000
${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/examples
.endif
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
regression-test: build
-.if ${PYTHON_REL} >= 300
+.if ${PYTHON_REL} >= 3000
${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/test
.endif
@cd ${WRKSRC} && ${PYTHON_CMD} sqla_nose.py
diff --git a/databases/py-sqlalchemy/Makefile b/databases/py-sqlalchemy/Makefile
index 9072cffd4168..b7dcf09d345b 100644
--- a/databases/py-sqlalchemy/Makefile
+++ b/databases/py-sqlalchemy/Makefile
@@ -81,12 +81,12 @@ post-patch:
${REINPLACE_CMD} -e 's/import logging/&.handlers/1' -i.bak ${WRKSRC}/test/engine/test_execute.py
pre-build:
-.if ${PYTHON_REL} >= 300
+.if ${PYTHON_REL} >= 3000
@${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/lib
.endif
post-install:
-.if ${PYTHON_REL} >= 300
+.if ${PYTHON_REL} >= 3000
@${PY2TO3_CMD} ${PY2TO3_ARGS} ${STAGEDIR}${WRKSRC}/doc
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@@ -99,12 +99,12 @@ post-install:
.endfor
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-.if ${PYTHON_REL} >= 300
+.if ${PYTHON_REL} >= 3000
@${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/examples
.endif
cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
-.if ${PYTHON_REL} < 300
+.if ${PYTHON_REL} < 3000
PLIST_SUB+= SPEEDUPS=""
.else
# C extensions are not supported in py3k
@@ -112,7 +112,7 @@ PLIST_SUB+= SPEEDUPS="@comment "
.endif
regression-test: build
-.if ${PYTHON_REL} >= 300
+.if ${PYTHON_REL} >= 3000
${PY2TO3_CMD} ${PY2TO3_ARGS} ${WRKSRC}/test
.endif
@cd ${WRKSRC} && ${PYTHON_CMD} sqla_nose.py
diff --git a/databases/py-sqlalchemy06/Makefile b/databases/py-sqlalchemy06/Makefile
index 1577fecddb36..d8d6260a6899 100644
--- a/databases/py-sqlalchemy06/Makefile
+++ b/databases/py-sqlalchemy06/Makefile
@@ -40,7 +40,7 @@ EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
.include <bsd.port.pre.mk>
-.if ${PORT_OPTIONS:MCEXTENSIONS} && ${PYTHON_REL} < 300
+.if ${PORT_OPTIONS:MCEXTENSIONS} && ${PYTHON_REL} < 3000
PLIST_SUB+= SPEEDUPS=""
.else
PLIST_SUB+= SPEEDUPS="@comment "
@@ -55,7 +55,7 @@ AL_PORTDOCS_SUBDIR= core dialects orm
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pymssql.py:${PORTSDIR}/databases/py-mssql
.endif
-.if ${PORT_OPTIONS:MMYSQL} && ${PYTHON_REL} < 300
+.if ${PORT_OPTIONS:MMYSQL} && ${PYTHON_REL} < 3000
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb
.endif
@@ -76,7 +76,7 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/Sybase.py:${PORTSDIR}/databases/py-sybase
.endif
post-patch:
-.if ${PORT_OPTIONS:MCEXTENSIONS} && ${PYTHON_REL} < 300
+.if ${PORT_OPTIONS:MCEXTENSIONS} && ${PYTHON_REL} < 3000
@${REINPLACE_CMD} -e 's|BUILD_CEXTENSIONS = False|BUILD_CEXTENSIONS = True|' \
${WRKSRC}/setup.py
.endif
diff --git a/databases/py-sqlite3/Makefile b/databases/py-sqlite3/Makefile
index e6fb955bd250..a0e9265a3d42 100644
--- a/databases/py-sqlite3/Makefile
+++ b/databases/py-sqlite3/Makefile
@@ -31,7 +31,7 @@ PYDISTUTILS_INSTALLARGS+= --install-lib ${PYTHON_LIBDIR}/lib-dynload
.include <bsd.port.pre.mk>
post-extract:
-.if ${PYTHON_REL} < 300
+.if ${PYTHON_REL} < 3000
@${CP} ${FILESDIR}/setup.py ${WRKSRC}
.else
@${CP} ${FILESDIR}/setup3.py ${WRKSRC}/setup.py