svn commit: r458431 - in head: databases/py-peewee databases/py-sqlobject net-mgmt/librenms net-mgmt/observium www/py-django-devel www/py-django110 www/py-django111 www/py-django18 www/py-django20
Mathieu Arnold
mat at FreeBSD.org
Mon Jan 8 15:47:42 UTC 2018
Author: mat
Date: Mon Jan 8 15:47:40 2018
New Revision: 458431
URL: https://svnweb.freebsd.org/changeset/ports/458431
Log:
databases/py-MySQLdb only supports Python 2, restrict ports that uses it.
Sponsored by: Absolight
Modified:
head/databases/py-peewee/Makefile (contents, props changed)
head/databases/py-sqlobject/Makefile (contents, props changed)
head/net-mgmt/librenms/Makefile (contents, props changed)
head/net-mgmt/observium/Makefile (contents, props changed)
head/www/py-django-devel/Makefile (contents, props changed)
head/www/py-django110/Makefile (contents, props changed)
head/www/py-django111/Makefile (contents, props changed)
head/www/py-django18/Makefile (contents, props changed)
head/www/py-django20/Makefile (contents, props changed)
Modified: head/databases/py-peewee/Makefile
==============================================================================
--- head/databases/py-peewee/Makefile Mon Jan 8 15:47:22 2018 (r458430)
+++ head/databases/py-peewee/Makefile Mon Jan 8 15:47:40 2018 (r458431)
@@ -17,11 +17,12 @@ OPTIONS_DEFINE= DOCS SQLITE MYSQL PGSQL
OPTIONS_DEFAULT= SQLITE
NO_ARCH= yes
-USES= python
+USES= python${PY_MYSQL}
USE_PYTHON= autoplist distutils
SQLITE_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${FLAVOR}
MYSQL_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.3:databases/py-MySQLdb@${FLAVOR}
+MYSQL_VARS= PY_MYSQL=:2.7
PGSQL_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>=2.5.1:databases/py-psycopg2@${FLAVOR}
.include <bsd.port.mk>
Modified: head/databases/py-sqlobject/Makefile
==============================================================================
--- head/databases/py-sqlobject/Makefile Mon Jan 8 15:47:22 2018 (r458430)
+++ head/databases/py-sqlobject/Makefile Mon Jan 8 15:47:40 2018 (r458431)
@@ -17,7 +17,7 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}formencode>=1.2.
RUN_DEPENDS:= ${BUILD_DEPENDS}
NO_ARCH= yes
-USES= python
+USES= python${PY_MYSQL}
USE_PYTHON= autoplist distutils
# currently MaxDB(SAP), ADODB are not supported
@@ -27,6 +27,7 @@ SYBASE_DESC= sybase support
PORTDOCS= *
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:databases/py-MySQLdb@${FLAVOR}
+MYSQL_VARS= PY_MYSQL=:2.7
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>=0:databases/py-psycopg2@${FLAVOR}
SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${FLAVOR}
MSSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymssql>=0:databases/py-pymssql@${FLAVOR}
Modified: head/net-mgmt/librenms/Makefile
==============================================================================
--- head/net-mgmt/librenms/Makefile Mon Jan 8 15:47:22 2018 (r458430)
+++ head/net-mgmt/librenms/Makefile Mon Jan 8 15:47:40 2018 (r458431)
@@ -15,7 +15,7 @@ LICENSE= GPLv3
USE_GITHUB= yes
GH_ACCOUNT= librenms
-USES= php:cli python shebangfix
+USES= php:cli python${PY_MYSQL} shebangfix
SHEBANG_FILES= scripts/auth_test.php scripts/deploy-docs.sh scripts/github-remove \
scripts/Migration/Standard_Conversion/convert_no_xml.sh \
scripts/Migration/Standard_Conversion/destwork_no_xml.sh \
@@ -69,6 +69,7 @@ LIBVIRT_RUN_DEPENDS= virsh:devel/libvirt
NAGPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/nagios-plugins
NMAP_RUN_DEPENDS= nmap:security/nmap
PYPOLLER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.3:databases/py-MySQLdb
+PYPOLLER_VARS= PY_MYSQL=:2.7
X11_RUN_DEPENDS= Magick-config:graphics/ImageMagick \
mtr:net/mtr
X11_RUN_DEPENDS_OFF= Magick-config:graphics/ImageMagick-nox11 \
Modified: head/net-mgmt/observium/Makefile
==============================================================================
--- head/net-mgmt/observium/Makefile Mon Jan 8 15:47:22 2018 (r458430)
+++ head/net-mgmt/observium/Makefile Mon Jan 8 15:47:40 2018 (r458431)
@@ -20,7 +20,7 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-se
WRKSRC= ${WRKDIR}/${PORTNAME}
-USES= php:cli python shebangfix
+USES= php:cli python${PY_MYSQL} shebangfix
SHEBANG_FILES= \
mibs/process.pl \
poller-wrapper.py \
@@ -56,6 +56,7 @@ LIBVIRT_RUN_DEPENDS= virsh:devel/libvirt
NAGPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/nagios-plugins
NMAP_RUN_DEPENDS= nmap:security/nmap
PYPOLLER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>0:databases/py-MySQLdb
+PYPOLLER_VARS= PY_MYSQL=:2.7
SVN_RUN_DEPENDS= svn:devel/subversion
WMIC_RUN_DEPENDS= wmic:net-mgmt/wmi-client
Modified: head/www/py-django-devel/Makefile
==============================================================================
--- head/www/py-django-devel/Makefile Mon Jan 8 15:47:22 2018 (r458430)
+++ head/www/py-django-devel/Makefile Mon Jan 8 15:47:40 2018 (r458431)
@@ -19,7 +19,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-py
SNAPSHOTDATE= 20150709
NO_ARCH= yes
-USES= cpe gettext python shebangfix
+USES= cpe gettext python${PY_MYSQL} shebangfix
USE_GITHUB= yes
USE_PYTHON= autoplist distutils
SHEBANG_FILES= django/bin/django-admin.py \
@@ -45,6 +45,7 @@ HTMLDOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>
HTMLDOCS_IMPLIES= DOCS
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2@${FLAVOR}
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:databases/py-MySQLdb@${FLAVOR}
+MYSQL_VARS= PY_MYSQL=:2.7
SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${FLAVOR}
FASTCGI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flup6>0:www/py-flup6@${FLAVOR}
Modified: head/www/py-django110/Makefile
==============================================================================
--- head/www/py-django110/Makefile Mon Jan 8 15:47:22 2018 (r458430)
+++ head/www/py-django110/Makefile Mon Jan 8 15:47:40 2018 (r458431)
@@ -24,7 +24,7 @@ EXPIRATION_DATE=2018-01-31
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${FLAVOR}
NO_ARCH= yes
-USES= cpe python shebangfix
+USES= cpe python${PY_MYSQL} shebangfix
USE_PYTHON= autoplist distutils
SHEBANG_FILES= django/bin/django-admin.py \
django/conf/project_template/manage.py-tpl
@@ -49,6 +49,7 @@ HTMLDOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>
HTMLDOCS_IMPLIES= DOCS
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2@${FLAVOR}
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:databases/py-MySQLdb@${FLAVOR}
+MYSQL_VARS= PY_MYSQL=:2.7
SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${FLAVOR}
post-build-HTMLDOCS-on:
Modified: head/www/py-django111/Makefile
==============================================================================
--- head/www/py-django111/Makefile Mon Jan 8 15:47:22 2018 (r458430)
+++ head/www/py-django111/Makefile Mon Jan 8 15:47:40 2018 (r458431)
@@ -22,7 +22,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${FLAVOR}
NO_ARCH= yes
-USES= cpe python shebangfix
+USES= cpe python${PY_MYSQL} shebangfix
USE_PYTHON= autoplist distutils
SHEBANG_FILES= django/bin/django-admin.py \
django/conf/project_template/manage.py-tpl
@@ -47,6 +47,7 @@ HTMLDOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>
HTMLDOCS_IMPLIES= DOCS
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2@${FLAVOR}
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:databases/py-MySQLdb@${FLAVOR}
+MYSQL_VARS= PY_MYSQL=:2.7
SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${FLAVOR}
post-build-HTMLDOCS-on:
Modified: head/www/py-django18/Makefile
==============================================================================
--- head/www/py-django18/Makefile Mon Jan 8 15:47:22 2018 (r458430)
+++ head/www/py-django18/Makefile Mon Jan 8 15:47:40 2018 (r458431)
@@ -21,7 +21,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${FLAVOR}
NO_ARCH= yes
-USES= cpe python shebangfix
+USES= cpe python${PY_MYSQL} shebangfix
USE_PYTHON= autoplist distutils
SHEBANG_FILES= django/bin/django-admin.py \
django/conf/project_template/manage.py
@@ -48,6 +48,7 @@ HTMLDOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>
HTMLDOCS_IMPLIES= DOCS
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2@${FLAVOR}
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:databases/py-MySQLdb@${FLAVOR}
+MYSQL_VARS= PY_MYSQL=:2.7
SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${FLAVOR}
FASTCGI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flup6>0:www/py-flup6@${FLAVOR}
Modified: head/www/py-django20/Makefile
==============================================================================
--- head/www/py-django20/Makefile Mon Jan 8 15:47:22 2018 (r458430)
+++ head/www/py-django20/Makefile Mon Jan 8 15:47:40 2018 (r458431)
@@ -46,6 +46,7 @@ HTMLDOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>
HTMLDOCS_IMPLIES= DOCS
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2@${FLAVOR}
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:databases/py-MySQLdb@${FLAVOR}
+MYSQL_BROKEN= MySQLdb only supports Python 2.
SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${FLAVOR}
post-build-HTMLDOCS-on:
More information about the svn-ports-all
mailing list