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
40 40 use_autoconf no 41 41 use_configure no 42 42 43 # Can be removed once MacPorts 1.7.0 is released 44 if {![info exists applications_dir]} { 45 set applications_dir /Applications/MacPorts 46 } 47 43 48 # Eventually build the port without the provided script... 44 # configure.args --with-ns --without-x --prefix=${destroot} /Applications/MacPorts/Emacs.app/Contents/Resources49 # configure.args --with-ns --without-x --prefix=${destroot}${applications_dir}/Emacs.app/Contents/Resources 45 50 46 51 # Don't attempt to build universal on darwin 7, so apply a patch 47 52 # to modify the compile script. … … 68 73 #} 69 74 70 75 destroot { 71 xinstall -m 755 -d ${destroot} /Applications/MacPorts76 xinstall -m 755 -d ${destroot}${applications_dir} 72 77 file copy ${worksrcpath}/nextstep/build/Emacs.app \ 73 ${destroot} /Applications/MacPorts78 ${destroot}${applications_dir} 74 79 file copy ${filespath}/site-start.el \ 75 ${destroot} /Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp80 ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp 76 81 } 77 82 78 83 post-destroot { 79 84 reinplace "s|__PREFIX__|${prefix}|g" \ 80 ${destroot} /Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp/site-start.el85 ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el 81 86 }