[38895] trunk/dports/games/54321/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Aug 2 01:23:29 PDT 2008


Revision: 38895
          http://trac.macosforge.org/projects/macports/changeset/38895
Author:   ryandesign at macports.org
Date:     2008-08-02 01:23:29 -0700 (Sat, 02 Aug 2008)
Log Message:
-----------
54321: Use ${applications_dir}; don't assume /Applications/MacPorts

Modified Paths:
--------------
    trunk/dports/games/54321/Portfile

Modified: trunk/dports/games/54321/Portfile
===================================================================
--- trunk/dports/games/54321/Portfile	2008-08-02 08:19:23 UTC (rev 38894)
+++ trunk/dports/games/54321/Portfile	2008-08-02 08:23:29 UTC (rev 38895)
@@ -42,10 +42,14 @@
 build.type              gnu
 build.env               CC=g++
 
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+    set applications_dir /Applications/MacPorts
+}
+
 destroot {
-    set appdir ${destroot}/Applications/MacPorts
-    xinstall -d ${appdir}
-    copy ${worksrcpath}/Release/bin/Darwin/${name}.app ${appdir}
+    xinstall -d ${destroot}${applications_dir}
+    copy ${worksrcpath}/Release/bin/Darwin/${name}.app ${destroot}${applications_dir}
 }
 
 variant universal {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080802/ecc2f627/attachment-0001.html 


More information about the macports-changes mailing list