mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-03 11:12:13 +00:00
databases/py-mysql-connector-python: Runtime fix with newer protobuf
PR: 273309 Reported by: dvl
This commit is contained in:
parent
b242d6d26f
commit
39ca6f0f2a
@ -1,5 +1,6 @@
|
||||
PORTNAME= mysql-connector-python
|
||||
PORTVERSION= 8.1.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases python
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
@ -11,7 +12,7 @@ LICENSE= GPLv2
|
||||
|
||||
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
|
||||
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}protobuf>=3.11.0:devel/py-protobuf@${PY_FLAVOR}
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}protobuf>=4.21.1:devel/py-protobuf@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USE_GITHUB= yes
|
||||
@ -36,6 +37,8 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e 's|"gcc"|"${CC}"|g ; \
|
||||
s|"g++"|"${CXX}"|g' \
|
||||
${WRKSRC}/cpydist/__init__.py
|
||||
@${REINPLACE_CMD} -e 's|protobuf>=4.21.1,<=4.21.12|protobuf>=4.21.1|g' \
|
||||
${WRKSRC}/setup.py
|
||||
|
||||
do-test:
|
||||
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ./unittests.py)
|
||||
|
Loading…
x
Reference in New Issue
Block a user