Revision: 38852 http://trac.macosforge.org/projects/macports/changeset/38852 Author: ryandesign@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 }
participants (1)
-
ryandesign@macports.org