Opened 12 years ago

Last modified 8 years ago

#36367 new enhancement

php-mode.el: variant to support emacs-app

Reported by: jrhope Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: php-mode.el

Description

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\"))'"
 }

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by jrhope

Attachment: Portfile-php-mode.diff added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Owner: changed from macports-tickets@… to billitch@…

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Owner: changed from billitch@… to macports-tickets@…
Version: 2.1.2

billitch is no longer active. See #51782.

Note: See TracTickets for help on using tickets.