From a316ddfcce8cb5238bcc266d126587283131b53b Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Sat, 7 May 2016 03:34:11 -0500 Subject: [PATCH] New package: python-ldap-2.4.25 --- srcpkgs/python-ldap/files/setup.cfg | 2 ++ srcpkgs/python-ldap/template | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 srcpkgs/python-ldap/files/setup.cfg create mode 100644 srcpkgs/python-ldap/template diff --git a/srcpkgs/python-ldap/files/setup.cfg b/srcpkgs/python-ldap/files/setup.cfg new file mode 100644 index 0000000000..40f36c8b73 --- /dev/null +++ b/srcpkgs/python-ldap/files/setup.cfg @@ -0,0 +1,2 @@ +[_ldap] +include_dirs = INCLUDEDIR/usr/include/sasl diff --git a/srcpkgs/python-ldap/template b/srcpkgs/python-ldap/template new file mode 100644 index 0000000000..61a4893569 --- /dev/null +++ b/srcpkgs/python-ldap/template @@ -0,0 +1,19 @@ +# Template file for 'python-ldap' +pkgname=python-ldap +version=2.4.25 +revision=1 +build_style=python-module +pycompile_module="ldap lidf.py dsml.py ldapurl.py" +hostmakedepends="python-devel" +makedepends="python-devel libldap-devel libsasl-devel libressl-devel" +short_desc="Python modules for implementing LDAP clients" +maintainer="Michael Aldridge " +license="Python License" +homepage="https://www.python-ldap.org" +distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz" +checksum=62d00dbc86f3f9b21beacd9b826e8f9895f900637a60a6d4e7ab59a1cdc64e56 + +pre_build() { + cp ${FILESDIR}/setup.cfg ${wrksrc}/ + sed -i "s:INCLUDEDIR:${XBPS_CROSS_BASE}:g" setup.cfg +}