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 python 1.0 |
---|
6 | |
---|
7 | name py-yaml |
---|
8 | license MIT |
---|
9 | version 3.10 |
---|
10 | revision 1 |
---|
11 | categories-append devel |
---|
12 | platforms darwin |
---|
13 | maintainers deric lightnin akitada openmaintainer |
---|
14 | |
---|
15 | description YAML 1.1 parser and emitter for Python |
---|
16 | long_description PyYAML is a YAML parser and emitter for Python, which \ |
---|
17 | supports YAML 1.1, unicode input and output, low-level \ |
---|
18 | event-based parser and emitter API, high-level API for \ |
---|
19 | serializing and deserializing native Python objects. |
---|
20 | |
---|
21 | homepage http://pyyaml.org/wiki/PyYAML |
---|
22 | master_sites http://pyyaml.org/download/pyyaml/ |
---|
23 | distname PyYAML-${version} |
---|
24 | checksums md5 74c94a383886519e9e7b3dd1ee540247 \ |
---|
25 | sha1 476dcfbcc6f4ebf3c06186229e8e2bd7d7b20e73 \ |
---|
26 | rmd160 0fe20d93030c15b0ea6dcfc8dfee0f1f0d418aeb |
---|
27 | |
---|
28 | python.versions 24 25 26 27 31 32 |
---|
29 | python.default_version 27 |
---|
30 | |
---|
31 | livecheck.url http://pyyaml.org/download/pyyaml/ |
---|
32 | livecheck.regex PyYAML-(\[0-9+\]\.\[0-9\]+)\.tar\.gz |
---|
33 | |
---|
34 | if {$subport != $name} { |
---|
35 | depends_lib-append port:libyaml \ |
---|
36 | port:py${python.version}-cython |
---|
37 | patchfiles patch-setup.py |
---|
38 | |
---|
39 | if { ${python.version} == 24 } { |
---|
40 | # 3.09 is last version of py-yaml that support Python 2.4 |
---|
41 | version 3.09 |
---|
42 | distname PyYAML-${version} |
---|
43 | |
---|
44 | checksums md5 f219af2361e87fdc5e85e95b84c11d87 \ |
---|
45 | sha1 6131d6a42bbd3e88d7efa3784d69395a136267be \ |
---|
46 | rmd160 b5a5228db448e9c9507682cb36f620596a4a234c |
---|
47 | } |
---|
48 | |
---|
49 | post-patch { |
---|
50 | reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py |
---|
51 | } |
---|
52 | |
---|
53 | post-destroot { |
---|
54 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} |
---|
55 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/examples |
---|
56 | xinstall -m 755 -d \ |
---|
57 | ${destroot}${prefix}/share/doc/${subport}/examples/yaml-highlight |
---|
58 | xinstall -m 644 -W ${worksrcpath} LICENSE README \ |
---|
59 | ${destroot}${prefix}/share/doc/${subport} |
---|
60 | xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight yaml_hl.cfg \ |
---|
61 | yaml_hl.py \ |
---|
62 | ${destroot}${prefix}/share/doc/${subport}/examples/yaml-highlight |
---|
63 | } |
---|
64 | } |
---|