pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/py-ldap py-ldap: Force pkgsrc version on Net...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5a1dc7f486d2
branches:  trunk
changeset: 444877:5a1dc7f486d2
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jan 14 11:41:02 2021 +0000

description:
py-ldap: Force pkgsrc version on NetBSD where version detection fails

PR pkg/55902

diffstat:

 databases/py-ldap/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 0705a46067f7 -r 5a1dc7f486d2 databases/py-ldap/Makefile
--- a/databases/py-ldap/Makefile        Thu Jan 14 11:20:05 2021 +0000
+++ b/databases/py-ldap/Makefile        Thu Jan 14 11:41:02 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.88 2021/01/13 09:55:42 nia Exp $
+# $NetBSD: Makefile,v 1.89 2021/01/14 11:41:02 nia Exp $
 
 DISTNAME=      python-ldap-3.3.1
 PKGNAME=       ${DISTNAME:S/python/${PYPKGPREFIX}/}
@@ -10,6 +10,14 @@
 COMMENT=       LDAP client API for Python
 LICENSE=       python-software-foundation
 
+.include "../../mk/bsd.prefs.mk"
+.if !empty(MACHINE_PLATFORM:MNetBSD-[56789].*) && \
+    empty(MACHINE_PLATFORM:MNetBSD-9.99.*)
+# Needs openldap>=2.4.48 for openldap.h.
+# Unfortunately, version detection on the native version fails.
+PREFER.openldap-client=        pkgsrc
+.endif
+
 DEPENDS+=      ${PYPKGPREFIX}-asn1>=0.3.7:../../security/py-asn1
 DEPENDS+=      ${PYPKGPREFIX}-asn1-modules>=0.1.5:../../security/py-asn1-modules
 TEST_DEPENDS+= openldap-server-[0-9]*:../../databases/openldap-server



Home | Main Index | Thread Index | Old Index