summaryrefslogtreecommitdiffstats
path: root/academic/csparse
diff options
context:
space:
mode:
Diffstat (limited to 'academic/csparse')
-rw-r--r--academic/csparse/README6
-rw-r--r--academic/csparse/csparse.SlackBuild34
-rw-r--r--academic/csparse/csparse.info4
-rw-r--r--academic/csparse/patches/autoconfiscate.diff2
4 files changed, 28 insertions, 18 deletions
diff --git a/academic/csparse/README b/academic/csparse/README
index 7119c1bf65..2726898d3c 100644
--- a/academic/csparse/README
+++ b/academic/csparse/README
@@ -1,5 +1,5 @@
-CSparse is a small yet feature-rich sparse matrix package. Its purpose is
-to demonstrate a wide range of sparse matrix algorithms in as concise a
-code as possible.
+CSparse is a small yet feature-rich sparse matrix package. Its
+purpose is to demonstrate a wide range of sparse matrix algorithms in
+as concise a code as possible.
This package is part of SuiteSparse.
diff --git a/academic/csparse/csparse.SlackBuild b/academic/csparse/csparse.SlackBuild
index f6f3dd53b5..9725887ad3 100644
--- a/academic/csparse/csparse.SlackBuild
+++ b/academic/csparse/csparse.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for CSparse
-# Copyright 2013-2019 Kyle Guinn <elyk03@gmail.com>
+# Copyright 2013-2021 Kyle Guinn <elyk03@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,13 +22,16 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=csparse
SRCNAM=SuiteSparse
SUBDIR=CSparse
VERSION=${VERSION:-3.2.0}
-SRCVER=${SRCVER:-5.4.0}
-BUILD=${BUILD:-3}
+SRCVER=${SRCVER:-5.8.1}
+BUILD=${BUILD:-5}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$(uname -m)" in
@@ -38,15 +41,22 @@ if [ -z "$ARCH" ]; then
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-$VERSION
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="README.txt Doc/ChangeLog Doc/License.txt Doc/lesser.txt"
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
@@ -70,9 +80,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM
-tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz $SRCNAM/$SUBDIR
-cd $SRCNAM/$SUBDIR
+rm -rf $SRCNAM-$SRCVER
+tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz $SRCNAM-$SRCVER/$SUBDIR
+cd $SRCNAM-$SRCVER/$SUBDIR
chown -R root:root .
chmod -R u+w,go-w,a+rX-st .
@@ -105,4 +115,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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/csparse/csparse.info b/academic/csparse/csparse.info
index ed0b7605cd..861a2ed4c5 100644
--- a/academic/csparse/csparse.info
+++ b/academic/csparse/csparse.info
@@ -1,8 +1,8 @@
PRGNAM="csparse"
VERSION="3.2.0"
HOMEPAGE="http://faculty.cse.tamu.edu/davis/suitesparse.html"
-DOWNLOAD="http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-5.4.0.tar.gz"
-MD5SUM="4a6d4e74fc44c503f52996ae95cad03a"
+DOWNLOAD="https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v5.8.1/SuiteSparse-5.8.1.tar.gz"
+MD5SUM="c414679bbc9432a3def01b31ad921140"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/academic/csparse/patches/autoconfiscate.diff b/academic/csparse/patches/autoconfiscate.diff
index 45e89ff5b2..e768036abd 100644
--- a/academic/csparse/patches/autoconfiscate.diff
+++ b/academic/csparse/patches/autoconfiscate.diff
@@ -258,7 +258,7 @@ new file mode 100644
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.69])
-+AC_INIT([CSparse],[3.2.0],[DrTimothyAldenDavis@gmail.com],[csparse],[http://www.suitesparse.com/])
++AC_INIT([CSparse],[3.2.0],[https://github.com/DrTimothyAldenDavis/SuiteSparse],[csparse],[http://www.suitesparse.com/])
+AC_CONFIG_SRCDIR([Source/cs_print.c])
+AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_MACRO_DIR([m4])