diff options
author | Philip Lacroix <slackph at posteo dot de> | 2023-01-30 20:54:48 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-02-04 07:19:52 +0700 |
commit | 3a17c00937eb465421cde7783427cd9c02b95792 (patch) | |
tree | c8071e92f3d40182081ea30e9aaa719739032e95 /academic/geomview/geomview.SlackBuild | |
parent | 7680cfa661395213332387d13f4ccdad93c81886 (diff) |
academic/geomview: Updated for version 1.9.5.
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/geomview/geomview.SlackBuild')
-rw-r--r-- | academic/geomview/geomview.SlackBuild | 53 |
1 files changed, 38 insertions, 15 deletions
diff --git a/academic/geomview/geomview.SlackBuild b/academic/geomview/geomview.SlackBuild index 6252b1eec9771..546d3fb35796c 100644 --- a/academic/geomview/geomview.SlackBuild +++ b/academic/geomview/geomview.SlackBuild @@ -2,14 +2,34 @@ # Slackware build script for geomview -# Written by (Jorge Barros de Abreu) -# (http://sites.google.com/site/ficmatinf) +# Copyright 2013 Jorge Barros de Abreu +# 2013-2022 Maintained by the SBo team +# 2023 Updated to 1.9.5 by Philip Lacroix <slackph at posteo dot de> +# +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# 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=geomview -VERSION=${VERSION:-1.9.4} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.9.5} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -21,9 +41,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 @@ -62,10 +79,6 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# -#geomview compilation -# - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -96,12 +109,22 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r gzip -c -9 $PRGNAM-2 > $PRGNAM.info-2.gz rm -fr dir figs $PRGNAM-* $PRGNAM ) -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +# Install documentation. +PRGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PRGDOC cp -a \ doc/figs doc/*.txt doc/*.c doc/*.tcl doc/README* doc/*.gvplot doc/oogltour* \ - $PKG/usr/doc/$PRGNAM-$VERSION -rm -f $PKG/usr/doc/$PRGNAM-$VERSION/*.pdf # We already have the html ones -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + $PRGDOC +# +# Move plain text files (no troff) to /usr/doc. +( cd $PKG/usr/man/man3 + zcat lisp.3gv.gz > $PRGDOC/lisp.txt + rm -rf lisp.3gv.gz ) +( cd $PKG/usr/man/man5 + zcat geomview.5gv.gz > $PRGDOC/geomview.txt + zcat oogl.5gv.gz > $PRGDOC/oogl.txt + rm -rf geomview.5gv.gz oogl.5gv.gz ) +cat $CWD/$PRGNAM.SlackBuild > $PRGDOC/$PRGNAM.SlackBuild rm -f $PKG/usr/lib*/*.la |