mirror of
https://git.freebsd.org/ports.git
synced 2025-06-12 08:10:31 -04:00
- Switch MASTER_SITES to GITHUB as MYSQL site provided distfile does not contain setup.py Relnotes: https://github.com/mysql/mysql-connector-python/releases/tag/8.0.27
32 lines
807 B
Makefile
32 lines
807 B
Makefile
PORTNAME= mysql-connector-python
|
|
PORTVERSION= 8.0.27
|
|
CATEGORIES= databases python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= bofh@FreeBSD.org
|
|
COMMENT= MySQL driver written in Python
|
|
|
|
LICENSE= GPLv2
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dnspython>0:dns/py-dnspython@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}protobuf>=3.7.1:devel/py-protobuf@${PY_FLAVOR}
|
|
|
|
USES= python:3.6+
|
|
USE_GITHUB= yes
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
GH_ACCOUNT= mysql
|
|
|
|
NO_ARCH= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
PYDISTUTILS_INSTALLARGS:= ${PYDISTUTILS_INSTALLARGS:N--single-version-externally-managed}
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|"gcc"|"${CC}"|g ; \
|
|
s|"g++"|"${CXX}"|g' \
|
|
${WRKSRC}/cpydist/__init__.py
|
|
|
|
do-test:
|
|
@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ./unittests.py)
|
|
|
|
.include <bsd.port.post.mk>
|