# $Id: Portfile 100718 2012-12-21 07:27:13Z jmr@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-xmltramp
version			2.16
revision		1
license			GPL-2
platforms		darwin
supported_archs	noarch
maintainers		nomaintainer
description		easy-to-use python API for XML documents
long_description	${description}

homepage		http://www.aaronsw.com/2002/xmltramp/
master_sites	${homepage}
distfiles		xmltramp-${version}.py
checksums		md5 1492bd99a119a24d58da5d2849d1e31b

python.versions	24

if {$subport != $name} {
    extract	{
        file mkdir ${worksrcpath}
        file copy ${distpath}/${distfiles} ${worksrcpath}/xmltramp.py
        file copy ${filespath}/setup.py ${worksrcpath}
        reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
    }
}
