Permalink
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (47 sloc) 2.04 KB
# -*- 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
PortSystem 1.0
PortGroup python 1.0
name py-yaml
license MIT
version 3.13
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 83e7c03acd667f95cf68ed4559aec3ecf3fc79ac \
sha256 3ef3092145e9b70e3ddd2c7ad59bdd0252a94dfe3949721633e41344de00a6bf \
size 270607
python.versions 27 34 35 36 37
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 {
set docdir ${prefix}/share/doc/${subport}
xinstall -m 755 -d ${destroot}${docdir}
xinstall -m 755 -d ${destroot}${docdir}/examples
xinstall -m 755 -d \
${destroot}${docdir}/examples/yaml-highlight
xinstall -m 644 -W ${worksrcpath} \
LICENSE README \
${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight \
yaml_hl.cfg yaml_hl.py \
${destroot}${docdir}/examples/yaml-highlight
}
livecheck.type none
} else {
livecheck.type regex
livecheck.url [lindex ${master_sites} 0]
livecheck.regex PyYAML-(.+?)${extract.suffix}
}