# Copyright 2011 Dan Callaghan <djc@djc.id.au>
# Distributed under the terms of the GNU General Public License v2

require pypi distutils [ python_dep=2.3 ]

SUMMARY="LDAP client library for Python, using OpenLDAP"
DESCRIPTION="
python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. 
Mainly it wraps the OpenLDAP 2.x libs for that purpose. Additionally the package contains modules 
for other LDAP-related stuff (e.g. processing LDIF, LDAPURLs, LDAPv3 schema, etc.).
"
HOMEPAGE="http://www.python-ldap.org/"

LICENCES="PSF-2.2"
SLOT="0"
PLATFORMS="~amd64 ~x86"

DEPENDENCIES="
    build+run:
        net-directory/openldap[>=2.4.11]
"

BUGS_TO="djc@djc.id.au"

src_configure() {
    edo sed -i \
            -e '/^library_dirs =/c library_dirs = ' \
            -e '/^include_dirs =/c include_dirs = /usr/include/sasl' \
            -e '/^extra_compile_args =/d' \
            setup.cfg
}