Ticket #31502: patch-py-yaml.diff

File patch-py-yaml.diff, 13.1 KB (added by pixilla (Bradley Giesbrecht), 13 years ago)
  • python/py-yaml/files/patch-examples-yaml-highlight-yaml_hl.py.diff

     
     1--- examples/yaml-highlight/yaml_hl.py  2011-09-26 12:20:06.000000000 -0700
     2+++ examples/yaml-highlight/yaml_hl.py  2011-09-26 12:29:15.000000000 -0700
     3@@ -1,4 +1,4 @@
     4-#!/usr/bin/python
     5+#!@PREFIX@/bin/python@PYTHONVERSION@
     6 
     7 import yaml, codecs, sys, os.path, optparse
     8 
  • python/py-yaml/files/patch-setup.py.diff

     
     1--- setup.py    2011-09-26 12:20:06.000000000 -0700
     2+++ setup.py    2011-09-26 12:30:56.000000000 -0700
     3@@ -333,6 +333,8 @@
     4         ext_modules=[
     5             Extension('_yaml', ['ext/_yaml.pyx'],
     6                 'libyaml', "LibYAML bindings", LIBYAML_CHECK,
     7+                include_dirs=['@PREFIX@/include'],
     8+                library_dirs=['@PREFIX@/lib'],
     9                 libraries=['yaml']),
     10         ],
     11 
  • python/py-yaml/Portfile

     
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    3 PortSystem 1.0
    4 PortGroup python24 1.0
     4PortSystem          1.0
     5PortGroup           python 1.0
    56
    6 name                            py-yaml
    7 version                         3.05
    8 categories-append       devel
    9 maintainers                     akitada openmaintainer
    10 description                     YAML 1.1 parser and emitter for Python
    11 long_description \
    12     PyYAML is a YAML parser and emitter for Python, which supports YAML 1.1, \
    13     unicode input and output, low-level event-based parser and emitter API, \
    14     high-level API for serializing and deserializing native Python objects.
     7name                py-yaml
     8set name_package    PyYAML
     9version             3.10
     10categories          python devel
     11platforms           darwin
     12maintainers         akitada lightnin openmaintainer
     13description         YAML 1.1 parser and emitter for Python
     14long_description    PyYAML is a YAML parser and emitter for Python, which \
     15                    supports YAML 1.1, unicode input and output, low-level \
     16                    event-based parser and emitter API, high-level API for \
     17                    serializing and deserializing native Python objects.
    1518
    16 platforms                       darwin
     19homepage            http://pyyaml.org/wiki/PyYAML
     20master_sites        http://pyyaml.org/download/pyyaml/
     21distname            ${name_package}-${version}
    1722
    18 homepage                        http://pyyaml.org/wiki/PyYAML
    19 master_sites            http://pyyaml.org/download/pyyaml/
    20 distname                        PyYAML-${version}
     23checksums           rmd160  0fe20d93030c15b0ea6dcfc8dfee0f1f0d418aeb \
     24                    sha256  e713da45c96ca53a3a8b48140d4120374db622df16ab71759c9ceb5b8d46fe7c
    2125
    22 checksums                       md5 04ebb924a571cfb26d8143069068ce86 \
    23                                 sha1 facf11bc9f6988b76538e46a7ce8a379a9296cb0 \
    24                                 rmd160 1848e00b3b46c93fdd383092a3db8728b6b8bae0
     26python.versions     24 25 26 27
     27replaced_by         py24-yaml
    2528
    26 post-destroot {
    27         xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    28         xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
    29         xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
    30         xinstall -m 644 -W ${worksrcpath} LICENSE README \
    31                 ${destroot}${prefix}/share/doc/${name}
    32         xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight yaml_hl.cfg yaml_hl.py \
    33             ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
     29if {${subport} != ${name}} {
     30    patchfiles              patch-setup.py.diff \
     31                            patch-examples-yaml-highlight-yaml_hl.py.diff
     32
     33    variant libyaml description {Enable LibYAML bindings} {
     34        depends_lib-append      port:libyaml \
     35                                port:py${python.version}-pyrex-LOCAL
     36    }
     37   
     38    post-patch {
     39        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup.py
     40        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/examples/yaml-highlight/yaml_hl.py
     41        reinplace "s|@PYTHONVERSION@|${python.version}|g" ${worksrcpath}/examples/yaml-highlight/yaml_hl.py
     42    }
     43   
     44    post-destroot {
     45        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
     46        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/examples
     47        xinstall -m 755 -d \
     48          ${destroot}${prefix}/share/doc/${subport}/examples/yaml-highlight
     49        xinstall -m 644 -W ${worksrcpath} LICENSE README \
     50          ${destroot}${prefix}/share/doc/${subport}
     51        xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight yaml_hl.cfg \
     52          yaml_hl.py \
     53          ${destroot}${prefix}/share/doc/${subport}/examples/yaml-highlight
     54    }
    3455}
     56
     57livecheck.type      regex
     58livecheck.url       [lindex ${master_sites} 0]
     59livecheck.regex     ">${name_package}-((?!\${extract.suffix}).*)${extract.suffix}<"
  • python/py25-yaml/files/patch-setup.py

     
    1 --- setup.py.orig       2009-02-01 19:01:52.000000000 +0900
    2 +++ setup.py    2009-02-01 19:02:20.000000000 +0900
    3 @@ -332,6 +332,8 @@
    4          ext_modules=[
    5              Extension('_yaml', ['ext/_yaml.pyx'],
    6                  'libyaml', "LibYAML bindings", LIBYAML_CHECK,
    7 +                include_dirs=['__PREFIX__/include'],
    8 +                library_dirs=['__PREFIX__/lib'],
    9                  libraries=['yaml']),
    10          ],
    11  
  • python/py25-yaml/Portfile

     
    1 # -*- 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
    2 # $Id$
    3 
    4 PortSystem 1.0
    5 PortGroup python25 1.0
    6 
    7 name                py25-yaml
    8 version             3.08
    9 revision            1
    10 categories-append   devel
    11 maintainers         akitada openmaintainer
    12 description         YAML 1.1 parser and emitter for Python
    13 long_description \
    14     PyYAML is a YAML parser and emitter for Python, which supports YAML 1.1, \
    15     unicode input and output, low-level event-based parser and emitter API, \
    16     high-level API for serializing and deserializing native Python objects.
    17 
    18 platforms           darwin
    19 
    20 homepage            http://pyyaml.org/wiki/PyYAML
    21 master_sites        http://pyyaml.org/download/pyyaml/
    22 distname            PyYAML-${version}
    23 
    24 checksums           md5 a4163a2017fa57f448c66815511fa555 \
    25                     sha1 5f9738b74afabcf516ce536b462cb4d18403211d \
    26                     rmd160 fe034d73a8cdc98381099106ac8884d6b6f917d8
    27 
    28 variant libyaml description {Enable LibYAML bindings} {
    29     depends_lib-append      port:libyaml \
    30                             port:py25-pyrex
    31     patchfiles              patch-setup.py
    32 }
    33 
    34 post-patch {
    35     reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
    36 }
    37 
    38 post-destroot {
    39     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    40     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
    41     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
    42     xinstall -m 644 -W ${worksrcpath} LICENSE README \
    43         ${destroot}${prefix}/share/doc/${name}
    44     xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight yaml_hl.cfg yaml_hl.py \
    45         ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
    46 }
  • python/py26-yaml/files/patch-setup.py

     
    1 --- setup.py.orig       2009-02-01 19:01:52.000000000 +0900
    2 +++ setup.py    2009-02-01 19:02:20.000000000 +0900
    3 @@ -332,6 +332,8 @@
    4          ext_modules=[
    5              Extension('_yaml', ['ext/_yaml.pyx'],
    6                  'libyaml', "LibYAML bindings", LIBYAML_CHECK,
    7 +                include_dirs=['__PREFIX__/include'],
    8 +                library_dirs=['__PREFIX__/lib'],
    9                  libraries=['yaml']),
    10          ],
    11  
  • python/py26-yaml/Portfile

     
    1 # -*- 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
    2 # $Id$
    3 
    4 PortSystem 1.0
    5 PortGroup python26 1.0
    6 
    7 name                py26-yaml
    8 version             3.09
    9 revision            0
    10 categories-append   devel
    11 maintainers         akitada openmaintainer
    12 description         YAML 1.1 parser and emitter for Python
    13 long_description \
    14     PyYAML is a YAML parser and emitter for Python, which supports YAML 1.1, \
    15     unicode input and output, low-level event-based parser and emitter API, \
    16     high-level API for serializing and deserializing native Python objects.
    17 
    18 platforms           darwin
    19 
    20 homepage            http://pyyaml.org/wiki/PyYAML
    21 master_sites        http://pyyaml.org/download/pyyaml/
    22 distname            PyYAML-${version}
    23 
    24 checksums           md5     f219af2361e87fdc5e85e95b84c11d87 \
    25                     sha1    6131d6a42bbd3e88d7efa3784d69395a136267be \
    26                     rmd160  b5a5228db448e9c9507682cb36f620596a4a234c
    27 
    28 variant libyaml description {Enable LibYAML bindings} {
    29     depends_lib-append      port:libyaml \
    30                             port:py26-pyrex
    31     patchfiles              patch-setup.py
    32 }
    33 
    34 post-patch {
    35     reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
    36 }
    37 
    38 post-destroot {
    39     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    40     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
    41     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
    42     xinstall -m 644 -W ${worksrcpath} LICENSE README \
    43         ${destroot}${prefix}/share/doc/${name}
    44     xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight yaml_hl.cfg yaml_hl.py \
    45         ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
    46 }
  • python/py27-yaml/files/patch-setup.py

     
    1 --- setup.py.orig       2009-02-01 19:01:52.000000000 +0900
    2 +++ setup.py    2009-02-01 19:02:20.000000000 +0900
    3 @@ -332,6 +332,8 @@
    4          ext_modules=[
    5              Extension('_yaml', ['ext/_yaml.pyx'],
    6                  'libyaml', "LibYAML bindings", LIBYAML_CHECK,
    7 +                include_dirs=['__PREFIX__/include'],
    8 +                library_dirs=['__PREFIX__/lib'],
    9                  libraries=['yaml']),
    10          ],
    11  
  • python/py27-yaml/Portfile

     
    1 # -*- 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
    2 # $Id$
    3 
    4 PortSystem          1.0
    5 PortGroup           python27 1.0
    6 
    7 name                py27-yaml
    8 version             3.09
    9 categories          python devel
    10 platforms           darwin
    11 maintainers         lightnin openmaintainer
    12 description         YAML 1.1 parser and emitter for Python
    13 long_description    PyYAML is a YAML parser and emitter for Python, which \
    14                     supports YAML 1.1, unicode input and output, low-level \
    15                     event-based parser and emitter API, high-level API for \
    16                     serializing and deserializing native Python objects.
    17 
    18 homepage            http://pyyaml.org/wiki/PyYAML
    19 master_sites        http://pyyaml.org/download/pyyaml/
    20 distname            PyYAML-${version}
    21 checksums           md5 f219af2361e87fdc5e85e95b84c11d87 \
    22                     sha1 6131d6a42bbd3e88d7efa3784d69395a136267be \
    23                     rmd160 b5a5228db448e9c9507682cb36f620596a4a234c
    24 
    25 variant libyaml description {Enable LibYAML bindings} {
    26     depends_lib-append      port:libyaml \
    27                             port:py27-pyrex-LOCAL
    28     patchfiles              patch-setup.py
    29 }
    30 
    31 post-patch {
    32     reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
    33 }
    34 
    35 post-destroot {
    36     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    37     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
    38     xinstall -m 755 -d \
    39       ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
    40     xinstall -m 644 -W ${worksrcpath} LICENSE README \
    41       ${destroot}${prefix}/share/doc/${name}
    42     xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight yaml_hl.cfg \
    43       yaml_hl.py \
    44       ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
    45 }