Ticket #34079: Portfile

File Portfile, 1.8 KB (added by erik_nolte@…, 13 years ago)
Line 
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
4PortSystem          1.0
5PortGroup           python33 1.0
6
7name                py33-yaml
8version             3.10
9categories          python devel
10platforms           darwin
11maintainers         openmaintainer
12description         YAML 1.1 parser and emitter for Python
13long_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
18homepage            http://pyyaml.org/wiki/PyYAML
19master_sites        http://pyyaml.org/download/pyyaml/
20distname            PyYAML-${version}
21checksums           sha256 e713da45c96ca53a3a8b48140d4120374db622df16ab71759c9ceb5b8d46fe7c \
22                    rmd160 0fe20d93030c15b0ea6dcfc8dfee0f1f0d418aeb
23
24variant libyaml description {Enable LibYAML bindings} {
25    depends_lib-append      port:libyaml \
26                            port:py33-pyrex-LOCAL
27    patchfiles              patch-setup.py
28}
29
30post-patch {
31    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
32}
33
34post-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}