databases/py-mysqlclient: fix build with mariadb

PR:	272481
MFH:	2023Q4
This commit is contained in:
Rozhuk Ivan 2023-09-05 13:36:16 +03:00 committed by Dima Panov
parent 36fcd7174d
commit a63cc035ab
No known key found for this signature in database
GPG key ID: FB8BA09DD5398F29
2 changed files with 12 additions and 1 deletions

View file

@ -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= *

View file

@ -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}"