svn commit: r528663 - head/databases/py-mysql-connector-python

Muhammad Moinur Rahman bofh at FreeBSD.org
Wed Mar 18 18:59:00 UTC 2020


Author: bofh
Date: Wed Mar 18 18:58:59 2020
New Revision: 528663
URL: https://svnweb.freebsd.org/changeset/ports/528663

Log:
  databases/py-mysql-connector-python: Fix runtime dependency
  
  Reported by:	koobs
  Approved by:	ports-secteam (blanket: missing dependencies, run time bugfix)
  MFH:		2020Q1

Modified:
  head/databases/py-mysql-connector-python/Makefile

Modified: head/databases/py-mysql-connector-python/Makefile
==============================================================================
--- head/databases/py-mysql-connector-python/Makefile	Wed Mar 18 18:54:45 2020	(r528662)
+++ head/databases/py-mysql-connector-python/Makefile	Wed Mar 18 18:58:59 2020	(r528663)
@@ -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
@@ -22,5 +22,9 @@ NO_ARCH=	yes
 .include <bsd.port.pre.mk>
 
 PYDISTUTILS_INSTALLARGS:=	${PYDISTUTILS_INSTALLARGS:N--single-version-externally-managed}
+
+post-patch:
+	${REINPLACE_CMD} -e 's|protobuf==|protobuf>=|; s|dnspython==|dnspython>=|' \
+		${WRKSRC}/setupinfo.py
 
 .include <bsd.port.post.mk>


More information about the svn-ports-head mailing list