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

deric at macports.org deric at macports.org
Thu May 30 01:24:20 PDT 2013


Revision: 106537
          https://trac.macports.org/changeset/106537
Author:   deric at macports.org
Date:     2013-05-30 01:24:20 -0700 (Thu, 30 May 2013)
Log Message:
-----------
py-yaml: Fold libyaml variant into port, fix supported_archs (#39205).

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

Modified: trunk/dports/python/py-yaml/Portfile
===================================================================
--- trunk/dports/python/py-yaml/Portfile	2013-05-30 07:51:29 UTC (rev 106536)
+++ trunk/dports/python/py-yaml/Portfile	2013-05-30 08:24:20 UTC (rev 106537)
@@ -7,11 +7,10 @@
 name                py-yaml
 license             MIT
 version             3.10
-revision            1
+revision            2
 categories-append   devel
 platforms           darwin
 maintainers         deric lightnin akitada openmaintainer
-supported_archs     noarch
 
 description         YAML 1.1 parser and emitter for Python
 long_description    PyYAML is a YAML parser and emitter for Python, which \
@@ -33,16 +32,14 @@
 livecheck.regex PyYAML-(\[0-9+\]\.\[0-9\]+)\.tar\.gz
 
 if {$subport != $name} {
-    
-    if { ${python.version} > 24 } {
-        variant libyaml description {Enable LibYAML bindings} {
-            depends_lib-append      port:libyaml \
-                                    port:py${python.version}-cython
-            patchfiles              patch-setup.py
-        }
-    } else {
+    depends_lib-append  port:libyaml \
+                        port:py${python.version}-cython
+    patchfiles          patch-setup.py
+
+    if { ${python.version} == 24 } {
         # 3.09 is last version of py-yaml that support Python 2.4
         version 3.09
+        revision 1
         distname            PyYAML-${version}
         
         checksums           md5     f219af2361e87fdc5e85e95b84c11d87 \
@@ -65,5 +62,4 @@
           yaml_hl.py \
           ${destroot}${prefix}/share/doc/${subport}/examples/yaml-highlight
     }
-    
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130530/b1954761/attachment.html>


More information about the macports-changes mailing list