[100649] trunk/dports/python

jmr at macports.org jmr at macports.org
Tue Dec 18 10:56:09 PST 2012


Revision: 100649
          https://trac.macports.org/changeset/100649
Author:   jmr at macports.org
Date:     2012-12-18 10:56:09 -0800 (Tue, 18 Dec 2012)
Log Message:
-----------
unify py*-ldap, part 2

Modified Paths:
--------------
    trunk/dports/python/py-ldap/Portfile

Added Paths:
-----------
    trunk/dports/python/py-ldap/

Removed Paths:
-------------
    trunk/dports/python/py27-ldap/

Modified: trunk/dports/python/py-ldap/Portfile
===================================================================
--- trunk/dports/python/py27-ldap/Portfile	2012-12-18 14:37:40 UTC (rev 100639)
+++ trunk/dports/python/py-ldap/Portfile	2012-12-18 18:56:09 UTC (rev 100649)
@@ -1,14 +1,14 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python27 1.0
+PortGroup python 1.0
 
-name			py27-ldap
+name			py-ldap
 version			2.3.10
 revision        1
-categories		python
+license			PSF
 platforms		darwin
-maintainers		nomaintainer
+maintainers		gmail.com:mdippery openmaintainer
 description		object-oriented api for python to access LDAP directory servers
 long_description    python-ldap provides an object-oriented API to access \
 				LDAP directory servers from Python programs. Mainly it \
@@ -18,28 +18,36 @@
 				LDAPv3 schema, etc.).
 
 homepage		http://www.python-ldap.org/
-master_sites	http://pypi.python.org/packages/source/p/python-ldap/
+master_sites	http://pypi.python.org/packages/source/p/python-ldap/ \
+                http://distfiles.macports.org/python/
 distname		python-ldap-${version}
 checksums       md5     564d741a7c6d5fdcb45322fe9262d1a5 \
                 sha1    b15c15a71956c5f51a3642e513c206cf03d6248e \
                 rmd160  1784203fdb90b484c4d11edc032883ae75a64c84
-patchfiles		patch-setup.cfg.diff patch-constants.c.diff \
-                patch-options.c.diff
 
-depends_lib-append	port:openldap port:openssl port:cyrus-sasl2
+python.versions 24 25 26 27
 
-configure {
-	reinplace "s|__LIBDIR__|${prefix}/lib|g" ${worksrcpath}/setup.cfg
-	reinplace "s|__INCDIR__|${prefix}/include ${prefix}/include/sasl|g" ${worksrcpath}/setup.cfg
-	reinplace "s|__LIBS__|ldap_r lber ssl crypto sasl2|g" ${worksrcpath}/setup.cfg
-}
+if {$subport != $name} {
+    patchfiles		patch-setup.cfg.diff patch-constants.c.diff \
+                    patch-options.c.diff
 
-post-destroot {
-	xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 644 -W ${worksrcpath} CHANGES INSTALL LICENCE README TODO \
-		${destroot}${prefix}/share/doc/${name}
+    depends_lib-append	port:openldap port:openssl port:cyrus-sasl2
+
+    configure {
+        reinplace "s|__LIBDIR__|${prefix}/lib|g" ${worksrcpath}/setup.cfg
+        reinplace "s|__INCDIR__|${prefix}/include ${prefix}/include/sasl|g" ${worksrcpath}/setup.cfg
+        reinplace "s|__LIBS__|ldap_r lber ssl crypto sasl2|g" ${worksrcpath}/setup.cfg
+    }
+
+    post-destroot {
+        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 644 -W ${worksrcpath} CHANGES INSTALL LICENCE README TODO \
+            ${destroot}${prefix}/share/doc/${subport}
+    }
+
+    livecheck.type  none
+} else {
+    livecheck.type  regex
+    livecheck.url   http://pypi.python.org/pypi/python-ldap/
+    livecheck.regex python-ldap (\[0-9\]+\.\[0-9\]+\.\[0-9\]+)
 }
-
-livecheck.type  regex
-livecheck.url   http://pypi.python.org/pypi/python-ldap/
-livecheck.regex python-ldap (\[0-9\]+\.\[0-9\]+\.\[0-9\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121218/7f325d61/attachment.html>


More information about the macports-changes mailing list