summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-wordnet/Makefile37
-rw-r--r--textproc/py-wordnet/distinfo1
-rw-r--r--textproc/py-wordnet/pkg-comment1
-rw-r--r--textproc/py-wordnet/pkg-descr6
-rw-r--r--textproc/py-wordnet/pkg-plist6
6 files changed, 52 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 092b4e8ef21c..ebff0831a980 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -223,6 +223,7 @@
SUBDIR += py-martel
SUBDIR += py-sgrep
SUBDIR += py-trex
+ SUBDIR += py-wordnet
SUBDIR += py-xml
SUBDIR += py-xmltools
SUBDIR += py2html
diff --git a/textproc/py-wordnet/Makefile b/textproc/py-wordnet/Makefile
new file mode 100644
index 000000000000..0014d0f9e66c
--- /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 000000000000..2297aafd0767
--- /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 000000000000..baeb15904397
--- /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 000000000000..ebbbd3206b5e
--- /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 000000000000..aa76b01b95a2
--- /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