[38852] trunk/dports/games/2Pong/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Aug 1 03:35:50 PDT 2008


Revision: 38852
          http://trac.macosforge.org/projects/macports/changeset/38852
Author:   ryandesign at macports.org
Date:     2008-08-01 03:35:50 -0700 (Fri, 01 Aug 2008)
Log Message:
-----------
2Pong:

 * use ${applications_dir}; don't assume /Applications/MacPorts
 * create symlink using ln tcl command instead of using system

Modified Paths:
--------------
    trunk/dports/games/2Pong/Portfile

Modified: trunk/dports/games/2Pong/Portfile
===================================================================
--- trunk/dports/games/2Pong/Portfile	2008-08-01 10:32:10 UTC (rev 38851)
+++ trunk/dports/games/2Pong/Portfile	2008-08-01 10:35:50 UTC (rev 38852)
@@ -26,7 +26,12 @@
 
 destroot.destdir        PRE=${destroot}${prefix}
 
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+    set applications_dir /Applications/MacPorts
+}
+
 post-destroot {
-    xinstall -d -m 755 ${destroot}/Applications/MacPorts/2Pong.app/Contents/MacOS
-    system "ln -s ${prefix}/bin/2Pong ${destroot}/Applications/MacPorts/2Pong.app/Contents/MacOS/2Pong"
+    xinstall -d ${destroot}${applications_dir}/2Pong.app/Contents/MacOS
+    ln -s ${prefix}/bin/2Pong ${destroot}${applications_dir}/2Pong.app/Contents/MacOS/2Pong
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080801/128dc1f2/attachment.html 


More information about the macports-changes mailing list