From 68915de0070054789e59bb0885a43370acb4254a Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Wed, 18 Mar 2020 18:58:59 +0000 Subject: databases/py-mysql-connector-python: Fix runtime dependency Reported by: koobs Approved by: ports-secteam (blanket: missing dependencies, run time bugfix) MFH: 2020Q1 --- databases/py-mysql-connector-python/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'databases/py-mysql-connector-python') diff --git a/databases/py-mysql-connector-python/Makefile b/databases/py-mysql-connector-python/Makefile index e43ca96ce265..78994f8eeff5 100644 --- a/databases/py-mysql-connector-python/Makefile +++ b/databases/py-mysql-connector-python/Makefile @@ -2,7 +2,7 @@ PORTNAME= mysql-connector-python PORTVERSION= 8.0.19 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases python MASTER_SITES= MYSQL/Connector-Python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,8 +12,8 @@ COMMENT= MySQL driver written in Python LICENSE= GPLv2 -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dnspython>0:dns/py-dnspython@${PY_FLAVOR} -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dnspython>0:dns/py-dnspython@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dnspython>0:dns/py-dnspython@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}protobuf>=3.7.1:devel/py-protobuf@${PY_FLAVOR} USES= python USE_PYTHON= autoplist distutils @@ -23,4 +23,8 @@ NO_ARCH= yes PYDISTUTILS_INSTALLARGS:= ${PYDISTUTILS_INSTALLARGS:N--single-version-externally-managed} +post-patch: + ${REINPLACE_CMD} -e 's|protobuf==|protobuf>=|; s|dnspython==|dnspython>=|' \ + ${WRKSRC}/setupinfo.py + .include -- cgit v1.2.3