# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 107173 2013-06-20 21:10:20Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-html5lib
license             MIT
version             0.95
categories-append   textproc devel
platforms           darwin
maintainers         lightnin openmaintainer
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.

homepage            http://code.google.com/p/html5lib/
master_sites        googlecode:html5lib
distname            html5lib-${version}
checksums           md5     fe607f9917d81763e842f818f23464ee \
                    sha1    1645840a6dbd152c06aa513e04dfafe09a36703a \
                    rmd160  0b5c73d39f0203e15752f11fbf8ca5218ea2b236

python.versions     25 26 27 31 32

if {${subport} != ${name}} {
    depends_build         port:py${python.version}-setuptools

    post-destroot   {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} \
            PKG-INFO \
            README \
            ${destroot}${docdir}
    }
}
