[49502] trunk/dports/games/moria/Portfile

aschenke at macports.org aschenke at macports.org
Fri Apr 10 20:35:59 PDT 2009


Revision: 49502
          http://trac.macports.org/changeset/49502
Author:   aschenke at macports.org
Date:     2009-04-10 20:35:58 -0700 (Fri, 10 Apr 2009)
Log Message:
-----------
removed score file from port manager tracking (note: moria requires a score file -- even a blank one -- to be present or it will not run; hence the post-activate code)

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

Modified: trunk/dports/games/moria/Portfile
===================================================================
--- trunk/dports/games/moria/Portfile	2009-04-11 03:33:25 UTC (rev 49501)
+++ trunk/dports/games/moria/Portfile	2009-04-11 03:35:58 UTC (rev 49502)
@@ -33,15 +33,19 @@
                  }
 
 destroot         {
-                    xinstall -d ${destroot}${prefix}/var/games/moria
-                    xinstall -c -m 2755 -g games ${worksrcpath}/source/moria ${destroot}${prefix}/bin
-                    xinstall -c -m 444 ${worksrcpath}/files/hours ${destroot}${prefix}/var/games/moria
-                    xinstall -c -m 444 ${worksrcpath}/files/news ${destroot}${prefix}/var/games/moria
-                    xinstall -c -m 644 ${worksrcpath}/files/origcmds.hlp ${destroot}${prefix}/var/games/moria
-                    xinstall -c -m 644 ${worksrcpath}/files/owizcmds.hlp ${destroot}${prefix}/var/games/moria
-                    xinstall -c -m 644 ${worksrcpath}/files/roglcmds.hlp ${destroot}${prefix}/var/games/moria
-                    xinstall -c -m 644 ${worksrcpath}/files/rwizcmds.hlp ${destroot}${prefix}/var/games/moria
-                    xinstall -c -m 464 -g games ${worksrcpath}/files/scores ${destroot}${prefix}/var/games/moria
-                    xinstall -c -m 644 ${worksrcpath}/files/version.hlp ${destroot}${prefix}/var/games/moria
-                    xinstall -c -m 644 ${worksrcpath}/files/welcome.hlp ${destroot}${prefix}/var/games/moria
+                    xinstall -m 775 -g games -d ${destroot}${prefix}/var/games/moria
+                    xinstall -m 2755 -g games -c ${worksrcpath}/source/moria ${destroot}${prefix}/bin
+                    xinstall -m 444 -c ${worksrcpath}/files/hours ${destroot}${prefix}/var/games/moria
+                    xinstall -m 444 -c ${worksrcpath}/files/news ${destroot}${prefix}/var/games/moria
+                    xinstall -m 644 -c ${worksrcpath}/files/origcmds.hlp ${destroot}${prefix}/var/games/moria
+                    xinstall -m 644 -c ${worksrcpath}/files/owizcmds.hlp ${destroot}${prefix}/var/games/moria
+                    xinstall -m 644 -c ${worksrcpath}/files/roglcmds.hlp ${destroot}${prefix}/var/games/moria
+                    xinstall -m 644 -c ${worksrcpath}/files/rwizcmds.hlp ${destroot}${prefix}/var/games/moria
+                    xinstall -m 644 -c ${worksrcpath}/files/version.hlp ${destroot}${prefix}/var/games/moria
+                    xinstall -m 644 -c ${worksrcpath}/files/welcome.hlp ${destroot}${prefix}/var/games/moria
                  }
+
+post-activate    { 
+					if { [file exists ${prefix}/var/games/moria/scores] == 0 } \
+					{ xinstall -m 464 -g games -c ${worksrcpath}/files/scores ${prefix}/var/games/moria/scores }
+				 }
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090410/e68f1d24/attachment.html>


More information about the macports-changes mailing list