Ticket #34353: py-yaml-unify.diff
File py-yaml-unify.diff, 10.6 KB (added by deric@…, 13 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=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/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/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 } -
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/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 1 2 # $Id$ 2 3 3 4 PortSystem 1.0 4 PortGroup python 241.05 PortGroup python 1.0 5 6 6 7 name py-yaml 7 version 3. 058 version 3.10 8 9 categories-append devel 9 10 maintainers akitada openmaintainer 10 11 description YAML 1.1 parser and emitter for Python … … 19 20 master_sites http://pyyaml.org/download/pyyaml/ 20 21 distname PyYAML-${version} 21 22 22 checksums md5 04ebb924a571cfb26d8143069068ce86\23 sha1 facf11bc9f6988b76538e46a7ce8a379a9296cb0\24 rmd160 1848e00b3b46c93fdd383092a3db8728b6b8bae0 23 checksums md5 74c94a383886519e9e7b3dd1ee540247 \ 24 sha1 476dcfbcc6f4ebf3c06186229e8e2bd7d7b20e73 \ 25 rmd160 0fe20d93030c15b0ea6dcfc8dfee0f1f0d418aeb 25 26 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 27 python.versions 24 25 26 27 28 python.default_version 24 29 30 if {$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 } 34 54 } 55 56 livecheck.url http://gitorious.org/be/be/commits/master 57 livecheck.regex title=\"(\[0-9\]+\.\[0-9\]+\.\[0-9\]+) 58 No newline at end of file