1 | # $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python 1.0 |
---|
5 | |
---|
6 | name py-ldap |
---|
7 | version 2.4.18 |
---|
8 | revision 1 |
---|
9 | license PSF |
---|
10 | platforms darwin |
---|
11 | maintainers gmail.com:pedro.salgado openmaintainer |
---|
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 http://pypi.python.org/packages/source/p/python-ldap/ \ |
---|
22 | http://distfiles.macports.org/python/ |
---|
23 | distname python-ldap-${version} |
---|
24 | checksums md5 9bee878cc3582d7184b0a48083446efb \ |
---|
25 | sha1 d254d56a9cebbf89c080a6edb73da5722f2c53b2 \ |
---|
26 | rmd160 8c89930dc7921a13f4979406bf352890bc1fb343 |
---|
27 | |
---|
28 | python.versions 27 |
---|
29 | |
---|
30 | if {${name} ne ${subport}} { |
---|
31 | patchfiles patch-setup.cfg.diff |
---|
32 | |
---|
33 | depends_lib-append port:openldap port:openssl port:cyrus-sasl2 |
---|
34 | |
---|
35 | configure { |
---|
36 | reinplace "s|__LIBDIR__|${prefix}/lib|g" ${worksrcpath}/setup.cfg |
---|
37 | reinplace "s|__INCDIR__|${prefix}/include ${prefix}/include/sasl|g" ${worksrcpath}/setup.cfg |
---|
38 | reinplace "s|__LIBS__|ldap_r lber ssl crypto sasl2|g" ${worksrcpath}/setup.cfg |
---|
39 | } |
---|
40 | |
---|
41 | post-destroot { |
---|
42 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/${subport} |
---|
43 | xinstall -m 644 -W ${worksrcpath} CHANGES INSTALL LICENCE README TODO \ |
---|
44 | ${destroot}${prefix}/share/doc/${subport} |
---|
45 | } |
---|
46 | |
---|
47 | livecheck.type none |
---|
48 | } else { |
---|
49 | livecheck.type regex |
---|
50 | livecheck.url http://pypi.python.org/pypi/python-ldap/ |
---|
51 | livecheck.regex python-ldap (\[0-9\]+\.\[0-9\]+\.\[0-9\]+) |
---|
52 | } |
---|