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 python32 1.0 |
---|
6 | |
---|
7 | name py32-yaml |
---|
8 | version 3.10 |
---|
9 | categories python devel |
---|
10 | platforms darwin |
---|
11 | maintainers 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 sha256 e713da45c96ca53a3a8b48140d4120374db622df16ab71759c9ceb5b8d46fe7c \ |
---|
22 | rmd160 0fe20d93030c15b0ea6dcfc8dfee0f1f0d418aeb |
---|
23 | |
---|
24 | variant libyaml description {Enable LibYAML bindings} { |
---|
25 | depends_lib-append port:libyaml \ |
---|
26 | port:py32-pyrex-LOCAL |
---|
27 | patchfiles patch-setup.py |
---|
28 | } |
---|
29 | |
---|
30 | post-patch { |
---|
31 | reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py |
---|
32 | } |
---|
33 | |
---|
34 | post-destroot { |
---|
35 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
36 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples |
---|
37 | xinstall -m 755 -d \ |
---|
38 | ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight |
---|
39 | xinstall -m 644 -W ${worksrcpath} LICENSE README \ |
---|
40 | ${destroot}${prefix}/share/doc/${name} |
---|
41 | xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight yaml_hl.cfg \ |
---|
42 | yaml_hl.py \ |
---|
43 | ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight |
---|
44 | } |
---|