diff --git a/srcpkgs/python-ldap/template b/srcpkgs/python-ldap/template index 4976a1f3d7..8ed916d63f 100644 --- a/srcpkgs/python-ldap/template +++ b/srcpkgs/python-ldap/template @@ -1,20 +1,28 @@ # Template file for 'python-ldap' pkgname=python-ldap -version=2.5.2 +version=3.0.0 revision=1 -build_style=python2-module -pycompile_module="ldap lidf.py dsml.py ldapurl.py slapdtest.py" -hostmakedepends="python-devel" -makedepends="python-devel libldap-devel libsasl-devel libressl-devel" +build_style=python-module +pycompile_module="ldap ldapurl.py ldif.py slapdtest" +hostmakedepends="python-setuptools python3-setuptools" +makedepends="python-devel python3-devel libldap-devel" depends="python-pyasn1-modules" -short_desc="Python modules for implementing LDAP clients" +short_desc="Python2 modules for implementing LDAP clients" maintainer="Michael Aldridge " -license="PSF" +license="PSFL-2" homepage="https://www.python-ldap.org" distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz" -checksum=b8c134dfedaef0e6ff4a4b94277708dcadb758b448905a83b8946df077356ed2 +checksum=86746b912a2cd37a54b06c694f021b0c8556d4caeab75ef50435ada152e2fbe1 pre_build() { - sed -i "s,/usr/include/sasl,${XBPS_CROSS_BASE}/usr/include/sasl," setup.cfg sed -i "s:^libs = .*:libs = ldap_r lber sasl2 ssl crypto:" setup.cfg } + +python3-ldap_package() { + depends="python3-pyasn1-modules" + short_desc="${short_desc/Python2/Python3}" + pycompile_module="ldap ldapurl.py ldif.py slapdtest" + pkg_install() { + vmove usr/lib/python3* + } +} diff --git a/srcpkgs/python3-ldap b/srcpkgs/python3-ldap new file mode 120000 index 0000000000..ec04072ef0 --- /dev/null +++ b/srcpkgs/python3-ldap @@ -0,0 +1 @@ +python-ldap \ No newline at end of file