[38864] trunk/dports/aqua/Freecell/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Aug 1 04:09:21 PDT 2008


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

Modified Paths:
--------------
    trunk/dports/aqua/Freecell/Portfile

Modified: trunk/dports/aqua/Freecell/Portfile
===================================================================
--- trunk/dports/aqua/Freecell/Portfile	2008-08-01 11:00:04 UTC (rev 38863)
+++ trunk/dports/aqua/Freecell/Portfile	2008-08-01 11:09:21 UTC (rev 38864)
@@ -30,10 +30,15 @@
     }
 }
 
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+    set applications_dir /Applications/MacPorts
+}
+
 post-destroot {
-    xinstall -d ${destroot}/Applications/MacPorts
+    xinstall -d ${destroot}${applications_dir}
     copy ${worksrcpath}/build/UninstalledProducts/Freecell.app \
-        ${destroot}/Applications/MacPorts
+        ${destroot}${applications_dir}
 }
 
 livecheck.check         regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080801/1208db39/attachment.html 


More information about the macports-changes mailing list