Ticket #17250: emacs-app-applications_dir.diff

File emacs-app-applications_dir.diff, 1.4 KB (added by ryandesign (Ryan Carsten Schmidt), 16 years ago)
  • Portfile

     
    4040use_autoconf    no
    4141use_configure   no
    4242
     43# Can be removed once MacPorts 1.7.0 is released
     44if {![info exists applications_dir]} {
     45    set applications_dir /Applications/MacPorts
     46}
     47
    4348# Eventually build the port without the provided script...
    44 # configure.args        --with-ns --without-x --prefix=${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources
     49# configure.args        --with-ns --without-x --prefix=${destroot}${applications_dir}/Emacs.app/Contents/Resources
    4550
    4651# Don't attempt to build universal on darwin 7, so apply a patch
    4752# to modify the compile script.
     
    6873#}
    6974
    7075destroot {
    71         xinstall -m 755 -d ${destroot}/Applications/MacPorts
     76        xinstall -m 755 -d ${destroot}${applications_dir}
    7277        file copy ${worksrcpath}/nextstep/build/Emacs.app \
    73                 ${destroot}/Applications/MacPorts
     78                ${destroot}${applications_dir}
    7479        file copy ${filespath}/site-start.el \
    75                 ${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp
     80                ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp
    7681}
    7782
    7883post-destroot {
    7984        reinplace "s|__PREFIX__|${prefix}|g" \
    80                 ${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp/site-start.el
     85                ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el
    8186}