summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--print/libspectre/Makefile4
-rw-r--r--print/libspectre/distinfo3
-rw-r--r--print/libspectre/patches/patch-libspectre_spectre-gs.c21
3 files changed, 25 insertions, 3 deletions
diff --git a/print/libspectre/Makefile b/print/libspectre/Makefile
index aac6fef9019..564c9837759 100644
--- a/print/libspectre/Makefile
+++ b/print/libspectre/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2015/04/21 22:28:36 rodent Exp $
+# $NetBSD: Makefile,v 1.25 2015/12/10 12:03:41 markd Exp $
DISTNAME= libspectre-0.2.7
-PKGREVISION= 8
+PKGREVISION= 9
CATEGORIES= print
MASTER_SITES= http://libspectre.freedesktop.org/releases/
diff --git a/print/libspectre/distinfo b/print/libspectre/distinfo
index f5925319122..dcc28418939 100644
--- a/print/libspectre/distinfo
+++ b/print/libspectre/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.8 2015/11/04 01:01:35 agc Exp $
+$NetBSD: distinfo,v 1.9 2015/12/10 12:03:41 markd Exp $
SHA1 (libspectre-0.2.7.tar.gz) = a7efd97b82b84ff1bb7a0d88c7e35ad10cc84ea8
RMD160 (libspectre-0.2.7.tar.gz) = 66d8b82f2c1dd9eea57f1b3f80bae72e6b529861
SHA512 (libspectre-0.2.7.tar.gz) = 2e60905f7eeed9ac6ec3b5f8b47a7dad85178c8c35a63ba097ef6088dd334f7fde5797ecb05cf67532b759d07a65006427914d2cd6b09107ecc90620c9541794
Size (libspectre-0.2.7.tar.gz) = 387947 bytes
+SHA1 (patch-libspectre_spectre-gs.c) = c47dfaeac12da68315efa9b7b675c7d8c3a4635f
diff --git a/print/libspectre/patches/patch-libspectre_spectre-gs.c b/print/libspectre/patches/patch-libspectre_spectre-gs.c
new file mode 100644
index 00000000000..bac74f78f40
--- /dev/null
+++ b/print/libspectre/patches/patch-libspectre_spectre-gs.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-libspectre_spectre-gs.c,v 1.1 2015/12/10 12:03:41 markd Exp $
+
+gs 9.18 renamed error namespace, but provides no good way of testing the
+version number so allow for both old and new names by testing the guard
+define of the gserrors.h that appeared at the same point.
+
+--- libspectre/spectre-gs.c.orig 2010-04-18 16:01:05.000000000 +0000
++++ libspectre/spectre-gs.c
+@@ -29,6 +29,12 @@
+ #include <ghostscript/iapi.h>
+ #include <ghostscript/ierrors.h>
+
++#ifdef gserrors_INCLUDED
++# define e_Fatal gs_error_Fatal
++# define e_ExecStackUnderflow gs_error_ExecStackUnderflow
++# define e_NeedInput gs_error_NeedInput
++#endif
++
+ #define BUFFER_SIZE 32768
+
+ struct SpectreGS {