freebsd-ports/databases/py-mysqlclient/Makefile
Charlie Li 9a80a6ee5e
devel/py-setuptools: convert individual consumers to ${PY_SETUPTOOLS}
Currently a no-op, but in the future outputs the correct setuptools
port depending on whether USES_PYTHON=distutils is specified.

With hat: python
PR: 270510, 270358
2023-07-17 20:53:09 -04:00

30 lines
735 B
Makefile

PORTNAME= mysqlclient
DISTVERSION= 2.2.0
CATEGORIES= databases python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= fluffy@FreeBSD.org
COMMENT= MySQL database connector for Python
WWW= https://pypi.org/project/mysqlclient
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
${PYTHON_PKGNAMEPREFIX}wheel>=0.37:devel/py-wheel@${PY_FLAVOR}
USES= compiler:c11 iconv mysql pkgconfig python ssl
USE_PYTHON= autoplist concurrent pep517
PORTDOCS= *
CONFLICTS= py*-MySQLdb py*-MySQLdb5[0-9] py*-MySQLdb
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>