Changeset 19601


Ignore:
Timestamp:
Sep 17, 2006, 3:51:11 AM (14 years ago)
Author:
pguyot@…
Message:

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

Location:
trunk/dports/math/gnuplot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/gnuplot/Portfile

    r17793 r19601  
    44name                    gnuplot
    55version                 4.0.0
    6 revision                2
     6revision                3
    77categories              math science
    8 maintainers             darwinports@opendarwin.org
     8maintainers             pguyot@kallisys.net
    99description             A command-driven interactive function plotting program
    1010long_description        Gnuplot is a command-driven interactive function \
  • trunk/dports/math/gnuplot/files/patch-term-pdf.trm

    r17793 r19601  
    1 --- foo/term/pdf.trm.orig       Fri Feb 11 13:07:33 2005
    2 +++ foo/term/pdf.trm    Fri Feb 11 13:07:40 2005
    3 @@ -343,7 +343,7 @@
     1--- foo/term/pdf.trm.old        2004-04-11 00:55:17.000000000 +0900
     2+++ foo/term/pdf.trm    2006-09-17 12:24:04.000000000 +0900
     3@@ -342,8 +342,11 @@
     4     if (!myPDF)
    45        myPDF = PDF_new();
    56 
    6      /*open new PDF file */
     7-    /*open new PDF file */
    78-    if (PDF_open_fp(myPDF, gpoutfile) == -1)
    8 +    if (PDF_open_file(myPDF, gpoutfile) == -1)
     9+    /*open new PDF file */
     10+    if (outstr == NULL) {
     11+    int_error(NO_CARET, "Error:cannot write PDF to stdout .\n");
     12+    }
     13+    if (PDF_open_file(myPDF, outstr) == -1)
    914        int_error(NO_CARET, "Error:cannot open PDF file .\n");
    1015 
    1116 #ifdef PDF_DONT_COMPRESS
     17@@ -352,7 +355,7 @@
     18     PDF_set_value(myPDF, "compress", 0);
     19 #endif
     20 
     21-    PDF_set_info(myPDF,"Creator","gnuplot-3.8e");
     22+    PDF_set_info(myPDF,"Creator","gnuplot-4.0");
     23     PDF_set_info(myPDF,"Author","Hans-Bernhard Broeker"); /* FIXME: put in username? */
     24     PDF_set_info(myPDF,"Title","gnuplot diagram"); /* FIXME: use 'set title', if any ? */
     25     
Note: See TracChangeset for help on using the changeset viewer.