From owner-freebsd-ports Sat Feb 26 23:50:20 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id F16C437B5EC for ; Sat, 26 Feb 2000 23:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id XAA31300; Sat, 26 Feb 2000 23:50:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from kot.ne.mediaone.net (kot.ne.mediaone.net [24.218.15.190]) by hub.freebsd.org (Postfix) with ESMTP id 7971B37B577 for ; Sat, 26 Feb 2000 23:44:22 -0800 (PST) (envelope-from mi@kot.ne.mediaone.net) Received: from rtfm.newton (mi@rtfm.newton [10.10.0.1]) by kot.ne.mediaone.net (8.9.3/8.9.1) with ESMTP id CAA37223; Sun, 27 Feb 2000 02:43:43 -0500 (EST) Received: (from mi@localhost) by rtfm.newton (8.9.3/8.9.3) id CAA93389; Sun, 27 Feb 2000 02:43:43 -0500 (EST) (envelope-from mi@kot.ne.mediaone.net) Message-Id: <200002270743.CAA93389@rtfm.newton> Date: Sun, 27 Feb 2000 02:43:43 -0500 (EST) From: Mikhail Teterin Reply-To: mi@aldan.algebra.com To: FreeBSD-gnats-submit@freebsd.org Cc: mark@video-collage.com X-Send-Pr-Version: 3.2 Subject: ports/17016: New port -- Wordnet -- dictionary and thesauri package Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17016 >Category: ports >Synopsis: New port -- Wordnet -- dictionary and thesauri package >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Feb 26 23:50:02 PST 2000 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 3.4-STABLE i386 >Organization: Virtual Estates, Inc. >Environment: >Description: See http://www.cogsci.princeton.edu/~wn/ for details of the software. The port provides its own series of Makefiles, which should work on any *BSD system (using the bsd.*.mk files). The port builds a separate TCL package with a run-time loadable library and the Tcl/Tk browser (wnb) is modified to "package require" the package. Some of the C functions in the TCL package had to be fixed for Tcl 8.x The port should respect the local settings for CC, CFLAGS, PREFIX. I also tried to make it use the zlib functions (the dictionaries are HUGE plain text files -- highly compressable), but the software uses fseek a lot and the performance was terrible. patches/patch-official contains the diff for the newer version of search.c as posted (in its entirety) on ftp://ftp.cogsci.princeton.edu/pub/wordnet/bugfixes/ >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # wordnet # wordnet/Makefile # wordnet/patches # wordnet/patches/patch-aa # wordnet/patches/patch-ab # wordnet/patches/patch-ac # wordnet/patches/patch-ad # wordnet/patches/patch-official # wordnet/files # wordnet/files/Makefile # wordnet/files/include.Makefile # wordnet/files/man.Makefile # wordnet/files/src.Makefile # wordnet/files/src.lib.Makefile # wordnet/files/src.wn.Makefile # wordnet/files/src.wnb.Makefile # wordnet/files/dict.Makefile # wordnet/files/md5 # wordnet/pkg # wordnet/pkg/PLIST # wordnet/pkg/COMMENT # wordnet/pkg/DESCR # wordnet/scripts # wordnet/scripts/configure # echo c - wordnet mkdir -p wordnet > /dev/null 2>&1 echo x - wordnet/Makefile sed 's/^X//' >wordnet/Makefile << 'END-of-wordnet/Makefile' X# New ports collection makefile for: wordnet-1.6 X# Version required: 1.6 X# Date created: 26 Feb 2000 X# Whom: Mikhail Teterin X# X# $FreeBSD$ X# X XDISTNAME= wn16.unix XPKGNAME= wordnet-1.6 XCATEGORIES= textproc XMASTER_SITES= ftp://ftp.cogsci.princeton.edu/pub/wordnet/ \ X ftp://ftp.ims.uni-stuttgart.de/pub/WordNet/1.6/ X XMAINTAINER= mi@aldan.algebra.com X XMAN1= wn.1 wnb.1 wnintro.1 XMAN3= binsrch.3 morph.3 wnintro.3 wnsearch.3 wnutil.3 XMAN5= cntlist.5 glossidx.5 lexnames.5 senseidx.5 taglist.5 \ X wndb.5 wninput.5 wnintro.5 XMAN7= morphy.7 uniqbeg.7 wngloss.7 wngroups.7 wnintro.7 \ X wnlicens.7 wnpkgs.7 wnstats.7 XMANCOMPRESSED= maybe X XWRKSRC= ${WRKDIR}/${PKGNAME} X XTCL_DVER= 8.2 XSCRIPTS_ENV+= TCL_DVER=${TCL_DVER} XMAKE_ENV+= TCL_DVER=${TCL_DVER} XPLIST_SUB+= TCL_DVER=${TCL_DVER} X# Parallel build is faster even on a single cpu machine: XMAKE_ARGS= -j 2 X Xpost-extract: X # bin and lib contain useless pre-built binaries: X ${RM} -rf ${WRKSRC}/bin ${WRKSRC}/lib X X.include END-of-wordnet/Makefile echo c - wordnet/patches mkdir -p wordnet/patches > /dev/null 2>&1 echo x - wordnet/patches/patch-aa sed 's/^X//' >wordnet/patches/patch-aa << 'END-of-wordnet/patches/patch-aa' X--- include/wnconsts.h Fri Feb 27 13:54:53 1998 X+++ include/wnconsts.h Sat Feb 26 16:11:51 2000 X@@ -16,2 +16,6 @@ X-#define DEFAULTPATH "/usr/local/wordnet1.6/dict" X-#define DEFAULTBIN "/usr/local/wordnet1.6/bin" X+#ifndef DEFAULTPATH X+#define DEFAULTPATH "/usr/local/share/wordnet-1.6" X+#endif X+#ifndef DEFAULTBIN X+#define DEFAULTBIN "/usr/local/bin" X+#endif END-of-wordnet/patches/patch-aa echo x - wordnet/patches/patch-ab sed 's/^X//' >wordnet/patches/patch-ab << 'END-of-wordnet/patches/patch-ab' X--- src/lib/wnutil.c Thu Feb 19 12:15:09 1998 X+++ src/lib/wnutil.c Sat Feb 26 16:14:08 2000 X@@ -10,3 +10,3 @@ X #ifdef UNIX X-#include X+#include X #endif END-of-wordnet/patches/patch-ab echo x - wordnet/patches/patch-ac sed 's/^X//' >wordnet/patches/patch-ac << 'END-of-wordnet/patches/patch-ac' X--- src/wnb/stubs.c Fri Nov 14 17:01:44 1997 X+++ src/wnb/stubs.c Sat Feb 26 20:09:19 2000 X@@ -24,3 +24,2 @@ X #include X-#include X #include X@@ -37,5 +36,4 @@ X int wn_findvalidsearches (ClientData clientData, Tcl_Interp *interp, X- int argc, char *argv[]) { X+ int argc, Tcl_Obj *objv[]) { X unsigned int bitfield; X- char bitfieldstr[32]; X char *morph; X@@ -43,9 +41,10 @@ X if (argc != 3) { X- interp -> result = X- "usage: findvalidsearches searchword partofspeechnum"; X+ Tcl_WrongNumArgs(interp, 1, objv, X+ "findvalidsearches searchword partofspeechnum"); X return TCL_ERROR; X } X- pos = atoi (argv[2]); X- bitfield = is_defined (argv[1], pos); X- if ((morph = morphstr (argv[1], pos)) != NULL) { X+ if (Tcl_GetIntFromObj(interp, objv[2], &pos) != TCL_OK) X+ return TCL_ERROR; X+ bitfield = is_defined (Tcl_GetString(objv[1]), pos); X+ if ((morph = morphstr (Tcl_GetString(objv[1]), pos)) != NULL) { X do { X@@ -54,4 +53,3 @@ X } X- sprintf (bitfieldstr, "%u", bitfield); X- interp -> result = bitfieldstr; X+ Tcl_SetObjResult(interp, Tcl_NewIntObj(bitfield)); X return TCL_OK; X@@ -67,14 +65,11 @@ X int wn_bit (ClientData clientData, Tcl_Interp *interp, X- int argc, char *argv[]) { X- unsigned int bitfield; X- char bitfieldstr[32]; X+ int argc, Tcl_Obj *objv[]) { X int whichbit; X if (argc != 2) { X- interp -> result = "usage: bit bitnum"; X+ Tcl_WrongNumArgs(interp, 1, objv, "bitnum"); X return TCL_ERROR; X } X- whichbit = atoi (argv[1]); X- bitfield = bit (whichbit); X- sprintf (bitfieldstr, "%u", bitfield); X- interp -> result = bitfieldstr; X+ if (Tcl_GetIntFromObj(interp, objv[1], &whichbit) != TCL_OK) X+ return TCL_ERROR; X+ Tcl_SetObjResult(interp, Tcl_NewIntObj(bit(whichbit))); X return TCL_OK; X@@ -275,5 +270,5 @@ X wninit (); X- Tcl_CreateCommand (interp, "findvalidsearches", (void *) X+ Tcl_CreateObjCommand (interp, "findvalidsearches", (void *) X wn_findvalidsearches, (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); X- Tcl_CreateCommand (interp, "bit", (void *) wn_bit, (ClientData) NULL, X+ Tcl_CreateObjCommand (interp, "bit", (void *) wn_bit, (ClientData) NULL, X (Tcl_CmdDeleteProc *) NULL); X@@ -295,3 +290,3 @@ X (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); X- return TCL_OK; X+ return Tcl_PkgProvide(interp, "Wordnet", "1.6"); X } END-of-wordnet/patches/patch-ac echo x - wordnet/patches/patch-ad sed 's/^X//' >wordnet/patches/patch-ad << 'END-of-wordnet/patches/patch-ad' X--- src/wnb/wnb Sun Feb 22 12:49:56 1998 X+++ src/wnb/wnb Sat Feb 26 19:52:42 2000 X@@ -629,2 +626,6 @@ X -text "Based upon an earlier X Window version by\nBrian Gustafson."] \ X+ [label .aboutbox.top.right.textmi \ X+ -anchor w \ X+ -justify left \ X+ -text "Tuned for Tcl8.x and ported to FreeBSD by\nMikhail Teterin."] \ X [label .aboutbox.top.right.text5 \ END-of-wordnet/patches/patch-ad echo x - wordnet/patches/patch-official sed 's/^X//' >wordnet/patches/patch-official << 'END-of-wordnet/patches/patch-official' X--- src/lib/search.c Fri Nov 7 11:27:45 1997 X+++ src/lib/search.c Fri Aug 7 12:57:08 1998 X@@ -19,3 +19,3 @@ X X-static char *Id = "$Id: search.c,v 1.134 1997/11/07 16:27:36 wn Exp $"; X+static char *Id = "$Id: search.c,v 1.136 1998/08/07 17:51:32 wn Exp $"; X X@@ -448,2 +448,7 @@ X X+ /* Can't do earlier - calls indexlookup which messes up strtok calls */ X+ X+ for (i = 0; i < synptr->wcount; i++) X+ synptr->wnsns[i] = getsearchsense(synptr, i + 1); X+ X return(synptr); X@@ -588,3 +593,3 @@ X sprintf(tbuf, " (Sense %d)\n", X- getsearchsense(cursyn, synptr->pto[i])); X+ cursyn->wnsns[synptr->pto[i] - 1]); X printsynset(prefix, cursyn, tbuf, DEFOFF, synptr->pto[i], X@@ -1775,2 +1780,8 @@ X wnresults.numforms++; X+ X+ if (ptrtyp == COORDS) { /* clean up by removing hypernym */ X+ lastsyn = synlist->ptrlist; X+ synlist->ptrlist = lastsyn->ptrlist; X+ free_synset(lastsyn); X+ } X } X@@ -1781,3 +1792,3 @@ X /* Recursive search algorithm to trace a pointer tree and return results X- in linked list of data structures. */ X+ in linked list of data structures. */ X X@@ -1785,4 +1796,5 @@ X { X- int i; X+ int i, j; X SynsetPtr cursyn, synlist = NULL, lastsyn = NULL; X+ int tstptrtyp, docoords; X X@@ -1805,5 +1817,13 @@ X } X- X+ X+ if (ptrtyp == COORDS) { X+ tstptrtyp = HYPERPTR; X+ docoords = 1; X+ } else { X+ tstptrtyp = ptrtyp; X+ docoords = 0; X+ } X+ X for (i = 0; i < synptr->ptrcount; i++) { X- if((synptr->ptrtyp[i] == ptrtyp) && X+ if((synptr->ptrtyp[i] == tstptrtyp) && X ((synptr->pfrm[i] == 0) || X@@ -1814,5 +1834,2 @@ X X- for (i = 0; i < cursyn->wcount; i++) X- cursyn->wnsns[i] = getsearchsense(cursyn, i + 1); X- X if (lastsyn) X@@ -1828,3 +1845,5 @@ X (depth+1)); X- } X+ } else if (docoords) { X+ cursyn->ptrlist = traceptrs_ds(cursyn, HYPOPTR, NOUN, 0); X+ } X } X@@ -2193,3 +2212,3 @@ X if (wnsnsflag) X- sprintf(buf + strlen(buf), "#%d", getsearchsense(synptr, wdnum + 1)); X+ sprintf(buf + strlen(buf), "#%d", synptr->wnsns[wdnum]); X X@@ -2246,3 +2265,3 @@ X sprintf(tbuf + strlen(tbuf), "#%d", X- getsearchsense(psynptr, wdoff + 1)); X+ psynptr->wnsns[wdoff]); X if (!first) X@@ -2333,2 +2352,9 @@ X $Log: search.c,v $ X+ * Revision 1.136 1998/08/07 17:51:32 wn X+ * added COORDS to traceptrs_ds and findtheinfo_ds X+ * fixed getsearchsense code to only happen in parse_synset X+ * X+ * Revision 1.135 1998/08/07 13:04:24 wn X+ * *** empty log message *** X+ * X * Revision 1.134 1997/11/07 16:27:36 wn END-of-wordnet/patches/patch-official echo c - wordnet/files mkdir -p wordnet/files > /dev/null 2>&1 echo x - wordnet/files/Makefile sed 's/^X//' >wordnet/files/Makefile << 'END-of-wordnet/files/Makefile' XSUBDIR= include \ X dict \ X src \ X man X X.include END-of-wordnet/files/Makefile echo x - wordnet/files/include.Makefile sed 's/^X//' >wordnet/files/include.Makefile << 'END-of-wordnet/files/include.Makefile' XWN_INSTALLDIR = ${PREFIX}/include/wordnet-1.6 X XWN_FILES= license.h setutil.h wn.h wnconsts.h wnglobal.h \ X wnhelp.h wnrtl.h wntypes.h X Xall: $(WN_FILES) X X${WN_INSTALLDIR}: X mkdir -p ${WN_INSTALLDIR} X Xinstall: ${WN_INSTALLDIR} X ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ X ${WN_FILES} ${WN_INSTALLDIR}/ X XNOOBJ= noobj X X.include END-of-wordnet/files/include.Makefile echo x - wordnet/files/man.Makefile sed 's/^X//' >wordnet/files/man.Makefile << 'END-of-wordnet/files/man.Makefile' XMANDIR= ${PREFIX}/man/man X XMAN1= wn.1 wnb.1 wnintro.1 XMAN3= binsrch.3 morph.3 wnintro.3 wnsearch.3 wnutil.3 XMAN5= cntlist.5 glossidx.5 lexnames.5 senseidx.5 taglist.5 \ X wndb.5 wninput.5 wnintro.5 XMAN7= morphy.7 uniqbeg.7 wngloss.7 wngroups.7 wnintro.7 \ X wnlicens.7 wnpkgs.7 wnstats.7 X X.include END-of-wordnet/files/man.Makefile echo x - wordnet/files/src.Makefile sed 's/^X//' >wordnet/files/src.Makefile << 'END-of-wordnet/files/src.Makefile' XSUBDIR= lib wn wnb X X.include END-of-wordnet/files/src.Makefile echo x - wordnet/files/src.lib.Makefile sed 's/^X//' >wordnet/files/src.lib.Makefile << 'END-of-wordnet/files/src.lib.Makefile' XSRCS= binsrch.c morph.c search.c setutil.c wnglobal.c \ X wnhelp.c wnrtl.c wnutil.c X XCFLAGS+= -DUNIX -DDEFAULTPATH="\"${PREFIX}/share/wordnet-1.6\"" \ X -DDEFAULTBIN="\"${PREFIX}/bin\"" -Werror X XCFLAGS+= -I${.CURDIR}/../../include X XLIB= wn1 XSHLIB_MAJOR= 6 XSHLIB_MINOR= 0 XNOPROFILE= True X XLIBDIR= ${PREFIX}/lib X X.include END-of-wordnet/files/src.lib.Makefile echo x - wordnet/files/src.wn.Makefile sed 's/^X//' >wordnet/files/src.wn.Makefile << 'END-of-wordnet/files/src.wn.Makefile' XPROG= wn XNOMAN= True # man pages installed separately X XCFLAGS+= -DUNIX -DDEFAULTPATH="\"${PREFIX}/share/wordnet-1.6\"" \ X -DDEFAULTBIN="\"${PREFIX}/bin\"" X XCFLAGS+= -I${.CURDIR}/../../include XLDADD+= -L../lib -lwn1 X XBINDIR= ${PREFIX}/bin X X.include END-of-wordnet/files/src.wn.Makefile echo x - wordnet/files/src.wnb.Makefile sed 's/^X//' >wordnet/files/src.wnb.Makefile << 'END-of-wordnet/files/src.wnb.Makefile' XPREFIX?= /usr/local XTCL_DVER?= 8.2 XTCL_VER= ${TCL_DVER:S/.//g} XTCL_INCDIR?= ${PREFIX}/include/tcl${TCL_DVER} X XCFLAGS+= -DUNIX -DDEFAULTPATH="\"${PREFIX}/share/wordnet-1.6\"" \ X -DDEFAULTBIN="\"${PREFIX}/bin\"" X XCFLAGS+= -I${.CURDIR}/../../include -I$(TCL_INCDIR) X XLDADD= -L../lib -lwn1 -L${PREFIX}/lib -ltcl${TCL_VER} -ltk${TCL_VER} X XLIB= tclwn1 XSHLIB_MAJOR= 6 XSHLIB_MINOR= 0 XSRCS= stubs.c X XINTERNALLIB= True # To avoid building the useless static library X Xall: ${SHLIB_NAME} pkgIndex.tcl X XpkgIndex.tcl: X echo "package ifneeded Wordnet 1.6 [list load \ X [file join ${PREFIX}/lib ${SHLIB_NAME}] Wordnet]" \ X > pkgIndex.tcl X XLIBDIR= ${PREFIX}/lib XRESDIR= ${PREFIX}/share/wordnet-1.6/wnres X X${LIBDIR} ${RESDIR} ${LIBDIR}/tcl${TCL_DVER}/Wordnet: X mkdir -p ${.TARGET} X Xbeforeinstall: ${LIBDIR} ${RESDIR} ${LIBDIR}/tcl${TCL_DVER}/Wordnet X ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ X pkgIndex.tcl ${LIBDIR}/tcl${TCL_DVER}/Wordnet X ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ X ${.CURDIR}/../lib/wnres/*.* ${RESDIR} X ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 755 \ X wnb ${PREFIX}/bin X X.include END-of-wordnet/files/src.wnb.Makefile echo x - wordnet/files/dict.Makefile sed 's/^X//' >wordnet/files/dict.Makefile << 'END-of-wordnet/files/dict.Makefile' XWN_INSTALLDIR= ${PREFIX}/share/wordnet-1.6 XWN_FILES= data.noun data.verb data.adj data.adv index.noun \ X index.verb index.adj index.adv noun.exc verb.exc \ X adj.exc adv.exc cousin.exc cousin.tops index.sense \ X cntlist lexnames index.gloss sentidx.vrb sents.vrb \ X stoplist.pl X Xall: $(WN_FILES) X X${WN_INSTALLDIR}: X mkdir -p ${WN_INSTALLDIR} X X.for f in ${WN_FILES} XINSTALLED+= ${WN_INSTALLDIR}/$f X X${WN_INSTALLDIR}/$f: $f X ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} \ X $f ${WN_INSTALLDIR}/$f X.endfor X Xinstall: ${WN_INSTALLDIR} ${INSTALLED} X XNOOBJ= noobj X.include END-of-wordnet/files/dict.Makefile echo x - wordnet/files/md5 sed 's/^X//' >wordnet/files/md5 << 'END-of-wordnet/files/md5' XMD5 (wn16.unix.tar.gz) = cb6b9cedd139cacb5928c4fb49b4b7a6 XMD5 (semcor16.tar.gz) = 1a635e2ff96145c4308188e056448deb END-of-wordnet/files/md5 echo c - wordnet/pkg mkdir -p wordnet/pkg > /dev/null 2>&1 echo x - wordnet/pkg/PLIST sed 's/^X//' >wordnet/pkg/PLIST << 'END-of-wordnet/pkg/PLIST' Xbin/wnb Xbin/wn Xlib/libwn1.so.6 Xlib/libwn1.so Xlib/libtclwn1.so.6 Xlib/libtclwn1.so Xlib/tcl%%TCL_DVER%%/Wordnet/pkgIndex.tcl Xshare/wordnet-1.6/adj.exc Xshare/wordnet-1.6/adv.exc Xshare/wordnet-1.6/cntlist Xshare/wordnet-1.6/cousin.exc Xshare/wordnet-1.6/cousin.tops Xshare/wordnet-1.6/data.adj Xshare/wordnet-1.6/data.adv Xshare/wordnet-1.6/data.noun Xshare/wordnet-1.6/data.verb Xshare/wordnet-1.6/index.adj Xshare/wordnet-1.6/index.adv Xshare/wordnet-1.6/index.gloss Xshare/wordnet-1.6/index.noun Xshare/wordnet-1.6/index.sense Xshare/wordnet-1.6/index.verb Xshare/wordnet-1.6/lexnames Xshare/wordnet-1.6/noun.exc Xshare/wordnet-1.6/sentidx.vrb Xshare/wordnet-1.6/sents.vrb Xshare/wordnet-1.6/stoplist.pl Xshare/wordnet-1.6/verb.exc Xshare/wordnet-1.6/wnres/license.txt Xshare/wordnet-1.6/wnres/wn.xbm Xshare/wordnet-1.6/wnres/wnb.man Xshare/wordnet-1.6/wnres/wngloss.man X@dirrm lib/tcl%%TCL_DVER%%/Wordnet X@dirrm share/wordnet-1.6/wnres X@dirrm share/wordnet-1.6 END-of-wordnet/pkg/PLIST echo x - wordnet/pkg/COMMENT sed 's/^X//' >wordnet/pkg/COMMENT << 'END-of-wordnet/pkg/COMMENT' XDictionaries and thesauri with devel. libraries (C, TCL) and browsers END-of-wordnet/pkg/COMMENT echo x - wordnet/pkg/DESCR sed 's/^X//' >wordnet/pkg/DESCR << 'END-of-wordnet/pkg/DESCR' XWordNet is a powerful lexical reference system that combines aspects of Xdictionaries and thesauri with current psycholinguistic theories of Xhuman lexical memory. It is produced by the Cognitive Science Laboratory Xat Princeton University, under the direction of Professor George Miller. X XIn WordNet, words are defined and grouped into various related sets of Xsynonyms. Not only is the system valuable to the casual user as a Xpowerful thesaurus and dictionary, but also to the researcher as one of Xthe few freely available, lexical databases. WordNet is available via an Xon-line interface and also as easy-to-compile C source code for Unix. END-of-wordnet/pkg/DESCR echo c - wordnet/scripts mkdir -p wordnet/scripts > /dev/null 2>&1 echo x - wordnet/scripts/configure sed 's/^X//' >wordnet/scripts/configure << 'END-of-wordnet/scripts/configure' X#!/bin/sh Xfor mf in ${FILESDIR}/*Makefile ; do \ X dir=${WRKSRC}/`basename $mf | sed -e s%Makefile%% -e 's%\.%/%g'` ; \ X test -f ${dir}Makefile.orig && continue X mv ${dir}Makefile ${dir}Makefile.orig ; \ X cp -p $mf ${dir}Makefile ; \ Xdone X Xpatch -d ${WRKSRC}/src/wnb -p << EOPATCH XConfiguring the wnb script to call the right wish-binary directly X--- wnb Sun Feb 22 12:49:56 1998 X+++ wnb Sat Feb 26 17:41:06 2000 X@@ -1,6 +1,3 @@ X-#!/bin/sh X-# the following line is evaluated by sh but ignored by tcl \\ X-wishwn "\$0" "\$@" & X-# the following line is evaluated by sh but ignored by tcl \\ X-exec true X-# the preceding lines make this script self-executing on unix systems X+#!${PREFIX}/bin/wish${TCL_DVER} X+ X+package require Wordnet X@@ -30 +27 @@ X- set resourcedir "/usr/local/wordnet1.6/lib/wnres" X+ set resourcedir "${PREFIX}/share/wordnet-1.6/wnres" XEOPATCH END-of-wordnet/scripts/configure exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message