mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
36fb0eadfb
PR: 11423 Submitted by: KIRIYAMA Kazuhiko <kiri@pis.toba-cmt.ac.jp>
31 lines
587 B
Bash
31 lines
587 B
Bash
#!/bin/sh
|
|
|
|
installdir=${PREFIX}/JDE/JGV; export installdir
|
|
|
|
case ${LANGUAGE} in
|
|
Japanese)
|
|
for f in JGV.app; do
|
|
${PERL} -pi -e '
|
|
s/^(exec[ \t]+)wishstep[^ \t]*([ \t]+.*)$/$1wishstep$ENV{VERSION}jp$2/
|
|
' ${installdir}/bin/${f}
|
|
done
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
for f in JGV JGV.app; do
|
|
case ${f} in
|
|
JGV.app)
|
|
target=${installdir}/bin/${f}
|
|
;;
|
|
JGV)
|
|
target=${installdir}/defaults/${f}
|
|
;;
|
|
esac
|
|
${PERL} -pi -e '
|
|
s/^([ \t]*set[ \t]+Jlib[ \t]+)"[^"]*"$/$1"$ENV{installdir}"/;
|
|
' ${target}
|
|
done
|
|
|
|
${LN} -sf ${installdir}/bin/JGV.app ${PREFIX}/bin
|