1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-26 21:17:40 +00:00
freebsd-ports/textproc/wordnet/scripts/configure
Steve Price 2a0e4eb412 Adding wordnet version 1.6.
WordNet is a powerful lexical  reference system that combines aspects of
dictionaries  and thesauri  with  current  psycholinguistic theories  of
human lexical memory. It is produced by the Cognitive Science Laboratory
at Princeton University, under the direction of Professor George Miller.

PR:		17016
Submitted by:	Mikhail Teterin <mi@aldan.algebra.com>
2000-05-01 02:40:51 +00:00

27 lines
858 B
Bash

#!/bin/sh
for mf in ${FILESDIR}/*Makefile ; do \
dir=${WRKSRC}/`basename $mf | sed -e s%Makefile%% -e 's%\.%/%g'` ; \
test -f ${dir}Makefile.orig && continue
mv ${dir}Makefile ${dir}Makefile.orig ; \
cp -p $mf ${dir}Makefile ; \
done
patch -d ${WRKSRC}/src/wnb -p << EOPATCH
Configuring the wnb script to call the right wish-binary directly
--- wnb Sun Feb 22 12:49:56 1998
+++ wnb Sat Feb 26 17:41:06 2000
@@ -1,6 +1,3 @@
-#!/bin/sh
-# the following line is evaluated by sh but ignored by tcl \\
-wishwn "\$0" "\$@" &
-# the following line is evaluated by sh but ignored by tcl \\
-exec true
-# the preceding lines make this script self-executing on unix systems
+#!${PREFIX}/bin/wish${TCL_DVER}
+
+package require Wordnet
@@ -30 +27 @@
- set resourcedir "/usr/local/wordnet1.6/lib/wnres"
+ set resourcedir "${PREFIX}/share/wordnet-1.6/wnres"
EOPATCH