diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-03-26 07:04:38 +0000 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-03-26 07:04:38 +0000 |
commit | 6c8bfcfea978f8942d1f7b3b675833316acd31dc (patch) | |
tree | c90a6ce3b3f0f7ba957dba1f8e9b0b7ad73058e8 /textproc/py-wordnet | |
parent | db17e007f1f810e8ead2464892e55166f15ed798 (diff) | |
download | FreeBSD-ports-6c8bfcfea978f8942d1f7b3b675833316acd31dc.zip FreeBSD-ports-6c8bfcfea978f8942d1f7b3b675833316acd31dc.tar.gz |
add py-wordnet 1.4
Python Interface to WordNet
PR: 36323
Submitted by: Hye-Shik Chang <perky@fallin.lv>
Diffstat (limited to 'textproc/py-wordnet')
-rw-r--r-- | textproc/py-wordnet/Makefile | 37 | ||||
-rw-r--r-- | textproc/py-wordnet/distinfo | 1 | ||||
-rw-r--r-- | textproc/py-wordnet/pkg-comment | 1 | ||||
-rw-r--r-- | textproc/py-wordnet/pkg-descr | 6 | ||||
-rw-r--r-- | textproc/py-wordnet/pkg-plist | 6 |
5 files changed, 51 insertions, 0 deletions
diff --git a/textproc/py-wordnet/Makefile b/textproc/py-wordnet/Makefile new file mode 100644 index 0000000..0014d0f --- /dev/null +++ b/textproc/py-wordnet/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: py-wordnet +# Date created: 26 March 2002 +# Whom: Hye-Shik Chang <perky@fallin.lv> +# +# $FreeBSD$ +# + +PORTNAME= wordnet +PORTVERSION= 1.4 +CATEGORIES= textproc python +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= pywordnet +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pywordnet-${PORTVERSION} + +MAINTAINER= perky@fallin.lv + +RUN_DEPENDS= ${WORDNETBASE}/lexnames:${PORTSDIR}/textproc/wordnet + +USE_PYTHON= yes +SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py +WORDNETBASE?= ${LOCALBASE}/share/wordnet-${WORDNET_VERSION} +WORDNET_VERSION?= 1.7 + +post-patch: + @${SED} -e 's|/usr/local/wordnet1.6|${WORDNETBASE}|g' \ + -e 's|os.path.join(WNHOME.*))|WNHOME)|g' ${WRKSRC}/wordnet.py \ + > ${WRKSRC}/wordnet.py.tmp && ${CAT} ${WRKSRC}/wordnet.py.tmp \ + > ${WRKSRC}/wordnet.py + +do-build: + ${SETUP_CMD} build + +do-install: + ${SETUP_CMD} install -c -O1 --prefix=${PREFIX} + +.include <bsd.port.mk> diff --git a/textproc/py-wordnet/distinfo b/textproc/py-wordnet/distinfo new file mode 100644 index 0000000..2297aaf --- /dev/null +++ b/textproc/py-wordnet/distinfo @@ -0,0 +1 @@ +MD5 (pywordnet-1.4.tar.gz) = 791c796699d4c2cd6bd37ec32a232561 diff --git a/textproc/py-wordnet/pkg-comment b/textproc/py-wordnet/pkg-comment new file mode 100644 index 0000000..baeb159 --- /dev/null +++ b/textproc/py-wordnet/pkg-comment @@ -0,0 +1 @@ +Python Interface to WordNet diff --git a/textproc/py-wordnet/pkg-descr b/textproc/py-wordnet/pkg-descr new file mode 100644 index 0000000..ebbbd32 --- /dev/null +++ b/textproc/py-wordnet/pkg-descr @@ -0,0 +1,6 @@ +PyWordNet is a Python interface to the WordNet database of word meanings +and lexical relationships. (A lexical relationship is a relationship +between words, such as synonym, antonym, hypernym ("poodle" -> "dog"), +and hyponym ("poodle" -> "dog"). + +WWW: http://pywordnet.sourceforge.net/ diff --git a/textproc/py-wordnet/pkg-plist b/textproc/py-wordnet/pkg-plist new file mode 100644 index 0000000..aa76b01 --- /dev/null +++ b/textproc/py-wordnet/pkg-plist @@ -0,0 +1,6 @@ +lib/%%PYTHON_VERSION%%/site-packages/wordnet.py +lib/%%PYTHON_VERSION%%/site-packages/wordnet.pyc +lib/%%PYTHON_VERSION%%/site-packages/wordnet.pyo +lib/%%PYTHON_VERSION%%/site-packages/wntools.py +lib/%%PYTHON_VERSION%%/site-packages/wntools.pyc +lib/%%PYTHON_VERSION%%/site-packages/wntools.pyo |