mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
90647c82d8
PR: 11423 Submitted by: KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
32 lines
756 B
Bash
32 lines
756 B
Bash
#!/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
|