summaryrefslogtreecommitdiffstats
path: root/libraries/blas/blas.SlackBuild
diff options
context:
space:
mode:
author Kyle Guinn2024-01-06 21:31:00 +0100
committer Willy Sudiarto Raharjo2024-01-13 01:14:25 +0100
commit47b3bbe70d4d69cdef7f455208d6e063d1e07510 (patch)
treee86969b227834528017edfe1f3926f373881f6e5 /libraries/blas/blas.SlackBuild
parentaa8be8385f503f4fad28db7cab18319fd8a1a469 (diff)
downloadslackbuilds-47b3bbe70d4d69cdef7f455208d6e063d1e07510.tar.gz
libraries/blas: Updated for version 3.12.0
Signed-off-by: Kyle Guinn <elyk03@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/blas/blas.SlackBuild')
-rw-r--r--libraries/blas/blas.SlackBuild44
1 files changed, 30 insertions, 14 deletions
diff --git a/libraries/blas/blas.SlackBuild b/libraries/blas/blas.SlackBuild
index 08f55fde19..fb5503f95e 100644
--- a/libraries/blas/blas.SlackBuild
+++ b/libraries/blas/blas.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for BLAS
-# Copyright 2014-2022 Kyle Guinn <elyk03@gmail.com>
+# Copyright 2014-2024 Kyle Guinn <elyk03@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=blas
SRCNAM=lapack
-VERSION=${VERSION:-3.11.0}
+VERSION=${VERSION:-3.12.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -111,26 +111,42 @@ if [ "${STATIC:-no}" != "no" ]; then
cd ..
fi
-# Generate man pages. Requires some fix-ups:
+# Generate man pages. Since 3.12.0 there is no longer a Doxyfile
+# intended for man page creation (only html), so attempt to recreate it.
+# Note that CMake can generate a Doxyfile, but it may differ from the
+# supplied one, and is less convenient to edit.
# 0. Join all escaped newlines so the entire value is replaced.
+# 1. Turn off GENERATE_HTML.
+# 2. Turn on GENERATE_MAN.
+# 3. Turn off MAN_LINKS, see below.
+# 4. Turn off HAVE_DOT, disable all graph generation.
+# 5. Turn off CREATE_SUBDIRS, may interfere with output file locations.
+# 6. Turn off REPEAT_BRIEF's repetitive comments.
+# 7. Turn off FULL_PATH_NAMES, omit source code paths from man pages.
+# 8. Turn off INLINE_SOURCES, don't copy the code to the man pages.
+sed -i \
+ -e ':a;/\\$/N;s/\s*\\\n\s*/ /;ta' \
+ -e 's/^\(GENERATE_HTML *=\).*/\1 NO/' \
+ -e 's/^\(GENERATE_MAN *=\).*/\1 YES/' \
+ -e 's/^\(MAN_LINKS *=\).*/\1 NO/' \
+ -e 's/^\(HAVE_DOT *=\).*/\1 NO/' \
+ -e 's/^\(CREATE_SUBDIRS *=\).*/\1 NO/' \
+ -e 's/^\(REPEAT_BRIEF *=\).*/\1 NO/' \
+ -e 's/^\(FULL_PATH_NAMES *=\).*/\1 NO/' \
+ -e 's/^\(INLINE_SOURCES *=\).*/\1 NO/' \
+ DOCS/Doxyfile
+# Limit ourselves to the BLAS functions:
# 1. Replace "LAPACK" with "BLAS" in headers/footers.
# 2. Only generate on the BLAS sources.
-# 3. Turn off recursion. Only operate on directories in INPUT.
-# 4. Turn off EXCLUDE to not conflict with INPUT.
-# 5. Turn off some repetitive comments.
-# 6. Turn off MAN_LINKS. See below.
-# 7. Generate on .f90 files.
+# 3. Turn off RECURSIVE, only operate on directories in INPUT.
+# 4. Turn off EXCLUDE, to not conflict with INPUT.
sed -i \
- -e ':a;/\\$/N;s/\\\n//;ta' \
-e 's/^\(PROJECT_NAME *=\).*/\1 BLAS/' \
-e 's/^\(INPUT *=\).*/\1 BLAS\/SRC/' \
-e 's/^\(RECURSIVE *=\).*/\1 NO/' \
-e 's/^\(EXCLUDE *=\).*/\1/' \
- -e 's/^\(REPEAT_BRIEF *=\).*/\1 NO/' \
- -e 's/^\(MAN_LINKS *=\).*/\1 NO/' \
- -e 's/^\(FILE_PATTERNS *=.*\)/\1 *.f90/' \
- DOCS/Doxyfile_man
-doxygen DOCS/Doxyfile_man
+ DOCS/Doxyfile
+doxygen DOCS/Doxyfile
# Doxygen generates manpages on a file-by-file basis (note the .f extensions).
# We want a page for each function, not each file. MAN_LINKS creates a page
# for each function that just sources the page for the corresponding file.