# -*- 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-sumy
version             0.9.0
revision            0

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

description         Module for automatic summarization of text documents and HTML pages
long_description    {*}${description}

homepage            https://github.com/miso-belica/sumy

checksums           rmd160  dc3b389a7dd26d50bfec585abe53fe26d50cf861 \
                    sha256  9edf0a6e9815db811f439ed852addf5aae96a23c9a81347ea933a0c53ad00d50 \
                    size    68358

python.versions     310

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-breadability \
                    port:py${python.version}-docopt \
                    port:py${python.version}-nltk \
                    port:py${python.version}-country \
                    port:py${python.version}-requests \
                    port:py${python.version}-setuptools

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