mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
2f70efd363
Monte Carlo ray tracing simulations of neutron experiments. McStas is a tool for simulating neutron instrumentation and experiments using a ray-tracing formalism. Currently the main use of McStas is in the field of instrument design. WWW: http://www.mcstas.org PR: 194846 Submitted by: Erik B. Knudsen <erkn@fysik.dtu.dk>
31 lines
570 B
Bash
31 lines
570 B
Bash
#!/bin/sh
|
|
|
|
PKG_PREFIX=${PKG_PREFIX:-/usr/local}
|
|
|
|
if [ $# -ne 2 ]; then
|
|
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
|
exit 1
|
|
fi
|
|
|
|
pname=${1%-*}
|
|
pversion=${1##*-}
|
|
|
|
#echo the extracted port name is $pname
|
|
#echo the extracted port version is $pversion
|
|
|
|
execs="mcstas mcformat"
|
|
|
|
case $2 in
|
|
DEINSTALL)
|
|
|
|
if [ ! -f "${PKG_PREFIX}/bin" ]; then
|
|
echo "Deinstalling links to ${1} executables in ${PKG_PREFIX}/bin.";
|
|
for target in ${execs}; do
|
|
rm ${PKG_PREFIX}/bin/${target};
|
|
done
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
exit 0
|