# -*- 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
# $Id: Portfile 115851 2014-01-13 01:51:16Z hum@macports.org $

PortSystem          1.0
PortGroup           github 1.0
PortGroup           python 1.0

github.setup        nltk nltk 2.0.4
name                py-nltk
categories-append   textproc
platforms           darwin
maintainers         hum gmail.com:stevenbird1 openmaintainer
supported_archs     noarch
license             Apache-2.0

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  3471f1228d21eca5811bb90159b90a64edad43fa \
                    sha256  790df52ffc0db5aaa24e43b943e4ee63d275cae603d813dc5e03a0daf8afeb8a

python.versions     26 27

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

    patchfiles      patch-setup.py.diff

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

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.regex     archive/[join ${github.tag_prefix} ""](2\[^"\]+)${extract.suffix}
}
