Ticket #33495: Portfile

File Portfile, 2.0 KB (added by steenzout (Pedro Salgado), 10 years ago)
Line 
1# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name            py-ldap
7version         2.4.18
8revision        1
9license         PSF
10platforms       darwin
11maintainers     gmail.com:pedro.salgado openmaintainer
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://www.python-ldap.org/
21master_sites    http://pypi.python.org/packages/source/p/python-ldap/ \
22                http://distfiles.macports.org/python/
23distname        python-ldap-${version}
24checksums       md5     9bee878cc3582d7184b0a48083446efb \
25                sha1    d254d56a9cebbf89c080a6edb73da5722f2c53b2 \
26                rmd160  8c89930dc7921a13f4979406bf352890bc1fb343
27
28python.versions 27
29
30if {${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}