git: 3ae72813ac14 - main - textproc/rubygem-ruby-augeas: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 24 Jun 2023 04:38:09 UTC
The branch main has been updated by bofh:

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

commit 3ae72813ac146498a18397483204ca1efdc34a47
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 02:30:29 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 04:37:52 +0000

    textproc/rubygem-ruby-augeas: Fix build with llvm16
    
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 textproc/rubygem-ruby-augeas/Makefile | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/textproc/rubygem-ruby-augeas/Makefile b/textproc/rubygem-ruby-augeas/Makefile
index 8b9d2a02c8b9..2643c91f3dd8 100644
--- a/textproc/rubygem-ruby-augeas/Makefile
+++ b/textproc/rubygem-ruby-augeas/Makefile
@@ -12,8 +12,15 @@ LICENSE=	LGPL21
 
 LIB_DEPENDS=	libaugeas.so:textproc/augeas
 
-CONFIGURE_ARGS=	--with-opt-include="${LOCALBASE}/include/libxml2"
-USE_GNOME=	libxml2
 USES=		gem gnome pkgconfig
+USE_GNOME=	libxml2
+
+CONFIGURE_ARGS=	--with-opt-include="${LOCALBASE}/include/libxml2"
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CONFIGURE_ARGS+=	--with-cflags="-Wno-error=incompatible-function-pointer-types"
+.endif
 
 .include <bsd.port.mk>