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

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

py-nltk: use py-setuptools instead of downloading distribute; see #42097.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 115851 2014-01-13 01:51:16Z 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_build   port:py${python.version}-setuptools
27    depends_lib     port:py${python.version}-numpy \
28                    port:py${python.version}-yaml \
29                    port:py${python.version}-matplotlib
30
31    patchfiles      patch-setup.py.diff
32
33    post-destroot {
34        set docdir ${prefix}/share/doc/${subport}
35        xinstall -d ${destroot}${docdir}
36        xinstall -m 644 -W ${worksrcpath} \
37            ChangeLog \
38            LICENSE.txt \
39            NOTICE.txt \
40            README.md \
41            README.txt \
42            ${destroot}${docdir}
43    }
44
45    livecheck.type      none
46} else {
47    livecheck.type      regex
48    livecheck.regex     archive/[join ${github.tag_prefix} ""](2\[^"\]+)${extract.suffix}
49}
Note: See TracBrowser for help on using the repository browser.