# $Id: Portfile 102584 2013-02-05 04:25:13Z larryv@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-xmldiff
version			0.6.8
categories-append	textproc
license			GPL-2+
platforms		darwin
maintainers		nomaintainer
description		diff for xml files as command line tool and python module
long_description	xmldiff is a python tool that figures out the \
				differences between two similar XML files, in the same \
				way the diff utility does it for text files. It can \
				be used as a library or as a command line tool. It can \
				work either with XML files or DOM trees

homepage		http://www.logilab.org/projects/xmldiff/
master_sites	http://ftp.logilab.org/pub/xmldiff/
distname		xmldiff-${version}
checksums		md5 bc1e184e45ce7f9c6beedda76fbeaa16 \
				sha1 eed3a15496df1e892c0363273da67f0532a716a7 \
				rmd160 0ce0e87293f4adc1d801e1bd8f40c32939d6f884

python.versions	24

if {$subport != $name} {
    post-destroot	{
        xinstall -m 644 -W ${worksrcpath} ChangeLog README README.xmlrev TODO \
            doc/API.html doc/API.txt doc/HELP.html doc/HELP.txt \
            ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type	none
} else {
    livecheck.type	regex
    livecheck.url	[lindex ${master_sites} 0]
    livecheck.regex	xmldiff-(\[0-9.\]+)${extract.suffix}
}
