[34411] trunk/dports/aqua/emacs-app
css at macports.org
css at macports.org
Sat Feb 23 08:51:24 PST 2008
Revision: 34411
http://trac.macosforge.org/projects/macports/changeset/34411
Author: css at macports.org
Date: 2008-02-23 08:51:22 -0800 (Sat, 23 Feb 2008)
Log Message:
-----------
Customize the Emacs.app site-start to add ${prefix}/share/emacs/site-lisp to the load-path, thus letting the app easily find elisp installed by other packages. (#12115)
Modified Paths:
--------------
trunk/dports/aqua/emacs-app/Portfile
Added Paths:
-----------
trunk/dports/aqua/emacs-app/files/site-start.el
Modified: trunk/dports/aqua/emacs-app/Portfile
===================================================================
--- trunk/dports/aqua/emacs-app/Portfile 2008-02-23 15:38:22 UTC (rev 34410)
+++ trunk/dports/aqua/emacs-app/Portfile 2008-02-23 16:51:22 UTC (rev 34411)
@@ -3,6 +3,7 @@
PortSystem 1.0
name emacs-app
version 23.0.0_NS-9.0rc3
+revision 1
categories aqua editors
maintainers css at macports.org
description The GNU Emacs text editor (Cocoa version)
@@ -70,4 +71,11 @@
xinstall -m 755 -d ${destroot}/Applications/MacPorts
file copy ${worksrcpath}/nextstep/build/Emacs.app \
${destroot}/Applications/MacPorts
+ file copy ${filespath}/site-start.el \
+ ${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp
}
+
+post-destroot {
+ reinplace "s|__PREFIX__|${prefix}|g" \
+ ${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp/site-start.el
+}
Added: trunk/dports/aqua/emacs-app/files/site-start.el
===================================================================
--- trunk/dports/aqua/emacs-app/files/site-start.el (rev 0)
+++ trunk/dports/aqua/emacs-app/files/site-start.el 2008-02-23 16:51:22 UTC (rev 34411)
@@ -0,0 +1 @@
+(setq load-path (cons "__PREFIX__/share/emacs/site-lisp" load-path))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080223/59d1a667/attachment-0001.html
More information about the macports-changes
mailing list