Ticket #36367: Portfile-php-mode.diff

File Portfile-php-mode.diff, 867 bytes (added by jrhope, 12 years ago)
  • Portfile

    old new  
    2525
    2626# We want emacs from MacPorts since this will install stuff in emacs' site-lisp and we want
    2727# it to go into ${prefix}'s site-lisp.
    28 depends_lib             path:${prefix}/bin/emacs:emacs
     28depends_lib             path:${prefix}/share/emacs/site-lisp:emacs
     29
     30set EMACS ${prefix}/bin/emacs
     31
     32variant app description {Use this package with Emacs.app} {
     33    depends_build       port:emacs-app
     34    set EMACS ${applications_dir}/Emacs.app/Contents/MacOS/Emacs
     35}
    2936
    3037use_configure           no
    3138
    3239build {
    3340    system "cd ${worksrcpath} && \
    34             emacs --batch --eval \
     41            $EMACS --batch --eval \
    3542              '(progn (setq load-path (cons \".\" load-path)) \
    3643                      (byte-compile-file \"php-mode.el\"))'"
    3744}