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 | version 3.10 |
---|
9 | python.versions 24 24 26 27 31 32 33 |
---|
10 | python.default_version 27 |
---|
11 | categories python devel |
---|
12 | platforms darwin |
---|
13 | maintainers akitada lightnin openmaintainer |
---|
14 | description YAML 1.1 parser and emitter for Python |
---|
15 | long_description PyYAML is a YAML parser and emitter for Python, which \ |
---|
16 | supports YAML 1.1, unicode input and output, low-level \ |
---|
17 | event-based parser and emitter API, high-level API for \ |
---|
18 | serializing and deserializing native Python objects. |
---|
19 | |
---|
20 | homepage http://pyyaml.org/wiki/PyYAML |
---|
21 | master_sites http://pyyaml.org/download/pyyaml/ |
---|
22 | distname PyYAML-${version} |
---|
23 | checksums sha256 e713da45c96ca53a3a8b48140d4120374db622df16ab71759c9ceb5b8d46fe7c \ |
---|
24 | rmd160 0fe20d93030c15b0ea6dcfc8dfee0f1f0d418aeb |
---|
25 | livecheck.type none |
---|
26 | |
---|
27 | variant libyaml description {Enable LibYAML bindings} { |
---|
28 | depends_lib-append port:libyaml \ |
---|
29 | port:py${python.version}-pyrex-LOCAL |
---|
30 | patchfiles patch-setup.py |
---|
31 | } |
---|
32 | |
---|
33 | post-patch { |
---|
34 | reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py |
---|
35 | } |
---|
36 | |
---|
37 | post-destroot { |
---|
38 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} |
---|
39 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/examples |
---|
40 | xinstall -m 755 -d \ |
---|
41 | ${destroot}${prefix}/share/doc/${subport}/examples/yaml-highlight |
---|
42 | xinstall -m 644 -W ${worksrcpath} LICENSE README \ |
---|
43 | ${destroot}${prefix}/share/doc/${subport} |
---|
44 | xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight yaml_hl.cfg \ |
---|
45 | yaml_hl.py \ |
---|
46 | ${destroot}${prefix}/share/doc/${subport}/examples/yaml-highlight |
---|
47 | } |
---|