git: 6895005e7d4a - main - security/rubygem-gpgme: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 23 Jul 2023 20:02:46 UTC
The branch main has been updated by bofh:

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

commit 6895005e7d4aabf89749fe43c4370d1a5a5f3e73
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-23 20:02:02 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-23 20:02:31 +0000

    security/rubygem-gpgme: Fix build with llvm16
    
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 security/rubygem-gpgme/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/security/rubygem-gpgme/Makefile b/security/rubygem-gpgme/Makefile
index c2d7de517472..272ea86e2637 100644
--- a/security/rubygem-gpgme/Makefile
+++ b/security/rubygem-gpgme/Makefile
@@ -17,9 +17,14 @@ LIB_DEPENDS=	libassuan.so:security/libassuan \
 		libgpgme.so:security/gpgme
 
 USES=		gem pkgconfig shebangfix
+SHEBANG_FILES=	test/pinentry
 
 CONFIGURE_ARGS=	--use-system-libraries
 
-SHEBANG_FILES=	test/pinentry
+.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>