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 1 2 # $Id$ 2 3 3 PortSystem 1.04 PortGroup python241.04 PortSystem 1.0 5 PortGroup python 1.0 5 6 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. 7 name py-yaml 8 set name_package PyYAML 9 version 3.10 10 categories python devel 11 platforms darwin 12 maintainers akitada lightnin openmaintainer 13 description YAML 1.1 parser and emitter for Python 14 long_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. 15 18 16 platforms darwin 19 homepage http://pyyaml.org/wiki/PyYAML 20 master_sites http://pyyaml.org/download/pyyaml/ 21 distname ${name_package}-${version} 17 22 18 homepage http://pyyaml.org/wiki/PyYAML 19 master_sites http://pyyaml.org/download/pyyaml/ 20 distname PyYAML-${version} 23 checksums rmd160 0fe20d93030c15b0ea6dcfc8dfee0f1f0d418aeb \ 24 sha256 e713da45c96ca53a3a8b48140d4120374db622df16ab71759c9ceb5b8d46fe7c 21 25 22 checksums md5 04ebb924a571cfb26d8143069068ce86 \ 23 sha1 facf11bc9f6988b76538e46a7ce8a379a9296cb0 \ 24 rmd160 1848e00b3b46c93fdd383092a3db8728b6b8bae0 26 python.versions 24 25 26 27 27 replaced_by py24-yaml 25 28 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 29 if {${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 } 34 55 } 56 57 livecheck.type regex 58 livecheck.url [lindex ${master_sites} 0] 59 livecheck.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 +09002 +++ setup.py 2009-02-01 19:02:20.000000000 +09003 @@ -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=42 # $Id$3 4 PortSystem 1.05 PortGroup python25 1.06 7 name py25-yaml8 version 3.089 revision 110 categories-append devel11 maintainers akitada openmaintainer12 description YAML 1.1 parser and emitter for Python13 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 darwin19 20 homepage http://pyyaml.org/wiki/PyYAML21 master_sites http://pyyaml.org/download/pyyaml/22 distname PyYAML-${version}23 24 checksums md5 a4163a2017fa57f448c66815511fa555 \25 sha1 5f9738b74afabcf516ce536b462cb4d18403211d \26 rmd160 fe034d73a8cdc98381099106ac8884d6b6f917d827 28 variant libyaml description {Enable LibYAML bindings} {29 depends_lib-append port:libyaml \30 port:py25-pyrex31 patchfiles patch-setup.py32 }33 34 post-patch {35 reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py36 }37 38 post-destroot {39 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}40 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples41 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight42 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-highlight46 } -
python/py26-yaml/files/patch-setup.py
1 --- setup.py.orig 2009-02-01 19:01:52.000000000 +09002 +++ setup.py 2009-02-01 19:02:20.000000000 +09003 @@ -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=42 # $Id$3 4 PortSystem 1.05 PortGroup python26 1.06 7 name py26-yaml8 version 3.099 revision 010 categories-append devel11 maintainers akitada openmaintainer12 description YAML 1.1 parser and emitter for Python13 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 darwin19 20 homepage http://pyyaml.org/wiki/PyYAML21 master_sites http://pyyaml.org/download/pyyaml/22 distname PyYAML-${version}23 24 checksums md5 f219af2361e87fdc5e85e95b84c11d87 \25 sha1 6131d6a42bbd3e88d7efa3784d69395a136267be \26 rmd160 b5a5228db448e9c9507682cb36f620596a4a234c27 28 variant libyaml description {Enable LibYAML bindings} {29 depends_lib-append port:libyaml \30 port:py26-pyrex31 patchfiles patch-setup.py32 }33 34 post-patch {35 reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py36 }37 38 post-destroot {39 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}40 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples41 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight42 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-highlight46 } -
python/py27-yaml/files/patch-setup.py
1 --- setup.py.orig 2009-02-01 19:01:52.000000000 +09002 +++ setup.py 2009-02-01 19:02:20.000000000 +09003 @@ -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=42 # $Id$3 4 PortSystem 1.05 PortGroup python27 1.06 7 name py27-yaml8 version 3.099 categories python devel10 platforms darwin11 maintainers lightnin openmaintainer12 description YAML 1.1 parser and emitter for Python13 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/PyYAML19 master_sites http://pyyaml.org/download/pyyaml/20 distname PyYAML-${version}21 checksums md5 f219af2361e87fdc5e85e95b84c11d87 \22 sha1 6131d6a42bbd3e88d7efa3784d69395a136267be \23 rmd160 b5a5228db448e9c9507682cb36f620596a4a234c24 25 variant libyaml description {Enable LibYAML bindings} {26 depends_lib-append port:libyaml \27 port:py27-pyrex-LOCAL28 patchfiles patch-setup.py29 }30 31 post-patch {32 reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py33 }34 35 post-destroot {36 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}37 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples38 xinstall -m 755 -d \39 ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight40 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-highlight45 }