Portfile

# $Id: Portfile 22119 2007-02-18 00:28:00Z mww@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name py-elementtree
version 1.2.6-20050316
categories python
platforms darwin
maintainers mww@macports.org
description flexible container object for python
long_description The Element type is a simple but flexible container \
object, designed to store hierarchical data structures, such \
as simplified XML infosets, in memory. The element type can be \
described as a cross between a Python list and a Python \
dictionary.

homepage http://effbot.org/zone/element-index.htm
master_sites http://effbot.org/downloads/
distname elementtree-${version}
checksums md5 6751a9005efbd2c543ef32905d4a0acd
use_zip yes

test.run yes
test.cmd ${python.bin}
test.target selftest.py

post-destroot {
xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath}/samples simple-ns.xml simple.xml \
${destroot}${prefix}/share/doc/${name}/examples
eval file copy [glob ${worksrcpath}/docs/*] \
${destroot}/${prefix}/share/doc/${name}
}