mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
databases/py-mysqlclient: fix build with mariadb
PR: 272481 MFH: 2023Q4
This commit is contained in:
parent
36fcd7174d
commit
a63cc035ab
2 changed files with 12 additions and 1 deletions
|
@ -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= *
|
||||
|
|
11
databases/py-mysqlclient/files/patch-setup.py
Normal file
11
databases/py-mysqlclient/files/patch-setup.py
Normal 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}"
|
Loading…
Add table
Reference in a new issue