# $Id: Portfile 44419 2008-12-28 09:31:44Z akitada@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name				py-yaml
version				3.05
categories-append	devel
maintainers			akitada openmaintainer
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.

platforms			darwin

homepage			http://pyyaml.org/wiki/PyYAML
master_sites		http://pyyaml.org/download/pyyaml/
distname			PyYAML-${version}

checksums			md5 04ebb924a571cfb26d8143069068ce86 \
				sha1 facf11bc9f6988b76538e46a7ce8a379a9296cb0 \
				rmd160 1848e00b3b46c93fdd383092a3db8728b6b8bae0

post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
	xinstall -m 644 -W ${worksrcpath} LICENSE README \
		${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath}/examples/yaml-highlight yaml_hl.cfg yaml_hl.py \
	    ${destroot}${prefix}/share/doc/${name}/examples/yaml-highlight
}
