[MacPorts] #36367: php-mode.el: variant to support emacs-app

MacPorts noreply at macports.org
Fri Sep 28 11:29:55 PDT 2012


#36367: php-mode.el: variant to support emacs-app
-------------------------+--------------------------------
 Reporter:  jrh@…        |      Owner:  macports-tickets@…
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.1.2
 Keywords:               |       Port:  php-mode.el
-------------------------+--------------------------------
 The attached Portfile patch adds a new {{{app}}} variant to support using
 Emacs.app to compile {{{php-mode.elc}}} (the destination directory remains
 {{{${prefix}/share/emacs/site-lisp}}}):
 {{{
 --- Portfile.orig       2012-09-28 13:57:59.000000000 -0400
 +++ Portfile    2012-09-28 14:21:27.000000000 -0400
 @@ -25,13 +25,20 @@

  # We want emacs from MacPorts since this will install stuff in emacs'
 site-lisp and we want
  # it to go into ${prefix}'s site-lisp.
 -depends_lib             path:${prefix}/bin/emacs:emacs
 +depends_lib             path:${prefix}/share/emacs/site-lisp:emacs
 +
 +set EMACS ${prefix}/bin/emacs
 +
 +variant app description {Use this package with Emacs.app} {
 +    depends_build       port:emacs-app
 +    set EMACS ${applications_dir}/Emacs.app/Contents/MacOS/Emacs
 +}

  use_configure           no

  build {
      system "cd ${worksrcpath} && \
 -            emacs --batch --eval \
 +            $EMACS --batch --eval \
                '(progn (setq load-path (cons \".\" load-path)) \
                        (byte-compile-file \"php-mode.el\"))'"
  }
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/36367>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list