[46238] trunk/dports/python/py25-yaml/Portfile

akitada at macports.org akitada at macports.org
Sun Feb 1 02:11:39 PST 2009


Revision: 46238
          http://trac.macports.org/changeset/46238
Author:   akitada at macports.org
Date:     2009-02-01 02:11:37 -0800 (Sun, 01 Feb 2009)
Log Message:
-----------
Fixed #17965: Added libyaml variant to py25-yaml.

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

Modified: trunk/dports/python/py25-yaml/Portfile
===================================================================
--- trunk/dports/python/py25-yaml/Portfile	2009-02-01 09:52:33 UTC (rev 46237)
+++ trunk/dports/python/py25-yaml/Portfile	2009-02-01 10:11:37 UTC (rev 46238)
@@ -6,6 +6,7 @@
 
 name                py25-yaml
 version             3.08
+revision            1
 categories-append   devel
 maintainers         akitada openmaintainer
 description         YAML 1.1 parser and emitter for Python
@@ -24,6 +25,16 @@
                     sha1 5f9738b74afabcf516ce536b462cb4d18403211d \
                     rmd160 fe034d73a8cdc98381099106ac8884d6b6f917d8
 
+variant libyaml description {Enable LibYAML bindings} {
+    depends_lib-append      port:libyaml \
+                            port:py25-pyrex
+    patchfiles              patch-setup.py
+}
+
+post-patch {
+    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
+}
+
 post-destroot {
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090201/1385a10f/attachment.html>


More information about the macports-changes mailing list