Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/doxygen Allow building formulas with current gho...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/33e1b1ee0bb4
branches:  trunk
changeset: 431683:33e1b1ee0bb4
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat May 16 02:12:23 2020 +0000

description:
Allow building formulas with current ghostscript. Bump revision.

diffstat:

 devel/doxygen/Makefile                      |   4 ++--
 devel/doxygen/distinfo                      |   3 ++-
 devel/doxygen/patches/patch-src_formula.cpp |  16 ++++++++++++++++
 3 files changed, 20 insertions(+), 3 deletions(-)

diffs (48 lines):

diff -r 89329bf8ce7e -r 33e1b1ee0bb4 devel/doxygen/Makefile
--- a/devel/doxygen/Makefile    Sat May 16 02:11:40 2020 +0000
+++ b/devel/doxygen/Makefile    Sat May 16 02:12:23 2020 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.145 2020/04/12 08:28:29 adam Exp $
+# $NetBSD: Makefile,v 1.146 2020/05/16 02:12:23 joerg Exp $
 
 DISTNAME=      doxygen-1.8.16.src
 PKGNAME=       ${DISTNAME:S/.src//}
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    devel
 MASTER_SITES=  http://doxygen.nl/files/
 
diff -r 89329bf8ce7e -r 33e1b1ee0bb4 devel/doxygen/distinfo
--- a/devel/doxygen/distinfo    Sat May 16 02:11:40 2020 +0000
+++ b/devel/doxygen/distinfo    Sat May 16 02:12:23 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.66 2019/10/17 20:35:58 adam Exp $
+$NetBSD: distinfo,v 1.67 2020/05/16 02:12:23 joerg Exp $
 
 SHA1 (doxygen-1.8.16.src.tar.gz) = 912a36bad9b81ef27a0ff0208b459c500412c6b2
 RMD160 (doxygen-1.8.16.src.tar.gz) = 10d26e3ea9c63d7a01e9e8ecc8dd8b5ee111cc9a
@@ -6,3 +6,4 @@
 Size (doxygen-1.8.16.src.tar.gz) = 5497317 bytes
 SHA1 (patch-qtools_qglobal.h) = 6d89627ac032d95450ea878e81c027d81345952c
 SHA1 (patch-src_dirdef.cpp) = cd51a1745e828467feeeb5b89c37c5b2a4834583
+SHA1 (patch-src_formula.cpp) = 01cb504aa1ed1aa74f6a729ed69668df97fe02d9
diff -r 89329bf8ce7e -r 33e1b1ee0bb4 devel/doxygen/patches/patch-src_formula.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/doxygen/patches/patch-src_formula.cpp       Sat May 16 02:12:23 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_formula.cpp,v 1.1 2020/05/16 02:12:23 joerg Exp $
+
+Tell ghostscript that we want to read files from the local directory.
+With 9.50+, SAFER is enabled by default and it can't read the EPS otherwise.
+
+--- src/formula.cpp.orig       2020-05-16 01:35:49.487162414 +0000
++++ src/formula.cpp
+@@ -180,7 +180,7 @@ void FormulaList::generateBitmaps(const 
+       // used.  
+ 
+       char gsArgs[4096];
+-      sprintf(gsArgs,"-q -g%dx%d -r%dx%dx -sDEVICE=ppmraw "
++      sprintf(gsArgs,"-q -g%dx%d -r%dx%dx -sDEVICE=ppmraw -I. "
+                     "-sOutputFile=%s.pnm -dNOPAUSE -dBATCH -- %s.ps",
+                     gx,gy,(int)(scaleFactor*72),(int)(scaleFactor*72),
+                     formBase.data(),formBase.data()



Home | Main Index | Thread Index | Old Index