Ticket #15580: Portfile

File Portfile, 1.3 KB (added by akhenakh (Fabrice Aneche), 16 years ago)
Line 
1# $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp@macports.org $
2
3PortSystem 1.0
4PortGroup python25 1.0
5
6name                    py25-ldap
7version                 2.0.8
8revision                1
9categories              python
10platforms               darwin
11maintainers             nomaintainer
12description             object-oriented api for python to access LDAP directory servers
13long_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
20homepage                http://python-ldap.sourceforge.net/
21master_sites    sourceforge:python-ldap
22distname                python-ldap-${version}
23checksums               md5 69bf92673fba5c1965fdabcc98ea2941
24patchfiles              patch-setup.cfg.diff
25
26depends_lib-append              port:openldap port:openssl port:cyrus-sasl2 port:py25-setuptools
27
28configure {
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
34post-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}