From af8bb8a1d5b150c05508395efaa5c11ad8917643 Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Fri, 2 Oct 2020 15:41:19 +1000 Subject: [PATCH] Fix gsview work with ghostscript-9.53 --- app-text/gsview/files/gsview-4.9-rev.patch | 12 ++++++++++++ app-text/gsview/gsview-4.9.ebuild | 1 + 2 files changed, 13 insertions(+) create mode 100644 app-text/gsview/files/gsview-4.9-rev.patch diff --git a/app-text/gsview/files/gsview-4.9-rev.patch b/app-text/gsview/files/gsview-4.9-rev.patch new file mode 100644 index 0000000..95b6349 --- /dev/null +++ b/app-text/gsview/files/gsview-4.9-rev.patch @@ -0,0 +1,12 @@ +diff -urNd gsview-4.9/src/gvcver.h gsview-4.9-rev/src/gvcver.h +--- gsview-4.9/src/gvcver.h 2007-11-18 11:13:24.000000000 +1000 ++++ gsview-4.9-rev/src/gvcver.h 2020-09-30 13:11:08.897457314 +1000 +@@ -58,7 +58,7 @@ + #define GS_PRODUCT "AFPL Ghostscript" + #define GS_REVISION_MIN 704 + #define GS_REVISION 704 +-#define GS_REVISION_MAX 999 ++#define GS_REVISION_MAX 9999 + + #ifdef _Windows + #ifdef _WIN64 diff --git a/app-text/gsview/gsview-4.9.ebuild b/app-text/gsview/gsview-4.9.ebuild index 27386fd..8473326 100644 --- a/app-text/gsview/gsview-4.9.ebuild +++ b/app-text/gsview/gsview-4.9.ebuild @@ -27,6 +27,7 @@ DEPEND="app-arch/unzip src_prepare() { epatch "${FILESDIR}"/${PV}-gentoo.patch epatch "${FILESDIR}"/${P}-libdl.patch + epatch "${FILESDIR}"/${P}-rev.patch tc-export CC }