source: trunk/dports/python/py-nltk/Portfile @ 115778

Last change on this file since 115778 was 115778, checked in by hum@…, 6 years ago

py-nltk: update to 2.0.4; take joint maintainership; add license and livecheck; see #41938.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# -*- 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
2# $Id: Portfile 115778 2014-01-11 02:59:14Z hum@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           python 1.0
7
8github.setup        nltk nltk 2.0.4
9name                py-nltk
10categories-append   textproc
11platforms           darwin
12maintainers         hum gmail.com:stevenbird1 openmaintainer
13supported_archs     noarch
14license             Apache-2.0
15
16description         Natural Language Toolkit
17long_description    NLTK is Python modules for research and development in natural language processing
18homepage            http://www.nltk.org/
19
20checksums           rmd160  3471f1228d21eca5811bb90159b90a64edad43fa \
21                    sha256  790df52ffc0db5aaa24e43b943e4ee63d275cae603d813dc5e03a0daf8afeb8a
22
23python.versions     26 27
24
25if {${name} ne ${subport}} {
26    depends_lib     port:py${python.version}-numpy \
27                    port:py${python.version}-yaml \
28                    port:py${python.version}-matplotlib
29
30    post-destroot {
31        set docdir ${prefix}/share/doc/${subport}
32        xinstall -d ${destroot}${docdir}
33        xinstall -m 644 -W ${worksrcpath} \
34            ChangeLog \
35            LICENSE.txt \
36            NOTICE.txt \
37            README.md \
38            README.txt \
39            ${destroot}${docdir}
40    }
41
42    livecheck.type      none
43} else {
44    livecheck.type      regex
45    livecheck.regex     archive/[join ${github.tag_prefix} ""](2\[^"\]+)${extract.suffix}
46}
Note: See TracBrowser for help on using the repository browser.