# -*- 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.0.4
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/

python.versions     27 34 35 36

if {${name} ne ${subport}} {
    checksums       rmd160  5c4f00776485b189d5d58f4ad01e50beead2cb73 \
                    sha256  09d039ba03c572b6057d7d9f61a59fe9c0e06bfd8c1dc7a33e78b43d36387e5a

    depends_build   port:py${python.version}-setuptools
    depends_lib     port:py${python.version}-numpy \
                    port:py${python.version}-yaml \
                    port:py${python.version}-matplotlib

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

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