git: a63cc035abee - main - databases/py-mysqlclient: fix build with mariadb

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Tue, 03 Oct 2023 20:38:23 UTC
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a63cc035abee4d9e1a89c8ac57c9efeb9ae974f5

commit a63cc035abee4d9e1a89c8ac57c9efeb9ae974f5
Author:     Rozhuk Ivan <rozhuk.im@gmail.com>
AuthorDate: 2023-09-05 10:36:16 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2023-10-03 20:37:25 +0000

    databases/py-mysqlclient: fix build with mariadb
    
    PR:     272481
    MFH:    2023Q4
---
 databases/py-mysqlclient/Makefile             |  2 +-
 databases/py-mysqlclient/files/patch-setup.py | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/databases/py-mysqlclient/Makefile b/databases/py-mysqlclient/Makefile
index ea794fb9d777..70a85c7a0132 100644
--- a/databases/py-mysqlclient/Makefile
+++ b/databases/py-mysqlclient/Makefile
@@ -14,7 +14,7 @@ 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
+USES=		compiler:c11 dos2unix iconv mysql pkgconfig python ssl
 USE_PYTHON=	autoplist concurrent pep517
 
 PORTDOCS=	*
diff --git a/databases/py-mysqlclient/files/patch-setup.py b/databases/py-mysqlclient/files/patch-setup.py
new file mode 100644
index 000000000000..4bb4df91be54
--- /dev/null
+++ b/databases/py-mysqlclient/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py
++++ setup.py
+@@ -14,7 +14,7 @@
+ 
+ def find_package_name():
+     """Get available pkg-config package name"""
+-    packages = ["mysqlclient", "mariadb"]
++    packages = ["mysqlclient", "mariadb", "libmariadb"]
+     for pkg in packages:
+         try:
+             cmd = f"pkg-config --exists {pkg}"