source: trunk/dports/python/py-wordnet/Portfile

Last change on this file was 130925, checked in by larryv@…, 3 years ago

py24-wordnet: Replace with py27

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 130925 2015-01-04 03:41:50Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    py-wordnet
7version                 1.4
8revision                1
9license                 Artistic-1 MIT
10platforms               darwin freebsd
11supported_archs noarch
12maintainers             nomaintainer
13description             Python interface to the (included) WordNet database
14long_description        PyWordNet is a Python interface to the WordNet \
15                                database of word meanings and lexical relationships. \
16                                Version 1.7.1 or WordNet - the most recent version of \
17                                WordNet working with py-wordnet - is included.
18
19homepage                http://pywordnet.sourceforge.net/
20master_sites    sourceforge:pywordnet:source \
21                                http://wordnetcode.princeton.edu/1.7.1:data
22
23python.versions 27
24
25if {${name} ne ${subport}} {
26    distfiles           pywordnet-${version}${extract.suffix}:source \
27                    WordNet-1.7.1${extract.suffix}:data
28    checksums           pywordnet-${version}${extract.suffix} \
29                        md5 791c796699d4c2cd6bd37ec32a232561 \
30                    WordNet-1.7.1${extract.suffix} \
31                        md5 5c8e569339cf7d8e727d884234365508
32    patchfiles          patch-wordnet.py.diff
33   
34    worksrcdir          pywordnet-${version}
35   
36    post-patch  {
37        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/wordnet.py
38    }
39   
40    post-destroot       {
41        xinstall -d -m 755 ${destroot}${prefix}/share/${subport}
42        xinstall -m 644 -W ${workpath}/WordNet-1.7.1/dict adj.exc adv.exc \
43            cntlist cntlist.rev data.adj data.adv data.noun data.verb \
44            index.adj index.adv index.noun index.sense index.verb lexnames \
45            noun.exc sentidx.vrb sents.vrb verb.exc \
46            ${destroot}${prefix}/share/${subport}
47        xinstall -m 644 -W ${build.dir} CHANGES.txt INSTALL.txt LICENSE.txt \
48            README.txt index.html ${destroot}${prefix}/share/doc/${subport}
49    }
50}
Note: See TracBrowser for help on using the repository browser.