[51140] trunk/dports/tex/rtf2latex

blb at macports.org blb at macports.org
Mon May 18 23:36:12 PDT 2009


Revision: 51140
          http://trac.macports.org/changeset/51140
Author:   blb at macports.org
Date:     2009-05-18 23:36:11 -0700 (Mon, 18 May 2009)
Log Message:
-----------
tex/rtf2latex - fix compilation issue, ticket #15257

Modified Paths:
--------------
    trunk/dports/tex/rtf2latex/Portfile

Added Paths:
-----------
    trunk/dports/tex/rtf2latex/files/patch-reader.c.diff

Modified: trunk/dports/tex/rtf2latex/Portfile
===================================================================
--- trunk/dports/tex/rtf2latex/Portfile	2009-05-19 06:24:10 UTC (rev 51139)
+++ trunk/dports/tex/rtf2latex/Portfile	2009-05-19 06:36:11 UTC (rev 51140)
@@ -20,7 +20,7 @@
 distfiles	${distname}.${version}${extract.suffix}
 checksums	md5 90964f786d149d314a57511ed9ceaaee
 
-patchfiles	patch-Makefile.2LaTeX.diff
+patchfiles	patch-Makefile.2LaTeX.diff patch-reader.c.diff
 
 pre-configure	{ file rename ${worksrcpath}/Makefile.2LaTeX ${worksrcpath}/Makefile }
 configure	{

Added: trunk/dports/tex/rtf2latex/files/patch-reader.c.diff
===================================================================
--- trunk/dports/tex/rtf2latex/files/patch-reader.c.diff	                        (rev 0)
+++ trunk/dports/tex/rtf2latex/files/patch-reader.c.diff	2009-05-19 06:36:11 UTC (rev 51140)
@@ -0,0 +1,20 @@
+--- reader.c.orig	1993-07-02 02:13:56.000000000 -0600
++++ reader.c	2009-05-19 00:31:16.000000000 -0600
+@@ -118,7 +118,7 @@
+ static RTFStyle	*styleList = (RTFStyle *) NULL;
+ 
+ 
+-static FILE	*rtffp = stdin;
++static FILE	*rtffp = NULL;
+ 
+ 
+ /*
+@@ -584,6 +584,8 @@
+ {
+ int	c;
+ 
++	if (rtffp == NULL)
++		rtffp = stdin;
+ 	if ((c = getc (rtffp)) != EOF)
+ 	{
+ 		if (c & 0x80)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090518/9976c429/attachment.html>


More information about the macports-changes mailing list