# $Id$

PortSystem      1.0
PortGroup       python26 1.0

name            py26-html5lib
version         0.90
revision        1
maintainers     nomaintainer
platforms       darwin
supported_archs noarch

description     Library for working with HTML documents

long_description \
    A Python implementation of a HTML parser based on the WHATWG HTML5 \
    specification for maximum compatibility with major desktop web browsers.

categories-append \
    textproc devel

homepage            http://code.google.com/p/html5lib/
master_sites        googlecode:html5lib
distname            html5lib-${version}
use_zip             yes

checksums           md5     691e6b9ebe15b333a28280974b2ce432 \
                    sha1    37fdf4d853f53ebd170250f7f023f55a02659378 \
                    rmd160  ba01161f3b0d6a5dfb9e1ffedaf9c18a6b7d2a19

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 ${worksrcpath}/README ${destroot}${docdir}
    set examplesdir ${prefix}/share/examples/${name}
    xinstall -d ${destroot}${examplesdir}
    xinstall -m 644 ${worksrcpath}/examples/parse.py ${destroot}${examplesdir}
}