freebsd-ports/textproc/wordnet/scripts/configure
Mikhail Teterin 8ebfc55a6e Finally update from 2.0 to 2.1. "Heavy Patching Zone" ensures WARNS=5
cleanliness in the main library (diffs to be sent to the vendor as in
the past).

The installed library is now called libWN, as vendor's build would call
it, rather than libwn2, as the previous version of the port called it.
This may upset the client port of p5 -- the maintainer is notified and
awaits this commit.

PR:	ports/90323
Submitted by: clsung
2006-01-16 03:48:42 +00:00

38 lines
901 B
Bash

#!/bin/sh
for mf in ${FILESDIR}/*Makefile ; do \
dir=`basename $mf | sed -e s%Makefile%% -e 's%\.%/%g'`
case "$dir" in
"man/")
dir=doc/man/
;;
"src/lib/")
dir=lib/
;;
"src/wn/")
dir=src/
;;
"src/wnb/")
dir=lib/wnres/
;;
esac
dir=${WRKSRC}/$dir
test -f ${dir}Makefile.orig && continue
test -f ${dir}Makefile && mv ${dir}Makefile ${dir}Makefile.orig
cp -p $mf ${dir}Makefile
done
patch -d ${WRKSRC}/src -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
EOPATCH