import wordnet

WordNet is a large lexical database of English, developed under the
direction of George A. Miller. Nouns, verbs, adjectives and adverbs
are grouped into sets of cognitive synonyms (synsets), each expressing
a distinct concept. Synsets are interlinked by means of conceptual-semantic
and lexical relations. The resulting network of meaningfully related
words and concepts can be navigated with the browser. WordNet is
also freely and publicly available for download. WordNet's structure
makes it a useful tool for computational linguistics and natural
language processing.

ok merdely@
This commit is contained in:
sthen 2007-09-12 00:32:01 +00:00
parent 0f532b2da9
commit 2618bb455e
8 changed files with 169 additions and 0 deletions

48
misc/wordnet/Makefile Normal file
View File

@ -0,0 +1,48 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/09/12 00:32:01 sthen Exp $
COMMENT= browser for a large lexical database of English
V= 3.0
DISTNAME= WordNet-$V
PKGNAME= wordnet-$V
CATEGORIES= misc
HOMEPAGE= http://wordnet.princeton.edu/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += X11 c m
MASTER_SITES= http://wordnet.princeton.edu/3.0/
LIB_DEPENDS+= tcl84:tcl-8.4.*:lang/tcl/8.4 \
tk84:tk-8.4.*:x11/tk/8.4
post-patch:
@perl -pi -e 's,%LOCALBASE%,${LOCALBASE},' ${WRKSRC}/{include/wn.h,src/wnb}
@perl -pi -e 's,/usr/local/WordNet-3.0,${PREFIX}/share/wordnet,; \
s,([0-9])WN,$$1,g' \${WRKSRC}/doc/man/*.[1-9]
CONFIGURE_STYLE= simple
CONFIGURE_ARGS= --prefix='${PREFIX}/share/wordnet' \
--exec-prefix='${PREFIX}' \
--sysconfdir='${SYSCONFDIR}' \
--mandir='${PREFIX}/man' \
--includedir='${PREFIX}/include' \
--with-tcl=${LOCALBASE}/lib/tcl8.4 \
--with-tk=${LOCALBASE}/lib/tk8.4
CFLAGS+= -I${LOCALBASE}/include/tcl8.4 \
-I${LOCALBASE}/include/tk8.4
CONFIGURE_ENV+= CFLAGS="${CFLAGS}"
NO_REGRESS= Yes
.include <bsd.port.mk>

5
misc/wordnet/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (WordNet-3.0.tar.gz) = jpbG9rp3Y/q4FDwWQBziSw==
RMD160 (WordNet-3.0.tar.gz) = Ys3NSDy/wfRWaR9P2Oe6FQgBV34=
SHA1 (WordNet-3.0.tar.gz) = jdVnYygNnti8E/YuL7JMD+Awx2M=
SHA256 (WordNet-3.0.tar.gz) = ZA2yeclJqI9h+FHdVOu7ItAD+LkLhSZwQu+Fo3gdOlI=
SIZE (WordNet-3.0.tar.gz) = 11537239

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-doc_Makefile_in,v 1.1.1.1 2007/09/12 00:32:01 sthen Exp $
--- doc/Makefile.in.orig Tue Sep 11 10:51:44 2007
+++ doc/Makefile.in Tue Sep 11 10:51:59 2007
@@ -135,7 +135,8 @@ sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-SUBDIRS = html man pdf ps
+#SUBDIRS = html man pdf ps
+SUBDIRS = man
all: all-recursive
.SUFFIXES:

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-include_Makefile_in,v 1.1.1.1 2007/09/12 00:32:01 sthen Exp $
--- include/Makefile.in.orig Tue Sep 11 11:34:29 2007
+++ include/Makefile.in Tue Sep 11 11:34:39 2007
@@ -147,7 +147,7 @@ sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
include_HEADERS = wn.h
-SUBDIRS = tk
+#SUBDIRS = tk
all: all-recursive
.SUFFIXES:

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-include_wn_h,v 1.1.1.1 2007/09/12 00:32:01 sthen Exp $
--- include/wn.h.orig Tue Sep 11 11:38:01 2007
+++ include/wn.h Tue Sep 11 11:39:37 2007
@@ -29,7 +29,7 @@
#else
#define DICTDIR "/dict"
#ifndef DEFAULTPATH
-#define DEFAULTPATH "/usr/local/WordNet-3.0/dict"
+#define DEFAULTPATH "%LOCALBASE%/share/wordnet/dict"
#endif
#define DATAFILE "%s/data.%s"
#define INDEXFILE "%s/index.%s"

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_wnb,v 1.1.1.1 2007/09/12 00:32:01 sthen Exp $
--- src/wnb.orig Tue Sep 11 11:41:42 2007
+++ src/wnb Tue Sep 11 11:41:47 2007
@@ -103,7 +103,7 @@ set version "3.0"
if {$tcl_platform(platform) == "unix"} {
if {[lsearch -exact [array names env] WNHOME] == -1} {
- set resourcedir "/usr/local/WordNet-3.0/lib/wnres"
+ set resourcedir "%LOCALBASE%/share/wordnet/lib/wnres"
} else {
set resourcedir "$env(WNHOME)/lib/wnres"
}

9
misc/wordnet/pkg/DESCR Normal file
View File

@ -0,0 +1,9 @@
WordNet is a large lexical database of English, developed under the
direction of George A. Miller. Nouns, verbs, adjectives and adverbs
are grouped into sets of cognitive synonyms (synsets), each expressing
a distinct concept. Synsets are interlinked by means of conceptual-semantic
and lexical relations. The resulting network of meaningfully related
words and concepts can be navigated with the browser. WordNet is
also freely and publicly available for download. WordNet's structure
makes it a useful tool for computational linguistics and natural
language processing.

58
misc/wordnet/pkg/PLIST Normal file
View File

@ -0,0 +1,58 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/09/12 00:32:01 sthen Exp $
bin/wishwn
bin/wn
bin/wnb
include/wn.h
lib/libWN.a
@man man/man1/grind.1
@man man/man1/wn.1
@man man/man1/wnb.1
@man man/man1/wnintro.1
@man man/man3/binsrch.3
@man man/man3/morph.3
@man man/man3/wnintro.3
@man man/man3/wnsearch.3
@man man/man3/wnutil.3
@man man/man5/cntlist.5
@man man/man5/lexnames.5
@man man/man5/senseidx.5
@man man/man5/wndb.5
@man man/man5/wninput.5
@man man/man5/wnintro.5
@man man/man7/morphy.7
@man man/man7/uniqbeg.7
@man man/man7/wngloss.7
@man man/man7/wngroups.7
@man man/man7/wnintro.7
@man man/man7/wnlicens.7
@man man/man7/wnpkgs.7
@man man/man7/wnstats.7
share/wordnet/
share/wordnet/dict/
share/wordnet/dict/adj.exc
share/wordnet/dict/adv.exc
share/wordnet/dict/cntlist
share/wordnet/dict/cntlist.rev
share/wordnet/dict/data.adj
share/wordnet/dict/data.adv
share/wordnet/dict/data.noun
share/wordnet/dict/data.verb
share/wordnet/dict/frames.vrb
share/wordnet/dict/index.adj
share/wordnet/dict/index.adv
share/wordnet/dict/index.noun
share/wordnet/dict/index.sense
share/wordnet/dict/index.verb
share/wordnet/dict/lexnames
share/wordnet/dict/log.grind.3.0
share/wordnet/dict/noun.exc
share/wordnet/dict/sentidx.vrb
share/wordnet/dict/sents.vrb
share/wordnet/dict/verb.Framestext
share/wordnet/dict/verb.exc
share/wordnet/lib/
share/wordnet/lib/wnres/
share/wordnet/lib/wnres/license.txt
share/wordnet/lib/wnres/wn.xbm
share/wordnet/lib/wnres/wnb.man
share/wordnet/lib/wnres/wngloss.man