academic/genius: Updated for version 1.0.27.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2022-02-27 19:06:39 +01:00 committed by Robby Workman
parent 04f31e81d5
commit 127ca8ad0e
3 changed files with 12 additions and 22 deletions

View file

@ -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, gtksourceview and vte2. If you have these dependencies,
pass the variable of GNOME=YES (or anything that isn't NO ;)

View file

@ -25,14 +25,14 @@
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
@ -50,14 +50,8 @@ 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"
@ -85,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} \
@ -94,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

View file

@ -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"