summaryrefslogtreecommitdiffstats
path: root/academic/genius
diff options
context:
space:
mode:
Diffstat (limited to 'academic/genius')
-rw-r--r--academic/genius/README4
-rw-r--r--academic/genius/genius.SlackBuild38
-rw-r--r--academic/genius/genius.info8
3 files changed, 25 insertions, 25 deletions
diff --git a/academic/genius/README b/academic/genius/README
index d4a270574c..844fbd0219 100644
--- a/academic/genius/README
+++ b/academic/genius/README
@@ -5,7 +5,3 @@ in some aspects to BC, Matlab, Maple or Mathematica. It
is useful both as a simple calculator and as a research
or educational tool. The syntax is very intuitive and
is designed to mimic how mathematics is usually written.
-
-If you would like the GUI interface as well, it requires
-libgnomeui and gtksourceview. If you have these dependencies,
-pass the variable of GNOME=YES (or anything that isn't NO ;)
diff --git a/academic/genius/genius.SlackBuild b/academic/genius/genius.SlackBuild
index b1a8669355..6170b1f2c0 100644
--- a/academic/genius/genius.SlackBuild
+++ b/academic/genius/genius.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for genius
# Copyright 2009,2010,2018 Vincent Batts, vbatts@hashbangbash.com, http://hashbangbash.com/
@@ -22,32 +22,36 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=genius
-VERSION=${VERSION:-1.0.23}
+VERSION=${VERSION:-1.0.27}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-GNOME=${GNOME:-NO}
-GNOME_FLAGS="--disable-gtksourceview --disable-gnome"
-if [ "$GNOME" != "NO" ] ; then
- GNOME_FLAGS=""
-fi
-
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -75,8 +79,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS -std=gnu89" \
-CXXFLAGS="$SLKCFLAGS -std=gnu89" \
+autoreconf -vif
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -84,9 +90,7 @@ CXXFLAGS="$SLKCFLAGS -std=gnu89" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --disable-scrollkeeper \
--disable-update-mimedb \
- $GNOME_FLAGS \
--build=$ARCH-slackware-linux
make
@@ -105,4 +109,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/academic/genius/genius.info b/academic/genius/genius.info
index b072a17292..f4eaec93fb 100644
--- a/academic/genius/genius.info
+++ b/academic/genius/genius.info
@@ -1,10 +1,10 @@
PRGNAM="genius"
-VERSION="1.0.23"
+VERSION="1.0.27"
HOMEPAGE="http://www.5z.com/jirka/genius.html"
-DOWNLOAD="http://ftp.5z.com/pub/genius/genius-1.0.23.tar.xz"
-MD5SUM="3e94a5898e59c069c564f00136c2450d"
+DOWNLOAD="https://download.gnome.org/sources/genius/1.0/genius-1.0.27.tar.xz"
+MD5SUM="d510beed59c2b9ad52a56153e5825fb8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="rarian"
+REQUIRES="gtksourceview4"
MAINTAINER="Vincent Batts"
EMAIL="vbatts@hashbangbash.com"