source: trunk/dports/python/py-ldap/Portfile

Last change on this file was 148976, checked in by raimue@…, 18 months ago

Mass update of python ports for master_sites pypi

The pypi hosting site changed the naming scheme for new uploads. While old URLs
continue to work, this possibly breaks updates as master_sites would need to be
changed. This patch updates all previously hardcoded references to
pypi.python.org to the pypi: mirror sites, which was already updated to check
at both the old and new location. See #51391.

Overriding maintainers as this is a mass update of ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 148976 2016-05-24 07:48:05Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    py-ldap
7version                 2.3.10
8revision        3
9license                 PSF
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://www.python-ldap.org/
21master_sites    pypi:p/python-ldap/ \
22                http://distfiles.macports.org/python/
23distname                python-ldap-${version}
24checksums       md5     564d741a7c6d5fdcb45322fe9262d1a5 \
25                sha1    b15c15a71956c5f51a3642e513c206cf03d6248e \
26                rmd160  1784203fdb90b484c4d11edc032883ae75a64c84
27
28python.versions 27
29
30if {${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}
Note: See TracBrowser for help on using the repository browser.