[93132] trunk/dports/math/xgraph
ryandesign at macports.org
ryandesign at macports.org
Tue May 15 15:55:15 PDT 2012
Revision: 93132
https://trac.macports.org/changeset/93132
Author: ryandesign at macports.org
Date: 2012-05-15 15:55:15 -0700 (Tue, 15 May 2012)
Log Message:
-----------
xgraph: fix build on Lion and up; #34460
Modified Paths:
--------------
trunk/dports/math/xgraph/Portfile
Added Paths:
-----------
trunk/dports/math/xgraph/files/patch-getline.diff
Modified: trunk/dports/math/xgraph/Portfile
===================================================================
--- trunk/dports/math/xgraph/Portfile 2012-05-15 21:51:22 UTC (rev 93131)
+++ trunk/dports/math/xgraph/Portfile 2012-05-15 22:55:15 UTC (rev 93132)
@@ -20,6 +20,8 @@
patchfiles patch-64b.diff
patch.pre_args -p1
+patchfiles-append patch-getline.diff
+
post-destroot {
move ${destroot}${prefix}/man/manm/xgraph.man \
${destroot}${prefix}/share/man/man1/xgraph.1
Added: trunk/dports/math/xgraph/files/patch-getline.diff
===================================================================
--- trunk/dports/math/xgraph/files/patch-getline.diff (rev 0)
+++ trunk/dports/math/xgraph/files/patch-getline.diff 2012-05-15 22:55:15 UTC (rev 93132)
@@ -0,0 +1,20 @@
+--- a/dialog.c.orig 1999-12-14 14:09:46.000000000 -0600
++++ b/dialog.c 2012-05-15 17:51:36.000000000 -0500
+@@ -777,7 +777,7 @@
+ memset(new_info->lines, 0, sizeof(Window) * E_LINES);
+
+ lineptr = text;
+- while (getline(&lineptr, line)) {
++ while (xgraph_getline(&lineptr, line)) {
+ if (new_info->num_lines >= new_info->alloc_lines) {
+ int old_alloc_lines_size = new_info->alloc_lines * sizeof(Window);
+ new_info->alloc_lines *= 2;
+@@ -888,7 +888,7 @@
+
+
+ int
+-getline(tptr, lptr)
++xgraph_getline(tptr, lptr)
+ char **tptr;
+ char *lptr;
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120515/76cefdfc/attachment-0001.html>
More information about the macports-changes
mailing list