openbsd-ports/math/grace/pkg/DEINSTALL
pvalchev 1832e4fb3a Import of grace-5.1.4
Grace is a tool to make two-dimensional plots of numerical data. It
runs under various (if not all) flavours of UNIX with X11 and M*tif.
Its capabilities are roughly similar to GUI-based programs like
Sigmaplot or Microcal Origin plus script-based tools like gnuplot or
Genplot. Its strength lies in the fact that it combines the
convenience of a graphical user interface with the power of a
scripting language which enables it to do sophisticated calculations
or perform automated tasks.

Flavors:
    no_x11 - build command line tool only, no gui
    fftw   - use math/fftw for optimized FFT
    netcdf - use math/netcdf for network common data form support
    xmhtml - use www/xmhtml to use grace's internal HTML browser
             for helpfiles etc.

WWW: http://plasma-gate.weizmann.ac.il/Grace/

MAINTAINER=	Nikolay Sturm <Nikolay.Sturm@desy.de>
2001-07-13 18:53:55 +00:00

48 lines
1015 B
Bash

#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/07/13 18:53:55 pvalchev Exp $
#
# grace de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
NO_X11=`echo "$1" | sed -e "s/.*-no_x11/no_x11/"`
LINKS="$PREFIX/bin/grace \
$PREFIX/bin/gracebat \
$PREFIX/include/grace_np.h \
$PREFIX/lib/libgrace_np.a \
$PREFIX/man/man1/grace.1 \
$PREFIX/man/man1/gracebat.1 \
$PREFIX/man/man1/grconvert.1"
if [ ! $NO_X11 == "no_x11" ]; then
LINKS="$LINKS $PREFIX/bin/xmgrace \
$PREFIX/man/man1/xmgrace.1"
fi
for LINK in $LINKS; do
if [ -L $LINK ]; then
rm -f $LINK
else
echo
echo "+---------------"
echo "| Did not delete $LINK, not a link to a $1"
echo "| file. Please have a look at the file."
echo "+---------------"
echo
ERROR=1
fi
done
if [ ! $ERROR ]; then
echo
echo "+---------------"
echo "| All links to $1 files are deleted."
echo "+---------------"
echo
fi
exit 0