Ticket #16518: Portfile-slime.2.diff

File Portfile-slime.2.diff, 1.7 KB (added by jrhope, 16 years ago)

New diff to fix remaining problems installing slime with emacs-app.

  • Portfile

    old new  
    5959}
    6060
    6161set slime_emacs_binary ""
    62 set slime_site_lisp_dir ""
    63 set slime_site_lisp_contrib_dir ""
     62set slime_site_lisp_dir "${destroot}${prefix}/share/emacs/site-lisp/slime"
     63set slime_site_lisp_contrib_dir ${slime_site_lisp_dir}/contrib
    6464set slime_byte_compile_p 0
    6565
    6666configure {
    6767    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"
    7971        } else {
    80             list "${destroot}${prefix}/share/emacs/site-lisp/slime"
     72            list "${prefix}/bin/emacs"
    8173        }
    8274    ]
    8375
    84     set slime_site_lisp_contrib_dir ${slime_site_lisp_dir}/contrib
    85 
    86     set slime_byte_compile_p   0
    87 
    8876    # Byte compiling doesn't seem to be working
    8977    if {! [file executable ${slime_emacs_binary}]} {
    9078          set slime_byte_compile_p 0
     
    140128    ui_msg ""
    141129    ui_msg "Then put the following in your ~/.emacs:"
    142130    ui_msg ""
     131    ui_msg "(setq load-path (cons \"${prefix}/share/emacs/site-lisp/slime\" load-path))"
    143132    ui_msg "(require 'slime-autoloads)"
    144133    ui_msg "(setq slime-lisp-implementations"
    145134    ui_msg "     \`((sbcl (\"${prefix}/bin/sbcl\"))"