[19601] trunk/dports/math/gnuplot

source_changes at macosforge.org source_changes at macosforge.org
Sat Sep 16 20:51:14 PDT 2006


Revision: 19601
Author:   pguyot at kallisys.net
Date:     2006-09-16 20:51:11 -0700 (Sat, 16 Sep 2006)

Log Message:
-----------
math/gnuplot: fix bug with PDF terminal (ticket 3142)
take maintainership.

Modified Paths:
--------------
    trunk/dports/math/gnuplot/Portfile
    trunk/dports/math/gnuplot/files/patch-term-pdf.trm

Modified: trunk/dports/math/gnuplot/Portfile
===================================================================
--- trunk/dports/math/gnuplot/Portfile	2006-09-17 03:43:45 UTC (rev 19600)
+++ trunk/dports/math/gnuplot/Portfile	2006-09-17 03:51:11 UTC (rev 19601)
@@ -3,9 +3,9 @@
 
 name			gnuplot
 version			4.0.0
-revision		2
+revision		3
 categories		math science
-maintainers		darwinports at opendarwin.org
+maintainers		pguyot at kallisys.net
 description		A command-driven interactive function plotting program
 long_description	Gnuplot is a command-driven interactive function \
 					plotting program. Plots any number of functions, \

Modified: trunk/dports/math/gnuplot/files/patch-term-pdf.trm
===================================================================
--- trunk/dports/math/gnuplot/files/patch-term-pdf.trm	2006-09-17 03:43:45 UTC (rev 19600)
+++ trunk/dports/math/gnuplot/files/patch-term-pdf.trm	2006-09-17 03:51:11 UTC (rev 19601)
@@ -1,11 +1,25 @@
---- foo/term/pdf.trm.orig	Fri Feb 11 13:07:33 2005
-+++ foo/term/pdf.trm	Fri Feb 11 13:07:40 2005
-@@ -343,7 +343,7 @@
+--- foo/term/pdf.trm.old	2004-04-11 00:55:17.000000000 +0900
++++ foo/term/pdf.trm	2006-09-17 12:24:04.000000000 +0900
+@@ -342,8 +342,11 @@
+     if (!myPDF)
  	myPDF = PDF_new();
  
-     /*open new PDF file */ 
+-    /*open new PDF file */ 
 -    if (PDF_open_fp(myPDF, gpoutfile) == -1)
-+    if (PDF_open_file(myPDF, gpoutfile) == -1)
++    /*open new PDF file */
++    if (outstr == NULL) {
++    int_error(NO_CARET, "Error:cannot write PDF to stdout .\n");
++    }
++    if (PDF_open_file(myPDF, outstr) == -1)
  	int_error(NO_CARET, "Error:cannot open PDF file .\n");
  
  #ifdef PDF_DONT_COMPRESS
+@@ -352,7 +355,7 @@
+     PDF_set_value(myPDF, "compress", 0);
+ #endif
+ 
+-    PDF_set_info(myPDF,"Creator","gnuplot-3.8e");
++    PDF_set_info(myPDF,"Creator","gnuplot-4.0");
+     PDF_set_info(myPDF,"Author","Hans-Bernhard Broeker"); /* FIXME: put in username? */
+     PDF_set_info(myPDF,"Title","gnuplot diagram"); /* FIXME: use 'set title', if any ? */
+     

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20060916/24eb339c/attachment.html


More information about the macports-changes mailing list