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

name                py-breadability
version             0.1.20
revision            0

categories-append   textproc
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         nomaintainer

description         Port of Readability HTML parser in Python
long_description    {*}${description}

homepage            https://github.com/bookieio/${python.rootname}

checksums           rmd160  8d862c9606f2bee49df7eb8007ba6878006c8963 \
                    sha256  f1a7fdad1e58e295df80954879143824c706bbfb1826cdf4b1d15de1a86afe99 \
                    size    32505

python.versions     310

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-chardet \
                    port:py${python.version}-docopt \
                    port:py${python.version}-lxml \
                    port:py${python.version}-setuptools

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