Ticket #41938: Portfile.diff

File Portfile.diff, 2.2 KB (added by humem (humem), 10 years ago)
  • Portfile

    old new  
    22# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $
    33
    44PortSystem          1.0
     5PortGroup           github 1.0
    56PortGroup           python 1.0
    67
     8github.setup        nltk nltk 2.0.4
    79name                py-nltk
    8 version             2.0.1rc1
    9 revision            1
    10 categories          python textproc
     10categories-append   textproc
    1111platforms           darwin
    12 maintainers         gmail.com:stevenbird1
     12maintainers         hum gmail.com:stevenbird1 openmaintainer
    1313supported_archs     noarch
     14license             Apache-2.0
    1415
    1516description         Natural Language Toolkit
    1617long_description    NLTK is Python modules for research and development in natural language processing
    1718homepage            http://www.nltk.org/
    18 master_sites        googlecode:nltk
    19 distname            nltk-${version}
    2019
    21 checksums           sha1    4cd2b834875db6df2662a86a35f90d1e9bb8c1ce \
    22                     rmd160  2ae4a490b73a7d0dc49412a621ed8223761619ec
     20checksums           rmd160  3471f1228d21eca5811bb90159b90a64edad43fa \
     21                    sha256  790df52ffc0db5aaa24e43b943e4ee63d275cae603d813dc5e03a0daf8afeb8a
    2322
    2423python.versions     26 27
    2524
    2625if {${name} ne ${subport}} {
    27     depends_lib         port:py${python.version}-numpy \
    28                         port:py${python.version}-yaml \
    29                         port:py${python.version}-matplotlib
     26    depends_lib     port:py${python.version}-numpy \
     27                    port:py${python.version}-yaml \
     28                    port:py${python.version}-matplotlib
    3029
    3130    post-destroot {
    32         set docdir ${destroot}${prefix}/share/doc/${subport}
    33         xinstall -d ${docdir}
     31        set docdir ${prefix}/share/doc/${subport}
     32        xinstall -d ${destroot}${docdir}
    3433        xinstall -m 644 -W ${worksrcpath} \
     34            ChangeLog \
    3535            LICENSE.txt \
     36            NOTICE.txt \
     37            README.md \
    3638            README.txt \
    37             INSTALL.txt \
    38             ${docdir}
     39            ${destroot}${docdir}
    3940    }
     41
     42    livecheck.type      none
     43} else {
     44    livecheck.type      regex
     45    livecheck.regex     archive/[join ${github.tag_prefix} ""](2\[^"\]+)${extract.suffix}
    4046}