1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/misc/seizedesktop/scripts/post-install

32 lines
756 B
Plaintext
Raw Normal View History

#!/bin/sh
installdir=${PREFIX}/JDE/SeizeDesktop; export installdir
case ${LANGUAGE} in
Japanese)
for f in SeizeDesktop.app PrefDesktop.app; do
${PERL} -pi -e '
s/^(exec[ \t]+)wishstep[^ \t]*([ \t]+.*)$/$1wishstep$ENV{VERSION}jp$2/
' ${installdir}/bin/${f}
done
;;
*)
;;
esac
for f in SeizeDesktop SeizeDesktop.app PrefDesktop.app; do
case ${f} in
SeizeDesktop.app|PrefDesktop.app)
target=${installdir}/bin/${f}
;;
SeizeDesktop)
target=${installdir}/default/${f}
;;
esac
${PERL} -pi -e '
s/^([ \t]*set[ \t]+dtLib[ \t]+)"[^"]*"$/$1"$ENV{installdir}"/;
' ${target}
done
${LN} -sf ${installdir}/bin/SeizeDesktop.app ${PREFIX}/bin
${LN} -sf ${installdir}/bin/PrefDesktop.app ${PREFIX}/bin