# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python25 1.0

name			py25-elementtree
version			1.2.6-20050316
categories		python
platforms		darwin
maintainers		stechert
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}
}

livecheck.type	regex
livecheck.url	http://effbot.org/downloads/
livecheck.regex	elementtree-(\[0-9\.-\]+).tar.gz
