[38848] trunk/dports/games/alienblaster/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Aug 1 03:26:42 PDT 2008


Revision: 38848
          http://trac.macosforge.org/projects/macports/changeset/38848
Author:   ryandesign at macports.org
Date:     2008-08-01 03:26:41 -0700 (Fri, 01 Aug 2008)
Log Message:
-----------
alienblaster: use ${applications_dir}; don't assume /Applications/MacPorts

Modified Paths:
--------------
    trunk/dports/games/alienblaster/Portfile

Modified: trunk/dports/games/alienblaster/Portfile
===================================================================
--- trunk/dports/games/alienblaster/Portfile	2008-08-01 10:19:01 UTC (rev 38847)
+++ trunk/dports/games/alienblaster/Portfile	2008-08-01 10:26:41 UTC (rev 38848)
@@ -47,9 +47,14 @@
 	file copy ${worksrcpath}/cfg ${destroot}${prefix}/etc/${name}
 }
 
+# Can be removed once MacPorts 1.7.0 is released
+if {![info exists applications_dir]} {
+    set applications_dir /Applications/MacPorts
+}
+
 platform darwin	{
 	post-destroot	{
-		xinstall -m 755 -d ${destroot}/Applications/MacPorts/AlienBlaster.app/Contents/MacOS
-		ln -s ${prefix}/bin/alienblaster ${destroot}/Applications/MacPorts/AlienBlaster.app/Contents/MacOS/AlienBlaster
+		xinstall -m 755 -d ${destroot}${applications_dir}/AlienBlaster.app/Contents/MacOS
+		ln -s ${prefix}/bin/alienblaster ${destroot}${applications_dir}/AlienBlaster.app/Contents/MacOS/AlienBlaster
 	}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080801/e01ef603/attachment-0001.html 


More information about the macports-changes mailing list