Ticket #8262 (closed defect: fixed)
BUG: mzscheme (and others) path errors
| Reported by: | mge@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.2 |
| Keywords: | Cc: | ||
| Port: |
Description
mzc (the mzscheme compiler) as well as other files installed by mzscheme have path errors when they are run. This is due to the port first being installed in destroot so these (generated) shell scripts have the incorrect paths in them.
A fix that works for me is to add:
reinplace "s|PLTHOME=\"${destroot}${prefix}\"|PLTHOME=\"${prefix}\"|" ${destroot}${prefix}/bin/mzc \
${destroot}${prefix}/bin/mzpp \ ${destroot}${prefix}/bin/mztext \ ${destroot}${prefix}/bin/pdf-slatex \ ${destroot}${prefix}/bin/planet \ ${destroot}${prefix}/bin/setup-plt \ ${destroot}${prefix}/bin/slatex \ ${destroot}${prefix}/bin/swindle \ ${destroot}${prefix}/bin/tex2page \ ${destroot}${prefix}/bin/web-server-monitor \ ${destroot}${prefix}/bin/web-server-setup \ ${destroot}${prefix}/bin/web-server-text
To the post-destroot commands. This sets a correct default for the PLTHOME environment varible.

