[38861] trunk/dports/games/freedroidclassic/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Aug 1 03:55:59 PDT 2008


Revision: 38861
          http://trac.macosforge.org/projects/macports/changeset/38861
Author:   ryandesign at macports.org
Date:     2008-08-01 03:55:59 -0700 (Fri, 01 Aug 2008)
Log Message:
-----------
freedroidclassic:

 * use ${applications_dir}; don't assume /Applications/MacPorts
 * create directory using xinstall -d instead of file mkdir
 * create symlink using tcl ln command instead of system

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

Modified: trunk/dports/games/freedroidclassic/Portfile
===================================================================
--- trunk/dports/games/freedroidclassic/Portfile	2008-08-01 10:52:01 UTC (rev 38860)
+++ trunk/dports/games/freedroidclassic/Portfile	2008-08-01 10:55:59 UTC (rev 38861)
@@ -52,9 +52,14 @@
         ${dir}/sound/Makefile.in
 }
 
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+    set applications_dir /Applications/MacPorts
+}
+
 platform darwin {
     pre-destroot {
-        file mkdir ${destroot}/Applications/MacPorts/Freedroid\ Classic.app/Contents/MacOS
-        system "ln -s ${prefix}/bin/freedroid ${destroot}/Applications/MacPorts/Freedroid\\ Classic.app/Contents/MacOS/Freedroid\\ Classic"
+        xinstall -d "${destroot}${applications_dir}/Freedroid Classic.app/Contents/MacOS"
+        ln -s ${prefix}/bin/freedroid "${destroot}${applications_dir}/Freedroid Classic.app/Contents/MacOS/Freedroid Classic"
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080801/cd424639/attachment.html 


More information about the macports-changes mailing list