Ticket #38740: Portfile-sml-mode-el.diff

File Portfile-sml-mode-el.diff, 843 bytes (added by jrhope, 12 years ago)
  • Portfile

    old new  
    2121
    2222supported_archs    noarch
    2323
    24 depends_lib        port:emacs
     24depends_lib        path:${prefix}/share/emacs/site-lisp:emacs
    2525
    2626patchfiles         patch-sml-compat.el.diff
    2727
     
    2929build.target       elcfiles
    3030destroot.target    install_elc install_el prefix=${destroot}${prefix}
    3131
     32set EMACS ${applications_dir}/Emacs.app/Contents/MacOS/Emacs
     33if {![file exists $EMACS] || [registry_file_registered $EMACS] == 0} {
     34    set EMACS ${prefix}/bin/emacs
     35}
     36
     37post-patch {
     38    reinplace "s|EMACS  = emacs|EMACS   = ${EMACS}|g" ${worksrcpath}/Makefile
     39}
     40
    3241variant docs description {Install extra documentation} {
    3342        depends_build-append    path:${prefix}/texi2dvi:texinfo \
    3443        path:${prefix}/makeinfo:texinfo \