# -*- 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 102450 2013-02-03 11:50:40Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-nltk
version             2.0.1rc1
categories          python textproc
platforms           darwin
maintainers         gmail.com:stevenbird1
supported_archs     noarch

description         Natural Language Toolkit
long_description    NLTK is Python modules for research and development in natural language processing
homepage            http://www.nltk.org/
master_sites        googlecode:nltk
distname            nltk-${version}

checksums           sha1    4cd2b834875db6df2662a86a35f90d1e9bb8c1ce \
                    rmd160  2ae4a490b73a7d0dc49412a621ed8223761619ec

python.versions     24 25 26 27

if {$subport != $name} {
    depends_lib         port:py${python.version}-numpy \
                        port:py${python.version}-yaml
    if {${python.version} >= 26} {
        depends_lib-append port:py${python.version}-matplotlib
    }

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