Ticket #14136: slime-Portfile.diff
File slime-Portfile.diff, 1.3 KB (added by jrhope, 17 years ago) |
---|
-
Portfile
33 33 depends_lib port:emacs 34 34 depends_run port:sbcl 35 35 36 variant devel { depends_lib-append port:emacs-devel 36 variant devel conflicts app { depends_lib-append port:emacs-devel 37 depends_lib-delete port:emacs 38 } 39 40 variant app conflicts devel { depends_lib-append port:emacs-app 37 41 depends_lib-delete port:emacs 38 42 } 39 43 … … 53 57 if {[ variant_isset devel ]} { 54 58 set emacs_binary [ glob ${prefix}/bin/emacs\-* ] 55 59 ui_msg "emacs binary name is ${emacs_binary}" 60 } elseif {[ variant_isset app ]} { 61 set emacs_binary /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs 56 62 } else { 57 63 set emacs_binary ${prefix}/bin/emacs 58 64 } … … 73 79 } 74 80 75 81 destroot { cd ${worksrcpath} 76 set site_lisp_dest ${destroot}${prefix}/share/emacs/site-lisp/slime 82 global site_lisp_dest 83 if {[ variant_isset app ]} { 84 set site_lisp_dest ${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp/slime 85 } else { 86 set site_lisp_dest ${destroot}${prefix}/share/emacs/site-lisp/slime 87 } 88 77 89 xinstall -m 755 -d ${site_lisp_dest} 78 90 79 91 foreach file [glob *.el *.elc *.lisp ChangeLog] {