[44904] trunk/dports/aqua/emacs-app/Portfile
css at macports.org
css at macports.org
Sun Jan 4 08:07:27 PST 2009
Revision: 44904
http://trac.macports.org/changeset/44904
Author: css at macports.org
Date: 2009-01-04 08:07:27 -0800 (Sun, 04 Jan 2009)
Log Message:
-----------
Support $applications_dir rather than assuming /Applications/MacPorts. see #17250
Modified Paths:
--------------
trunk/dports/aqua/emacs-app/Portfile
Modified: trunk/dports/aqua/emacs-app/Portfile
===================================================================
--- trunk/dports/aqua/emacs-app/Portfile 2009-01-04 16:06:27 UTC (rev 44903)
+++ trunk/dports/aqua/emacs-app/Portfile 2009-01-04 16:07:27 UTC (rev 44904)
@@ -40,6 +40,10 @@
use_autoconf no
use_configure no
+if {![info exists applications_dir]} {
+ set applications_dir /Applications/MacPorts
+}
+
# Eventually build the port without the provided script...
# configure.args --with-ns --without-x --prefix=${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources
@@ -68,14 +72,14 @@
#}
destroot {
- xinstall -m 755 -d ${destroot}/Applications/MacPorts
+ xinstall -m 755 -d ${destroot}${applications_dir}
file copy ${worksrcpath}/nextstep/build/Emacs.app \
- ${destroot}/Applications/MacPorts
+ ${destroot}${applications_dir}
file copy ${filespath}/site-start.el \
- ${destroot}/Applications/MacPorts/Emacs.app/Contents/Resources/site-lisp
+ ${destroot}${applications_dir}/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
+ ${destroot}${applications_dir}/Emacs.app/Contents/Resources/site-lisp/site-start.el
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090104/1c15436a/attachment.html>
More information about the macports-changes
mailing list