Allow building formulas with current ghostscript. Bump revision.

This commit is contained in:
joerg 2020-05-16 02:12:23 +00:00
parent 904fb40b74
commit b8921405ff
3 changed files with 20 additions and 3 deletions

View file

@ -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/

View file

@ -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 @@ SHA512 (doxygen-1.8.16.src.tar.gz) = 46a0189aa82d5a687bdd99a904f0c061fccca407d15
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

View file

@ -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()