[38871] trunk/dports/games/defendguin/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Aug 1 04:47:58 PDT 2008


Revision: 38871
          http://trac.macosforge.org/projects/macports/changeset/38871
Author:   ryandesign at macports.org
Date:     2008-08-01 04:47:58 -0700 (Fri, 01 Aug 2008)
Log Message:
-----------
defendguin: use ${applications_dir}; don't assume /Applications/MacPorts

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

Modified: trunk/dports/games/defendguin/Portfile
===================================================================
--- trunk/dports/games/defendguin/Portfile	2008-08-01 11:46:09 UTC (rev 38870)
+++ trunk/dports/games/defendguin/Portfile	2008-08-01 11:47:58 UTC (rev 38871)
@@ -53,10 +53,15 @@
         ${docdir}
 }
 
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+    set applications_dir /Applications/MacPorts
+}
+
 platform darwin {
     post-destroot {
-        xinstall -d ${destroot}/Applications/MacPorts/Defendguin.app/Contents/MacOS
+        xinstall -d ${destroot}${applications_dir}/Defendguin.app/Contents/MacOS
         ln -s ${prefix}/bin/defendguin \
-            ${destroot}/Applications/MacPorts/Defendguin.app/Contents/MacOS/Defendguin
+            ${destroot}${applications_dir}/Defendguin.app/Contents/MacOS/Defendguin
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080801/f5ce1fcd/attachment.html 


More information about the macports-changes mailing list