Browse Source
academic/WordNet: New maintainer, fixes.
academic/WordNet: New maintainer, fixes.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>pull/249/head
committed by
Willy Sudiarto Raharjo
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
9 changed files with 171 additions and 37 deletions
-
2academic/WordNet/README
-
81academic/WordNet/WordNet.SlackBuild
-
6academic/WordNet/WordNet.info
-
9academic/WordNet/doinst.sh
-
2academic/WordNet/profile.d/WordNet.csh
-
3academic/WordNet/profile.d/WordNet.sh
-
90academic/WordNet/usr_share.diff
-
BINacademic/WordNet/wn.png
-
15academic/WordNet/wordnet.desktop
@ -1,10 +1,10 @@ |
|||
PRGNAM="WordNet" |
|||
VERSION="3.0" |
|||
HOMEPAGE="https://wordnet.princeton.edu/" |
|||
DOWNLOAD="http://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.bz2" |
|||
DOWNLOAD="https://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.bz2" |
|||
MD5SUM="89b4db7c6840ce69a8e315a3f83d996b" |
|||
DOWNLOAD_x86_64="" |
|||
MD5SUM_x86_64="" |
|||
REQUIRES="" |
|||
MAINTAINER="Glenn Becker" |
|||
EMAIL="glenn.becker@gmail.com" |
|||
MAINTAINER="B. Watson" |
|||
EMAIL="urchlay@slackware.uk" |
@ -0,0 +1,9 @@ |
|||
if [ -x /usr/bin/update-desktop-database ]; then |
|||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 |
|||
fi |
|||
|
|||
if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then |
|||
if [ -x /usr/bin/gtk-update-icon-cache ]; then |
|||
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 |
|||
fi |
|||
fi |
@ -1,2 +0,0 @@ |
|||
#!/bin/csh |
|||
setenv WNHOME /usr |
@ -1,3 +0,0 @@ |
|||
#!/bin/sh |
|||
WNHOME=/usr |
|||
export WNHOME |
@ -0,0 +1,90 @@ |
|||
diff -Naur WordNet-3.0/configure WordNet-3.0.patched/configure
|
|||
--- WordNet-3.0/configure 2007-01-20 14:59:45.000000000 -0500
|
|||
+++ WordNet-3.0.patched/configure 2024-08-31 17:12:29.805494808 -0400
|
|||
@@ -4286,7 +4286,7 @@
|
|||
|
|||
|
|||
cat >>confdefs.h <<_ACEOF |
|||
-#define DEFAULTPATH "$ac_prefix/dict"
|
|||
+#define DEFAULTPATH "$datadir/dict"
|
|||
_ACEOF |
|||
|
|||
|
|||
diff -Naur WordNet-3.0/dict/Makefile WordNet-3.0.patched/dict/Makefile
|
|||
--- WordNet-3.0/dict/Makefile 2007-01-20 16:21:51.000000000 -0500
|
|||
+++ WordNet-3.0.patched/dict/Makefile 2024-08-31 17:19:08.301457306 -0400
|
|||
@@ -136,7 +136,7 @@
|
|||
sharedstatedir = ${prefix}/com |
|||
sysconfdir = ${prefix}/etc |
|||
target_alias = |
|||
-dictdir = $(prefix)/dict
|
|||
+dictdir = $(datadir)/dict
|
|||
dict_DATA = adj.exc adv.exc cntlist cntlist.rev data.adj data.adv data.noun data.verb frames.vrb index.adj index.adv index.noun index.sense index.verb log.grind.3.0 noun.exc sentidx.vrb sents.vrb verb.Framestext verb.exc lexnames |
|||
all: all-am |
|||
|
|||
diff -Naur WordNet-3.0/dict/Makefile.am WordNet-3.0.patched/dict/Makefile.am
|
|||
--- WordNet-3.0/dict/Makefile.am 2006-12-18 16:30:07.000000000 -0500
|
|||
+++ WordNet-3.0.patched/dict/Makefile.am 2024-08-31 17:20:04.197452046 -0400
|
|||
@@ -1,2 +1,2 @@
|
|||
-dictdir = $(prefix)/dict
|
|||
+dictdir = $(datadir)/dict
|
|||
dict_DATA = adj.exc adv.exc cntlist cntlist.rev data.adj data.adv data.noun data.verb frames.vrb index.adj index.adv index.noun index.sense index.verb log.grind.3.0 noun.exc sentidx.vrb sents.vrb verb.Framestext verb.exc lexnames |
|||
diff -Naur WordNet-3.0/dict/Makefile.in WordNet-3.0.patched/dict/Makefile.in
|
|||
--- WordNet-3.0/dict/Makefile.in 2007-01-20 15:54:18.000000000 -0500
|
|||
+++ WordNet-3.0.patched/dict/Makefile.in 2024-08-31 17:20:20.053450553 -0400
|
|||
@@ -136,7 +136,7 @@
|
|||
sharedstatedir = @sharedstatedir@ |
|||
sysconfdir = @sysconfdir@ |
|||
target_alias = @target_alias@ |
|||
-dictdir = $(prefix)/dict
|
|||
+dictdir = $(datadir)/dict
|
|||
dict_DATA = adj.exc adv.exc cntlist cntlist.rev data.adj data.adv data.noun data.verb frames.vrb index.adj index.adv index.noun index.sense index.verb log.grind.3.0 noun.exc sentidx.vrb sents.vrb verb.Framestext verb.exc lexnames |
|||
all: all-am |
|||
|
|||
diff -Naur WordNet-3.0/include/wn.h WordNet-3.0.patched/include/wn.h
|
|||
--- WordNet-3.0/include/wn.h 2007-01-03 16:51:35.000000000 -0500
|
|||
+++ WordNet-3.0.patched/include/wn.h 2024-08-31 17:15:16.912479082 -0400
|
|||
@@ -29,7 +29,7 @@
|
|||
#else |
|||
#define DICTDIR "/dict" |
|||
#ifndef DEFAULTPATH |
|||
-#define DEFAULTPATH "/usr/local/WordNet-3.0/dict"
|
|||
+#define DEFAULTPATH "/usr/share/wordnet/dict"
|
|||
#endif |
|||
#define DATAFILE "%s/data.%s" |
|||
#define INDEXFILE "%s/index.%s" |
|||
diff -Naur WordNet-3.0/lib/wnres/Makefile.am WordNet-3.0.patched/lib/wnres/Makefile.am
|
|||
--- WordNet-3.0/lib/wnres/Makefile.am 2006-11-14 16:25:17.000000000 -0500
|
|||
+++ WordNet-3.0.patched/lib/wnres/Makefile.am 2024-08-31 17:29:05.214401131 -0400
|
|||
@@ -1,3 +1,3 @@
|
|||
EXTRA_DIST = license.txt wn.xbm wnb.man wngloss.man |
|||
-wnresdir = $(prefix)/lib/wnres
|
|||
+wnresdir = $(datadir)/wnres
|
|||
wnres_DATA = license.txt wn.xbm wnb.man wngloss.man |
|||
diff -Naur WordNet-3.0/lib/wnres/Makefile.in WordNet-3.0.patched/lib/wnres/Makefile.in
|
|||
--- WordNet-3.0/lib/wnres/Makefile.in 2007-01-20 15:54:22.000000000 -0500
|
|||
+++ WordNet-3.0.patched/lib/wnres/Makefile.in 2024-08-31 17:29:21.413399606 -0400
|
|||
@@ -137,7 +137,7 @@
|
|||
sysconfdir = @sysconfdir@ |
|||
target_alias = @target_alias@ |
|||
EXTRA_DIST = license.txt wn.xbm wnb.man wngloss.man |
|||
-wnresdir = $(prefix)/lib/wnres
|
|||
+wnresdir = $(datadir)/wnres
|
|||
wnres_DATA = license.txt wn.xbm wnb.man wngloss.man |
|||
all: all-am |
|||
|
|||
diff -Naur WordNet-3.0/src/wnb WordNet-3.0.patched/src/wnb
|
|||
--- WordNet-3.0/src/wnb 2006-12-18 17:38:20.000000000 -0500
|
|||
+++ WordNet-3.0.patched/src/wnb 2024-08-31 17:14:51.677481457 -0400
|
|||
@@ -103,9 +103,9 @@
|
|||
|
|||
if {$tcl_platform(platform) == "unix"} { |
|||
if {[lsearch -exact [array names env] WNHOME] == -1} { |
|||
- set resourcedir "/usr/local/WordNet-3.0/lib/wnres"
|
|||
+ set resourcedir "/usr/share/wordnet/wnres"
|
|||
} else { |
|||
- set resourcedir "$env(WNHOME)/lib/wnres"
|
|||
+ set resourcedir "$env(WNHOME)/wnres"
|
|||
} |
|||
set configfile "$env(HOME)/.wnrc" |
|||
if [ file exists $configfile ] { |
After Width: 128 | Height: 128 | Size: 6.4 KiB |
@ -0,0 +1,15 @@ |
|||
#==================================================== |
|||
# WordNet GUI desktop entry specification |
|||
# |
|||
# license: GPL v2 or later |
|||
#==================================================== |
|||
|
|||
[Desktop Entry] |
|||
Type=Application |
|||
Name=WordNet |
|||
GenericName=lexical database of English |
|||
Comment=electronic lexical database of English language |
|||
Icon=wn |
|||
Exec=/usr/bin/wnb |
|||
Terminal=false |
|||
Categories=Education;Dictionary; |
Write
Preview
Loading…
Cancel
Save
Reference in new issue