# -*- 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        nltk nltk 3.4.5
name                py-nltk
categories-append   textproc
platforms           darwin
maintainers         {gmail.com:stevenbird1 @stevenbird} openmaintainer
supported_archs     noarch
license             Apache-2

description         Natural Language Toolkit
long_description    NLTK is Python modules for research and development in natural language processing
homepage            http://www.nltk.org/

checksums           rmd160  1e84cd7328d47f23bc0318a6d5eaf318006550e1 \
                    sha256  52fef02f225b0e36cab3f5b28d66b718f25d5aee806097255a1f7991bc7c000f \
                    size    2821586

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}-matplotlib \
                    port:py${python.version}-numpy \
                    port:py${python.version}-yaml

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} \
            ChangeLog \
            LICENSE.txt \
            README.md \
            ${destroot}${docdir}
    }

    livecheck.type      none
} else {
    github.livecheck.regex  {([\d.]+)}
}