# -*- 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.8.1
revision            0

categories-append   textproc
platforms           darwin
supported_archs     noarch
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
master_sites        pypi:s/${python.rootname}/
distname            ${python.rootname}-${version}

checksums           rmd160  71d231b335116ab804ad17abd6b416e740b3be82 \
                    sha256  899155ed9e50ac128167ac9e4f91ecd38493a32fdeca8213f93e9df135c9e0c7 \
                    size    58268

python.versions     27 35 36 37

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}
    }

    livecheck.type  none
}
