[93587] trunk/dports/python/py-yaml/Portfile

deric at macports.org deric at macports.org
Sun May 27 13:23:10 PDT 2012


Revision: 93587
          https://trac.macports.org/changeset/93587
Author:   deric at macports.org
Date:     2012-05-27 13:23:08 -0700 (Sun, 27 May 2012)
Log Message:
-----------
py-yaml: Bring back Python 2.4 support, replace pyrex with cython, add py31, py32 (#31116 & #34087).

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

Modified: trunk/dports/python/py-yaml/Portfile
===================================================================
--- trunk/dports/python/py-yaml/Portfile	2012-05-27 17:51:23 UTC (rev 93586)
+++ trunk/dports/python/py-yaml/Portfile	2012-05-27 20:23:08 UTC (rev 93587)
@@ -23,22 +23,30 @@
                     sha1    476dcfbcc6f4ebf3c06186229e8e2bd7d7b20e73 \
                     rmd160  0fe20d93030c15b0ea6dcfc8dfee0f1f0d418aeb
 
-python.versions 25 26 27
-python.default_version 27
+python.versions 24 25 26 27 31 32
+python.default_version 24
 
 if {$subport != $name} {
     
     if { ${python.version} > 24 } {
         variant libyaml description {Enable LibYAML bindings} {
             depends_lib-append      port:libyaml \
-                                    port:py${python.version}-pyrex
+                                    port:py${python.version}-cython
             patchfiles              patch-setup.py
         }
-
-        post-patch {
-            reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
-        }    
+    } else {
+        # 3.09 is last version of py-yaml that support Python 2.4
+        version 3.09
+        distname            PyYAML-${version}
+        
+        checksums           md5     f219af2361e87fdc5e85e95b84c11d87 \
+                            sha1    6131d6a42bbd3e88d7efa3784d69395a136267be \
+                            rmd160  b5a5228db448e9c9507682cb36f620596a4a234c
     }
+    
+    post-patch {
+        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
+    }
 
     post-destroot {
         xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120527/0308fe97/attachment.html>


More information about the macports-changes mailing list