All,
Testing kthesaurus functionality, I built the optional dependency with latest WordNet-3.0 and then updated library database files to the latest 3.1 version of the files. (3.0 is last release - 3.1 is a database only update). It works very well and adds a whole new aspect of thesaurus functionality. It provides the synonymous words in sentence context. Here a two screenshots of both the generic kthesaurus output and the WordNet extension:
http://www.3111skyline.com/dl/dt/trinity/ss/koffice-kthesaurus.jpg
http://www.3111skyline.com/dl/dt/trinity/ss/koffice-kthesaurus-wordnet.jpg
If you want to include WordNet in your build, you will need 'tk' as a dependency, then you will need:
WordNet-3.0:
http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.bz2
3.1 Database Update:
http://wordnetcode.princeton.edu/wn3.1.dict.tar.gz
Then build with:
./configure --prefix=/usr --mandir=/usr/share/man
## change screwy location of dictionary and other dirs:
sed 's:#define DEFAULTPATH "/usr/dict":#define DEFAULTPATH "/usr/share/wordnet/dict":' -i config.h sed 's:"/usr/local/WordNet-3.0/lib/wnres":"/usr/share/wordnet/wnres":' -i src/wnb make CFLAGS="$CFLAGS -DUSE_INTERP_RESULT"
The continue with packaging (moving default dirs to logical place and update to 3.1 database files):
make DESTDIR=$pkgdir install mv $pkgdir/usr/doc $pkgdir/usr/share/wordnet mv $pkgdir/usr/lib/wnres $pkgdir/usr/share/wordnet/wnres rm -fr $pkgdir/usr/include/tk
# Replace dictionary files cp -a $srcdir/dict/ $pkgdir/usr/share/wordnet/dict rm -fr $pkgdir/usr/dict
install -D -m644 $srcdir/wordnet.desktop $pkgdir/usr/share/applications/wordnet.desktop install -D -m644 $srcdir/wordnet.png $pkgdir/usr/share/pixmaps/wordnet.png install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
Works well. About a 12M package and 50M install.