Modified: trunk/dports/games/2Pong/Portfile (38851 => 38852)
--- 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
}