git: 5c58ce230c55 - main - textproc/xenv: update the port to the latest version 3.2

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Sun, 14 Aug 2022 16:24:37 UTC
The branch main has been updated by danfe:

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

commit 5c58ce230c55f4cb77b3042db47f0ff3a1334163
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2022-08-14 16:23:48 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2022-08-14 16:23:48 +0000

    textproc/xenv: update the port to the latest version 3.2
    
    Reported by:    maintainer
---
 textproc/xenv/Makefile | 8 +++++++-
 textproc/xenv/distinfo | 6 +++---
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/textproc/xenv/Makefile b/textproc/xenv/Makefile
index 812f92b40908..385ff24576dc 100644
--- a/textproc/xenv/Makefile
+++ b/textproc/xenv/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	xenv
-PORTVERSION=	1.2
+PORTVERSION=	3.2
 CATEGORIES=	textproc
 MASTER_SITES=	https://download.gnu.org.ua/release/xenv/
 
@@ -8,15 +8,21 @@ COMMENT=	Text preprocessor for environment variable expansion
 
 LICENSE=	GPLv3+
 
+USES=		makeinfo
 MAKE_ARGS=	CFLAGS="${CFLAGS} -Wall"
 ALL_TARGET=	${PORTNAME}
 TEST_TARGET=	check
 
 PLIST_FILES=	bin/xenv share/man/man1/xenv.1.gz
 PORTDOCS=	NEWS README
+INFO=		${PORTNAME}
 
 OPTIONS_DEFINE=	DOCS
 
+post-patch:
+	@${REINPLACE_CMD} -e '/^%{/ { x; s/^/#include <signal.h>/; \
+		H; x; }' ${WRKSRC}/xenv.l
+
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
diff --git a/textproc/xenv/distinfo b/textproc/xenv/distinfo
index b797d6dd50c0..a7ecb9a88b5d 100644
--- a/textproc/xenv/distinfo
+++ b/textproc/xenv/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1622921463
-SHA256 (xenv-1.2.tar.gz) = cbf5c5f46913b007da80a45184804102dc64ca4a96a0b1d65a64264c6812b8aa
-SIZE (xenv-1.2.tar.gz) = 68061
+TIMESTAMP = 1660376518
+SHA256 (xenv-3.2.tar.gz) = 5c2290dfe567bbe609f68597608012126a1f43e5ea6c5386d94ccdb0b2c23072
+SIZE (xenv-3.2.tar.gz) = 134038