hi,

Here is an update to pstoedit. I added a patch to solve a missing " error.
apparently the author used a #if 0 ...  #endif construct, I replaced
this with /* ...  */ comments and removed some windows-type ^M newlines.

Works fine on i386.

Relevant changes from the changelog:

  * added a .asy backend for Asymptote files (
    http://asymptote.sourceforge.net/ ). Thanks to John Bowman
  * fixed three bugs (one memory leak, two other minor problems)
    detected by the Coverity Prevent tool (http://www.coverity.com/)
  * PostScript frontend: fixed a bug in tracing the bounding box of 
    raster images.                                                 
  * fixed a bug in sub path handling - thanks to Soren Henriksen.
  * fixed the handling of some special characters in the LaTeX2e 
    format driver.                                            

Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/pstoedit/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile    4 Aug 2005 17:05:22 -0000       1.1.1.1
+++ Makefile    8 Aug 2005 12:45:06 -0000
@@ -2,7 +2,7 @@
 
 COMMENT=       "translate PostScript/PDF graphics to other vector formats"
 
-DISTNAME=      pstoedit-3.40
+DISTNAME=      pstoedit-3.41
 CATEGORIES=    graphics
 
 HOMEPAGE=      http://www.pstoedit.net/
Index: distinfo
===================================================================
RCS file: /cvs/ports/graphics/pstoedit/distinfo,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 distinfo
--- distinfo    4 Aug 2005 17:05:22 -0000       1.1.1.1
+++ distinfo    8 Aug 2005 12:45:06 -0000
@@ -1,4 +1,4 @@
-MD5 (pstoedit-3.40.tar.gz) = 5756c28eef3a11fe395248c5bf053556
-RMD160 (pstoedit-3.40.tar.gz) = 254276cd94ed43183843313ffa300074de5b7cbc
-SHA1 (pstoedit-3.40.tar.gz) = b5bed98b5f414e0013d137e50cb8f55e25de1662
-SIZE (pstoedit-3.40.tar.gz) = 789869
+MD5 (pstoedit-3.41.tar.gz) = dc2f8b756299422bfefc5c18fa0d33d3
+RMD160 (pstoedit-3.41.tar.gz) = 8db6d8b40ba681a01eb2bda3a0f14e31df25130f
+SHA1 (pstoedit-3.41.tar.gz) = 10a0a666c02eb5102f867744f6e75ee815b03aca
+SIZE (pstoedit-3.41.tar.gz) = 797596
Index: patches/patch-src_drvlatex2e_cpp
===================================================================
RCS file: patches/patch-src_drvlatex2e_cpp
diff -N patches/patch-src_drvlatex2e_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_drvlatex2e_cpp    8 Aug 2005 12:45:06 -0000
@@ -0,0 +1,51 @@
+$OpenBSD$
+--- src/drvlatex2e.cpp.orig    Mon Aug  8 14:30:47 2005
++++ src/drvlatex2e.cpp Mon Aug  8 14:37:06 2005
+@@ -284,27 +284,27 @@ void drvLATEX2E::show_text(const TextInf
+       const char * cp = textinfo.thetext.value();
+       //buffer << textinfo.thetext.value() 
+ 
+-#if 0
+-// characters to be handled specially 
+-% -> \%
+-# -> \#
+-{ -> \{
+-} -> \}
+-_ -> \_
+-& -> \&
+-$ -> \$  
+-      Tritt auch manchmal mit veränderter Bedeutung als $$ auf: --> \$\$
+-
+-\ -> \textbackslash
+-^ -> \textasciicircum
+-~ -> \textasciitilde
+-
+-Zusätzlich machen folgende Zeichen oft Probleme:
+-
+-" -> \textquotedblright
+-?`-> \textquestiondown
++/*
++// characters to be handled specially
++% -> \%
++# -> \#
++{ -> \{
++} -> \}
++_ -> \_
++& -> \&
++$ -> \$
++      Tritt auch manchmal mit veränderter Bedeutung als $$ auf: --> \$\$
++
++\ -> \textbackslash
++^ -> \textasciicircum
++~ -> \textasciitilde
++
++Zusätzlich machen folgende Zeichen oft Probleme:
++
++" -> \textquotedblright
++?`-> \textquestiondown
+ !`-> \textexclamdown
+-#endif
++*/
+       while (cp && *cp) {
+               if ((*cp == '%') ||
+                       (*cp == '#') ||
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/graphics/pstoedit/pkg/DESCR,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 DESCR
--- pkg/DESCR   4 Aug 2005 17:05:22 -0000       1.1.1.1
+++ pkg/DESCR   8 Aug 2005 12:45:06 -0000
@@ -11,6 +11,7 @@
 
 - via the libp2edrvstd.so module (not available on static platforms):
 
+   * Asymptote (.asy)
    * DXF - CAD exchange format
    * gnuplot
    * gschem

Reply via email to