[38897] trunk/dports/games/chromium/Portfile

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


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

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

Modified: trunk/dports/games/chromium/Portfile
===================================================================
--- trunk/dports/games/chromium/Portfile	2008-08-02 08:31:18 UTC (rev 38896)
+++ trunk/dports/games/chromium/Portfile	2008-08-02 08:43:08 UTC (rev 38897)
@@ -55,10 +55,15 @@
         ${destroot}${prefix}/share/${name}/png
 }
 
+# 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 -m 755 -d ${destroot}/Applications/MacPorts/Chromium.app/Contents/MacOS
-        system "ln -s ${prefix}/bin/chromium \
-            ${destroot}/Applications/MacPorts/Chromium.app/Contents/MacOS/Chromium"
+        xinstall -d ${destroot}${applications_dir}/Chromium.app/Contents/MacOS
+        ln -s ${prefix}/bin/chromium \
+            ${destroot}${applications_dir}/Chromium.app/Contents/MacOS/Chromium
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080802/0b9cc6d5/attachment-0001.html 


More information about the macports-changes mailing list