Ticket #16775: python25-applications_dir.diff

File python25-applications_dir.diff, 749 bytes (added by jmroot (Joshua Root), 16 years ago)
  • lang/python25/Portfile

     
    4343
    4444use_parallel_build      no
    4545
     46if {![info exists applications_dir]} {
     47    set applications_dir /Applications/MacPorts
     48}
     49
    4650post-patch {
    4751        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py
    48         reinplace "s|/Applications/MacPython|/Applications/MacPorts/MacPython|g" \
     52        reinplace "s|/Applications/MacPython|${applications_dir}/MacPython|g" \
    4953                Mac/Makefile.in Mac/IDLE/Makefile.in \
    5054                Mac/IDLE/Makefile.in Mac/Tools/Doc/setup.py \
    5155                Mac/PythonLauncher/Makefile.in \