[92256] trunk/dports/games/simutrans/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Apr 22 21:10:38 PDT 2012


Revision: 92256
          https://trac.macports.org/changeset/92256
Author:   ryandesign at macports.org
Date:     2012-04-22 21:10:38 -0700 (Sun, 22 Apr 2012)
Log Message:
-----------
simutrans: use app portgroup; minor edits to comments

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

Modified: trunk/dports/games/simutrans/Portfile
===================================================================
--- trunk/dports/games/simutrans/Portfile	2012-04-23 03:58:00 UTC (rev 92255)
+++ trunk/dports/games/simutrans/Portfile	2012-04-23 04:10:38 UTC (rev 92256)
@@ -28,6 +28,10 @@
 set data_dir        ${prefix}/share/${name}
 
 subport simutrans {
+    PortGroup           app 1.0
+    
+    revision            1
+    
     master_sites        sourceforge:project/simutrans/simutrans/${my_version}
     
     distname            ${name}-src-${my_version}
@@ -59,7 +63,7 @@
     
     destroot {
         # Install the simutrans data.
-        copy ${worksrcpath}/simutrans ${destroot}${data_dir}
+        copy ${worksrcpath}/${name} ${destroot}${data_dir}
         
         # Install the simutrans binary. It has to be in the same directory
         # as the data.
@@ -69,6 +73,9 @@
         xinstall ${worksrcpath}/simutrans-wrapper ${destroot}${prefix}/bin/simutrans
     }
     
+    app.icon            simutrans.ico
+    
+    # Legacy compatibility variant added 2012-04-22
     variant enable_music requires music description {legacy compatibility variant} {}
     variant music description {allow listening to simutrans music while playing (may reduce speed)} {
         depends_lib-append  port:libsdl_mixer
@@ -128,7 +135,8 @@
         copy ${worksrcpath}/${name} ${destroot}${data_dir}
     }
     
-    # Deactivate old simutrans port that had an integrated pak64 that would conflict
+    # Deactivate old simutrans port that had an integrated pak64 that would conflict.
+    # Legacy port deactivation hack added 2012-04-22.
     pre-activate {
         if {[file exists ${prefix}/bin/simutrans]
             && ![catch {set vers [lindex [registry_active simutrans] 0]}]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120422/f6edc50d/attachment.html>


More information about the macports-changes mailing list