# -*- 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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           python 1.0

github.setup        html5lib html5lib-python 1.0.1
name                py-html5lib
revision            0

categories-append   textproc devel
license             Permissive
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer

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.

checksums           rmd160  14bd17da566e7de383a61b1a4b75fe5190899cab \
                    sha256  6e2deee8b637a2bad241b249736e5bfb334c6019dc2adf9f0366eded336cb0cc \
                    size    146935

python.versions     27 35 36 37 38

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    depends_lib-append \
                    port:py${python.version}-six \
                    port:py${python.version}-webencodings

    post-destroot   {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} AUTHORS.rst \
            CHANGES.rst CONTRIBUTING.rst LICENSE \
            README.rst ${destroot}${docdir}
    }

    livecheck.type  none
}