git: 7becd3b8b86d - main - net/py-ldap: do not imply openldap 2.4

From: Ruslan Makhmatkhanov <rm_at_FreeBSD.org>
Date: Thu, 02 Dec 2021 10:29:34 UTC
The branch main has been updated by rm:

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

commit 7becd3b8b86d998d5c1b4aa3125522d30b435d79
Author:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
AuthorDate: 2021-12-02 10:27:12 +0000
Commit:     Ruslan Makhmatkhanov <rm@FreeBSD.org>
CommitDate: 2021-12-02 10:27:12 +0000

    net/py-ldap: do not imply openldap 2.4
    
    - add patch to fix build OpenLDAP 2.5
    - do not imply 2.4 version
    
    PR:             260054
    Reported by:    delphij
---
 net/py-ldap/Makefile              |  1 -
 net/py-ldap/files/patch-setup.cfg | 11 +++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/net/py-ldap/Makefile b/net/py-ldap/Makefile
index 45a8c076a985..4cfe974d2df4 100644
--- a/net/py-ldap/Makefile
+++ b/net/py-ldap/Makefile
@@ -18,7 +18,6 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyasn1>0:devel/py-pyasn1@${PY_FLAVOR} \
 USES=		python:3.6+
 USE_PYTHON=	autoplist distutils
 USE_OPENLDAP=	yes
-WANT_OPENLDAP_VER=	24
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
diff --git a/net/py-ldap/files/patch-setup.cfg b/net/py-ldap/files/patch-setup.cfg
new file mode 100644
index 000000000000..9f2d026245dc
--- /dev/null
+++ b/net/py-ldap/files/patch-setup.cfg
@@ -0,0 +1,11 @@
+--- setup.cfg.orig	2020-06-29 14:13:36 UTC
++++ setup.cfg
+@@ -5,7 +5,7 @@ license_file = LICENCE
+ defines = HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
+ extra_compile_args = 
+ extra_objects = 
+-libs = ldap_r lber
++libs = ldap lber
+ 
+ [install]
+ compile = 1