1 | # $Id: Portfile 148976 2016-05-24 07:48:05Z raimue@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python 1.0 |
---|
5 | |
---|
6 | name py-ldap |
---|
7 | version 2.3.10 |
---|
8 | revision 3 |
---|
9 | license PSF |
---|
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://www.python-ldap.org/ |
---|
21 | master_sites pypi:p/python-ldap/ \ |
---|
22 | http://distfiles.macports.org/python/ |
---|
23 | distname python-ldap-${version} |
---|
24 | checksums md5 564d741a7c6d5fdcb45322fe9262d1a5 \ |
---|
25 | sha1 b15c15a71956c5f51a3642e513c206cf03d6248e \ |
---|
26 | rmd160 1784203fdb90b484c4d11edc032883ae75a64c84 |
---|
27 | |
---|
28 | python.versions 27 |
---|
29 | |
---|
30 | if {${name} ne ${subport}} { |
---|
31 | patchfiles patch-setup.cfg.diff patch-constants.c.diff \ |
---|
32 | patch-options.c.diff |
---|
33 | |
---|
34 | depends_lib-append port:openldap path:lib/libssl.dylib:openssl port:cyrus-sasl2 |
---|
35 | |
---|
36 | configure { |
---|
37 | reinplace "s|__LIBDIR__|${prefix}/lib|g" ${worksrcpath}/setup.cfg |
---|
38 | reinplace "s|__INCDIR__|${prefix}/include ${prefix}/include/sasl|g" ${worksrcpath}/setup.cfg |
---|
39 | reinplace "s|__LIBS__|ldap_r lber ssl crypto sasl2|g" ${worksrcpath}/setup.cfg |
---|
40 | } |
---|
41 | |
---|
42 | post-destroot { |
---|
43 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/${subport} |
---|
44 | xinstall -m 644 -W ${worksrcpath} CHANGES INSTALL LICENCE README TODO \ |
---|
45 | ${destroot}${prefix}/share/doc/${subport} |
---|
46 | } |
---|
47 | |
---|
48 | livecheck.type none |
---|
49 | } else { |
---|
50 | livecheck.type regex |
---|
51 | livecheck.url http://pypi.python.org/pypi/python-ldap/ |
---|
52 | livecheck.regex python-ldap (\[0-9\]+\.\[0-9\]+\.\[0-9\]+) |
---|
53 | } |
---|