# $Id: Portfile 49554 2009-04-12 06:59:28Z blb@macports.org $

PortSystem 1.0
PortGroup python26 1.0

name            py26-xml
version         0.8.4
categories-append   devel textproc
maintainers     nomaintainer
description     XML Tools for Python
long_description \
    A package of all the tools required for writing basic \
    XML applications in Python.

platforms       darwin
homepage        http://pyxml.sourceforge.net/
master_sites    sourceforge:pyxml
distname        PyXML-${version}
checksums       md5 1f7655050cebbb664db976405fdba209

depends_lib-append  port:expat 

# Work with python 2.6
patchfiles      patch-xml_xpath_ParsedAbbreviatedAbsoluteLocationPath.py.diff \
                patch-xml_xpath_ParsedAbbreviatedRelativeLocationPath.py.diff

build.args      --with-libexpat=${prefix}

post-destroot {
   file mkdir ${destroot}${prefix}/share/doc
   file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
}

