1 | # $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python25 1.0 |
---|
5 | |
---|
6 | name py25-ldap |
---|
7 | version 2.0.8 |
---|
8 | revision 1 |
---|
9 | categories python |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | description object-oriented api for python to access LDAP directory servers |
---|
13 | long_description python-ldap provides an object-oriented API to access \ |
---|
14 | LDAP directory servers from Python programs. Mainly it \ |
---|
15 | wraps the OpenLDAP 2.x libs for that purpose. \ |
---|
16 | Additionally the package contains modules for other \ |
---|
17 | LDAP-related stuff (e.g. processing LDIF, LDAPURLs, \ |
---|
18 | LDAPv3 schema, etc.). |
---|
19 | |
---|
20 | homepage http://python-ldap.sourceforge.net/ |
---|
21 | master_sites sourceforge:python-ldap |
---|
22 | distname python-ldap-${version} |
---|
23 | checksums md5 69bf92673fba5c1965fdabcc98ea2941 |
---|
24 | patchfiles patch-setup.cfg.diff |
---|
25 | |
---|
26 | depends_lib-append port:openldap port:openssl port:cyrus-sasl2 port:py25-setuptools |
---|
27 | |
---|
28 | configure { |
---|
29 | reinplace "s|__LIBDIR__|${prefix}/lib|g" ${worksrcpath}/setup.cfg |
---|
30 | reinplace "s|__INCDIR__|${prefix}/include ${prefix}/include/sasl|g" ${worksrcpath}/setup.cfg |
---|
31 | reinplace "s|__LIBS__|ldap_r lber ssl crypto sasl2|g" ${worksrcpath}/setup.cfg |
---|
32 | } |
---|
33 | |
---|
34 | post-destroot { |
---|
35 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} |
---|
36 | xinstall -m 644 -W ${worksrcpath} CHANGES INSTALL LICENCE README TODO \ |
---|
37 | ${destroot}${prefix}/share/doc/${name} |
---|
38 | } |
---|