summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/ftnchek/README14
-rw-r--r--development/ftnchek/ftnchek.SlackBuild38
-rw-r--r--development/ftnchek/ftnchek.info4
-rw-r--r--development/ftnchek/slack-desc10
4 files changed, 37 insertions, 29 deletions
diff --git a/development/ftnchek/README b/development/ftnchek/README
index 8795b98236..a5b2be5cfa 100644
--- a/development/ftnchek/README
+++ b/development/ftnchek/README
@@ -1,6 +1,8 @@
-ftnchek (short for Fortran checker) is designed to detect certain
-errors in a Fortran program that a compiler usually does not. ftnchek
-is not primarily intended to detect syntax errors. Its purpose is to
-assist the user in finding semantic errors. Semantic errors are legal
-in the Fortran language but are wasteful or may cause incorrect opera-
-tion.
+ftnchek (a static analyzer for Fortran 77 programs)
+
+ftnchek (short for Fortran checker) is designed to detect certain errors
+in a Fortran program that a compiler usually does not.
+
+ftnchek is not primarily intended to detect syntax errors. Its purpose is
+to assist the user in finding semantic errors. Semantic errors are legal
+in the Fortran language but are wasteful or may cause incorrect operation.
diff --git a/development/ftnchek/ftnchek.SlackBuild b/development/ftnchek/ftnchek.SlackBuild
index c058327249..8235fd37b4 100644
--- a/development/ftnchek/ftnchek.SlackBuild
+++ b/development/ftnchek/ftnchek.SlackBuild
@@ -2,16 +2,28 @@
# Slackware build script for ftnchek
-# Written by Pablo Santamaria (pablosantamaria at gmail.com)
+# Originally written by Pablo Santamaria (email removed)
+
+# Now maintained by B. Watson <yalhcru@gmail.com>. Original version
+# had no license, modified version released under the WTFPL. See
+# http://www.wtfpl.net/txt/copying/ for details.
+
+# 20170210 bkw:
+# - Take over maintenance
+# - BUILD=2
+# - i486 => i586
+# - include html docs in package
+# - reflow README, make slack-desc a bit more verbose
+# - minor cosmetic fixes
PRGNAM=ftnchek
VERSION=${VERSION:-3.3.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -22,8 +34,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-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"
@@ -57,21 +69,15 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--build=$ARCH-slackware-linux
-OPTIONS="$SLKCFLAGS" \
-make
+make OPT="$SLKCFLAGS"
+
mkdir -p $PKG/usr/share/emacs/site-lisp
make install prefix=$PKG/usr
-
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+strip $PKG/usr/bin/$PRGNAM
+gzip $PKG/usr/man/man1/*.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- FAQ INSTALL LICENSE PATCHES README ToDo \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a FAQ LICENSE PATCHES README ToDo html $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/development/ftnchek/ftnchek.info b/development/ftnchek/ftnchek.info
index 8f74ebe778..731d311e65 100644
--- a/development/ftnchek/ftnchek.info
+++ b/development/ftnchek/ftnchek.info
@@ -6,5 +6,5 @@ MD5SUM="e1f4ce51ea1a85e7b080ab5d23013f97"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Pablo Santamaria"
-EMAIL="pablosantamaria@gmail.com"
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
diff --git a/development/ftnchek/slack-desc b/development/ftnchek/slack-desc
index 31e452347e..90a9725f30 100644
--- a/development/ftnchek/slack-desc
+++ b/development/ftnchek/slack-desc
@@ -8,12 +8,12 @@
|-----handy-ruler------------------------------------------------------|
ftnchek: ftnchek (a static analyzer for Fortran 77 programs)
ftnchek:
-ftnchek: ftnchek (short for Fortran checker) is designed to detect certain
+ftnchek: ftnchek (short for Fortran checker) is designed to detect certain
ftnchek: errors in a Fortran program that a compiler usually does not.
ftnchek:
-ftnchek:
-ftnchek:
-ftnchek:
-ftnchek:
+ftnchek: ftnchek is not primarily intended to detect syntax errors. Its
+ftnchek: purpose is to assist the user in finding semantic errors. Semantic
+ftnchek: errors are legal in the Fortran language but are wasteful or may
+ftnchek: cause incorrect operation.
ftnchek:
ftnchek: