Ticket #34353: py-yaml-unify.diff

File py-yaml-unify.diff, 10.6 KB (added by deric@…, 12 years ago)
  • 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/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/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 }
  • 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/py-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
    12# $Id$
    23
    34PortSystem 1.0
    4 PortGroup python24 1.0
     5PortGroup python 1.0
    56
    67name                            py-yaml
    7 version                         3.05
     8version                         3.10
    89categories-append       devel
    910maintainers                     akitada openmaintainer
    1011description                     YAML 1.1 parser and emitter for Python
     
    1920master_sites            http://pyyaml.org/download/pyyaml/
    2021distname                        PyYAML-${version}
    2122
    22 checksums                       md5 04ebb924a571cfb26d8143069068ce86 \
    23                                 sha1 facf11bc9f6988b76538e46a7ce8a379a9296cb0 \
    24                                 rmd160 1848e00b3b46c93fdd383092a3db8728b6b8bae0
     23checksums           md5     74c94a383886519e9e7b3dd1ee540247 \
     24                    sha1    476dcfbcc6f4ebf3c06186229e8e2bd7d7b20e73 \
     25                    rmd160  0fe20d93030c15b0ea6dcfc8dfee0f1f0d418aeb
    2526
    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
     27python.versions 24 25 26 27
     28python.default_version 24
     29
     30if {$subport != $name} {
     31   
     32    if { ${python.version} > 24} {
     33       
     34        variant libyaml description {Enable LibYAML bindings} {
     35            depends_lib-append      port:libyaml \
     36                                    port:py${python.version}-pyrex
     37            patchfiles              patch-setup.py
     38        }
     39
     40        post-patch {
     41            reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
     42        }
     43    }
     44   
     45    post-destroot {
     46        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     47        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
     48        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
     49        xinstall -m 644 -W ${worksrcpath} LICENSE README \
     50                ${destroot}${prefix}/share/doc/${name}
     51        xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight yaml_hl.cfg yaml_hl.py \
     52            ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
     53    }
    3454}
     55
     56livecheck.url http://gitorious.org/be/be/commits/master
     57livecheck.regex title=\"(\[0-9\]+\.\[0-9\]+\.\[0-9\]+)
     58 No newline at end of file