git: 522764cdade3 - main - textproc/ugrep: Fix --enable-hidden option

From: Ashish SHUKLA <ashish_at_FreeBSD.org>
Date: Sun, 20 Aug 2023 18:04:45 UTC
The branch main has been updated by ashish:

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

commit 522764cdade3a8704a86e327f3b187ef83c1f9bf
Author:     Ashish SHUKLA <ashish@FreeBSD.org>
AuthorDate: 2023-08-20 17:54:08 +0000
Commit:     Ashish SHUKLA <ashish@FreeBSD.org>
CommitDate: 2023-08-20 18:00:56 +0000

    textproc/ugrep: Fix --enable-hidden option
    
    PR:             273226
    Reported by:    Oleh Hushchenkov <o dot hushchenkov at gmail dot com>
---
 textproc/ugrep/Makefile              |  1 +
 textproc/ugrep/files/patch-configure | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/textproc/ugrep/Makefile b/textproc/ugrep/Makefile
index 5f1bc10d30ac..211aaa5ab0b6 100644
--- a/textproc/ugrep/Makefile
+++ b/textproc/ugrep/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	ugrep
 DISTVERSIONPREFIX=	v
 DISTVERSION=	4.0.0
+PORTREVISION=	1
 CATEGORIES=	textproc
 
 MAINTAINER=	ashish@FreeBSD.org
diff --git a/textproc/ugrep/files/patch-configure b/textproc/ugrep/files/patch-configure
new file mode 100644
index 000000000000..798e71626623
--- /dev/null
+++ b/textproc/ugrep/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig	2023-08-20 17:40:51 UTC
++++ configure
+@@ -8418,7 +8418,7 @@ fi
+ # Check whether --enable-hidden was given.
+ if test ${enable_hidden+y}
+ then :
+-  enableval=$enable_hidden; with_hidden="yes"
++  enableval=$enable_hidden; with_hidden="$enable_hidden"
+ else $as_nop
+   with_hidden="no"
+ fi