Ticket #16518: Portfile-slime.diff
File Portfile-slime.diff, 1.5 KB (added by jrhope, 16 years ago) |
---|
-
Portfile
old new 37 37 variant app description "Build SLIME against editors/emacs-app" { 38 38 depends_run-append port:emacs-app 39 39 depends_run-delete port:emacs 40 depends_lib-append port:emacs-app 41 depends_lib-delete port:emacs 40 42 } 41 43 42 44 default_variants +sbcl … … 69 71 set slime_site_lisp_dest ${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp 70 72 set slime_site_lisp_contrib /Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp 71 73 } else { 72 set slime_emacs_binary ${prefix}/bin/emacs 74 # kludge if 'emacs+carbon' is installed 75 if {[regexp carbon [join [registry_installed emacs]]]} { 76 set slime_emacs_binary /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs 77 } else { 78 set slime_emacs_binary ${prefix}/bin/emacs 79 } 73 80 set slime_site_lisp_dest ${destroot}${prefix}/share/emacs/site-lisp/slime 74 81 set slime_site_lisp_contrib ${prefix}/share/emacs/site-lisp/contrib 75 82 } 76 83 77 84 set slime_site_lisp_dest_contrib ${slime_site_lisp_dest}/contrib 78 85 79 # kludge if 'emacs+carbon' is installed80 if {[regexp carbon [join [registry_installed emacs]]]} {81 set slime_emacs_binary /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs82 }83 84 86 if {! [file executable ${slime_emacs_binary}]} { 85 87 set slime_byte_compile_p 0 86 88 ui_msg "Couldn't find an executable Emacs image so won't byte compile."