[38901] trunk/dports/games/CrimsonFields/Portfile

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


Revision: 38901
          http://trac.macosforge.org/projects/macports/changeset/38901
Author:   ryandesign at macports.org
Date:     2008-08-02 01:55:55 -0700 (Sat, 02 Aug 2008)
Log Message:
-----------
CrimsonFields: use ${applications_dir}

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

Modified: trunk/dports/games/CrimsonFields/Portfile
===================================================================
--- trunk/dports/games/CrimsonFields/Portfile	2008-08-02 08:52:52 UTC (rev 38900)
+++ trunk/dports/games/CrimsonFields/Portfile	2008-08-02 08:55:55 UTC (rev 38901)
@@ -39,10 +39,15 @@
     file delete -force ${destroot}${prefix}/share/pixmaps
 }
 
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+    set applications_dir /Applications/MacPorts
+}
+
 platform macosx {
     pre-destroot {
-        xinstall -d -m 755 ${destroot}/Applications/MacPorts/CrimsonFields.app/Contents/MacOS
-        system "ln -s ${prefix}/bin/crimson \
-            ${destroot}/Applications/MacPorts/CrimsonFields.app/Contents/MacOS/CrimsonFields"
+        xinstall -d ${destroot}${applications_dir}/CrimsonFields.app/Contents/MacOS
+        ln -s ${prefix}/bin/crimson \
+            ${destroot}${applications_dir}/CrimsonFields.app/Contents/MacOS/CrimsonFields
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080802/43044f82/attachment-0001.html 


More information about the macports-changes mailing list