[82442] trunk/dports/python

ram at macports.org ram at macports.org
Sat Aug 13 16:11:46 PDT 2011


Revision: 82442
          http://trac.macports.org/changeset/82442
Author:   ram at macports.org
Date:     2011-08-13 16:11:46 -0700 (Sat, 13 Aug 2011)
Log Message:
-----------
python/py*-m2crypto: unify

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

Removed Paths:
-------------
    trunk/dports/python/py25-m2crypto/
    trunk/dports/python/py26-m2crypto/
    trunk/dports/python/py27-m2crypto/

Modified: trunk/dports/python/py-m2crypto/Portfile
===================================================================
--- trunk/dports/python/py-m2crypto/Portfile	2011-08-13 23:08:31 UTC (rev 82441)
+++ trunk/dports/python/py-m2crypto/Portfile	2011-08-13 23:11:46 UTC (rev 82442)
@@ -1,12 +1,12 @@
 # $Id$
 
 PortSystem         1.0
-PortGroup          python24 1.0
+PortGroup          python 1.0
 
 name               py-m2crypto
 version            0.21.1
 categories-append  crypto devel
-maintainers        nomaintainer
+maintainers        ram openmaintainer
 description        M2Crypto is a crypto and SSL toolkit for Python.
 long_description   ${description}
 
@@ -16,14 +16,21 @@
 master_sites       http://pypi.python.org/packages/source/M/M2Crypto/
 distname           M2Crypto-${version}
 
+python.versions    24 25 26 27
+
 checksums          md5 f93d8462ff7646397a9f77a2fe602d17 \
                    sha1 3c7135b952092e4f2eee7a94c5153319cccba94e \
                    rmd160 313dcab450846a0363e7192a10364bdfd5dfae85
 
 depends_lib-append port:swig-python \
-                   port:openssl \
-                   port:py-setuptools
+                   port:openssl
 
+if {${subport} == "py24-m2crypto"} {
+    depends_lib-append port:py-setuptools
+} elseif {$subport != $name} {
+    depends_lib-append port:py${python.version}-distribute
+}
+
 post-patch {
   reinplace "s|#extra_link_args|extra_link_args|g" ${worksrcpath}/setup.py
   reinplace "s|self.openssl = '/usr'|self.openssl = '${prefix}'|g" \
@@ -31,9 +38,11 @@
 }
 
 post-destroot {
-  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+  if {${name} != ${subport}} {
+  xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
   eval file copy [glob ${worksrcpath}/doc/*] \
-    ${destroot}${prefix}/share/doc/${name}
+    ${destroot}${prefix}/share/doc/${subport}
+  }
 }
 
 livecheck.type     regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110813/164cb40c/attachment.html>


More information about the macports-changes mailing list