1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

net/py-ldap: update to 3.0.0

This commit is contained in:
Ruslan Makhmatkhanov 2018-05-02 13:36:21 +00:00
parent d6ca2a3f83
commit b69d1beed4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=468837
3 changed files with 18 additions and 7 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= ldap
PORTVERSION= 2.5.2
PORTVERSION= 3.0.0
CATEGORIES= net python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -17,7 +17,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyasn1>0:devel/py-pyasn1@${FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyasn1-modules>0:devel/py-pyasn1-modules@${FLAVOR}
CONFLICTS_INSTALL= py27-pyldap
USES= python:-2.7
USES= python
USE_PYTHON= autoplist distutils
USE_OPENLDAP= yes
WANT_OPENLDAP_VER= 24
@ -27,8 +27,8 @@ OPTIONS_DEFINE= SASL
SASL_VARS= WANT_OPENLDAP_SASL=yes
SASL_CONFLICTS= openldap24-client-2.*
do-configure:
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},' ${WRKSRC}/setup.cfg
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
do-configure-SASL-off:
@cd ${WRKSRC} && ${PYTHON_CMD} setup.py -q setopt -c _ldap -s HAVE_TLS -o defines

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1516650844
SHA256 (python-ldap-2.5.2.tar.gz) = b8c134dfedaef0e6ff4a4b94277708dcadb758b448905a83b8946df077356ed2
SIZE (python-ldap-2.5.2.tar.gz) = 297976
TIMESTAMP = 1521151033
SHA256 (python-ldap-3.0.0.tar.gz) = 86746b912a2cd37a54b06c694f021b0c8556d4caeab75ef50435ada152e2fbe1
SIZE (python-ldap-3.0.0.tar.gz) = 364733

View File

@ -0,0 +1,11 @@
--- setup.py.orig 2018-02-14 10:21:57 UTC
+++ setup.py
@@ -23,7 +23,7 @@ import pkginfo
#-- A class describing the features and requirements of OpenLDAP 2.0
class OpenLDAP2:
library_dirs = []
- include_dirs = []
+ include_dirs = ['%%LOCALBASE%%/include']
extra_compile_args = []
extra_link_args = []
extra_objects = []