[46560] trunk/dports/python

akitada at macports.org akitada at macports.org
Sat Feb 7 08:02:40 PST 2009


Revision: 46560
          http://trac.macports.org/changeset/46560
Author:   akitada at macports.org
Date:     2009-02-07 08:02:37 -0800 (Sat, 07 Feb 2009)
Log Message:
-----------
Added py26-yaml

Added Paths:
-----------
    trunk/dports/python/py26-yaml/
    trunk/dports/python/py26-yaml/Portfile
    trunk/dports/python/py26-yaml/files/
    trunk/dports/python/py26-yaml/files/patch-setup.py

Added: trunk/dports/python/py26-yaml/Portfile
===================================================================
--- trunk/dports/python/py26-yaml/Portfile	                        (rev 0)
+++ trunk/dports/python/py26-yaml/Portfile	2009-02-07 16:02:37 UTC (rev 46560)
@@ -0,0 +1,46 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup python26 1.0
+
+name                py26-yaml
+version             3.08
+revision            0
+categories-append   devel
+maintainers         akitada openmaintainer
+description         YAML 1.1 parser and emitter for Python
+long_description \
+    PyYAML is a YAML parser and emitter for Python, which supports YAML 1.1, \
+    unicode input and output, low-level event-based parser and emitter API, \
+    high-level API for serializing and deserializing native Python objects.
+
+platforms           darwin
+
+homepage            http://pyyaml.org/wiki/PyYAML
+master_sites        http://pyyaml.org/download/pyyaml/
+distname            PyYAML-${version}
+
+checksums           md5 a4163a2017fa57f448c66815511fa555 \
+                    sha1 5f9738b74afabcf516ce536b462cb4d18403211d \
+                    rmd160 fe034d73a8cdc98381099106ac8884d6b6f917d8
+
+variant libyaml description {Enable LibYAML bindings} {
+    depends_lib-append      port:libyaml \
+                            port:py26-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
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
+    xinstall -m 644 -W ${worksrcpath} LICENSE README \
+        ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight yaml_hl.cfg yaml_hl.py \
+        ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
+}


Property changes on: trunk/dports/python/py26-yaml/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py26-yaml/files/patch-setup.py
===================================================================
--- trunk/dports/python/py26-yaml/files/patch-setup.py	                        (rev 0)
+++ trunk/dports/python/py26-yaml/files/patch-setup.py	2009-02-07 16:02:37 UTC (rev 46560)
@@ -0,0 +1,11 @@
+--- setup.py.orig	2009-02-01 19:01:52.000000000 +0900
++++ setup.py	2009-02-01 19:02:20.000000000 +0900
+@@ -332,6 +332,8 @@
+         ext_modules=[
+             Extension('_yaml', ['ext/_yaml.pyx'],
+                 'libyaml', "LibYAML bindings", LIBYAML_CHECK,
++                include_dirs=['__PREFIX__/include'],
++                library_dirs=['__PREFIX__/lib'],
+                 libraries=['yaml']),
+         ],
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090207/38c8e68d/attachment.html>


More information about the macports-changes mailing list