[34626] trunk/dports/devel/codeblocks-devel
afb at macports.org
afb at macports.org
Fri Feb 29 12:43:55 PST 2008
Revision: 34626
http://trac.macosforge.org/projects/macports/changeset/34626
Author: afb at macports.org
Date: 2008-02-29 12:43:54 -0800 (Fri, 29 Feb 2008)
Log Message:
-----------
minor patch for ANSI wxWidgets, such as the old wxgtk port
Modified Paths:
--------------
trunk/dports/devel/codeblocks-devel/Portfile
Added Paths:
-----------
trunk/dports/devel/codeblocks-devel/files/
trunk/dports/devel/codeblocks-devel/files/patch-wxscoder.cpp.diff
Modified: trunk/dports/devel/codeblocks-devel/Portfile
===================================================================
--- trunk/dports/devel/codeblocks-devel/Portfile 2008-02-29 20:38:57 UTC (rev 34625)
+++ trunk/dports/devel/codeblocks-devel/Portfile 2008-02-29 20:43:54 UTC (rev 34626)
@@ -92,5 +92,7 @@
variant x11 conflicts aqua description "Use the wxGTK port of wxWidgets" {
depends_lib port:wxgtk
+
+ patchfiles patch-wxscoder.cpp.diff
}
Added: trunk/dports/devel/codeblocks-devel/files/patch-wxscoder.cpp.diff
===================================================================
--- trunk/dports/devel/codeblocks-devel/files/patch-wxscoder.cpp.diff (rev 0)
+++ trunk/dports/devel/codeblocks-devel/files/patch-wxscoder.cpp.diff 2008-02-29 20:43:54 UTC (rev 34626)
@@ -0,0 +1,22 @@
+Index: src/plugins/contrib/wxSmith/wxscoder.cpp
+===================================================================
+--- src/plugins/contrib/wxSmith/wxscoder.cpp (revision 4921)
++++ src/plugins/contrib/wxSmith/wxscoder.cpp (arbetskopia)
+@@ -375,7 +375,7 @@
+ ( ch == _T('\t') ) ? _T('\t') : _T(' '));
+ }
+
+- Code = RebuildCode(BaseIndentation,Code.c_str(),(int)Code.Length(),EOL);
++ Code = RebuildCode(BaseIndentation,Code.wc_str(wxConvLocal),(int)Code.Length(),EOL);
+
+ // Fixing up positions to contain or not header / ending sequence
+ if ( !CodeHasHeader ) Position += Header.Length();
+@@ -463,7 +463,7 @@
+ ( ch == _T('\t') ) ? _T('\t') : _T(' '));
+ }
+
+- Code = RebuildCode(BaseIndentation,Code.c_str(),Code.Length(),EOL);
++ Code = RebuildCode(BaseIndentation,Code.wc_str(wxConvLocal),Code.Length(),EOL);
+
+ // Checking if code has really changed
+ if ( Content.Mid(0,EndPosition) == Code )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080229/6e7abbbe/attachment.html
More information about the macports-changes
mailing list