[38867] trunk/dports/games/digger/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Aug 1 04:39:25 PDT 2008


Revision: 38867
          http://trac.macosforge.org/projects/macports/changeset/38867
Author:   ryandesign at macports.org
Date:     2008-08-01 04:39:24 -0700 (Fri, 01 Aug 2008)
Log Message:
-----------
digger:

 * use ${applications_dir}; don't assume /Applications/MacPorts
 * create directory with xinstall -d instead of file mkdir

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

Modified: trunk/dports/games/digger/Portfile
===================================================================
--- trunk/dports/games/digger/Portfile	2008-08-01 11:33:10 UTC (rev 38866)
+++ trunk/dports/games/digger/Portfile	2008-08-01 11:39:24 UTC (rev 38867)
@@ -37,11 +37,17 @@
     xinstall -mode 755 -s ${worksrcpath}/digger ${destroot}${prefix}/bin
 }
 
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+    set applications_dir /Applications/MacPorts
+}
+
 platform darwin {
     post-destroot {
-        file mkdir ${destroot}/Applications/MacPorts/Digger.app/Contents/MacOS
+        xinstall -d ${destroot}${applications_dir}/Digger.app/Contents/MacOS
         xinstall -mode 755 ${filespath}/Digger.darwin \
-            ${destroot}/Applications/MacPorts/Digger.app/Contents/MacOS/Digger
-        reinplace "s|_PREFIX_|${prefix}|g" ${destroot}/Applications/MacPorts/Digger.app/Contents/MacOS/Digger
+            ${destroot}${applications_dir}/Digger.app/Contents/MacOS/Digger
+        reinplace "s|_PREFIX_|${prefix}|g" \
+            ${destroot}${applications_dir}/Digger.app/Contents/MacOS/Digger
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080801/c862d121/attachment.html 


More information about the macports-changes mailing list