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