Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

academic/plus42: Updated for version 1.1.15 #9093

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions academic/WordNet/doinst.sh
Original file line number Diff line number Diff line change
@@ -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
90 changes: 90 additions & 0 deletions academic/WordNet/usr_share.diff
Original file line number Diff line number Diff line change
@@ -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 ] {
Binary file added academic/WordNet/wn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions academic/WordNet/wordnet.desktop
Original file line number Diff line number Diff line change
@@ -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;
9 changes: 4 additions & 5 deletions academic/plus42/plus42.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=plus42
VERSION=${VERSION:-1.1.12}
VERSION=${VERSION:-1.1.15}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
Expand Down Expand Up @@ -63,9 +63,8 @@ set -e
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}desktop-$VERSION.tar.gz
rm -rf ${PRGNAM}desktop-$VERSION
tar xvf $CWD/${PRGNAM}desktop-$VERSION.tar.gz
mv ${PRGNAM}desktop-$VERSION $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
chown -R root:root .
Expand Down Expand Up @@ -93,7 +92,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
README COPYING HISTORY CREDITS \
$PKG/usr/doc/$PRGNAM-$VERSION
cp -a gtk/README $PKG/usr/doc/$PRGNAM-$VERSION/README-GTK
cp -a gtk/README.txt $PKG/usr/doc/$PRGNAM-$VERSION/README-GTK.txt
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
Expand Down
6 changes: 3 additions & 3 deletions academic/plus42/plus42.info
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PRGNAM="plus42"
VERSION="1.1.12"
VERSION="1.1.15"
HOMEPAGE="https://www.thomasokken.com/plus42"
DOWNLOAD="https://github.com/thomasokken/plus42desktop/archive/v1.1.12/plus42-1.1.12.tar.gz"
MD5SUM="c499e67219124e0da564aa8740ac276f"
DOWNLOAD="https://github.com/thomasokken/plus42desktop/archive/v1.1.15/plus42desktop-1.1.15.tar.gz"
MD5SUM="8e4080528375849440030c09f34d27fd"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
Expand Down
2 changes: 1 addition & 1 deletion academic/plus42/slack-desc
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ plus42: Plus42 builds on Free42 and adds: A Larger Display, with 8 rows and 22
plus42: columns (131x64 pixels) by default, which the user may resize at will;
plus42: Algebraic Expressions; attached Units and unit conversions;
plus42: Directories; TVM and amortization tables; and two-dimensional Plotting
plus42: of functions. Homepage at https://www.thomasokken.com/plus42
plus42: of functions.
3 changes: 3 additions & 0 deletions audio/alsacap/doinst.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if [ -x usr/bin/mandb ]; then
chroot . /usr/bin/mandb -f /usr/man/man1/alsacap.1.gz &> /dev/null
fi
3 changes: 3 additions & 0 deletions audio/alsacap/douninst.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if [ -x usr/bin/mandb ]; then
chroot . /usr/bin/mandb &> /dev/null
fi