git: cf64aa294067 - main - textproc/gnugrep: update GNU grep to version 3.9

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Wed, 08 Mar 2023 14:29:15 UTC
The branch main has been updated by danfe:

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

commit cf64aa2940678ec14efb53f981b3e4bdfd25dd61
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2023-03-08 14:28:04 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2023-03-08 14:28:04 +0000

    textproc/gnugrep: update GNU grep to version 3.9
    
    Allow to inhibit creation of g-prefixless compatibility
    symlinks via the COMPAT option (on by default).
    
    Reported by:    portscout
    PR:             269840
---
 textproc/gnugrep/Makefile  | 9 +++++----
 textproc/gnugrep/distinfo  | 6 +++---
 textproc/gnugrep/pkg-plist | 6 +++---
 3 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/textproc/gnugrep/Makefile b/textproc/gnugrep/Makefile
index 2a4bfddf0088..3edc4db9c139 100644
--- a/textproc/gnugrep/Makefile
+++ b/textproc/gnugrep/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	grep
-PORTVERSION=	3.8
+PORTVERSION=	3.9
 CATEGORIES=	textproc
 MASTER_SITES=	GNU
 PKGNAMEPREFIX=	gnu
@@ -20,8 +20,9 @@ TEST_TARGET=	check
 INFO=		grep
 CPE_VENDOR=	gnu
 
-OPTIONS_DEFINE=		ICONV LIBSIGSEGV NLS PCRE
-OPTIONS_DEFAULT=	ICONV PCRE
+OPTIONS_DEFINE=		COMPAT ICONV LIBSIGSEGV NLS PCRE
+OPTIONS_DEFAULT=	COMPAT ICONV PCRE
+COMPAT_DESC=		Create g-prefixless compatibility symlinks
 LIBSIGSEGV_DESC=	Use alternative page fault handler (GNU libsigsegv)
 OPTIONS_SUB=		yes
 
@@ -51,7 +52,7 @@ post-patch-NLS-off:
 	@${REINPLACE_CMD} '/install-exec-local:/s/install-exec-localcharset//' \
 		${WRKSRC}/lib/Makefile.in
 
-post-install:
+post-install-COMPAT-on:
 .for p in grep egrep fgrep
 	${LN} -sf g${p} ${STAGEDIR}${PREFIX}/bin/${p}
 .endfor
diff --git a/textproc/gnugrep/distinfo b/textproc/gnugrep/distinfo
index 0fbaa75b3323..f28ad237e775 100644
--- a/textproc/gnugrep/distinfo
+++ b/textproc/gnugrep/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1662189808
-SHA256 (grep-3.8.tar.xz) = 498d7cc1b4fb081904d87343febb73475cf771e424fb7e6141aff66013abc382
-SIZE (grep-3.8.tar.xz) = 1709536
+TIMESTAMP = 1678030457
+SHA256 (grep-3.9.tar.xz) = abcd11409ee23d4caf35feb422e53bbac867014cfeed313bb5f488aca170b599
+SIZE (grep-3.9.tar.xz) = 1680380
diff --git a/textproc/gnugrep/pkg-plist b/textproc/gnugrep/pkg-plist
index a52a7740695d..1e2023dbc18a 100644
--- a/textproc/gnugrep/pkg-plist
+++ b/textproc/gnugrep/pkg-plist
@@ -1,9 +1,9 @@
-bin/egrep
-bin/fgrep
+%%COMPAT%%bin/egrep
+%%COMPAT%%bin/fgrep
 bin/gegrep
 bin/gfgrep
 bin/ggrep
-bin/grep
+%%COMPAT%%bin/grep
 man/man1/ggrep.1.gz
 %%NLS%%share/locale/af/LC_MESSAGES/grep.mo
 %%NLS%%share/locale/be/LC_MESSAGES/grep.mo