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