Ticket #16518: Portfile-slime.diff

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

Portfile diff to (mostly) fix slime variant +app.

  • Portfile

    old new  
    3737variant app description "Build SLIME against editors/emacs-app" {
    3838    depends_run-append port:emacs-app
    3939    depends_run-delete port:emacs
     40    depends_lib-append port:emacs-app
     41    depends_lib-delete port:emacs
    4042}
    4143
    4244default_variants +sbcl
     
    6971        set slime_site_lisp_dest ${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp
    7072        set slime_site_lisp_contrib /Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp
    7173    } 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        }
    7380        set slime_site_lisp_dest ${destroot}${prefix}/share/emacs/site-lisp/slime
    7481        set slime_site_lisp_contrib ${prefix}/share/emacs/site-lisp/contrib
    7582    }
    7683
    7784    set slime_site_lisp_dest_contrib ${slime_site_lisp_dest}/contrib
    7885
    79     # kludge if 'emacs+carbon' is installed
    80     if {[regexp carbon [join [registry_installed emacs]]]} {
    81         set slime_emacs_binary /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs
    82     }
    83 
    8486   if {! [file executable ${slime_emacs_binary}]} {
    8587       set slime_byte_compile_p 0
    8688       ui_msg "Couldn't find an executable Emacs image so won't byte compile."