[106957] trunk/dports/games/CrimsonFields

snc at macports.org snc at macports.org
Wed Jun 12 10:31:37 PDT 2013


Revision: 106957
          https://trac.macports.org/changeset/106957
Author:   snc at macports.org
Date:     2013-06-12 10:31:37 -0700 (Wed, 12 Jun 2013)
Log Message:
-----------
CrimsonFields:
 * set license
 * patch build failure for 10.8+, #39391
 * maintainer timeout

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

Added Paths:
-----------
    trunk/dports/games/CrimsonFields/files/patch-cf-path.cpp.diff

Modified: trunk/dports/games/CrimsonFields/Portfile
===================================================================
--- trunk/dports/games/CrimsonFields/Portfile	2013-06-12 17:07:50 UTC (rev 106956)
+++ trunk/dports/games/CrimsonFields/Portfile	2013-06-12 17:31:37 UTC (rev 106957)
@@ -7,6 +7,7 @@
 version                 0.5.3
 revision                1
 categories              games
+license                 GPL-2+
 platforms               darwin
 maintainers             phw openmaintainer
 
@@ -32,6 +33,9 @@
                         port:zlib
 
 patchfiles              tools.patch
+if { ${os.major} > 11 } {
+    patchfiles-append   patch-cf-path.cpp.diff
+}
 
 configure.args          --disable-sdltest \
                         --mandir=${prefix}/share/man \

Added: trunk/dports/games/CrimsonFields/files/patch-cf-path.cpp.diff
===================================================================
--- trunk/dports/games/CrimsonFields/files/patch-cf-path.cpp.diff	                        (rev 0)
+++ trunk/dports/games/CrimsonFields/files/patch-cf-path.cpp.diff	2013-06-12 17:31:37 UTC (rev 106957)
@@ -0,0 +1,20 @@
+--- src/cf/path.cpp.orig	2013-06-12 13:15:18.000000000 -0400
++++ src/cf/path.cpp	2013-06-12 13:15:38.000000000 -0400
+@@ -212,7 +212,7 @@
+ // RETURNS    : estimated cost to destination
+ ////////////////////////////////////////////////////////////////////////
+ 
+-inline unsigned short Path::ETA( const Point &p ) const {
++unsigned short Path::ETA( const Point &p ) const {
+   return Distance( p, end ) * quality;
+ }
+ 
+@@ -249,7 +249,7 @@
+ // RETURNS    : TRUE if search aborted, FALSE otherwise
+ ////////////////////////////////////////////////////////////////////////
+ 
+-inline bool Path::StopSearch( const PathNode &next ) const {
++bool Path::StopSearch( const PathNode &next ) const {
+   return Distance( next.pos, end ) <= deviation;
+ }
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130612/703375d4/attachment-0001.html>


More information about the macports-changes mailing list