academic/WordNet: Updated for version 3.0
This commit is contained in:
parent
828f3f65bc
commit
150a22c8ea
|
@ -6,12 +6,3 @@ 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.
|
||||
|
||||
WordNet requires Tcl/Tk, which is included with Slackware 12.1.
|
||||
|
||||
Since this package does not install to the default location, the WordNet
|
||||
browser (wnb) requires the enviornmental variable WNHOME=/usr to be set,
|
||||
so that it can find the database files. To do this for bash, you can add
|
||||
"export WNHOME=/usr" to the end of ~/.bashrc, without the quotes.
|
||||
|
||||
|
||||
|
|
|
@ -18,10 +18,13 @@ OUTPUT=${OUTPUT:-/tmp}
|
|||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -30,7 +33,7 @@ rm -rf $PKG
|
|||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
|
@ -43,17 +46,27 @@ CFLAGS="$SLKCFLAGS" \
|
|||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--exec-prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man
|
||||
--mandir=/usr/man \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
# Make sure WNHOME is set in the users' environments
|
||||
mkdir -p $PKG/etc/profile.d
|
||||
cat $CWD/profile.d/WordNet.sh > $PKG/etc/profile.d/WordNet.sh
|
||||
cat $CWD/profile.d/WordNet.csh > $PKG/etc/profile.d/WordNet.csh
|
||||
chmod 0755 $PKG/etc/profile.d/*
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
( cd $PKG/usr/man
|
||||
|
@ -62,11 +75,11 @@ make install DESTDIR=$PKG
|
|||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a doc/html doc/ps doc/pdf $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
( cd $PKG/usr/doc ; mv html pdf ps $PRGNAM-$VERSION )
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
PRGNAM="WordNet"
|
||||
VERSION="3.0"
|
||||
HOMEPAGE="http://wordnet.princeton.edu/"
|
||||
DOWNLOAD="http://wordnet.princeton.edu/3.0/WordNet-3.0.tar.gz"
|
||||
MD5SUM="8e96c6f6ba7763fab8143c16401ce24b"
|
||||
DOWNLOAD="http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.bz2"
|
||||
MD5SUM="89b4db7c6840ce69a8e315a3f83d996b"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Michael Gabilondo"
|
||||
EMAIL="mgabilo{at}gmail{dot}com"
|
||||
APPROVED="David Somero"
|
||||
APPROVED="dsomero"
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/csh
|
||||
setenv WNHOME /usr
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
WNHOME=/usr
|
||||
export WNHOME
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
WordNet: WordNet (large lexical database of English)
|
||||
WordNet:
|
||||
WordNet: WordNet is a large lexical database of English, developed under the
|
||||
WordNet: direction of George A. Miller. Nouns, verbs, adjectives and adverbs
|
||||
WordNet: are grouped into sets of cognitive synonyms (synsets), each
|
||||
|
@ -16,4 +17,3 @@ WordNet: of meaningfully related words and concepts can be navigated with the
|
|||
WordNet: browser. WordNet's structure makes it a useful tool for computational
|
||||
WordNet: linguistics and natural language processing.
|
||||
WordNet:
|
||||
WordNet: Homepage: http://wordnet.princeton.edu/
|
||||
|
|
Loading…
Reference in New Issue