git: a77d20836a9c - main - graphics/xfig: update to 3.2.8b

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Thu, 17 Aug 2023 12:33:46 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a77d20836a9c6afed1dfaa4cee6906bc32d9fbb1

commit a77d20836a9c6afed1dfaa4cee6906bc32d9fbb1
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2023-08-14 11:01:35 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-08-17 12:33:21 +0000

    graphics/xfig: update to 3.2.8b
    
    ChangeLog: https://sourceforge.net/p/mcj/xfig/ci/master/tree/CHANGES
    
    This update also fixes the build in 14.
    
    BUGS FIXED:
     * Adding points to splines works if boxes are present in the figure.
     * Stay in the working directory when browsing picture files.
    
    PR:             273130
    Reported by:    mjl@luckie.org.nz (maintainer)
---
 graphics/xfig/Makefile                         |  3 +--
 graphics/xfig/distinfo                         |  6 +++---
 graphics/xfig/files/patch-src_u__ghostscript.c | 17 +++++++++++++++++
 3 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/graphics/xfig/Makefile b/graphics/xfig/Makefile
index 43a8b1e0befb..973051125c04 100644
--- a/graphics/xfig/Makefile
+++ b/graphics/xfig/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	xfig
-PORTVERSION=	3.2.8a
-PORTREVISION=	1
+PORTVERSION=	3.2.8b
 CATEGORIES=	graphics
 MASTER_SITES=	SF/mcj/
 
diff --git a/graphics/xfig/distinfo b/graphics/xfig/distinfo
index b44464257c4c..2dc0a4753afb 100644
--- a/graphics/xfig/distinfo
+++ b/graphics/xfig/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1622907276
-SHA256 (xfig-3.2.8a.tar.xz) = ba43c0ea85b230d3efa5a951a3239e206d0b033d044c590a56208f875f888578
-SIZE (xfig-3.2.8a.tar.xz) = 5380896
+TIMESTAMP = 1692000314
+SHA256 (xfig-3.2.8b.tar.xz) = b2cc8181cfb356f6b75cc28771970447f69aba1d728a2dac0e0bcf1aea7acd3a
+SIZE (xfig-3.2.8b.tar.xz) = 5382524
diff --git a/graphics/xfig/files/patch-src_u__ghostscript.c b/graphics/xfig/files/patch-src_u__ghostscript.c
new file mode 100644
index 000000000000..f58e18032e84
--- /dev/null
+++ b/graphics/xfig/files/patch-src_u__ghostscript.c
@@ -0,0 +1,17 @@
+--- src/u_ghostscript.c.orig	2021-05-22 08:58:32 UTC
++++ src/u_ghostscript.c
+@@ -805,12 +805,12 @@ display_presize(void *handle, void *device, int width,
+ }
+ 
+ static void *
+-display_memalloc(void *handle, void *device, unsigned long size)
++display_memalloc(void *handle, void *device, size_t size)
+ {
+ 	(void) device;
+ 	struct calldata	*data = (struct calldata *)handle;
+ 
+-	data->img = malloc((size_t)size);
++	data->img = malloc(size);
+ 
+ 	if (appres.DEBUG && data->img == NULL)
+ 		fputs("gslib_bitmap() - display_memalloc(): Out of memory.\n",