[38842] trunk/dports/games/lbreakout2/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Aug 1 02:31:48 PDT 2008


Revision: 38842
          http://trac.macosforge.org/projects/macports/changeset/38842
Author:   ryandesign at macports.org
Date:     2008-08-01 02:31:48 -0700 (Fri, 01 Aug 2008)
Log Message:
-----------
lbreakout2:

 * 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/lbreakout2/Portfile

Modified: trunk/dports/games/lbreakout2/Portfile
===================================================================
--- trunk/dports/games/lbreakout2/Portfile	2008-08-01 09:27:41 UTC (rev 38841)
+++ trunk/dports/games/lbreakout2/Portfile	2008-08-01 09:31:48 UTC (rev 38842)
@@ -42,10 +42,15 @@
 
 destroot.destdir        DESTDIR=${destroot} doc_dir=${prefix}/share/doc
 
+# 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/LBreakout2.app/Contents/MacOS
-        system "ln -s ${prefix}/bin/lbreakout2 \
-            ${destroot}/Applications/MacPorts/LBreakout2.app/Contents/MacOS/LBreakout2"
+        xinstall -d ${destroot}${applications_dir}/LBreakout2.app/Contents/MacOS
+        ln -s ${prefix}/bin/lbreakout2 \
+            ${destroot}${applications_dir}/LBreakout2.app/Contents/MacOS/LBreakout2
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080801/e0466685/attachment.html 


More information about the macports-changes mailing list