# -*- 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 # $Id$ PortSystem 1.0 PortGroup python 1.0 name py-yaml license MIT version 3.11 categories-append devel platforms darwin maintainers nomaintainer description YAML 1.1 parser and emitter for Python long_description PyYAML is a YAML parser and emitter for Python, which \ supports YAML 1.1, unicode input and output, low-level \ event-based parser and emitter API, high-level API for \ serializing and deserializing native Python objects. homepage http://pyyaml.org/wiki/PyYAML master_sites http://pyyaml.org/download/pyyaml/ distname PyYAML-${version} checksums rmd160 9515e7573c7e021190198b242a415f2b55d50938 \ sha256 c36c938a872e5ff494938b33b14aaa156cb439ec67548fcab3535bb78b0846e8 python.versions 26 27 33 34 35 livecheck.url http://pyyaml.org/download/pyyaml/ livecheck.regex PyYAML-(\[0-9+\]\.\[0-9\]+)\.tar\.gz if {${name} ne ${subport}} { depends_build-append \ port:py${python.version}-cython depends_lib-append port:libyaml patchfiles patch-setup.py post-patch { reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py } post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/examples xinstall -m 755 -d \ ${destroot}${prefix}/share/doc/${subport}/examples/yaml-highlight xinstall -m 644 -W ${worksrcpath} LICENSE README \ ${destroot}${prefix}/share/doc/${subport} xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight yaml_hl.cfg \ yaml_hl.py \ ${destroot}${prefix}/share/doc/${subport}/examples/yaml-highlight } }