Ticket #16518: Portfile-slime.2.diff
File Portfile-slime.2.diff, 1.7 KB (added by jrhope, 16 years ago) |
---|
-
Portfile
old new 59 59 } 60 60 61 61 set slime_emacs_binary "" 62 set slime_site_lisp_dir " "63 set slime_site_lisp_contrib_dir ""62 set slime_site_lisp_dir "${destroot}${prefix}/share/emacs/site-lisp/slime" 63 set slime_site_lisp_contrib_dir ${slime_site_lisp_dir}/contrib 64 64 set slime_byte_compile_p 0 65 65 66 66 configure { 67 67 set slime_emacs_binary [ 68 if { [regexp carbon [join [registry_installed emacs]]] 69 || [ variant_isset app ] } { 70 list "/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs" 71 } else { 72 list "${prefix}/bin/emacs" 73 } 74 ] 75 76 set slime_site_lisp_dir [ 77 if {[ variant_isset app ]} { 78 list "${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp/slime" 68 if { [ variant_isset app ] 69 || [regexp carbon [join [registry_installed emacs]]] } { 70 list "/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs" 79 71 } else { 80 list "${ destroot}${prefix}/share/emacs/site-lisp/slime"72 list "${prefix}/bin/emacs" 81 73 } 82 74 ] 83 75 84 set slime_site_lisp_contrib_dir ${slime_site_lisp_dir}/contrib85 86 set slime_byte_compile_p 087 88 76 # Byte compiling doesn't seem to be working 89 77 if {! [file executable ${slime_emacs_binary}]} { 90 78 set slime_byte_compile_p 0 … … 140 128 ui_msg "" 141 129 ui_msg "Then put the following in your ~/.emacs:" 142 130 ui_msg "" 131 ui_msg "(setq load-path (cons \"${prefix}/share/emacs/site-lisp/slime\" load-path))" 143 132 ui_msg "(require 'slime-autoloads)" 144 133 ui_msg "(setq slime-lisp-implementations" 145 134 ui_msg " \`((sbcl (\"${prefix}/bin/sbcl\"))"