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 is useful both as a simple calculator and as a research
or educational tool. The syntax is very intuitive and or educational tool. The syntax is very intuitive and
is designed to mimic how mathematics is usually written. 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) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=genius PRGNAM=genius
VERSION=${VERSION:-1.0.23} VERSION=${VERSION:-1.0.27}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i586 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
@ -50,14 +50,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp} OUTPUT=${OUTPUT:-/tmp}
GNOME=${GNOME:-NO} if [ "$ARCH" = "i586" ]; then
GNOME_FLAGS="--disable-gtksourceview --disable-gnome" SLKCFLAGS="-O2 -march=i586 -mtune=i686"
if [ "$GNOME" != "NO" ] ; then
GNOME_FLAGS=""
fi
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" 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 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS -std=gnu89" \ autoreconf -vif
CXXFLAGS="$SLKCFLAGS -std=gnu89" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
@ -94,9 +90,7 @@ CXXFLAGS="$SLKCFLAGS -std=gnu89" \
--localstatedir=/var \ --localstatedir=/var \
--mandir=/usr/man \ --mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \ --docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-scrollkeeper \
--disable-update-mimedb \ --disable-update-mimedb \
$GNOME_FLAGS \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make make

View file

@ -1,10 +1,10 @@
PRGNAM="genius" PRGNAM="genius"
VERSION="1.0.23" VERSION="1.0.27"
HOMEPAGE="http://www.5z.com/jirka/genius.html" HOMEPAGE="http://www.5z.com/jirka/genius.html"
DOWNLOAD="http://ftp.5z.com/pub/genius/genius-1.0.23.tar.xz" DOWNLOAD="https://download.gnome.org/sources/genius/1.0/genius-1.0.27.tar.xz"
MD5SUM="3e94a5898e59c069c564f00136c2450d" MD5SUM="d510beed59c2b9ad52a56153e5825fb8"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="rarian" REQUIRES="gtksourceview4"
MAINTAINER="Vincent Batts" MAINTAINER="Vincent Batts"
EMAIL="vbatts@hashbangbash.com" EMAIL="vbatts@hashbangbash.com"