Skip to content
Permalink
Browse files

py-wordnet: obsolete, replaced_by py-nltk

Upstream says:
PyWordNet was contributed to the NLTK project in 2006. Refer to that
software for a more recent implementation of Python/WordNet that has
been updated to Wordnet 2.1 and extended with some of the Wordnet
similarity scoring algorithms.
  • Loading branch information
reneeotten committed Apr 18, 2019
1 parent c98e541 commit 310ac7a245ea60f78ecb009cbdc35327171ed301
Showing with 11 additions and 59 deletions.
  1. +11 −45 python/py-wordnet/Portfile
  2. +0 −14 python/py-wordnet/files/patch-wordnet.py.diff
@@ -1,48 +1,14 @@
PortSystem 1.0
PortGroup python 1.0
# -*- 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

name py-wordnet
version 1.4
revision 1
license Artistic-1 MIT
platforms darwin freebsd
supported_archs noarch
maintainers nomaintainer
description Python interface to the (included) WordNet database
long_description PyWordNet is a Python interface to the WordNet \
database of word meanings and lexical relationships. \
Version 1.7.1 or WordNet - the most recent version of \
WordNet working with py-wordnet - is included.
PortSystem 1.0
PortGroup obsolete 1.0

homepage http://pywordnet.sourceforge.net/
master_sites sourceforge:pywordnet:source \
http://wordnetcode.princeton.edu/1.7.1:data
name py-wordnet
replaced_by py-nltk
version 1.4
revision 2
categories python
license Artistic-1 MIT

python.versions 27

if {${name} ne ${subport}} {
distfiles pywordnet-${version}${extract.suffix}:source \
WordNet-1.7.1${extract.suffix}:data
checksums pywordnet-${version}${extract.suffix} \
md5 791c796699d4c2cd6bd37ec32a232561 \
WordNet-1.7.1${extract.suffix} \
md5 5c8e569339cf7d8e727d884234365508
patchfiles patch-wordnet.py.diff

worksrcdir pywordnet-${version}

post-patch {
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/wordnet.py
}

post-destroot {
xinstall -d -m 755 ${destroot}${prefix}/share/${subport}
xinstall -m 644 -W ${workpath}/WordNet-1.7.1/dict adj.exc adv.exc \
cntlist cntlist.rev data.adj data.adv data.noun data.verb \
index.adj index.adv index.noun index.sense index.verb lexnames \
noun.exc sentidx.vrb sents.vrb verb.exc \
${destroot}${prefix}/share/${subport}
xinstall -m 644 -W ${build.dir} CHANGES.txt INSTALL.txt LICENSE.txt \
README.txt index.html ${destroot}${prefix}/share/doc/${subport}
}
}
subport py27-wordnet " replaced_by py27-nltk "
# remove after April 17, 2020

This file was deleted.

0 comments on commit 310ac7a

Please sign in to comment.
You can’t perform that action at this time.